:root,
[data-theme="light"] {
  --bg-body: #f4f7f6;
  --bg-sidebar: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-subtle: #edf3f0;
  --border: #e2e8f0;
  --border-strong: rgba(2, 158, 7, 0.28);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --accent: #029e07;
  --accent-bright: #16a34a;
  --accent-deep: #027a06;
  --accent-soft: rgba(2, 158, 7, 0.09);
  --banner-grad: linear-gradient(110deg, rgba(2, 158, 7, 0.09) 0%, rgba(20, 184, 166, 0.11) 60%, rgba(236, 253, 245, 0.96) 100%);
  --cta-grad: linear-gradient(90deg, #028a07 0%, #16a34a 50%, #0d9488 100%);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 50px -15px rgba(2, 158, 7, 0.14);
  --logo-bg: #0b1215;
  --logo-border: rgba(2, 158, 7, 0.35);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.11);
  --info: #0284c7;
  --info-soft: rgba(2, 132, 199, 0.1);
}

[data-theme="dark"] {
  --bg-body: #070b0e;
  --bg-sidebar: #0b1115;
  --bg-surface: #0f171d;
  --bg-elevated: #142028;
  --bg-subtle: #18262e;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(93, 249, 2, 0.28);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --accent: #22c55e;
  --accent-bright: #5df902;
  --accent-deep: #029e07;
  --accent-soft: rgba(93, 249, 2, 0.12);
  --banner-grad: linear-gradient(110deg, rgba(2, 158, 7, 0.2) 0%, rgba(16, 185, 129, 0.1) 52%, rgba(15, 23, 29, 0.98) 100%);
  --cta-grad: linear-gradient(90deg, #029e07 0%, #16a34a 52%, #0d9488 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 35px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -16px rgba(2, 158, 7, 0.22);
  --logo-bg: transparent;
  --logo-border: transparent;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Utility Helpers */
.w-4 { width: 1rem; height: 1rem; }
.w-5 { width: 1.25rem; height: 1.25rem; }
.w-6 { width: 1.5rem; height: 1.5rem; }
.w-7 { width: 1.75rem; height: 1.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.logo-for-dark {
  display: block;
}

.logo-for-light {
  display: none;
}

[data-theme="light"] .logo-for-dark {
  display: none;
}

[data-theme="light"] .logo-for-light {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.68rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--cta-grad);
  color: #ffffff;
  box-shadow: 0 8px 22px -6px rgba(2, 158, 7, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn-accent {
  background: var(--accent-deep);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-bright);
  color: #041306;
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

/* Cards & Surfaces */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.card-pad {
  padding: 1.4rem;
}

.page-banner {
  background: var(--banner-grad);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.45rem 1.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.page-banner h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-banner p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.banner-balance-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.65rem 1.15rem;
  min-width: 195px;
}

.banner-balance-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
}

.badge-green {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-amber {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-red {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-blue {
  background: var(--info-soft);
  color: var(--info);
}

.badge-muted {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.42rem;
  color: var(--text-main);
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 0.95rem;
  color: var(--text-soft);
  font-weight: 700;
  pointer-events: none;
}

.input-prefix-wrap .input {
  padding-left: 2.15rem;
}

/* Flash Alerts */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--border-strong);
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.28);
}

.alert-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: rgba(217, 119, 6, 0.28);
}

/* Dashboard Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  transition: transform 0.24s ease;
}

.sidebar-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-profile-card {
  margin: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--cta-grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto 0.55rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
  margin: 0;
}

/* 4-Stage Tracking Stepper & Receipt */
.tracking-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
  max-width: 520px;
  margin: 1.25rem auto;
}

.ts-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 54px;
  text-align: center;
}

.ts-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ts-node.done .ts-dot {
  background: #16a34a;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

.ts-node.rejected .ts-dot {
  background: var(--danger);
  border-color: var(--danger);
}

.ts-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
}

.ts-node.done .ts-label {
  color: var(--text-main);
  font-weight: 700;
}

.ts-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  margin-top: 11px;
  border-radius: 999px;
}

