/* ============================================================
   Qevranoxa MVC — Component Bridge
   Loaded AFTER style.css + theme.css.

   This file only defines MVC-specific components that are not
   part of the core design system. It must NEVER re-declare core
   design-system selectors (nav, hero, brand, cards, buttons,
   tables, badges) — those are owned by style.css + theme.css.
   ============================================================ */

/* --- Container (used by the full-page chat view) --- */
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* --- Auth / login / register --- */
.auth-section { align-items: center; display: flex; justify-content: center; min-height: calc(100vh - 250px); padding: 64px 20px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 55px rgba(15,23,42,.1); max-width: 460px; padding: 34px; width: 100%; }
.auth-card-wide { max-width: 600px; }
.auth-card h1 { font-size: 32px; margin: 10px 0 8px; }
.auth-intro { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { color: var(--ink); font-size: 13px; font-weight: 700; }
.auth-form input:not([type="checkbox"]):not([type="hidden"]),
.auth-form select,
.auth-form textarea {
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  box-sizing: border-box; font: inherit; margin-bottom: 8px; padding: 12px 13px; width: 100%;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--primary); box-shadow: var(--focus-ring); outline: 0;
}
.auth-fields-two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.auth-fields-two > div { display: grid; gap: 9px; }
.check-row { align-items: center; display: flex; gap: 8px; margin: 3px 0 10px; }
.check-row input { accent-color: var(--primary); }
.auth-switch { color: var(--muted); font-size: 13px; margin: 22px 0 0; text-align: center; }
.auth-switch a { color: var(--primary-deep); font-weight: 700; }

/* --- Dashboard content sections --- */
.narrow-section {
  max-width: 680px;
  margin-inline: auto;
  padding: 0 20px;
}
.narrow-section .auth-card {
  max-width: 100%;
}

