/* ==========================================================================
   St. Kabir / Modern Premium SaaS UI Theme (Matching User Reference Image)
   ========================================================================== */

:root {
  --primary-purple: #5c5cf2;
  --primary-purple-dark: #4b4be3;
  --primary-purple-light: #ececfd;
  --accent-cyan: #06b6d4;
  --accent-green: #22c55e;
  --accent-coral: #ef4444;
  --accent-teal: #14b8a6;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-app: #e2f6f5;
  --surface-white: #ffffff;
  --border-light: #f1f5f9;
  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden],
.modal[hidden],
.page-view[hidden],
.view[hidden],
div[hidden],
section[hidden],
form[hidden] {
  display: none !important;
}

body {
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  background: var(--bg-app);
  font-family: var(--font-family);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* Master Outer Container (Floating App Shell) */
.app-container {
  width: 100%;
  max-width: 1440px;
  min-height: 900px;
  background: var(--surface-white);
  border-radius: 28px;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar Navigation (Deep Purple Curves) */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #5c5cf2 0%, #4d4ce6 100%);
  display: flex;
  flex-direction: column;
  padding: 24px 0 20px;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 0 24px 28px;
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.nav-btn .nav-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.nav-btn .nav-ic svg {
  width: 18px;
  height: 18px;
}

.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Active tab curving into the main surface */
.nav-btn.active {
  background: var(--surface-white);
  color: var(--primary-purple);
  border-radius: 30px 0 0 30px;
  font-weight: 700;
  margin-left: 14px;
  width: calc(100% - 14px);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
}

.nav-btn.active .nav-ic {
  color: var(--primary-purple);
}

.nav-btn .badge-pill {
  margin-left: auto;
  background: #f59e0b;
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.sidebar-foot {
  padding: 16px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.foot-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.foot-btn svg { width: 16px; height: 16px; }

/* Main Content Area */
.main-content {
  flex: 1;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}

/* Top App Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: var(--surface-white);
  flex-shrink: 0;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-greeting b {
  color: #0f172a;
  font-weight: 700;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 18px;
  width: 340px;
  color: #94a3b8;
  font-size: 13.5px;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--text-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.h-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.h-icon-btn:hover { background: #f8fafc; color: var(--primary-purple); }

.h-icon-btn .badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-coral);
}

.user-profile-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   INTERACTIVE HEADER DROPDOWNS & SEARCH (NOTIFICATIONS, BROADCAST, PROFILE)
   ========================================================================== */
.header-search-wrap {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 420px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.18);
  z-index: 1000;
  overflow: hidden;
  animation: ddFadeIn 0.18s ease-out;
}

.s-results-header {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

.s-results-list {
  max-height: 320px;
  overflow-y: auto;
}

.s-result-item {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.s-result-item:hover {
  background: #f1f5f9;
}

.s-result-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s-result-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.s-result-sub {
  font-size: 11.5px;
  color: #64748b;
}

.s-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.s-badge.ws { background: #e0e7ff; color: #4338ca; }
.s-badge.ord { background: #fef3c7; color: #b45309; }
.s-badge.nav { background: #dcfce7; color: #15803d; }
.s-badge.gw { background: #f1f5f9; color: #475569; }

.header-dropdown-wrap {
  position: relative;
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.2);
  z-index: 1000;
  overflow: hidden;
  animation: ddFadeIn 0.18s ease-out;
}

@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.broadcast-dropdown {
  width: 380px;
}

.notif-dropdown {
  width: 360px;
}

.profile-dropdown {
  width: 250px;
}

.dd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}

.dd-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.dd-badge-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.dd-badge {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.dd-link-btn {
  background: none;
  border: none;
  color: var(--primary-purple);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.dd-link-btn:hover {
  text-decoration: underline;
}

.dd-body {
  padding: 16px 18px;
}

.dd-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.4;
}

.dd-body-list {
  max-height: 290px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.unread {
  background: #fbfcfe;
}

.notif-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.notif-ic.order { background: #fef3c7; color: #b45309; }
.notif-ic.system { background: #dcfce7; color: #15803d; }
.notif-ic.alert { background: #fee2e2; color: #dc2626; }

.notif-meta {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.notif-sub {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-footer {
  padding: 11px 18px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  background: #fafafa;
}

.dd-foot-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-purple);
  text-decoration: none;
}

.dd-foot-link:hover {
  text-decoration: underline;
}

.profile-card-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.p-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.p-role {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.p-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

.p-menu-list {
  padding: 6px;
}

.p-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.p-menu-item:hover {
  background: #f8fafc;
  color: var(--primary-purple);
}

.p-logout {
  padding: 10px 18px;
  margin-top: 2px;
}

.p-logout:hover {
  background: #fef2f2 !important;
  color: #ef4444 !important;
}

/* Page Views Body */
.page-view {
  padding: 24px 32px 36px;
  flex: 1;
}

/* ==========================================================================
   DASHBOARD VIEW (Exact match to reference image)
   ========================================================================== */

/* Top 4 KPI Stat Cards */
.top-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .top-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

.kpi-stat-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Color Accent Top Bar */
.kpi-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
}

.kpi-card-1::before { background: #ef4444; }
.kpi-card-2::before { background: #06b6d4; }
.kpi-card-3::before { background: #22c55e; }
.kpi-card-4::before { background: #14b8a6; }

.kpi-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kpi-header-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.kpi-info-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.kpi-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-big-num {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.kpi-visual {
  width: 68px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-foot-row {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Two Tone Progress Bar */
.two-tone-progress {
  width: 100%;
  height: 6px;
  background: #fecdd3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
}

.progress-segment-1 { width: 90%; background: #06b6d4; height: 100%; }
.progress-segment-2 { width: 10%; background: #ef4444; height: 100%; }

/* Middle Section: Performance Chart (60%) + Top Performers (40%) */
.middle-dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 22px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .middle-dashboard-grid { grid-template-columns: 1fr; }
}

.panel-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.panel-select {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

/* Performance Vertical Segmented Bars (Reference Style) */
.perf-chart-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding: 0 10px;
  margin-bottom: 20px;
}

.perf-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
  flex: 1;
}

.perf-bar-stacked {
  width: 14px;
  height: 160px;
  background: #f1f5f9;
  border-radius: 999px;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  position: relative;
}

.perf-seg-purple {
  background: #5c5cf2;
  width: 100%;
  border-radius: 0 0 999px 999px;
}

.perf-seg-cyan {
  background: #06b6d4;
  width: 100%;
}

.perf-seg-gray {
  background: #cbd5e1;
  width: 100%;
}

.perf-day-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* Chart Legend */
.perf-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid #f8fafc;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.legend-dot.purple { background: #5c5cf2; }
.legend-dot.cyan { background: #06b6d4; }
.legend-dot.gray { background: #cbd5e1; }

/* Right Section: Top Scorer / Top Client Workspaces (3 Gradient Cards) */
.top-clients-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.client-rank-card {
  border-radius: 16px;
  padding: 16px 12px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.2s ease;
}

.client-rank-card:hover { transform: translateY(-3px); }

.card-violet-grad { background: linear-gradient(180deg, #6d28d9 0%, #5b21b6 100%); }
.card-cyan-grad { background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%); }
.card-blue-grad { background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%); }

.rank-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  margin-bottom: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0f172a;
  font-size: 15px;
}

.rank-name {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.rank-sub {
  font-size: 10.5px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.rank-score {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.rank-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

/* Activity Updates Stream (Like News Updates in reference) */
.news-updates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.news-updates-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.view-all-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-purple);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 999px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.act-info b {
  font-size: 12.5px;
  color: #0f172a;
  display: block;
}

.act-info p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

.act-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

/* Bottom Accounts / Orders Ledger */
.accounts-ledger-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}

.accounts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.accounts-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

/* Common Tables and Inputs */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.data-table th:first-child { border-top-left-radius: 12px; }
.data-table th:last-child { border-top-right-radius: 12px; }

.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  background: #ffffff;
  transition: background 0.15s ease;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.data-table tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.data-table tr:last-child td:last-child { border-bottom-right-radius: 12px; }

/* Workspace & Customer Components in Table */
.tenant-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.22);
}

.slug-chip {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #475569;
}

.domain-chip {
  background: #e0f2fe;
  color: #0284c7;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s;
}

.domain-chip:hover {
  background: #bae6fd;
  color: #0369a1;
}

.plan-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: #ede9fe;
  color: #6d28d9;
}

.order-id-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.utr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #0f172a;
  font-weight: 600;
}

/* UI Badges & Status Pills */
.status-pill, .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-pill .dot, .pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill.active, .status-pill.paid, .pill.on, .pill.active, .pill.paid {
  background: #ecfdf5;
  color: #059669;
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.15);
}

.status-pill.pending, .status-pill.review, .pill.pending, .pill.review, .pill.trial {
  background: #fffbeb;
  color: #d97706;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.15);
}

.status-pill.trial {
  background: #f5f3ff;
  color: #7c3aed;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.status-pill.expired, .status-pill.rejected, .status-pill.fail, .pill.off, .pill.expired, .pill.rejected, .pill.suspended {
  background: #fef2f2;
  color: #e11d48;
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.15);
}

/* Buttons System */
.btn-action, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-action:hover, .btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-action.sm, .btn.sm {
  padding: 5px 12px;
  font-size: 11.5px;
  border-radius: 8px;
}

.btn-action.purple, .btn.primary {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(92, 92, 242, 0.3);
}

.btn-action.purple:hover, .btn.primary:hover {
  background: var(--primary-purple-dark);
  border-color: var(--primary-purple-dark);
  color: #ffffff;
}

.btn-action.outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.btn-action.outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-action.emerald, .btn.ok {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-action.emerald:hover, .btn.ok:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
}

.btn-action.rose, .btn.rej {
  background: #fef2f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.btn-action.rose:hover, .btn.rej:hover {
  background: #fee2e2;
  border-color: #fda4af;
}

.icon-btn-action, .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  margin: 0 2px;
}

.icon-btn-action:hover, .icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.icon-btn-action.del:hover, .icon-btn.del:hover {
  background: #fef2f2;
  color: #e11d48;
  border-color: #fca5a5;
}

.icon-btn-action svg, .icon-btn svg {
  width: 14px;
  height: 14px;
}

/* Grid forms for settings */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
}

.card-settings {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.04);
}

.card-settings h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
}

label > input, label > select, label > textarea, .row > input, .row > select {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13.5px;
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
}

label > input:focus, label > select:focus, label > textarea:focus {
  border-color: var(--primary-purple);
  background: #ffffff;
}

.row {
  display: flex;
  gap: 12px;
}

.row > label { flex: 1; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.modal-card header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.modal-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* Critical Hidden State Rules (Prevents unwanted modal popups) */
[hidden],
.modal[hidden],
.page-view[hidden],
.view[hidden],
div[hidden],
section[hidden],
form[hidden] {
  display: none !important;
}

/* Pricing Plan Tier Cards (Luxury Grid) */
.plans-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.plan-tier-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.plan-tier-card.featured {
  border: 2px solid var(--primary-purple);
  box-shadow: 0 10px 30px -8px rgba(92, 92, 242, 0.2);
}

.plan-popular-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.plan-tier-head {
  margin-bottom: 16px;
}

.plan-tier-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.plan-tier-tag {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.plan-tier-price {
  margin: 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.plan-tier-price .amount {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.03em;
}

.plan-tier-price .period {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.plan-tier-price .yr-amount {
  display: block;
  font-size: 11.5px;
  color: #059669;
  font-weight: 600;
  margin-top: 4px;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 9px;
  line-height: 1.35;
}

.plan-features-list li svg {
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-tier-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* Gateway Cards Grid (Luxury Overhaul) */
.gateways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.gw-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.gw-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.06);
}

.gw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.gw-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gw-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gw-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.gw-region-pill {
  font-size: 11px;
  color: #64748b;
  display: block;
  font-weight: 500;
  margin-top: 2px;
}

/* iOS Style Switch */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.switch-label input[type="checkbox"] {
  display: none;
}

.switch-slider {
  width: 42px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease;
  display: inline-block;
  flex-shrink: 0;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-label input[type="checkbox"]:checked + .switch-slider {
  background: #10b981;
}

.switch-label input[type="checkbox"]:checked + .switch-slider::after {
  transform: translateX(18px);
}

/* System Health Architecture Row */
.health-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.health-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.03);
}

.health-kpi-card .label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.health-kpi-card .val {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
}

/* Diagnostic Checks */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.chk .ic {
  font-size: 18px;
  flex-shrink: 0;
}

.chk b {
  font-size: 13.5px;
  color: #0f172a;
  display: block;
}

.chk .d {
  font-size: 12px;
  color: #64748b;
}

.chk .fix {
  font-size: 11.5px;
  color: #d97706;
  margin-top: 4px;
}

/* Test Output */
.test-out {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
}

.test-out.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.test-out.fail {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
}

label.check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-purple);
  margin: 0;
}

/* ==========================================================================
   SUPER ADMIN LUXURY REDESIGNED PAGES (WORKSPACES, ORDERS, GATEWAYS, COUPONS)
   ========================================================================== */
.view-header-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}

.view-header-strip h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.view-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.view-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Metric Mini Highlights */
.metric-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.mini-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mini-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.mini-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-kpi-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: 'Inter', sans-serif;
}

.mini-kpi-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
  margin-top: 2px;
}

.mini-kpi-badge.success { background: #dcfce7; color: #15803d; }
.mini-kpi-badge.purple { background: #ede9fe; color: #6d28d9; }
.mini-kpi-badge.warning { background: #fef3c7; color: #b45309; }
.mini-kpi-badge.neutral { background: #f1f5f9; color: #475569; }

/* Filter Bars & Search Boxes */
.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.table-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 14px;
  flex: 1;
  min-width: 260px;
  color: #94a3b8;
}

.table-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0f172a;
  width: 100%;
  font-family: inherit;
}

.table-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-filter-group select {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.table-filter-group select:focus {
  border-color: var(--primary-purple);
}

.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Webhook Hero Banner */
.webhook-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 22px;
  margin-bottom: 22px;
  gap: 18px;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.03);
}

.webhook-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wh-shield-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ede9fe;
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Coupons Form & Badges */
.card-head-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
}

.toggle-segmented {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.seg-btn.active {
  background: #ffffff;
  color: var(--primary-purple);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.coupon-live-preview {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-badge {
  font-size: 12px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.coupon-discount-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.coupon-discount-badge.percent { background: #dcfce7; color: #15803d; }
.coupon-discount-badge.flat { background: #e0e7ff; color: #4338ca; }

/* Responsive Adjustments for New Metrics */
@media (max-width: 900px) {
  .metric-mini-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .webhook-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .metric-mini-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (SUPER ADMIN)
   ========================================================================== */
.mobile-menu-btn {
  display: none;
}

.sidebar-close-btn {
  display: none;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 900px) {
  .app-container {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    width: 100%;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1050;
    transition: opacity 0.25s ease;
  }

  .sidebar-overlay[hidden] {
    display: none !important;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -290px;
    width: 270px;
    z-index: 1100;
    transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.3);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 20px;
  }

  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
  }

  .mobile-menu-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
  }

  .top-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .user-greeting {
    font-size: 14px;
  }

  .header-search-wrap {
    order: 3;
    width: 100%;
  }

  .header-search {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 14px;
  }

  .header-right {
    margin-left: auto;
    gap: 8px;
  }

  .search-results-dropdown,
  .header-dropdown-menu {
    position: fixed !important;
    top: 60px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 82vh !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28) !important;
    z-index: 1200 !important;
  }

  .page-view {
    padding: 14px 12px 28px;
  }

  .top-kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .middle-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .accounts-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .accounts-head h2 {
    font-size: 18px;
  }

  .accounts-head > div {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .accounts-head .btn-action {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .accounts-ledger-card {
    padding: 12px 10px;
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .gw-grid-cards {
    grid-template-columns: 1fr;
  }

  .grid2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-settings {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .modal-card {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 90vh !important;
    margin: 16px auto !important;
    padding: 18px 12px !important;
    box-sizing: border-box !important;
  }

  .row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .user-greeting {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .h-icon-btn {
    width: 34px;
    height: 34px;
  }

  .profile-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}