.ts-line.done {
  background: #16a34a;
}

@media print {
  .app-sidebar,
  .app-topbar,
  .app-footer,
  .mobile-bottom-nav,
  .chat-launcher,
  .chat-panel,
  .no-print {
    display: none !important;
  }
  .app-main {
    margin-left: 0 !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}

.online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid var(--bg-sidebar);
}

.sidebar-balance-box {
  margin-top: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0.85rem 1.5rem;
}

.sidebar-section-label {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.85rem 0.65rem 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.82rem;
  border-radius: 11px;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.app-main {
  flex: 1;
  margin-left: 256px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.app-topbar {
  height: 64px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 35;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.kyc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

.app-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Grids & Tables */
.grid {
  display: grid;
  gap: 1.15rem;
}

.grid > * {
  min-width: 0;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-split-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.grid-cms-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); }
.grid-chat-split { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}

.table th {
  text-align: left;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  padding: 0.82rem 1rem;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 0.92rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--bg-elevated);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  overflow-x: auto;
}

.tab-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Stepper & Process List (Matching screenshots) */
.step-row {
  display: flex;
  gap: 0.85rem;
  position: relative;
  padding-bottom: 1rem;
}

.step-row:last-child {
  padding-bottom: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile Sidebar & Bottom Nav */
.mobile-menu-btn {
  display: none;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}

.mobile-bottom-nav {
  display: none;
}

/* Floating Chat Widget (Matching assets/chat screenshots) */
.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #0ea5e9, #029e07);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 1.05rem;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 14px 30px -6px rgba(2, 158, 7, 0.45);
  cursor: pointer;
}

.chat-launcher .chat-status-dot {
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #5df902;
  border: 2px solid #ffffff;
}

.chat-launcher-bubble {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 84px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 490px;
  max-height: calc(100vh - 110px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 65;
}

.chat-panel.open {
  display: flex;
}

.chat-panel-header {
  background: linear-gradient(135deg, #029e07 0%, #0ea5e9 100%);
  color: #ffffff;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-elevated);
}

.chat-msg {
  max-width: 82%;
  padding: 0.62rem 0.9rem;
  border-radius: 16px;
  font-size: 0.87rem;
  line-height: 1.4;
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #029e07, #0ea5e9);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-msg.admin {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-msg-time {
  font-size: 0.68rem;
  opacity: 0.72;
  margin-top: 0.22rem;
}

.chat-input-bar {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-input-bar input {
  flex: 1;
  border: 1px solid var(--accent);
  background: var(--bg-elevated);
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.87rem;
  outline: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 80;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 215px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 50;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.dropdown-link:hover {
  background: var(--bg-subtle);
}

/* Public Landing Specifics */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 14, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .public-nav {
  background: rgba(255, 255, 255, 0.92);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ticker-bar {
  width: 100%;
  max-width: 100%;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  contain: layout paint;
  white-space: nowrap;
  font-size: 0.8rem;
}

.ticker-track {
  display: inline-flex;
  gap: 2.25rem;
  padding: 0.55rem 1rem;
  animation: tickerScroll 34s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-split-main,
  .grid-cms-split,
  .grid-chat-split {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .app-main {
    margin-left: 0;
    padding-bottom: 76px;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    align-items: center;
    justify-content: space-around;
    z-index: 50;
    padding: 0 0.4rem;
  }
  .mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  .mbn-item.active {
    color: var(--accent);
  }
  .mbn-center {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--cta-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -22px;
    box-shadow: 0 8px 20px rgba(2, 158, 7, 0.4);
  }
  .chat-launcher {
    bottom: 76px;
    right: 14px;
  }
  .chat-panel {
    bottom: 136px;
    right: 12px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 1rem;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .app-topbar {
    padding: 0 0.85rem;
  }
  .topbar-home-text,
  .topbar-username-text {
    display: none;
  }
  .app-content {
    padding: 1rem;
  }
  .page-banner {
    padding: 1.15rem;
  }
  .banner-balance-pill {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 440px) {
  .chat-panel {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}