/* --- Form error messages --- */
.form-error {
  color: var(--danger-text, #dc2626);
  background: var(--danger-soft, #fef2f2);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  margin: -4px 0 8px;
}

/* --- Transaction list & rows --- */
.transaction-list { display: flex; flex-direction: column; gap: 0; }
.transaction-row {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 8px;
  transition: box-shadow .15s;
}
.transaction-row:hover { box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.transaction-date-heading { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; margin: 24px 0 8px; text-transform: uppercase; }
.transaction-history-row { align-items: center; display: grid; gap: 13px; grid-template-columns: 38px minmax(0, 1fr) auto minmax(105px, auto); margin-bottom: 7px; padding: 12px 14px; }
.transaction-history-icon { align-items: center; background: var(--primary-soft); border-radius: 10px; color: var(--primary-deep); display: flex; height: 38px; justify-content: center; width: 38px; }
.transaction-history-icon .icon { height: 19px; width: 19px; }
.transaction-history-main { min-width: 0; }
.transaction-history-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-history-meta { color: var(--muted); display: block; font-size: 11px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-history-amount { align-items: flex-end; display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.transaction-history-amount > strong { font-size: 14px; }
.transaction-details { color: var(--primary-deep); font-size: 11px; font-weight: 750; justify-self: end; position: relative; }
.transaction-details summary { cursor: pointer; list-style: none; }
.transaction-details summary::-webkit-details-marker { display: none; }
.transaction-details summary::before { content: '+ '; }
.transaction-details[open] summary::before { content: '- '; }
.transaction-delivery-details { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; color: var(--ink); font-size: 12px; line-height: 1.8; margin-top: 8px; padding: 8px 10px; position: absolute; right: 14px; width: min(330px, calc(100vw - 56px)); z-index: 2; }
.transaction-details-placeholder { color: var(--muted); font-size: 11px; justify-self: end; }

/* --- Transaction history section --- */
.history-section {
  max-width: 860px;
  margin-inline: auto;
  padding: 0 20px;
}

/* --- Announcement body --- */
.announcement-body {
  font-size: 15px; line-height: 1.7; color: var(--ink);
}
.announcement-body p { margin-bottom: 14px; }

/* --- Admin tx-inspect button --- */
.tx-inspect-btn {
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  background: var(--primary-soft); color: var(--primary-deep);
  border: 1px solid var(--primary); cursor: pointer; font-weight: 600;
}

/* --- Funding section --- */
.funding-section { align-items: flex-start; }
.funding-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 55px rgba(15,23,42,.1); max-width: 760px; padding: 34px; width: 100%; }
.funding-heading { align-items: flex-start; display: flex; gap: 24px; justify-content: space-between; }
.funding-heading h2 { font-size: 24px; margin: 10px 0 8px; }
.funding-heading p { color: var(--muted); font-size: 14px; margin: 0; max-width: 470px; }
.funding-balance { background: #08131f; border-radius: 13px; color: #fff; min-width: 145px; padding: 15px; }
.funding-balance span { color: #a7f3d0; display: block; font-size: 11px; }
.funding-balance strong { display: block; font-size: 20px; margin-top: 6px; }
.funding-form { display: grid; gap: 9px; margin-top: 28px; }
.funding-form > label, .funding-form legend { font-size: 13px; font-weight: 750; }
.funding-form input[type="number"] { border: 1px solid var(--line); border-radius: 9px; font: inherit; padding: 13px; width: 100%; }
.funding-form fieldset { border: 0; margin: 12px 0 8px; padding: 0; }
.funding-form legend { margin-bottom: 10px; }
.gateway-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gateway-option { align-items: center; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; display: flex; gap: 12px; padding: 14px; transition: border-color .2s, background .2s; }
.gateway-option:has(input:checked) { background: #ecfdf5; border-color: var(--primary); }
.gateway-option input { accent-color: var(--primary); }
.gateway-option img { height: 38px; width: 38px; }
.gateway-option strong, .gateway-option small { display: block; }
.gateway-option small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.funding-note { color: var(--muted); font-size: 12px; margin: 18px 0 0; }

/* --- Catalog / pricing --- */
.catalog-section { min-height: 650px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0; }
.filter-pill { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 750; padding: 9px 14px; text-decoration: none; }
.filter-pill.is-active, .filter-pill:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
/* minmax(0, …) lets a track shrink below its content, so narrow phones do not
   push the page wider than the screen (1fr floors each track at min-content). */
.catalog-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.plan-card-top { align-items: center; color: var(--muted); display: flex; font-size: 12px; font-weight: 800; gap: 9px; }
.plan-card-top img { flex: 0 0 auto; height: 30px; width: 30px; }
.plan-card-top span { min-width: 0; }
.plan-card h2 { font-size: 25px; margin: 22px 0 5px; }
.plan-card p { color: var(--muted); font-size: 12px; margin: 0; text-transform: capitalize; }
.plan-card-bottom { align-items: flex-end; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 19px; padding-top: 14px; }
.plan-card-bottom strong { color: var(--primary-deep); font-size: 17px; }
.plan-card-bottom span { color: var(--muted); font-size: 9px; max-width: 85px; overflow: hidden; text-overflow: ellipsis; }
.plan-card-pricing { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.plan-card-bottom .plan-card-pricing .plan-card-regular-price { max-width: none; font-size: 11px; overflow: visible; text-decoration: line-through; text-overflow: clip; }
.plan-card-bottom .plan-card-pricing .plan-card-member-savings { max-width: none; color: var(--primary-deep); font-size: 11px; font-weight: 750; overflow: visible; text-overflow: clip; }
/* Plan variants: the card gets a coloured inner top edge, the badge a matching tint. Inset
   shadows paint inside the border so variant cards stay exactly as tall as plain ones and the
   grid never shifts when a page mixes restricted and standard bundles. */
.plan-card.variant-night { box-shadow: inset 0 3px 0 #4f46e5; }
.plan-card.variant-youtube { box-shadow: inset 0 3px 0 #dc2626; }
.plan-card.variant-social { box-shadow: inset 0 3px 0 #db2777; }
.plan-card.variant-weekend { box-shadow: inset 0 3px 0 #7c3aed; }
.plan-card.variant-ayoba { box-shadow: inset 0 3px 0 #ea580c; }
.plan-card.variant-stream { box-shadow: inset 0 3px 0 #0891b2; }
.variant-badge { border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .02em; padding: 3px 9px; text-transform: uppercase; white-space: nowrap; }
.variant-badge.variant-night { background: #eef2ff; color: #3730a3; }
.variant-badge.variant-youtube { background: #fef2f2; color: #b91c1c; }
.variant-badge.variant-social { background: #fdf2f8; color: #be185d; }
.variant-badge.variant-weekend { background: #f5f3ff; color: #6d28d9; }
.variant-badge.variant-ayoba { background: #fff7ed; color: #c2410c; }
.variant-badge.variant-stream { background: #ecfeff; color: #0e7490; }
.plan-card p.plan-description { line-height: 1.5; margin: 0 0 7px; text-transform: none; }
.variant-warning { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; color: #92400e; font-size: 12px; line-height: 1.5; margin: 13px 0 0; padding: 9px 12px; }
.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); padding: 50px; text-align: center; }
.catalog-pagination { margin-top: 26px; }
.app-pagination { display: grid; gap: 12px; }
.app-pagination-summary { color: var(--muted); font-size: 12.5px; margin: 0; }
.app-pagination-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.app-pagination-pages { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.app-pagination-link {
  align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink); display: inline-flex; font-size: 12.5px; font-weight: 700; gap: 6px;
  justify-content: center; min-height: 40px; min-width: 36px; padding: 8px 11px; text-decoration: none;
}
.app-pagination-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.app-pagination-link:hover { border-color: var(--primary); color: var(--primary-deep); }
.app-pagination-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.app-pagination-link.is-current { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
.app-pagination-link.is-disabled { color: var(--muted); opacity: .65; }
.app-pagination-gap { color: var(--muted); padding: 4px; }
@media (max-width: 600px) {
  .app-pagination-pages { display: none; }
  .app-pagination-link { min-height: 44px; }
}

.support-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.support-form-panel, .support-ticket-panel { min-width: 0; }
@media (max-width: 860px) {
  .support-columns { grid-template-columns: minmax(0, 1fr); }
}

/* --- Marketing sections (only defined here) --- */
.section-soft { background: #f8fafc; }
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin: 28px auto 0; max-width: 1180px; }
.feature-number { color: var(--primary-deep); font-size: 12px; font-weight: 850; }
.cta-section { padding-top: 18px; }
.cta-panel { align-items: center; background: #08131f; border-radius: 20px; color: #fff; display: flex; gap: 24px; justify-content: space-between; margin: auto; max-width: 1180px; padding: 42px; }
.cta-panel .section-eyebrow { background: rgba(52, 211, 153, 0.16); border-color: rgba(110, 231, 183, 0.38); color: #6ee7b7; }
.cta-panel h2 { color: #fff; margin: 10px 0 8px; }
.cta-panel p { color: #cbd5e1; margin: 0; }
.cta-panel .btn-primary { background: #34d399; color: #06251f; }
.cta-panel > div { min-width: 0; }

@media (max-width: 900px) {
  .cta-panel { align-items: flex-start; flex-direction: column; }
  .cta-panel .btn { align-self: stretch; text-align: center; }
}

/* ============================================================
   Shared Page Header (page-head partial)
   ============================================================ */
.page-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-head .page-head-copy { min-width: 0; flex: 1 1 auto; }
.page-head .page-head-copy .section-eyebrow { margin-bottom: 6px; }
.page-head .page-head-copy h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  margin: 0 0 4px;
  line-height: 1.15;
}
.page-head .page-head-copy .crumb { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; line-height: 1.55; }
.page-head .page-head-copy .lead { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; line-height: 1.6; }
.page-head-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.page-head-actions .btn { white-space: nowrap; }

/* ============================================================
   Sidebar — collapsible rail / mobile drawer (partials/sidebar)
   ============================================================ */
.sidebar-collapse-btn {
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-collapse-btn svg { width: 18px; height: 18px; }
.sidebar-collapse-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* Smooth sidebar width transition */
.sidebar {
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 4px;
}
.sidebar-nav { display: contents; }

/* Equal, comfortable rhythm between sidebar items */
.sidebar-top-row { margin-bottom: 20px; }
.sidebar-user-pill { margin-bottom: 18px; }
.sidebar-nav a, .sidebar .nav-link-btn { margin: 2px 0; }

/* Collapsed icon rail (desktop only). Brand is absent from the sidebar, so the
   top row only holds the toggle — keep everything centered and evenly spaced. */
.sidebar.collapsed { width: 80px; padding: 20px 10px; scrollbar-width: none; }
.sidebar.collapsed::-webkit-scrollbar { width: 0; height: 0; }
.sidebar.collapsed .sidebar-top-row { justify-content: center; margin-bottom: 20px; }
.sidebar.collapsed .sidebar-close-btn { display: none; }
.sidebar.collapsed .sidebar-user-pill { justify-content: center; padding: 0; margin-bottom: 18px; }
.sidebar.collapsed .sidebar-user-meta { display: none; }
.sidebar.collapsed .sidebar-nav a,
.sidebar.collapsed .nav-link-btn {
  justify-content: center;
  padding: 0;
  height: 46px;
  gap: 0;
}
.sidebar.collapsed .sidebar-nav a svg,
.sidebar.collapsed .nav-link-btn svg { flex-shrink: 0; }
.sidebar.collapsed .sidebar-nav a span,
.sidebar.collapsed .nav-link-btn span { display: none; }
.sidebar.collapsed .sidebar-nav .sep { margin: 10px auto; width: 26px; }
.sidebar.collapsed .sidebar-logout { margin-top: auto; }
.sidebar.collapsed .sidebar-logout .nav-link-btn { height: 46px; justify-content: center; padding: 0; }
.sidebar .sidebar-user-meta { overflow: hidden; }

/* Sidebar tooltip (shown on hover in collapsed rail) */
.sidebar-tooltip {
  position: fixed;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.sidebar-tooltip.visible { opacity: 1; }

/* Keep the notification count aligned inside the full sidebar item and turn it
   into a small status dot when the sidebar collapses to the icon rail. */
.sidebar-nav a.has-nav-badge { position: relative; }
.sidebar-nav-badge {
  align-items: center; background: var(--danger); border: 2px solid var(--navy); border-radius: 999px; color: #fff;
  display: inline-flex; font-size: 9px; font-weight: 800; justify-content: center; line-height: 1; margin-left: auto;
  min-height: 18px; min-width: 18px; padding: 2px 5px;
}
.sidebar.collapsed .sidebar-nav a.has-nav-badge { position: relative; }
.sidebar.collapsed .sidebar-nav-badge {
  border: 2px solid var(--navy); display: inline-flex; font-size: 0; height: 9px; min-height: 9px; min-width: 9px; padding: 0;
  position: absolute; right: 7px; top: 6px; width: 9px;
}

/* Mobile top bar left cluster (menu + brand) */
.mt-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mt-head-left .brand { min-width: 0; }
.mobile-notification-link {
  align-items: center; background: var(--navy-surface); border: 1px solid var(--navy-border); border-radius: var(--radius-sm);
  color: #fff; display: inline-flex; height: 38px; justify-content: center; position: relative; width: 38px;
}
.mobile-notification-link .icon { height: 18px; width: 18px; }
.mobile-notification-badge {
  align-items: center; background: var(--danger); border: 2px solid var(--navy); border-radius: 999px; color: #fff;
  display: flex; font-size: 8px; font-weight: 800; height: 17px; justify-content: center; line-height: 1;
  min-width: 17px; padding: 0 3px; position: absolute; right: -7px; top: -7px;
}

/* Chrome desktop-site mode uses the wide layout: keep customer branding and
   notifications visible there too, without duplicating the mobile controls. */
body.has-customer-header > .mobile-top-header { display: flex; }
@media (min-width: 861px) {
  body.has-customer-header > .mobile-top-header { height: 63px; }
  body.has-customer-header > .mobile-top-header .mobile-menu-btn { display: none; }
  body.has-customer-header .customer-shell { min-height: calc(100vh - 63px); }
  body.has-customer-header .customer-shell > .sidebar { top: 63px; height: calc(100vh - 63px); }
}

.mt-avatar {
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
}

/* ============================================================
   Reusable stat/summary strips (shared across customer + admin)
   ============================================================ */
.tile-sub { font-size: 12.5px; color: var(--muted); }
.tile-sub a { color: var(--primary-deep); font-weight: 700; }
.commission-schedule { line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.cable-services-grid .plan-card h2 { font-size: 16px; }
@supports (container-type: inline-size) {
  .cable-services-grid .plan-card { container-type: inline-size; }
  .cable-services-grid .plan-card h2 { font-size: clamp(16px, 20cqi, 25px); }
}
/* Let long currency values scale to the tile itself so they never clip. */
.stat-tile { container-type: inline-size; }
.stat-tile .value { min-width: 0; font-variant-numeric: tabular-nums; }
@supports (container-type: inline-size) {
  .customer-shell .stat-tile .value { font-size: clamp(17px, 11cqi, 24px); }
}

/* Purchase summary card (used on checkout pages) */
.plan-summary { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.plan-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #e2e8f0; font-size: 13.5px; }
.plan-summary-row:last-child { border-bottom: none; }
.plan-summary-row span { color: var(--muted); }
.plan-summary-row strong { text-align: right; min-width: 0; }
.plan-total { font-size: 1.1rem; padding-top: 10px; }
.variant-highlight { color: #d97706; }
.variant-alert { border-radius: 8px; padding: 10px 14px; font-size: 13px; margin: 8px 0; line-height: 1.5; }
.variant-alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.variant-alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.status-success { color: #16a34a; }
.status-failed { color: #dc2626; }
.status-pending { color: #d97706; }

/* Quick services hub (dashboard) */
.quick-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.quick-service {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 18px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 15px; color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-service:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,23,42,.08); border-color: #d2d9e3; }
.quick-service .ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.quick-service .ico svg { width: 20px; height: 20px; }
.quick-service h3 { font-size: 15px; margin: 0; color: var(--ink); }
.quick-service p { font-size: 12px; margin: 0; color: var(--muted); }
.quick-service.is-highlight { background: linear-gradient(135deg,#ecfdf5,#d1fae5); border-color: #a7f3d0; }
.quick-service.is-highlight h3 { color: #065f46; }
.quick-service.is-highlight p { color: #047857; font-weight: 700; }
.ico-tint-primary { background: var(--primary-soft); color: var(--primary-deep); }
.ico-tint-amber { background: #fef3c7; color: #b45309; }
.ico-tint-red { background: #fee2e2; color: #b91c1c; }
.ico-tint-blue { background: #eff6ff; color: #1e40af; }
.ico-tint-purple { background: #f3e8ff; color: #6b21a8; }
.ico-tint-yellow { background: #fef9c3; color: #854d0e; }
.ico-tint-indigo { background: #eef2ff; color: #4338ca; }
.ico-tint-green { background: #10b981; color: #fff; }

/* ============================================================
   Admin Console Components (moved here from the admin layout's
   inline <style> so all shell styling lives in the stylesheet layer)
   ============================================================ */
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-header h1 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 4px; line-height: 1.15; }
.admin-header .crumb { color: var(--muted); font-size: 13px; }

.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-filters .filter-pill { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 12px; }
.filter-count { margin-left: 4px; font-size: 11px; opacity: .75; }
.admin-filters .filter-pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-xs); }
.admin-stat-card .stat-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.admin-stat-card .stat-value { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.admin-stat-card small { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.admin-detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }

.admin-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
.admin-btn-primary { background: var(--primary); color: #fff; }
.admin-btn-danger { background: #dc2626; color: #fff; }
.admin-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.admin-btn-sm { padding: 4px 8px; font-size: 11px; }

.admin-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-search input, .admin-search select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 13px; }
.admin-search input { flex: 2; min-width: 180px; }
.admin-pagination { margin-top: 16px; }

.admin-form label { display: block; font-size: 12px; font-weight: 700; margin: 10px 0 4px; }
.admin-form input,
.admin-form select,
.admin-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }
.admin-form textarea { min-height: 110px; resize: vertical; }
.admin-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-form input[type="checkbox"] { width: auto; }

.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-xs); }
.admin-card h2 { font-size: 18px; margin: 0 0 16px; color: var(--ink); }
.admin-card h3 { font-size: 16px; margin: 0 0 14px; color: var(--ink); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 11px 12px; background: #f8fafc; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; vertical-align: middle; }
.admin-table a { color: var(--primary-deep); text-decoration: none; font-weight: 600; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #f8fafc; }

.audit-details {
  max-width: 420px;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.admin-live-service-table td { white-space: normal; }

.home-announcements-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.home-announcement-card { display: block; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.home-announcement-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-announcement-card h3 { margin: 12px 0 7px; color: var(--ink); }
.home-announcement-card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.home-announcement-meta { color: var(--primary-deep); font-size: 12px; font-weight: 700; }


@media (max-width: 760px) {
  .admin-logs-table { min-width: 0 !important; display: block; }
  .admin-logs-table thead { display: none; }
  .admin-logs-table tbody,
  .admin-logs-table tr,
  .admin-logs-table td { display: block; }
  .admin-logs-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-logs-table tr:last-child { border-bottom: 0; }
  .admin-logs-table td {
    min-width: 0;
    padding: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .admin-logs-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .admin-logs-table td:nth-child(4),
  .admin-logs-table td:nth-child(5) { grid-column: 1 / -1; }
  .admin-logs-table td:nth-child(5) { white-space: nowrap !important; }
  .admin-logs-table td[colspan] { grid-column: 1 / -1; }
  .admin-logs-table td[colspan]::before { display: none; }
}

@media (max-width: 760px) {
  .admin-transactions-table { min-width: 0 !important; display: block; }
  .admin-transactions-table thead { display: none; }
  .admin-transactions-table tbody,
  .admin-transactions-table tr,
  .admin-transactions-table td { display: block; }
  .admin-transactions-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-transactions-table tr:last-child { border-bottom: 0; }
  .admin-transactions-table td {
    min-width: 0;
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .admin-transactions-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .admin-transactions-table td:nth-child(4),
  .admin-transactions-table td:nth-child(7),
  .admin-transactions-table td:nth-child(8),
  .admin-transactions-table td:nth-child(9),
  .admin-transactions-table td:nth-child(10) { grid-column: 1 / -1; }
  .admin-transactions-table td:nth-child(5),
  .admin-transactions-table td:nth-child(6),
  .admin-transactions-table td:nth-child(7) { white-space: nowrap; }
  .admin-transactions-table td:nth-child(10) .tx-inspect-btn { width: 100%; justify-content: center; }
  .admin-transactions-table td[colspan] { grid-column: 1 / -1; }
  .admin-transactions-table td[colspan]::before { display: none; }
}

.admin-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.admin-badge-success { background: #dcfce7; color: #166534; }
.admin-badge-warning { background: #fef3c7; color: #92400e; }
.admin-badge-danger { background: #fee2e2; color: #991b1b; }
.admin-badge-info { background: #dbeafe; color: #1d4ed8; }
.admin-badge-muted { background: #f1f5f9; color: #475569; }
.admin-badge-pill {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}
.admin-sess-badge { font-size: 13px; font-style: normal; color: #34d399; font-family: inherit; margin: 4px 0 0; }

.admin-empty { text-align: center; padding: 28px; color: var(--muted); }
.admin-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.admin-ticket-alert { align-items: center; display: flex; gap: 12px; }
.admin-ticket-alert-copy { min-width: 0; }
.admin-ticket-alert-link { flex-shrink: 0; margin-left: auto; }
.admin-alert-success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.admin-alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.admin-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.admin-detail-grid dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.admin-detail-grid dd { margin: 3px 0 0; color: var(--ink); font-size: 14px; }

/* Dashboard balance strip (compact wallet balance row) */
.balance-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; }
.balance-strip-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.balance-strip-amount { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: auto; }
.balance-strip-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .balance-strip { gap: 10px; padding: 14px 16px; }
  .balance-strip-amount { font-size: 22px; width: 100%; }
  .balance-strip-actions { width: 100%; }
  .balance-strip-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Dashboard dedicated-account card: keep the account visible without restoring
   the old oversized balance hero. */
.dashboard-va-card {
  background: linear-gradient(135deg, #102544 0%, #0d1c36 62%, #0b172c 100%);
  border-color: rgba(255, 255, 255, .08);
  color: #fff;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 18px 20px;
  position: relative;
}
.dashboard-va-card::after {
  background: radial-gradient(circle, rgba(56, 189, 248, .2), transparent 68%);
  content: '';
  height: 260px;
  pointer-events: none;
  position: absolute;
  right: -85px;
  top: -125px;
  width: 260px;
}
.dashboard-va-header,
.dashboard-va-details { position: relative; z-index: 1; }
.dashboard-va-header { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.dashboard-va-kicker {
  align-items: center;
  color: #93c5fd;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-va-kicker-dot { background: #34d399; border-radius: 50%; box-shadow: 0 0 0 4px rgba(52, 211, 153, .13); height: 7px; width: 7px; }
.dashboard-va-status { color: #6ee7b7; font-size: 9px; letter-spacing: .06em; }
.dashboard-va-copy-btn { align-items: center; background: transparent; border: 0; border-radius: 7px; color: #93a4bc; cursor: pointer; display: inline-flex; flex: 0 0 auto; justify-content: center; min-height: 30px; min-width: 30px; padding: 6px; }
.dashboard-va-copy-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dashboard-va-details {
  margin-top: 8px;
}
.dashboard-va-number-wrap { min-width: 0; }
.dashboard-va-number { display: block; font-size: clamp(23px, 3vw, 30px); }
.dashboard-va-meta { align-items: baseline; color: #a7b6ca; display: flex; flex-wrap: wrap; font-size: 11px; gap: 5px; line-height: 1.45; margin-top: 5px; }
.dashboard-va-bank,
.dashboard-va-name { overflow-wrap: anywhere; }
.dashboard-va-bank { color: #a7b6ca; }
.dashboard-va-name { color: #dce6f3; }
.dashboard-va-separator { color: #64748b; }
.dashboard-verify-card {
  align-items: center;
  background: #fffbeb;
  border: 1px solid #f5d486;
  border-radius: var(--radius);
  display: flex;
  gap: 13px;
  margin-bottom: 20px;
  padding: 14px 16px;
}
.dashboard-verify-icon { align-items: center; background: #fef3c7; border-radius: 10px; color: #b45309; display: inline-flex; flex: 0 0 auto; height: 38px; justify-content: center; width: 38px; }
.dashboard-verify-copy { min-width: 0; }
.dashboard-verify-label { color: #b45309; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.dashboard-verify-card h2 { color: #78350f; font-size: 16px; margin: 3px 0 2px; }
.dashboard-verify-card p { color: #92400e; font-size: 12px; line-height: 1.45; margin: 0; }
.dashboard-verify-action { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 760px) {
  .dashboard-verify-card { align-items: flex-start; flex-wrap: wrap; }
  .dashboard-verify-copy { flex: 1 1 calc(100% - 56px); }
  .dashboard-verify-action { margin-left: 51px; }
}
@media (max-width: 480px) {
  .dashboard-va-card { padding: 16px; }
  .dashboard-verify-action { margin-left: 51px; width: calc(100% - 51px); }
}

/* Dashboard funding highlight card */
.funding-highlight { position: relative; overflow: hidden; background: linear-gradient(126deg, #13294e 0%, #0e1c3a 58%, #0a1526 100%); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 26px 28px; margin-bottom: 24px; }
.funding-highlight::before { content: ''; position: absolute; inset: -50% -20% auto auto; width: 70%; height: 200%; background: radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.22), transparent 55%); pointer-events: none; }
.funding-glow { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 65%); pointer-events: none; }
.funding-highlight .va-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(52, 211, 153, 0.35); color: #34d399; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; }
.funding-highlight .va-dim { color: rgba(148, 163, 184, 0.8); font-weight: 600; text-transform: none; letter-spacing: 0; }
.va-copy, .va-cta-row { position: relative; z-index: 1; color: #e2e8f0; }
.va-bank { font-size: 14px; color: #cbd5e1; margin-bottom: 6px; }
.va-bank strong { color: #fff; }
.va-number-line { display: flex; align-items: center; gap: 14px; margin: 8px 0; flex-wrap: wrap; }
.va-number { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: .04em; color: #fff; white-space: nowrap; }
.va-copy-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: #e2e8f0; gap: 6px; }
.va-copy-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.va-account-name { font-size: 13.5px; color: #cbd5e1; margin-top: 4px; overflow-wrap: anywhere; }
.va-account-name b { color: #fff; }
.va-hint { font-size: 13px; color: #94a3b8; margin-top: 12px; line-height: 1.6; }
.va-hint b { color: #e2e8f0; }
.va-cta-row { display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.va-cta-title { color: #fff; font-size: clamp(19px, 2.2vw, 24px); margin: 4px 0 6px; letter-spacing: -0.02em; }
.va-cta-text { color: #94a3b8; font-size: 14px; max-width: 620px; line-height: 1.6; margin: 0; }
.va-cta-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 12px; box-shadow: 0 10px 24px rgba(56, 189, 248, 0.28); }

/* Dashboard balance hero (two-pane: wallet balance + virtual account) */
/* Tracks collapse on available width, not viewport: the 260px sidebar means a
   viewport-based breakpoint leaves the balance pane far too narrow on tablets. */
.balance-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 28px;
  align-items: center;
}
.balance-hero .bh-main, .balance-hero .bh-side { position: relative; z-index: 1; min-width: 0; }
.balance-hero .bh-balance {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.05;
  margin: 4px 0 6px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
}
.balance-hero .bh-sub { color: #94a3b8; font-size: 13.5px; margin-bottom: 20px; }
.balance-hero .bh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.balance-hero .btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.balance-hero .btn-glass:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.balance-hero .bh-side {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
}
@media (max-width: 760px) {
  .balance-hero { grid-template-columns: 1fr; gap: 20px; }
  .balance-hero .bh-side { padding: 18px; }
}

/* Card header row */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.card-head-muted { font-size: 12px; color: var(--muted); font-weight: 600; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.dashboard-sidepanels .card { margin-bottom: 20px; }
@media (max-width: 980px) { .dashboard-columns { grid-template-columns: 1fr; } }
/* A wide transaction table scrolls inside its own region instead of squeezing
   values. The shared absolute-positioned scroll fade can mask text after a swipe. */
.dashboard-recent-wrap { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.dashboard-recent-wrap::after { display: none; }
.dashboard-recent-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.dashboard-recent-table { min-width: 960px; table-layout: auto; }
.dashboard-recent-table td, .dashboard-recent-table th { white-space: nowrap; }
.dashboard-recent-table .transaction-description { min-width: 260px; white-space: nowrap; }
.dashboard-recent-table .transaction-amount { min-width: 120px; font-variant-numeric: tabular-nums; }
.dashboard-recent-scroll-hint { display: none; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.dashboard-recent-wrap.is-scrollable + .dashboard-recent-scroll-hint { display: block; }
.ref-code-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; text-align: center; }
.ref-code-box span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ref-code { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--primary-deep); letter-spacing: .08em; margin-top: 2px; }

/* Value-card grid used across pages */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }

/* Profile & API key page */
.profile-api-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); align-items: start; }
.profile-api-grid > .profile-api-divider { border-left: 1px solid var(--line); padding-left: 20px; }
@media (max-width: 860px) {
  .profile-api-grid { grid-template-columns: 1fr; }
  .profile-api-grid > .profile-api-divider { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
}
.on-dark-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #e2e8f0;
  font: inherit;
  font-size: 13px;
  padding: 11px 48px 11px 14px;
  width: 100%;
}
.on-dark-input:focus { outline: none; border-color: rgba(56, 189, 248, 0.6); }
.on-dark-input-action { color: #94a3b8; }
.on-dark-input-action:hover { color: #fff; }

/* VA activation modal */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(6, 12, 24, 0.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 18px; width: 100%; max-width: 430px; padding: 26px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); position: relative; max-height: 92vh; overflow: auto; }
.modal-close { position: absolute; top: 12px; right: 14px; background: #f1f5f9; border: 0; width: 32px; height: 32px; border-radius: 10px; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.modal-head-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head-sub { font-size: 12px; color: var(--muted); }
.modal-copy { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 14px; }
.modal-box label { display: block; font-size: 12px; font-weight: 700; margin: 10px 0 5px; }
.modal-box input[type="password"], .modal-box input[type="text"] { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal-alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-top: 12px; }
.modal-box-lg { max-width: 620px; }
.admin-spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: admin-spin .8s linear infinite; margin: 0 auto; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
.admin-result-pane { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; font-size: 13px; }
.admin-result-pane pre { white-space: pre-wrap; word-break: break-all; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-soft); }
.admin-ticket-reply { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.admin-ticket-reply.is-staff { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.reply-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.reply-meta strong { color: var(--ink); }

/* ============================================================
   Customer notifications
   ============================================================ */
.notification-toolbar { display: flex; justify-content: flex-end; min-height: 42px; position: relative; z-index: 20; }
.notification-center { position: relative; }
.notification-toggle {
  align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-soft); cursor: pointer; display: inline-flex; height: 42px; justify-content: center;
  padding: 0; position: relative; width: 42px; box-shadow: var(--shadow-xs); transition: border-color .15s, color .15s, box-shadow .15s;
}
.notification-toggle:hover, .notification-toggle:focus-visible { border-color: var(--primary); box-shadow: var(--shadow-glow); color: var(--primary-deep); outline: 0; }
.notification-toggle .icon { height: 19px; width: 19px; }
.notification-count {
  align-items: center; background: var(--danger); border: 2px solid var(--card); border-radius: 999px; color: #fff;
  display: flex; font-size: 9px; font-weight: 800; height: 18px; justify-content: center; line-height: 1; min-width: 18px;
  padding: 0 4px; position: absolute; right: -7px; top: -7px;
}
.notification-menu {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-xl);
  overflow: hidden; position: absolute; right: 0; top: 50px; width: min(390px, calc(100vw - 32px));
}
.notification-menu[hidden] { display: none; }
.notification-menu-head { align-items: center; border-bottom: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 12px; padding: 16px 17px 13px; }
.notification-menu-head strong { display: block; font-size: 14px; }
.notification-menu-head span { color: var(--muted); display: block; font-size: 11px; margin-top: 2px; }
.notification-menu-head a { color: var(--primary-deep); font-size: 11px; font-weight: 800; white-space: nowrap; }
.notification-menu-item, .notification-page-item { align-items: flex-start; color: inherit; display: flex; gap: 11px; text-decoration: none; }
.notification-menu-item { border-bottom: 1px solid var(--line-light); padding: 13px 17px; position: relative; transition: background .15s; }
.notification-menu-item:last-child { border-bottom: 0; }
.notification-menu-item:hover, .notification-menu-item.is-unread { background: var(--primary-faint); }
.notification-icon {
  align-items: center; border-radius: 11px; display: inline-flex; flex: 0 0 auto; height: 36px; justify-content: center; width: 36px;
}
.notification-icon .icon { height: 17px; width: 17px; }
.notification-icon-primary { background: var(--primary-soft); color: var(--primary-deep); }
.notification-icon-success { background: var(--success-soft); color: var(--success-text); }
.notification-icon-info { background: var(--info-soft); color: var(--info-text); }
.notification-icon-warning { background: var(--warn-soft); color: var(--warn-text); }
.notification-icon-purple { background: #f3e8ff; color: #6b21a8; }
.notification-copy { display: block; min-width: 0; }
.notification-copy strong { color: var(--ink); display: block; font-size: 12.5px; line-height: 1.35; }
.notification-copy > span:not(.notification-page-title) { color: var(--muted); display: block; font-size: 11.5px; line-height: 1.45; margin-top: 3px; }
.notification-copy small { color: var(--muted-light); display: block; font-size: 10px; margin-top: 5px; }
.notification-unread-dot { background: var(--primary); border-radius: 50%; flex: 0 0 auto; height: 7px; margin-left: auto; margin-top: 6px; width: 7px; }
.notification-menu-empty { align-items: center; color: var(--muted); display: flex; flex-direction: column; font-size: 12px; gap: 8px; padding: 28px 18px; }
.notification-menu-empty .icon { color: var(--muted-light); height: 24px; width: 24px; }
.notification-page-card { padding: 0; overflow: hidden; }
.notification-page-item { border-bottom: 1px solid var(--line-light); gap: 14px; padding: 18px 20px; position: relative; transition: background .15s; }
.notification-page-item:last-child { border-bottom: 0; }
.notification-page-item:hover, .notification-page-item.is-unread { background: var(--primary-faint); }
.notification-page-item .notification-icon { height: 42px; width: 42px; }
.notification-page-title { align-items: center; display: flex; gap: 8px; }
.notification-page-title strong { font-size: 14px; }
.notification-new-label { background: var(--primary-soft); border-radius: 999px; color: var(--primary-deep); font-size: 9px; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; text-transform: uppercase; }
.notification-page-arrow { color: var(--muted-light); height: 16px; margin-left: auto; margin-top: 12px; width: 16px; }
.notification-empty-state { align-items: center; display: flex; flex-direction: column; padding: 70px 20px; text-align: center; }
.notification-empty-icon { align-items: center; background: var(--primary-soft); border-radius: 50%; color: var(--primary-deep); display: inline-flex; height: 54px; justify-content: center; margin-bottom: 14px; width: 54px; }
.notification-empty-icon .icon { height: 24px; width: 24px; }
.notification-empty-state h3 { font-size: 17px; margin-bottom: 5px; }
.notification-empty-state p { color: var(--muted); font-size: 13px; }
.notification-read { align-items: flex-start; display: flex; gap: 16px; padding: 24px 22px; }
.notification-read .notification-icon { flex: 0 0 auto; height: 46px; width: 46px; }
.notification-read .notification-icon .icon { height: 20px; width: 20px; }
.notification-read-body { min-width: 0; }
.notification-read-text { color: var(--ink); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.notification-read-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

/* Small floating customer chat control, clear of the phone's navigation bar. */
@media (max-width: 860px) {
  body.has-mobile-chat .ai-launcher-tooltip { display: none !important; }
  body.has-mobile-chat .flw-ai-launcher {
    right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    width: 44px !important;
    height: 44px !important;
  }
  body.has-mobile-chat .main { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
  body.has-mobile-chat .flw-ai-card,
  body.has-mobile-chat .flw-ai-card.open {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    height: 70vh;
    height: min(70dvh, 480px) !important;
    max-height: calc(var(--chat-viewport-height, 100vh) - 160px - env(safe-area-inset-bottom, 0px)) !important;
  }
  body.has-mobile-chat .flw-ai-body { min-height: 0; }
  body.has-mobile-chat .flw-input { font-size: 16px; min-width: 0; }
  body.has-mobile-chat .flw-input::placeholder { font-size: 14px; }
  body.has-mobile-chat .flw-send-btn { height: 36px; width: 36px; flex-shrink: 0; }
  body.has-mobile-chat .flw-send-btn svg { height: 16px; width: 16px; }
  body.has-mobile-chat .flw-btn-icon { height: 36px; width: 36px; flex-shrink: 0; }
  body.has-mobile-chat .flw-ai-head-brand { min-width: 0; }
  body.has-mobile-chat .flw-ai-head-brand > div:last-child { min-width: 0; }
  body.has-mobile-chat .flw-title,
  body.has-mobile-chat .flw-sub { overflow-wrap: anywhere; }
  body.has-mobile-chat.chat-compact-viewport .flw-ai-card,
  body.has-mobile-chat.chat-compact-viewport .flw-ai-card.open {
    top: calc(var(--chat-viewport-top, 0px) + 8px) !important;
    bottom: auto !important;
    height: calc(var(--chat-viewport-height, 100vh) - 16px) !important;
    max-height: calc(var(--chat-viewport-height, 100vh) - 16px) !important;
  }
}

/* ============================================================
   Content wrapper — constrains inner content on ultra-wide screens
   ============================================================ */
.content-wrap { width: 100%; max-width: 1280px; }

/* ============================================================
   Main workspace spacing — keeps content off the ceiling and
   leaves comfortable breathing room inside the shell.
   ============================================================ */
.main { padding: 32px clamp(18px, 3vw, 44px) 56px; }
.customer-shell .main,
.admin-shell .main { padding-top: 28px; }
.page-head { margin-bottom: 26px; }
.page-head-copy + .page-head-actions { margin-top: 2px; }
@media (max-width: 860px) {
  .customer-shell .main,
  .admin-shell .main { padding-top: 6px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar-collapse-btn { display: none; }
  .content-wrap { max-width: 100%; }
}

/* Tablet sidebar narrow range (861–1024px): tighter main padding */
@media (min-width: 861px) and (max-width: 1024px) {
  .dash .main { padding: 24px 20px; }
  .customer-shell .dashboard-columns { grid-template-columns: 1fr; }
  .dashboard-sidepanels { min-width: 0; }
}

/* Mobile / tablet ≤ 860px */
@media (max-width: 860px) {
  .page-head { flex-wrap: wrap; gap: 12px; }
  body.has-bottom-nav #appCopyToast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; max-width: calc(100vw - 28px); text-align: center; }
  .page-head-copy { flex-basis: 100%; }
  .page-head-actions { width: 100%; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
  .stat-tile .value { font-size: 20px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .dashboard-sidepanels { min-width: 0; }
  .quick-service-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .quick-service { padding: 16px 12px; }
  .card-head { gap: 8px; }
  .card-head h3 { font-size: 16px; }
  .funding-highlight { padding: 20px 18px; border-radius: 16px; }
  .va-number { font-size: 24px; }
  .va-cta-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .va-cta-btn { width: 100%; justify-content: center; }
  .ref-code { font-size: 18px; }
  .notification-toolbar { margin-bottom: 6px; }
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .page-head-copy h1 { font-size: 20px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-tile { padding: 14px 12px; }
  .stat-tile .value { font-size: 18px; }
  .quick-service-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-service { padding: 14px 10px; }
  .quick-service .ico { width: 38px; height: 38px; border-radius: 10px; }
  .quick-service h3 { font-size: 13px; }
  .quick-service p { font-size: 11px; }
  .funding-highlight { padding: 16px 14px; }
  .va-number { font-size: 20px; }
  .va-number-line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .va-cta-btn { padding: 12px 14px; font-size: 14px; }
  .ref-code { font-size: 16px; letter-spacing: .05em; }
  .dashboard-recent-table { min-width: 560px; }
  .notification-menu { right: -8px; }
  .notification-page-item { padding: 15px 14px; }
  .notification-page-item .notification-icon { height: 38px; width: 38px; }
  .notification-page-arrow { display: none; }
  .notification-read { gap: 13px; padding: 18px 15px; }
  .notification-read .notification-icon { height: 38px; width: 38px; }
  .notification-read .notification-icon .icon { height: 17px; width: 17px; }
  .notification-read-text { font-size: 14px; line-height: 1.6; }
  .notification-read-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 760px) {
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-header h1 { font-size: 22px; }
  .admin-form .form-row, .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-table { min-width: 760px; }
  .admin-card { padding: 16px; }
  .admin-stat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .admin-stat-card { padding: 16px; }
  .admin-ticket-alert { align-items: flex-start; flex-wrap: wrap; }
  .admin-ticket-alert-link { flex-basis: 100%; margin-left: 0; text-align: center; }
  .container { width: min(100% - 28px, 1180px); }
  .transaction-history-row { align-items: start; grid-template-columns: 34px minmax(0, 1fr); }
  .transaction-history-icon { height: 34px; width: 34px; }
  .transaction-history-main strong,
  .transaction-history-meta {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }
  .transaction-history-amount {
    align-items: center;
    flex-direction: row;
    grid-column: 2;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
  }
  .transaction-details, .transaction-details-placeholder { grid-column: 2 / -1; justify-self: start; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 28px; }
  .auth-card { padding: 26px 20px; }
  .auth-fields-two { grid-template-columns: 1fr; }
  .funding-card { padding: 26px 20px; }
  .funding-heading { flex-direction: column; }
  .funding-balance { width: 100%; }
  .gateway-grid { grid-template-columns: 1fr; }
  .narrow-section { padding: 0 12px; }
}
@media (max-width: 980px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plan-card { min-width: 0; padding: 14px; }
  .plan-card-top { flex-wrap: wrap; gap: 7px; }
  .variant-badge { max-width: 100%; white-space: normal; }
  .plan-card h2 { font-size: 22px; margin-top: 16px; overflow-wrap: anywhere; }
  .plan-card-bottom { align-items: center; flex-wrap: wrap; gap: 10px; }
  .plan-card-bottom .btn { min-height: 44px; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .plan-card { padding: 16px; }
  /* Keep the fixed chat launcher clear of the primary Buy action. */
  .catalog-section .plan-card-bottom { padding-right: 54px; }
}
@media (max-width: 768px) and (min-width: 0px) {
  .admin-table th, .admin-table td { white-space: nowrap; }
  .admin-table-wrap { -webkit-overflow-scrolling: touch; }
}

/* Customer dashboard transactions retain all fields in full-width phone rows. */
@media (max-width: 760px) {
  .dashboard-recent-table { min-width: 0; display: block; }
  .dashboard-recent-table thead { display: none; }
  .dashboard-recent-table tbody,
  .dashboard-recent-table tr,
  .dashboard-recent-table td { display: block; }
  .dashboard-recent-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-recent-table tr:last-child { border-bottom: 0; }
  .dashboard-recent-table td {
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .dashboard-recent-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .dashboard-recent-table td { grid-column: 1 / -1; text-align: left; }
  .dashboard-recent-table td:nth-child(4),
  .dashboard-recent-table td:nth-child(5) {
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: keep-all;
    min-width: max-content;
    justify-self: start;
  }
  .dashboard-recent-table td:nth-child(4)::before,
  .dashboard-recent-table td:nth-child(5)::before { white-space: nowrap; }
  .dashboard-recent-table td[colspan] { grid-column: 1 / -1; }
  .dashboard-recent-table td[colspan]::before { display: none; }
  .dashboard-recent-table .transaction-description { min-width: 0; }
  .dashboard-recent-table .badge {
    display: inline-flex;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  .dashboard-recent-table code { white-space: normal; overflow-wrap: anywhere; }
  .dashboard-recent-wrap.is-scrollable + .dashboard-recent-scroll-hint { display: none; }
}

/* Mobile data tables use readable stacked rows instead of forcing a wide grid. */
.mobile-data-table { min-width: 0; }

@media (max-width: 600px) {
  .row > .grow { min-width: 0; flex-basis: 100%; }
  .referral-link-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .referral-link-actions .btn { width: 100%; justify-content: center; }

  .mobile-data-table table,
  .mobile-data-table tbody,
  .mobile-data-table tr,
  .mobile-data-table td { display: block; width: 100%; }
  .mobile-data-table thead { display: none; }
  .mobile-data-table tbody tr {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-data-table tbody tr:last-child { border-bottom: 0; }
  .mobile-data-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .mobile-data-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .mobile-data-table td[data-label="Subject"] {
    display: block;
    max-width: none !important;
  }
  .mobile-data-table td[data-label="Subject"]::before { display: block; margin-bottom: 3px; }
  .mobile-data-table td[data-label="Action"] { justify-content: flex-start; margin-top: 2px; }
  .mobile-data-table td[colspan] { display: block; text-align: center; }
  .mobile-data-table td[colspan]::before { display: none; }

  .status-row { align-items: flex-start !important; }
  .status-row-meta-wrap {
    flex: 0 1 42% !important;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .status-row-meta { white-space: normal; }

  .plan-summary-row { align-items: flex-start; flex-wrap: wrap; }
  .plan-summary-row strong { flex: 1 1 100%; text-align: left; overflow-wrap: anywhere; }

  .admin-breakdown-table { min-width: 0; display: block; }
  .admin-breakdown-table thead { display: none; }
  .admin-breakdown-table tbody,
  .admin-breakdown-table tr,
  .admin-breakdown-table td { display: block; width: 100%; }
  .admin-breakdown-table tr {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-breakdown-table tr:last-child { border-bottom: 0; }
  .admin-breakdown-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .admin-breakdown-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .admin-breakdown-table td[colspan] { display: block; text-align: center; }
  .admin-breakdown-table td[colspan]::before { display: none; }
}

/* Fresh customer dashboard: branded mobile header, calm wallet balance, and
   a light compact virtual-account card. Keep the account data/actions intact. */
body.has-customer-header > .mobile-top-header {
  align-items: center;
  background: linear-gradient(118deg, #063d43 0%, #05645c 58%, #07816c 100%);
  border: 0;
  box-shadow: 0 10px 26px rgba(3, 71, 66, .16);
  gap: 12px;
  min-height: 78px;
  padding: 12px clamp(16px, 3vw, 28px);
}
body.has-customer-header .mt-head-left { gap: 12px; }
body.has-customer-header .mobile-menu-btn {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  height: 42px;
  width: 42px;
}
body.has-customer-header .mobile-top-brand { gap: 10px; min-width: 0; }
body.has-customer-header .mobile-top-brand-mark {
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  height: 42px;
  width: 42px;
}
body.has-customer-header .mobile-top-brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
body.has-customer-header .mobile-top-brand-name { color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
body.has-customer-header .mobile-top-brand-copy small { color: rgba(235, 255, 250, .78); font-size: 10px; font-weight: 600; letter-spacing: .025em; margin-top: 4px; }
.mobile-top-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 10px; }
body.has-customer-header .mobile-notification-link,
body.has-customer-header .mobile-profile-link {
  align-items: center;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 42px;
}
body.has-customer-header .mobile-notification-link .icon { height: 19px; width: 19px; }
body.has-customer-header .mobile-notification-badge { border-color: #075d56; }
body.has-customer-header .mobile-profile-link { background: rgba(255, 255, 255, .2); border-radius: 50%; font-size: 14px; font-weight: 800; }

@media (min-width: 861px) {
  body.has-customer-header > .mobile-top-header { height: 70px; min-height: 70px; }
  body.has-customer-header .customer-shell { min-height: calc(100vh - 70px); }
  body.has-customer-header .customer-shell > .sidebar { top: 70px; height: calc(100vh - 70px); }
}

.customer-dashboard { max-width: 1180px; margin: 0 auto; }
.customer-dashboard .page-head { align-items: flex-start; margin-bottom: 18px; }
.customer-dashboard .page-head-copy { min-width: 0; }
.customer-dashboard .page-head-copy h1 { color: #10243a; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.customer-dashboard .page-head .crumb { color: #70839b; font-size: 14px; margin: 6px 0 0; }

.customer-dashboard .dashboard-balance-strip {
  align-items: center;
  background: linear-gradient(115deg, #f0fbf7 0%, #fff 72%);
  border: 1px solid #dcefe9;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(12, 88, 70, .045);
  display: grid;
  gap: 14px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  margin-bottom: 16px;
  padding: 17px 20px;
}
.dashboard-balance-icon {
  align-items: center;
  background: #dcf7ee;
  border-radius: 17px;
  color: #058565;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}
.dashboard-balance-icon .icon { height: 25px; width: 25px; }
.customer-dashboard .dashboard-balance-copy { min-width: 0; }
.customer-dashboard .dashboard-balance-copy .balance-strip-label {
  color: #61758c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.customer-dashboard .dashboard-balance-copy .balance-strip-amount {
  color: #10243a;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.15;
  margin: 3px 0 0;
  width: auto;
}
.dashboard-fund-button {
  align-items: center;
  background: linear-gradient(110deg, #08a77a, #008760);
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 135, 96, .16);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 0 17px;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
  white-space: nowrap;
}
.dashboard-fund-button:hover { box-shadow: 0 12px 22px rgba(0, 135, 96, .24); color: #fff; transform: translateY(-1px); }
.dashboard-fund-button .icon { height: 17px; width: 17px; }
.dashboard-fund-button .dashboard-fund-arrow { height: 15px; margin-left: 2px; width: 15px; }

.dashboard-shortcuts { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; }
.dashboard-shortcut {
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(15, 43, 67, .035);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 132px;
  overflow: hidden;
  padding: 15px;
  position: relative;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dashboard-shortcut:hover { border-color: #cce9df; box-shadow: 0 12px 24px rgba(15, 75, 64, .08); color: inherit; transform: translateY(-2px); }
.dashboard-shortcut-icon { align-items: center; border-radius: 15px; display: inline-flex; height: 48px; justify-content: center; margin-bottom: 5px; width: 48px; }
.dashboard-shortcut-icon .icon { height: 23px; width: 23px; }
.dashboard-shortcut-mint { background: #e5f8f1; color: #059669; }
.dashboard-shortcut-amber { background: #fff4d5; color: #d97706; }
.dashboard-shortcut-purple { background: #f0eaff; color: #6741c6; }
.dashboard-shortcut-title { color: #10243a; font-size: 14px; font-weight: 800; line-height: 1.25; padding-right: 17px; }
.dashboard-shortcut-subtitle { color: #71849c; font-size: 11.5px; line-height: 1.35; padding-right: 14px; }
.dashboard-shortcut-arrow { bottom: 15px; color: #8497ad; height: 15px; position: absolute; right: 13px; width: 15px; }

.customer-dashboard .dashboard-va-card {
  background: linear-gradient(115deg, #fff 0%, #f5fcf9 100%);
  border: 1px solid #dcefe9;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(12, 88, 70, .045);
  color: #10243a;
  margin-bottom: 16px;
  padding: 17px 20px 0;
}
.customer-dashboard .dashboard-va-card::after {
  background: radial-gradient(circle, rgba(16, 185, 129, .08), transparent 70%);
  height: 200px;
  right: -90px;
  top: -110px;
  width: 200px;
}
.customer-dashboard .dashboard-va-header { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.dashboard-va-heading { align-items: center; display: flex; gap: 12px; min-width: 0; }
.dashboard-va-icon { align-items: center; background: #e0f7ef; border-radius: 14px; color: #078662; display: inline-flex; flex: 0 0 auto; height: 46px; justify-content: center; width: 46px; }
.dashboard-va-icon .icon { height: 22px; width: 22px; }
.dashboard-va-heading-copy { min-width: 0; }
.dashboard-va-title-row { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }
.dashboard-va-title-row h2 { color: #10243a; font-size: 16px; letter-spacing: -.01em; margin: 0; }
.customer-dashboard .dashboard-va-status { align-items: center; background: #e1f8ee; border-radius: 999px; color: #07835f; display: inline-flex; font-size: 10px; font-weight: 800; gap: 5px; letter-spacing: 0; padding: 4px 9px; text-transform: none; }
.dashboard-va-status-dot { background: #10b981; border-radius: 50%; height: 6px; width: 6px; }
.dashboard-va-subtitle { color: #778aa0; display: block; font-size: 11px; margin-top: 3px; }
.dashboard-va-fund-link { align-items: center; color: #58728f; display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 700; gap: 5px; text-decoration: none; }
.dashboard-va-fund-link:hover { color: #07835f; }
.dashboard-va-fund-link .icon { height: 14px; transform: rotate(-45deg); width: 14px; }
.customer-dashboard .dashboard-va-details { margin-top: 13px; }
.dashboard-va-number-row { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.customer-dashboard .dashboard-va-number { color: #10243a; display: inline-block; font-size: clamp(23px, 3vw, 30px); letter-spacing: .015em; line-height: 1.2; white-space: nowrap; }
.customer-dashboard .dashboard-va-copy-btn { align-items: center; background: #f1f8f6; border: 1px solid #dcefe9; border-radius: 10px; color: #607990; display: inline-flex; font-size: 11px; font-weight: 700; gap: 6px; min-height: 34px; min-width: 0; padding: 0 10px; }
.customer-dashboard .dashboard-va-copy-btn:hover { background: #e4f7f0; color: #047857; }
.customer-dashboard .dashboard-va-copy-btn .icon { height: 15px; width: 15px; }
.customer-dashboard .dashboard-va-meta { align-items: baseline; color: #71849b; display: flex; flex-wrap: wrap; font-size: 12px; gap: 6px; line-height: 1.4; margin-top: 4px; }
.customer-dashboard .dashboard-va-bank { color: #71849b; }
.customer-dashboard .dashboard-va-name { color: #4d647c; font-weight: 600; }
.customer-dashboard .dashboard-va-separator { color: #a8b7c6; }
.dashboard-va-hint { align-items: center; border-top: 1px solid #eaf2ef; color: #73869b; display: flex; font-size: 11.5px; gap: 9px; line-height: 1.4; margin-top: 12px; min-height: 42px; padding: 8px 0; }
.dashboard-va-hint .icon { color: #0a9b70; flex: 0 0 auto; height: 17px; width: 17px; }
.customer-dashboard .dashboard-verify-card { box-shadow: 0 8px 22px rgba(15, 43, 67, .04); }
.customer-dashboard .stat-row { gap: 12px; margin: 0 0 16px; }
.customer-dashboard .stat-tile { border-color: #e8eef3; border-radius: 18px; box-shadow: 0 7px 20px rgba(15, 43, 67, .035); padding: 17px 18px; }
.customer-dashboard .stat-tile .value { color: #10243a; }
.customer-dashboard .dashboard-columns { gap: 14px; margin-bottom: 16px; }
.customer-dashboard #dashboard-services { border-radius: 20px; }

@media (max-width: 860px) {
  .customer-dashboard { background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%); border-radius: 24px 24px 0 0; margin: 0 -14px; padding: 20px 15px 24px; position: relative; }
  .customer-dashboard .page-head { margin-bottom: 16px; }
  .customer-dashboard .page-head-copy h1 { font-size: clamp(23px, 6vw, 30px); }
  .dashboard-shortcuts { gap: 10px; }
  .dashboard-shortcut { min-height: 126px; padding: 13px; }
  .customer-dashboard .dashboard-va-card { padding: 15px 16px 0; }
}
@media (max-width: 560px) {
  .dashboard-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-shortcut { min-height: 124px; }
  .customer-dashboard .dashboard-balance-strip { gap: 11px; padding: 14px; }
  .customer-dashboard .dashboard-balance-copy .balance-strip-amount { font-size: clamp(23px, 7vw, 29px); }
  .customer-dashboard .dashboard-va-fund-link { font-size: 0; gap: 0; }
  .customer-dashboard .dashboard-va-fund-link .icon { height: 17px; width: 17px; }
  .customer-dashboard .dashboard-va-heading { gap: 9px; }
  .dashboard-va-icon { height: 42px; width: 42px; }
  .dashboard-va-title-row h2 { font-size: 14px; }
  .dashboard-va-subtitle { font-size: 10px; }
  .customer-dashboard .dashboard-va-number { font-size: clamp(21px, 6vw, 26px); }
  .customer-dashboard .stat-tile { padding: 14px 12px; }
}
@media (max-width: 390px) {
  .customer-dashboard .dashboard-balance-strip { grid-template-columns: 46px minmax(0, 1fr); }
  .dashboard-balance-icon { height: 46px; width: 46px; }
  .dashboard-fund-button { grid-column: 1 / -1; min-height: 44px; }
  .customer-dashboard .dashboard-va-card { padding-left: 13px; padding-right: 13px; }
  .customer-dashboard .dashboard-va-number-row { gap: 7px; }
  .customer-dashboard .dashboard-va-copy-btn { min-height: 31px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-fund-button, .dashboard-shortcut { transition: none; }
}

/* Make wallet funding feel like the customer dashboard and keep account
   details easy to use without the oversized dark virtual-account panel. */
.customer-shell .funding-page {
  gap: 16px;
  max-width: 860px;
  padding-bottom: 28px;
}
.customer-shell .funding-page .page-head { margin-bottom: 0; }
.customer-shell .funding-page .page-head-copy h1 {
  color: #10243a;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.035em;
}
.customer-shell .funding-page .page-head-copy .lead {
  color: #70839b;
  margin-top: 6px;
}
.customer-shell .funding-va-card {
  align-items: center;
  background: linear-gradient(115deg, #fff 0%, #f5fcf9 100%);
  border: 1px solid #dcefe9;
  border-radius: 19px;
  box-shadow: 0 8px 22px rgba(12, 88, 70, .045);
  display: grid;
  gap: 16px 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 17px 20px;
}
.funding-va-heading { align-items: center; display: flex; gap: 12px; min-width: 0; }
.funding-va-icon {
  align-items: center;
  background: #e0f7ef;
  border-radius: 14px;
  color: #078662;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.funding-va-icon .icon { height: 21px; width: 21px; }
.funding-va-heading-copy { min-width: 0; }
.funding-va-heading-copy h2 { color: #10243a; font-size: 15px; letter-spacing: -.01em; margin: 0; }
.funding-va-details { min-width: 0; text-align: right; }
.customer-shell .funding-va-bank { color: #71849b; font-size: 11px; margin: 0; }
.customer-shell .funding-va-bank strong { color: #078662; }
.customer-shell .funding-va-number-line { justify-content: flex-end; gap: 9px; margin: 0; }
.customer-shell .funding-va-number { color: #10243a; font-size: clamp(22px, 2.5vw, 27px); letter-spacing: .04em; }
.customer-shell .funding-va-copy-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #dcefe9;
  border-radius: 10px;
  color: #07835f;
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
}
.customer-shell .funding-va-copy-btn:hover { background: #eaf8f2; color: #047857; }
.customer-shell .funding-va-copy-btn .icon { height: 14px; width: 14px; }
.funding-va-meta { align-items: baseline; color: #71849b; display: flex; flex-wrap: wrap; font-size: 11px; gap: 6px; justify-content: flex-end; line-height: 1.35; margin-top: 3px; }
.funding-va-meta-separator { color: #afbdc8; }
.customer-shell .funding-va-account-name { color: #4d647c; font-size: 11px; margin: 0; }
.customer-shell .funding-va-account-name strong { color: #4d647c; }
.customer-shell .funding-page .funding-card {
  border-color: #e5eee9;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 43, 67, .045) !important;
  max-width: none;
  padding: 26px;
}
.customer-shell .funding-page .funding-heading { align-items: center; }
.customer-shell .funding-page .funding-heading h2 { color: #10243a; }
.customer-shell .funding-page .funding-heading p { color: #71849b; }
.customer-shell .funding-page .funding-balance {
  background: #effaf6;
  border: 1px solid #dcefe9;
  color: #10243a;
}
.customer-shell .funding-page .funding-balance span { color: #07835f; }
.customer-shell .funding-page .funding-balance strong { font-variant-numeric: tabular-nums; }
.customer-shell .funding-page > .auth-card {
  border-color: #e5eee9;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 43, 67, .04);
}
.customer-shell .funding-page .gateway-option { background: #fff; }
.customer-shell .funding-page .gateway-option:has(input:checked) { background: #effaf6; border-color: #10a779; }

@media (max-width: 680px) {
  .customer-shell .funding-va-card { align-items: center; gap: 10px; grid-template-columns: minmax(0, 1fr); padding: 13px 14px; }
  .funding-va-heading { gap: 9px; }
  .funding-va-icon { height: 38px; width: 38px; }
  .funding-va-icon .icon { height: 18px; width: 18px; }
  .funding-va-heading-copy h2 { font-size: 14px; }
  .funding-va-details { text-align: left; }
  .customer-shell .funding-va-number-line { justify-content: flex-start; }
  .funding-va-meta { justify-content: flex-start; margin-top: 1px; }
  .customer-shell .funding-page .funding-card { padding: 20px 16px; }
}
@media (max-width: 420px) {
  .customer-shell .funding-va-number { font-size: 20px; }
  .customer-shell .funding-va-copy-btn { min-height: 31px; padding: 0 8px; }
}

/* Complete customer workspace redesign. Scope everything to the customer
   shell so admin pages and public marketing pages keep their own systems. */
body.has-customer-header { background: #f3f7f8; color: #14283b; }
.customer-shell {
  background:
    radial-gradient(ellipse at 92% 0%, rgba(16, 185, 129, .055), transparent 36%),
    #f4f8fa;
  min-height: calc(100vh - 70px);
}
.customer-shell .main {
  min-width: 0;
  padding: 25px clamp(16px, 2.8vw, 38px) 42px;
}
.customer-shell .content-wrap { margin: 0 auto; max-width: 1380px; min-width: 0; width: 100%; }
.customer-shell .section { max-width: none; padding: 0; }
.customer-shell .history-section { max-width: 1200px; padding: 0; }
.customer-shell .narrow-section { max-width: 900px; padding: 0; }

.customer-shell .page-head {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}
.customer-shell .page-head-copy { min-width: 0; }
.customer-shell .page-head-copy .section-eyebrow { margin-bottom: 8px; }
.customer-shell .page-head-copy h1 {
  color: #13283c;
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.14;
  margin: 0;
}
.customer-shell .page-head-copy .crumb,
.customer-shell .page-head-copy .lead {
  color: #71839a;
  font-size: 14px;
  line-height: 1.55;
  margin: 7px 0 0;
  max-width: 720px;
}
.customer-shell .page-head-actions { flex: 0 0 auto; gap: 9px; }
.customer-shell .page-head-actions .btn { min-height: 42px; }

.customer-shell .card,
.customer-shell .auth-card,
.customer-shell .funding-card {
  background: #fff;
  border: 1px solid #e4edf1;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(20, 51, 70, .045);
}
.customer-shell .card { padding: 22px; }
.customer-shell .auth-card { padding: 26px; }
.customer-shell .card h3,
.customer-shell .card h2 { color: #172c40; letter-spacing: -.025em; }
.customer-shell .card-head { align-items: center; margin-bottom: 17px; }
.customer-shell .card-head h3 { font-size: 17px; }
.customer-shell .card-head-muted { color: #7a8da2; }
.customer-shell .dashboard-columns { align-items: start; gap: 16px; margin-bottom: 18px; }
.customer-shell .dashboard-sidepanels { min-width: 0; }
.customer-shell .dashboard-sidepanels .card { margin-bottom: 14px; }
.customer-shell .dashboard-sidepanels .card:last-child { margin-bottom: 0; }
.customer-shell .service-panel { min-width: 0; }

.customer-shell .btn {
  border-radius: 12px;
  font-weight: 750;
  min-height: 42px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.customer-shell .btn-primary { box-shadow: 0 6px 15px rgba(5, 150, 105, .17); }
.customer-shell .btn-primary:hover { box-shadow: 0 9px 20px rgba(5, 150, 105, .22); transform: translateY(-1px); }
.customer-shell .btn-ghost { border-color: #e2ebef; box-shadow: none; }
.customer-shell .btn-ghost:hover { border-color: #c7d8dd; box-shadow: 0 5px 14px rgba(20, 51, 70, .06); }

.customer-shell .field { margin-bottom: 16px; }
.customer-shell .field label,
.customer-shell form > label { color: #30465c; font-size: 13px; font-weight: 750; margin-bottom: 7px; }
.customer-shell .field input:not([type="checkbox"]):not([type="radio"]),
.customer-shell .field select,
.customer-shell .field textarea,
.customer-shell .funding-form input[type="number"],
.customer-shell .auth-card input:not([type="checkbox"]):not([type="radio"]),
.customer-shell .auth-card select,
.customer-shell .auth-card textarea {
  background: #fbfdfd;
  border: 1px solid #dce7eb;
  border-radius: 12px;
  color: #183146;
  min-height: 46px;
  padding: 11px 13px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.customer-shell .field textarea,
.customer-shell .auth-card textarea { min-height: 120px; }
.customer-shell .field input:focus,
.customer-shell .field select:focus,
.customer-shell .field textarea:focus,
.customer-shell .auth-card input:focus,
.customer-shell .auth-card select:focus,
.customer-shell .auth-card textarea:focus {
  background: #fff;
  border-color: #0aa77b !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12) !important;
  outline: 0;
}
.customer-shell .field input:disabled,
.customer-shell .auth-card input:disabled { background: #f2f6f7; color: #71839a; }
.customer-shell .hint { color: #75899e; font-size: 12px; line-height: 1.55; }

.customer-shell .wallet-banner-bar {
  align-items: center;
  background: linear-gradient(110deg, #fff 0%, #f5fcf9 100%);
  border: 1px solid #dcefe9;
  border-radius: 18px;
  box-shadow: 0 7px 19px rgba(12, 88, 70, .04);
  margin-bottom: 17px;
  padding: 15px 18px;
}
.customer-shell .wallet-banner-bar .bal-info { gap: 12px; }
.customer-shell .wallet-banner-bar .bal-info > .icon { background: #e0f7ef; border-radius: 12px; height: 42px !important; padding: 9px; width: 42px !important; }
.customer-shell .wallet-banner-bar .bal-label { color: #74879c !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: .055em; }
.customer-shell .wallet-banner-bar .bal-val { color: #10243a; font-size: 21px; font-variant-numeric: tabular-nums; }

.customer-shell .network-selector { gap: 10px; }
.customer-shell .network-selector .net-btn { border-radius: 14px; min-height: 48px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.customer-shell .network-selector .net-btn:hover { transform: translateY(-1px); }
.customer-shell .network-selector .net-btn.active { box-shadow: 0 7px 16px rgba(15, 42, 62, .15); }
.customer-shell .plan-card,
.customer-shell .feature-card {
  border-color: #e4edf1;
  border-radius: 17px;
  box-shadow: 0 5px 17px rgba(20, 51, 70, .035);
}
.customer-shell .plan-card:hover,
.customer-shell .feature-card:hover { border-color: #cae7dc; box-shadow: 0 12px 24px rgba(20, 73, 64, .075); }
.customer-shell .gateway-option { border-color: #e1eaee; border-radius: 15px; min-height: 68px; }
.customer-shell .gateway-option:has(input:checked) { background: #effaf6; border-color: #76cfb0; box-shadow: 0 0 0 3px rgba(16, 185, 129, .08); }
.customer-shell .amount-chips .chip,
.customer-shell .filter-pill { border-radius: 999px; }

.customer-shell .table-wrap {
  background: #fff;
  border: 1px solid #e5edf1;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(20, 51, 70, .025);
}
.customer-shell .table th { background: #f6faf9; border-bottom-color: #e5edf1; color: #72859a; }
.customer-shell .table td { border-bottom-color: #edf2f4; color: #40566b; }
.customer-shell .table tbody tr:hover { background: #f6fbf9; }
.customer-shell .transaction-row { border-color: #e5edf1; border-radius: 15px; box-shadow: 0 4px 14px rgba(20, 51, 70, .025); }
.customer-shell .transaction-history-icon { background: #e5f8f1; border-radius: 12px; color: #078662; }
.customer-shell .transaction-history-meta { color: #8192a4; }
.customer-shell .transaction-history-amount > strong { color: #1c3449; font-variant-numeric: tabular-nums; }
.customer-shell .transaction-date-heading { color: #71859a; letter-spacing: .075em; }
.customer-shell .catalog-filters { gap: 8px; margin-bottom: 16px; }
.customer-shell .catalog-filters .filter-pill {
  background: #fff;
  border: 1px solid #e0e9ed;
  border-radius: 999px;
  color: #63788c;
  font-weight: 700;
  padding: 8px 14px;
}
.customer-shell .catalog-filters .filter-pill.is-active { background: #078b68; border-color: #078b68; color: #fff; }
.customer-shell .empty-state { background: #fff; border: 1px dashed #cbdde2; border-radius: 18px; color: #71859a; padding: 38px 20px; }
.customer-shell .catalog-pagination { margin-top: 18px; }

.customer-shell .mini-steps { gap: 15px; }
.customer-shell .mini-step-num { background: #e4f7ef; border: 1px solid #c9eddd; color: #078662; }
.customer-shell .mini-step-sub { color: #778a9e; }
.customer-shell .profile-identity-compact {
  background: #fff;
  border: 1px solid #e5edf1;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(20, 51, 70, .035);
  margin-bottom: 18px !important;
  padding: 12px 15px !important;
}
.customer-shell .profile-section-icon {
  align-items: center;
  display: flex;
  flex: 0 0 40px;
  justify-content: center;
}
.customer-shell .support-columns { gap: 16px; }
.customer-shell .support-columns .card { height: 100%; }
.customer-shell .profile-api-grid > div { min-width: 0; }
.customer-shell .alert { border-radius: 14px; line-height: 1.5; }
.customer-shell .form-error { border-radius: 10px; }
.customer-shell .badge { font-size: 11px; font-weight: 800; }

.customer-shell > .sidebar {
  background: linear-gradient(180deg, #101b2d 0%, #111f32 58%, #142338 100%);
  border-right: 1px solid rgba(255, 255, 255, .055);
  box-shadow: 8px 0 28px rgba(16, 35, 55, .055);
  padding: 18px 14px;
}
.customer-shell .sidebar-top-row { margin-bottom: 14px; }
.customer-shell .sidebar-collapse-btn {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  color: #d6e4ec;
}
.customer-shell .sidebar-nav a,
.customer-shell .sidebar .nav-link-btn {
  border-radius: 12px;
  color: #a7b6c6;
  font-size: 13px;
  font-weight: 650;
  min-height: 42px;
  padding: 9px 12px;
}
.customer-shell .sidebar-nav a .icon,
.customer-shell .sidebar .nav-link-btn .icon { color: #95a9ba; height: 18px; width: 18px; }
.customer-shell .sidebar-nav a:hover,
.customer-shell .sidebar .nav-link-btn:hover { background: rgba(255, 255, 255, .075); color: #fff; transform: translateX(2px); }
.customer-shell .sidebar-nav a.active {
  background: linear-gradient(100deg, rgba(16, 185, 129, .22), rgba(16, 185, 129, .09));
  box-shadow: inset 3px 0 0 #16c28a;
  color: #f3fffa;
}
.customer-shell .sidebar-nav a.active .icon { color: #46d9aa; }
.customer-shell .sidebar .sep { background: rgba(255, 255, 255, .09); margin: 8px 12px !important; }
.customer-shell .sidebar-logout { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: auto; padding-top: 10px; }

.customer-shell .mobile-bottom-nav {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e3ecef;
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  box-shadow: 0 -8px 24px rgba(23, 49, 66, .09);
}
.customer-shell .mobile-bottom-nav a { border-radius: 12px; color: #75889b; font-size: 10px; min-width: 58px; padding: 7px 9px; }
.customer-shell .mobile-bottom-nav a.active { background: #e9f8f2; color: #087f60; }
.customer-shell .mobile-bottom-nav a.active svg { color: #087f60; }

@media (max-width: 980px) {
  .customer-shell .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .customer-shell .dashboard-sidepanels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .customer-shell .dashboard-sidepanels .card { margin-bottom: 0; }
  .customer-shell .support-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .customer-shell .main { padding: 18px 14px calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
  .customer-shell .content-wrap { max-width: 760px; }
  .customer-shell .page-head { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 18px; }
  .customer-shell .page-head-copy { flex-basis: auto; width: 100%; }
  .customer-shell .page-head-copy h1 { font-size: clamp(24px, 5.8vw, 31px); }
  .customer-shell .page-head-actions { width: 100%; }
  .customer-shell .page-head-actions .btn { flex: 1 1 auto; }
  .customer-shell .dashboard-columns { display: grid; gap: 13px; }
  .customer-shell .dashboard-sidepanels { display: grid; grid-template-columns: minmax(0, 1fr); }
  .customer-shell .service-panel { margin-bottom: 0; }
  .customer-shell .card { padding: 18px; }
  .customer-shell .auth-card { padding: 20px 17px; }
  .customer-shell .profile-identity-compact { padding: 11px 13px !important; }
  .customer-shell .table-wrap { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .customer-shell .main { padding-left: 12px !important; padding-right: 12px !important; }
  .customer-shell .card { border-radius: 17px; padding: 16px; }
  .customer-shell .card-head { align-items: flex-start; }
  .customer-shell .card-head h3 { font-size: 16px; }
  .customer-shell .page-head-copy .crumb,
  .customer-shell .page-head-copy .lead { font-size: 13px; }
  .customer-shell .wallet-banner-bar { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .customer-shell .wallet-banner-bar > .btn { width: 100%; }
  .customer-shell .gateway-grid { grid-template-columns: minmax(0, 1fr); }
  .customer-shell .transaction-history-row { border-radius: 13px; }
  .customer-shell .mobile-bottom-nav { height: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .customer-shell .btn,
  .customer-shell .sidebar-nav a,
  .customer-shell .plan-card,
  .customer-shell .feature-card { transition: none; }
}

/* Make the data-order flow fit the phone viewport without making choices
   smaller than a comfortable tap target. */
@media (max-width: 860px) {
  .customer-shell .data-purchase-page .page-head-actions { width: auto; }
  .customer-shell .data-purchase-page .page-head-actions .btn { flex: 0 0 auto; min-height: 40px; }
  .customer-shell .data-purchase-page .wallet-banner-bar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 12px 14px;
  }
  .customer-shell .data-purchase-page .wallet-banner-bar .bal-info { flex: 1 1 auto; gap: 9px; min-width: 0; }
  .customer-shell .data-purchase-page .wallet-banner-bar .bal-info > .icon { height: 36px !important; padding: 7px; width: 36px !important; }
  .customer-shell .data-purchase-page .wallet-banner-bar .bal-val { font-size: 19px; }
  .customer-shell .data-purchase-page .wallet-banner-bar > .btn {
    flex: 0 0 auto;
    font-size: 13px;
    min-height: 40px;
    padding-inline: 12px;
    white-space: nowrap;
    width: auto;
  }
  .customer-shell .data-purchase-page .network-selector {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    margin-bottom: 0;
    overflow: visible;
    padding: 0;
  }
  .customer-shell .data-purchase-page .network-selector .net-btn {
    justify-content: center;
    min-height: 48px;
    min-width: 0;
    padding: 9px 8px;
    width: 100%;
  }
  .customer-shell .data-purchase-page .service-panel > .card:first-child { margin-bottom: 13px !important; }
  .customer-shell .data-purchase-page .card-head { margin-bottom: 13px; }
}
@media (max-width: 360px) {
  .customer-shell .data-purchase-page .network-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-shell .data-purchase-page .network-selector .net-btn { gap: 5px; padding-inline: 5px; }
  .customer-shell .data-purchase-page .network-selector .net-btn span { font-size: 11px; }
  .customer-shell .data-purchase-page .wallet-banner-bar { gap: 7px; padding-inline: 10px; }
  .customer-shell .data-purchase-page .wallet-banner-bar .bal-info > .icon { display: none; }
  .customer-shell .data-purchase-page .wallet-banner-bar .bal-val { font-size: 17px; }
  .customer-shell .data-purchase-page .wallet-banner-bar > .btn { padding-inline: 9px; }
}

/* Shared phone layout for every customer purchase flow (airtime, data, TV,
   electricity and exam PINs). Keep the fixed chat and bottom bar clear of the
   final form controls, and use compact but thumb-friendly service choices. */
@media (max-width: 860px) {
  .customer-shell .service-purchase-page .wallet-banner-bar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 12px 14px;
  }
  .customer-shell .service-purchase-page .wallet-banner-bar .bal-info {
    flex: 1 1 auto;
    gap: 9px;
    min-width: 0;
  }
  .customer-shell .service-purchase-page .wallet-banner-bar .bal-info > .icon {
    height: 36px !important;
    padding: 7px;
    width: 36px !important;
  }
  .customer-shell .service-purchase-page .wallet-banner-bar .bal-val {
    font-size: 19px;
    white-space: nowrap;
  }
  .customer-shell .service-purchase-page .wallet-banner-bar > .btn {
    flex: 0 0 auto;
    font-size: 13px;
    min-height: 40px;
    padding-inline: 12px;
    white-space: nowrap;
    width: auto;
  }
  .customer-shell .service-purchase-page .network-selector {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
    overflow: visible;
    padding: 0;
  }
  .customer-shell .service-purchase-page .network-selector .net-btn {
    gap: 7px;
    justify-content: center;
    min-height: 48px;
    min-width: 0;
    padding: 8px;
    width: 100%;
  }
  .customer-shell .service-purchase-page .network-selector .net-btn img { flex: 0 0 26px; }
  .customer-shell .service-purchase-page .network-selector .net-btn span {
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .customer-shell .service-purchase-page .service-panel > .card:first-child { margin-bottom: 13px !important; }
  .customer-shell .service-purchase-page .card-head { margin-bottom: 13px; }
  .customer-shell .service-purchase-page .cable-services-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .customer-shell .service-purchase-page .cable-services-grid .plan-card { min-width: 0; padding: 14px; }
}
@media (max-width: 420px) {
  .customer-shell .service-purchase-page .wallet-banner-bar { gap: 8px; padding-inline: 11px; }
  .customer-shell .service-purchase-page .wallet-banner-bar .bal-info { gap: 7px; }
  .customer-shell .service-purchase-page .wallet-banner-bar .bal-info > .icon { height: 32px !important; padding: 6px; width: 32px !important; }
  .customer-shell .service-purchase-page .wallet-banner-bar .bal-label { font-size: 9px !important; }
  .customer-shell .service-purchase-page .wallet-banner-bar .bal-val { font-size: 17px; }
  .customer-shell .service-purchase-page .wallet-banner-bar > .btn { font-size: 12px; padding-inline: 9px; }
  .customer-shell .service-purchase-page .network-selector .net-btn { gap: 5px; padding-inline: 5px; }
  .customer-shell .service-purchase-page .network-selector .net-btn span { font-size: 11px; }
  .customer-shell .service-purchase-page .cable-services-grid .plan-card { padding: 11px; }
}
@media (max-width: 340px) {
  .customer-shell .service-purchase-page .wallet-banner-bar .bal-info > .icon { display: none; }
  .customer-shell .service-purchase-page .wallet-banner-bar { gap: 6px; padding-inline: 9px; }
  .customer-shell .service-purchase-page .wallet-banner-bar > .btn { padding-inline: 7px; }
}

/* Keep logout reachable on phones even when the drawer has more links than fit
   on screen: the navigation scrolls, while its header and logout stay put. */
@media (max-width: 860px) {
  .sidebar {
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .sidebar-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .sidebar-nav > a,
  .sidebar-nav > .sep { flex: 0 0 auto; }
  .sidebar-logout {
    flex: 0 0 auto;
    margin-top: 8px;
  }
  .customer-shell > .sidebar {
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }
  .customer-shell .sidebar-logout { margin-top: 8px; }
}

/* Compact customer dashboard cards without reducing tap targets. */
.customer-dashboard .page-head { margin-bottom: 14px; }
.customer-dashboard > .card { padding: 18px; }
.customer-dashboard .card-head { margin-bottom: 13px; }
.customer-dashboard .dashboard-balance-strip { gap: 12px; margin-bottom: 12px; padding: 14px 16px; }
.dashboard-balance-icon { height: 48px; width: 48px; }
.dashboard-balance-icon .icon { height: 22px; width: 22px; }
.dashboard-fund-button { min-height: 44px; padding-inline: 14px; }
.dashboard-shortcuts { gap: 10px; margin-bottom: 12px; }
.dashboard-shortcut { min-height: 112px; padding: 12px; }
.dashboard-shortcut-icon { height: 42px; width: 42px; }
.dashboard-shortcut-icon .icon { height: 21px; width: 21px; }
.dashboard-shortcut-title { font-size: 13px; }
.dashboard-shortcut-arrow { bottom: 12px; right: 11px; }
.customer-dashboard .dashboard-va-card { margin-bottom: 12px; padding: 14px 16px 0; }
.customer-dashboard .dashboard-va-details { margin-top: 10px; }
.customer-dashboard .dashboard-va-number { font-size: clamp(22px, 2.6vw, 28px); }
.dashboard-va-hint { margin-top: 9px; min-height: 36px; padding-block: 6px; }
.customer-dashboard .stat-row { gap: 10px; margin-bottom: 12px; }
.customer-dashboard .stat-tile { border-radius: 16px; padding: 14px 16px; }
.customer-dashboard .dashboard-columns { gap: 12px; margin-bottom: 12px; }
.customer-dashboard .quick-service-grid { gap: 10px; }
.customer-dashboard .quick-service { gap: 6px; padding: 14px 12px; }
.customer-dashboard .quick-service .ico { height: 40px; width: 40px; }
.customer-dashboard .quick-service h3 { font-size: 14px; }
.customer-dashboard .quick-service p { font-size: 11.5px; }

@media (max-width: 860px) {
  .customer-dashboard { padding-bottom: 20px; padding-top: 16px; }
  .customer-dashboard > .card { padding: 16px; }
  .customer-dashboard .dashboard-shortcut { min-height: 108px; }
}
@media (max-width: 560px) {
  .customer-dashboard .dashboard-balance-strip { gap: 10px; padding: 12px; }
  .customer-dashboard .dashboard-shortcuts { gap: 8px; margin-bottom: 12px; }
  .customer-dashboard .dashboard-shortcut { min-height: 102px; padding: 10px; }
  .customer-dashboard .dashboard-shortcut-icon { height: 38px; margin-bottom: 3px; width: 38px; }
  .customer-dashboard .dashboard-shortcut-title { font-size: 12.5px; }
  .customer-dashboard .dashboard-va-card { padding: 12px 14px 0; }
  .customer-dashboard .dashboard-va-details { margin-top: 8px; }
  .dashboard-va-hint { margin-top: 7px; min-height: 33px; }
  .customer-dashboard .stat-tile { padding: 12px; }
  .customer-dashboard .dashboard-columns { gap: 10px; margin-bottom: 10px; }
  .customer-dashboard .quick-service-grid { gap: 8px; }
  .customer-dashboard .quick-service { min-height: 100px; padding: 11px 9px; }
  .customer-dashboard .quick-service .ico { height: 36px; width: 36px; }
  .customer-dashboard .quick-service h3 { font-size: 13px; }
  .customer-dashboard .quick-service p { font-size: 10.5px; }
}
@media (max-width: 760px) {
  .customer-dashboard .dashboard-recent-table tr { gap: 6px 10px; padding: 11px 0; }
  .customer-dashboard .dashboard-recent-table td::before { margin-bottom: 2px; }
}
