/* Self-hosted fonts (CSP blocks external font CDNs). Montserrat for body text,
   Poppins for headings - a free geometric face in the spirit of Axiforma. */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("/fonts/poppins-800.woff2") format("woff2"); }

:root {
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;

  /* Brand palette, matched to the logo (mint green circle + black glyph) */
  --brand: #22b455;
  --brand-dark: #178a41;
  --brand-mint: #8ce894;
  --brand-light: #dcfce7;
  --brand-soft: rgba(34, 180, 85, 0.12);
  --brand-border: rgba(34, 180, 85, 0.25);
  --ink: #111111;

  --danger: #ef4444;
  --danger-dark: #dc2626;
  --danger-light: rgba(239, 68, 68, 0.1);

  --warning: #eab308;
  --warning-dark: #ca8a04;
  --warning-light: rgba(234, 179, 8, 0.1);

  --info: #3b82f6;
  --info-light: rgba(59, 130, 246, 0.1);

  --bg-page: #f4fbf6;
  --bg-card: #ffffff;
  --bg-surface: #eef8f0;
  --border: #dfeee2;
  --text-primary: #0f1a12;
  --text-secondary: #45564a;
  --text-muted: #667a6c;
  --text-placeholder: #97ab9c;
  --shadow-card: 0 1px 3px rgba(15, 26, 18, 0.06), 0 1px 2px rgba(15, 26, 18, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 26, 18, 0.1), 0 4px 6px -2px rgba(15, 26, 18, 0.05);
  --radius: 18px;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 18px;
  --app-bottomnav-h: 64px;
}

* { box-sizing: border-box; }

html { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  background-image:
    radial-gradient(circle at 8% 8%, rgba(140, 232, 148, 0.35), transparent 42%),
    radial-gradient(circle at 92% 15%, rgba(140, 232, 148, 0.25), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(140, 232, 148, 0.18), transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, .brand, .hx-hero h1, .hx-section-head h2, .hx-step h3, .hx-feature h3 {
  font-family: var(--font-display);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 0 16px; }

/* Glass panel utility */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.brand .logo, .logo-mark {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.logo {
  background: var(--brand-soft); border: 1px solid var(--brand-border); color: var(--brand-dark); font-weight: 800;
}
.header-actions { display: flex; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: transform .05s ease, background .15s ease, box-shadow .15s ease; text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(34, 180, 85, 0.3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-outline-white { background: #fff; color: var(--brand-dark); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 16px; }

/* Forms */
.field { margin-bottom: 16px; }
.label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  /* 16px is the floor: below it iOS Safari zooms the whole page in when a
     field is tapped, which throws the layout off for the rest of the visit. */
  font-size: 16px; background: rgba(255,255,255,0.8); color: var(--text-primary); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder { color: var(--text-placeholder); }
.help-text { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--danger-light); color: var(--danger-dark); border: 1px solid rgba(239,68,68,0.25); }
.alert-success { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-border); }
.alert-info { background: var(--info-light); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.25); }

/* Toast notifications */
.toast-container { position: fixed; top: 16px; right: 16px; left: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
@media (min-width: 640px) { .toast-container { left: auto; max-width: 360px; } }
.toast {
  pointer-events: auto; width: 100%; max-width: 360px; padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  animation: toast-in .25s ease-out both;
}
.toast.leaving { animation: toast-out .2s ease-in both; }
.toast-success { border-left: 4px solid var(--brand); color: var(--brand-dark); }
.toast-error { border-left: 4px solid var(--danger); color: var(--danger-dark); }
.toast-info { border-left: 4px solid var(--info); color: #1d4ed8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge-success { background: var(--brand-light); color: var(--brand-dark); }
.badge-warning { background: var(--warning-light); color: var(--warning-dark); }
.badge-danger { background: var(--danger-light); color: var(--danger-dark); }

/* Layout helpers */
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Hero */
.hero { text-align: center; padding: 64px 16px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-border);
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.hero h1 { font-size: 40px; max-width: 720px; margin: 0 auto 16px; line-height: 1.2; overflow-wrap: break-word; }
.hero h1 span { color: var(--brand); }
.hero p { max-width: 520px; margin: 0 auto 28px; color: var(--text-muted); font-size: 17px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 16px 48px; max-width: 1080px; margin: 0 auto; }
@media (max-width: 800px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand-dark); font-size: 20px; margin-bottom: 12px; flex-shrink: 0; }
.feature-icon.icon-in { background: var(--brand-soft); color: var(--brand-dark); }
.feature-icon.icon-out { background: var(--info-light); color: #1d4ed8; }

/* Line icons (inline SVG) */
.icon { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.text-brand { color: var(--brand-dark); }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; }

/* Segmented control (filter tabs) */
.seg { display: inline-flex; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 2px; }
.seg-btn { padding: 7px 16px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-muted); text-decoration: none; transition: background .15s, color .15s; }
.seg-btn.active { background: var(--bg-card); color: var(--brand-dark); box-shadow: var(--shadow-card); }

/* Pager */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Stat cards */
.stat-card .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; margin: 6px 0 0; display: flex; align-items: center; gap: 6px; word-break: break-word; }
.action-tile { text-decoration: none; color: inherit; transition: transform .06s ease, box-shadow .15s ease; }
.action-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.report-metric { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-surface); }
.report-value { font-size: 22px; font-weight: 800; margin: 4px 0; word-break: break-word; }
.text-danger { color: var(--danger-dark); }

/* Consistent action buttons inside table cells / detail cards */
.table-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.table-actions form { margin: 0; display: inline-flex; }
.table-actions .btn { box-shadow: none; white-space: nowrap; }
td .table-actions { justify-content: flex-start; }
/* Keep each action cell on one line; the table scrolls horizontally if needed. */
table.data-table td:last-child { white-space: nowrap; }

/* Detail rows (deposit/withdrawal verification) */
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-key { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.detail-val { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.receipt-img { max-width: 100%; max-height: 460px; border-radius: 12px; border: 1px solid var(--border); display: block; }

/* Bulk-select action bar */
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-border); }
.bulk-bar .bulk-summary { font-weight: 700; color: var(--brand-dark); margin-right: auto; }
.bulk-check, .bulk-all { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

/* Bar chart (pure CSS, no library) */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-track { width: 100%; max-width: 42px; height: 110px; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; min-height: 3px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--brand-mint), var(--brand)); transition: height .3s ease; }
.bar-val { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.bar-label { font-size: 12px; color: var(--text-muted); }

/* Table */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { text-align: left; padding: 10px 14px; background: var(--bg-surface); color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data-table td { padding: 10px 14px; border-top: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
table.data-table tbody tr:hover { background: rgba(140, 232, 148, 0.08); }
table.data-table tbody tr { cursor: default; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 13px; font-weight: 600; padding: 0 10px; }
.pagination a { background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border); }
.pagination a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.pagination .current { background: var(--brand); color: #fff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* Avatar */
.avatar { border-radius: 50%; object-fit: cover; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brand-dark); flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 88px; height: 88px; font-size: 32px; }

/* ===== App shell (logged-in USER area): sidebar on desktop, bottom tabs on mobile ===== */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 240px; flex-shrink: 0; padding: 20px 14px;
  background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
}
.app-sidebar nav { flex: 1; margin-top: 12px; }
.app-sidebar nav a, .app-bottomnav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: var(--text-secondary); font-weight: 600; font-size: 14px; margin-bottom: 4px;
}
.app-sidebar nav a .nav-icon { font-size: 18px; width: 22px; text-align: center; }
.app-sidebar nav a.active, .app-sidebar nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.app-main { flex: 1; min-width: 0; padding-bottom: 24px; }
.app-main-inner { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }

.app-bottomnav {
  display: none;
}
@media (max-width: 800px) {
  .app-sidebar { display: none; }
  .app-bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
    padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right));
    height: calc(var(--app-bottomnav-h) + env(safe-area-inset-bottom));
  }
  .app-bottomnav a {
    flex: 1; flex-direction: column; gap: 2px; margin-bottom: 0; padding: 6px 2px; border-radius: 10px;
    font-size: 11px; text-align: center;
  }
  .app-bottomnav a .nav-icon { font-size: 19px; }
  .app-bottomnav a.active { color: var(--brand-dark); }
  .app-main { padding-bottom: calc(var(--app-bottomnav-h) + 16px + env(safe-area-inset-bottom)); }
}

/* Admin shell */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px; flex-shrink: 0; padding: 20px 12px;
  background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--glass-border);
}
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text-secondary); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.admin-main { flex: 1; padding: 24px; min-width: 0; }
@media (max-width: 800px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: auto; border-right: none; border-bottom: 1px solid var(--glass-border); }
  .admin-sidebar nav { display: flex; overflow-x: auto; gap: 4px; }
  .admin-main { padding: 16px; }
}

/* Online presence dot */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--text-placeholder); flex-shrink: 0; }
.status-dot.online { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Simple modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,26,18,0.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-box { background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 20px; width: 100%; max-width: 380px; }
.hidden { display: none !important; }
/* Component rules that set display (e.g. .table-actions form) otherwise beat
   the browser default for [hidden], leaving hidden elements on screen. */
[hidden] { display: none !important; }

/* Search bar */
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-bar .input { flex: 1; min-width: 0; }

/* Credential box (bpexch username/password) */
.cred-box { background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: var(--radius); padding: 18px; }
.cred-row { background: rgba(255,255,255,0.85); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cred-row .value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.copy-btn { background: transparent; border: none; color: var(--brand-dark); cursor: pointer; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* Chat */
.chat-window { display: flex; flex-direction: column; height: 60vh; border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 75%; padding: 10px 14px; border-radius: 14px; font-size: 14px; overflow-wrap: break-word; }
.chat-bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.theirs { align-self: flex-start; background: var(--bg-surface); color: var(--text-primary); border-bottom-left-radius: 4px; }
.chat-meta { font-size: 11px; opacity: .7; margin-top: 4px; }
.chat-input-bar { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.6); }
.chat-input-bar input { flex: 1; min-width: 0; }

.footer { border-top: 1px solid var(--glass-border); padding: 24px 16px; }
.footer .bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1080px; margin: 0 auto; color: var(--text-muted); font-size: 14px; }

/* Floating support widget */
.fab-support {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 180, 85, 0.4);
}
.fab-support:active { transform: scale(0.95); }
.fab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 800px) {
  .fab-support { bottom: calc(var(--app-bottomnav-h) + 16px + env(safe-area-inset-bottom)); }
}

.fab-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 60;
  width: min(340px, calc(100vw - 40px)); height: min(460px, calc(100vh - 160px));
  background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
@media (max-width: 800px) {
  .fab-panel { bottom: calc(var(--app-bottomnav-h) + 86px + env(safe-area-inset-bottom)); }
}
.fab-panel-header { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.fab-panel-header button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }
.fab-panel-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fab-panel-footer { border-top: 1px solid var(--border); padding: 10px; display: flex; gap: 8px; }
.fab-panel-footer input { flex: 1; min-width: 0; }
.fab-guest-name { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.fab-inbox-item { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.6); }
.fab-inbox-item:hover { background: rgba(255,255,255,0.9); }
.fab-inbox-item .name { font-weight: 700; font-size: 14px; }
.fab-inbox-item .preview { font-size: 12px; color: var(--text-muted); }

/* ===== Betpro Exchange Wallet: accessible user experience ===== */
body.user-portal-body,
body.auth-body,
body.public-body {
  --wallet-navy: #071f38;
  --wallet-navy-2: #0d3457;
  --wallet-blue: #176fab;
  --wallet-cyan: #59ddd6;
  --wallet-green: #20b862;
  --wallet-green-dark: #118747;
  --wallet-mint: #e4f9ed;
  --wallet-sky: #eaf7ff;
  --wallet-line: #d8e6ef;
  --wallet-ink: #09233e;
  --wallet-muted: #587087;
  --wallet-shadow: 0 12px 35px rgba(7, 31, 56, .10);
  --brand: var(--wallet-green);
  --brand-dark: var(--wallet-green-dark);
  --brand-mint: #78e6a3;
  --brand-light: var(--wallet-mint);
  --brand-soft: rgba(32, 184, 98, .12);
  --brand-border: rgba(32, 184, 98, .28);
  --bg-page: #f2f7fb;
  --bg-card: #fff;
  --bg-surface: #edf5f9;
  --border: var(--wallet-line);
  --text-primary: var(--wallet-ink);
  --text-secondary: #334f67;
  --text-muted: var(--wallet-muted);
  background: #f2f7fb;
  color: var(--wallet-ink);
}

body.user-portal-body { min-width: 320px; }
.user-app-shell { background: #f2f7fb; }
.user-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 264px;
  padding: 24px 18px 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(89, 221, 214, .08), transparent 30%),
    linear-gradient(180deg, var(--wallet-navy), #092b49);
  border-right: 0;
  box-shadow: 8px 0 28px rgba(7, 31, 56, .08);
  z-index: 25;
}
.user-brand { gap: 11px; padding: 0 8px 22px; color: #fff; line-height: 1.05; }
.user-brand .logo-mark { width: 46px; height: 46px; box-shadow: 0 0 0 3px rgba(89, 221, 214, .18); }
.user-brand strong { display: block; font-size: 16px; }
.user-brand small { display: block; margin-top: 5px; color: var(--wallet-cyan); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.user-sidebar nav { margin-top: 2px; }
.user-sidebar nav a {
  min-height: 50px;
  margin-bottom: 7px;
  padding: 12px 14px;
  color: #c9d9e6;
  border: 1px solid transparent;
  font-size: 15px;
}
.user-sidebar nav a .nav-icon { width: 28px; color: #8eb4ce; }
.user-sidebar nav a.active,
.user-sidebar nav a:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(89, 221, 214, .20), rgba(23, 111, 171, .25));
  border-color: rgba(89, 221, 214, .22);
}
.user-sidebar nav a.active .nav-icon { color: var(--wallet-cyan); }
.sidebar-safety {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  margin-top: 12px;
  border: 1px solid rgba(89, 221, 214, .2);
  border-radius: 16px;
  background: rgba(89, 221, 214, .08);
  color: var(--wallet-cyan);
}
.sidebar-safety span { min-width: 0; }
.sidebar-safety strong,
.sidebar-safety small { display: block; }
.sidebar-safety strong { color: #fff; font-size: 13px; }
.sidebar-safety small { color: #aec6d7; font-size: 11px; margin-top: 2px; }
.user-sidebar .btn-secondary { color: #d9e8f1; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }

.user-portal-body .app-main { min-width: 0; background: #f2f7fb; }
.user-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 12px clamp(18px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Fully opaque: at 90% the page content scrolled behind the bar and showed
     through the heading, which read as broken clipped text. */
  background: #fff;
  border-bottom: 1px solid var(--wallet-line);
}
.mobile-user-brand { display: none; }
.user-topbar-right { display: flex; align-items: center; gap: 6px; }
.user-profile-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; }
.user-profile-link:hover { background: var(--wallet-sky); }
/* The dark sidebar carries logout on desktop; it is hidden on phones, so the
   top bar has to carry it there instead. */
.topbar-logout { display: none; }
.topbar-logout button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 13px;
  cursor: pointer; background: var(--wallet-sky); border: 1px solid var(--wallet-line);
  border-radius: 13px; color: var(--wallet-ink); font-size: 13px; font-weight: 800;
}
.topbar-logout button:active { background: #dbe9f4; }
.user-avatar-mini {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #07304b; background: linear-gradient(145deg, var(--wallet-cyan), #78efcf); font-weight: 900;
}
.user-profile-copy small, .user-profile-copy strong { display: block; }
.user-profile-copy small { color: var(--wallet-muted); font-size: 11px; }
.user-profile-copy strong { font-size: 14px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.user-portal-body .app-main-inner { max-width: 1240px; padding: 30px clamp(18px, 3vw, 42px) 56px; }

.user-page { width: 100%; }
.user-page-narrow { max-width: 760px; margin: 0 auto; }
.user-page-title { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; color: var(--wallet-ink); }
.user-page-subtitle { margin: 7px 0 0; color: var(--wallet-muted); font-size: 15px; }
.user-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-bottom: 8px; margin-left: -10px; padding: 8px 10px; border-radius: 10px; color: var(--wallet-blue); font-size: 14px; font-weight: 800; }
.back-link:hover { background: var(--wallet-sky); }
.user-portal-body .card {
  background: #fff;
  border: 1px solid var(--wallet-line);
  box-shadow: 0 8px 28px rgba(7,31,56,.07);
  backdrop-filter: none;
}

/* Dashboard */
.dashboard-greeting { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dashboard-greeting h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.dashboard-greeting p { margin: 5px 0 0; color: var(--wallet-muted); }
.dashboard-avatar { width: 56px; height: 56px; border: 3px solid #fff; box-shadow: var(--wallet-shadow); }
.wallet-balance-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(89,221,214,.35);
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(89,221,214,.15), transparent 45%),
    linear-gradient(120deg, #123f67, #071f38 72%);
  box-shadow: 0 18px 42px rgba(7,31,56,.22);
}
.wallet-balance-card::after {
  content: ""; position: absolute; right: -70px; bottom: -110px; width: 320px; height: 320px;
  background: repeating-conic-gradient(from 30deg, rgba(89,221,214,.06) 0 15deg, transparent 15deg 30deg);
  border-radius: 50%;
}
.wallet-balance-copy { position: relative; z-index: 2; }
.wallet-balance-label { font-size: 17px; font-weight: 700; color: #cfe3f1; }
.wallet-balance-value { margin: 8px 0; font-size: clamp(42px, 7vw, 72px); line-height: 1; font-weight: 900; letter-spacing: -.04em; color: #fff; }
.wallet-balance-value.unavailable { font-size: clamp(28px, 4vw, 42px); color: #ffd48a; }
.wallet-refresh { display: inline-flex; align-items: center; gap: 6px; color: var(--wallet-cyan); font-size: 13px; font-weight: 800; }
.wallet-visual {
  position: relative; z-index: 2; width: 150px; height: 120px; border-radius: 24px;
  display: grid; place-items: center; color: #062d32;
  background: linear-gradient(145deg, #79efd1, #35c9aa); box-shadow: 0 16px 30px rgba(0,0,0,.2);
}
.wallet-visual::before { content: "Rs."; position: absolute; top: -26px; left: 24px; font-size: 22px; font-weight: 900; color: #ddfff5; transform: rotate(-7deg); }
.wallet-visual .icon { width: 68px; height: 68px; }

.primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.big-action {
  min-height: 128px; padding: 20px 26px; border-radius: 24px; color: #fff;
  display: flex; align-items: center; gap: 18px; font-size: clamp(22px, 2.5vw, 32px); font-weight: 900;
  box-shadow: 0 12px 28px rgba(7,31,56,.15); transition: transform .12s ease, box-shadow .12s ease;
}
.big-action:hover { transform: translateY(-3px); box-shadow: 0 17px 34px rgba(7,31,56,.20); }
.big-action.deposit-action { background: linear-gradient(135deg, #27c96e, #11964f); }
.big-action.withdraw-action { background: linear-gradient(135deg, #5edee7, #1681bd); }
.big-action-icon { width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.deposit-action .big-action-icon { color: var(--wallet-green-dark); }
.withdraw-action .big-action-icon { color: var(--wallet-blue); }
.big-action .action-arrow { margin-left: auto; font-size: 36px; }

.section-heading { margin: 30px 0 14px; }
.section-heading h2 { margin: 0; font-size: 21px; }
.section-heading p { margin: 4px 0 0; color: var(--wallet-muted); font-size: 14px; }
.payment-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.payment-method-card {
  position: relative; min-width: 0; min-height: 96px; padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  color: var(--wallet-ink); background: linear-gradient(145deg, #fff, #fbfdff); border: 1px solid #d7e3ed; border-radius: 18px;
  box-shadow: 0 8px 22px rgba(7,31,56,.07); overflow: hidden;
}
.payment-method-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #b7c9d8; }
.payment-card-jazzcash::before { background: linear-gradient(#f51f28 50%, #ffc510 50%); }
.payment-card-easypaisa::before { background: #22b968; }
.payment-card-bank::before { background: #1674b6; }
.payment-method-card[href] { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.payment-method-card[href]::after { content: "\203A"; margin-left: auto; color: #7f97aa; font-size: 26px; line-height: 1; }
.payment-method-card[href]:hover { transform: translateY(-2px); border-color: #a8c2d5; box-shadow: 0 12px 26px rgba(7,31,56,.11); }
.payment-method-card strong { display: block; font-size: 16px; }
.payment-method-card small { display: block; margin-top: 2px; color: var(--wallet-muted); font-size: 12px; }
.payment-logo { width: 82px; height: 58px; flex: 0 0 82px; border-radius: 14px; display: grid; place-items: center; }
.payment-logo-brand { padding: 7px 8px; background: #fff; border: 1px solid #e0e8ef; box-shadow: 0 3px 10px rgba(7,31,56,.06); }
.payment-logo-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.payment-logo-jazzcash img { transform: scale(1.08); }
.payment-logo-easypaisa { padding-inline: 6px; }
.payment-logo-bank { width: 58px; flex-basis: 58px; color: #fff; background: linear-gradient(145deg, #2589c9, #0b4f88); box-shadow: 0 5px 12px rgba(18,104,163,.22); }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-card { padding: 22px; border: 1px solid var(--wallet-line); border-radius: 22px; background: #fff; }
.guide-card.deposit-guide { background: linear-gradient(145deg, #fff, #effcf4); border-color: #c6efd6; }
.guide-card.withdraw-guide { background: linear-gradient(145deg, #fff, #eef8ff); border-color: #c9e7f8; }
.guide-card h3 { margin: 0 0 18px; color: var(--wallet-green-dark); }
.withdraw-guide h3 { color: var(--wallet-blue); }
.guide-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.guide-step { position: relative; text-align: center; color: var(--wallet-muted); font-size: 11px; font-weight: 700; }
.guide-step:not(:last-child)::after { content: "›"; position: absolute; top: 17px; right: -8px; color: var(--wallet-green); font-size: 24px; }
.withdraw-guide .guide-step:not(:last-child)::after { color: var(--wallet-blue); }
.step-icon { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 14px; display: grid; place-items: center; color: var(--wallet-green-dark); background: #fff; border: 1px solid #c6efd6; }
.withdraw-guide .step-icon { color: var(--wallet-blue); border-color: #c9e7f8; }
.step-number { width: 22px; height: 22px; margin: 0 auto 5px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--wallet-green); font-size: 11px; }
.withdraw-guide .step-number { background: var(--wallet-blue); }

.account-access-card {
  margin-top: 22px; padding: 24px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #0e385c, #071f38); box-shadow: var(--wallet-shadow);
}
.account-access-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.account-access-head .feature-icon { margin: 0; color: #062d32; background: var(--wallet-cyan); }
.account-access-head h2 { margin: 0; font-size: 20px; }
.account-access-head p { margin: 3px 0 0; color: #b9d0df; font-size: 13px; }
.credential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-access-card .cred-row { margin: 0; min-height: 80px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.13); }
.account-access-card .cred-row .text-muted { color: #a9c5d7; }
.account-access-card .cred-row .value { color: #fff; font-size: 18px; }
.account-access-card .copy-btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 11px; border-radius: 10px; color: var(--wallet-cyan); background: rgba(89,221,214,.10); }
.visit-bpexch-btn { margin-top: 14px; min-height: 58px; color: #052d2a; background: linear-gradient(135deg, #79efd1, #42d3bc); font-size: 16px; font-weight: 900; }
.visit-bpexch-btn:hover { background: #79efd1; }
.account-access-card .help-text { color: #b9d0df; }
.account-access-card #bp-open-hint { color: var(--wallet-cyan) !important; }

.support-cta { margin-top: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; border-radius: 20px; color: var(--wallet-ink); background: #fff; border: 1px solid var(--wallet-line); box-shadow: 0 6px 18px rgba(7,31,56,.06); }
.support-cta .feature-icon { margin: 0; color: #fff; background: linear-gradient(145deg, #ffb33e, #ef7d20); }
.support-cta span:last-child { margin-left: auto; color: var(--wallet-blue); }
.request-list { display: flex; flex-direction: column; gap: 10px; }
.request-card { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--wallet-line); border-radius: 18px; background: #fff; }
.request-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.request-main .feature-icon { margin: 0; }
.request-main strong, .request-main small { display: block; }
.request-main small { margin-top: 3px; color: var(--wallet-muted); }
.request-status { flex-shrink: 0; text-align: right; }
.see-all { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 13px;
  border-radius: 11px; background: var(--wallet-sky); color: var(--brand-dark);
  font-size: 13px; font-weight: 800; }
.see-all:hover { background: #dbe9f4; }

/* Guided forms */
.form-guide { margin-bottom: 18px; padding: 18px; border: 1px solid var(--wallet-line); border-radius: 20px; background: #fff; }
.form-guide h2 { margin: 0 0 14px; font-size: 17px; }
.form-guide-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.form-guide-step { text-align: center; font-size: 11px; color: var(--wallet-muted); font-weight: 700; }
.form-guide-step span { width: 36px; height: 36px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--wallet-green); }
.withdraw-form-guide .form-guide-step span { background: var(--wallet-blue); }
.simple-form-card { padding: clamp(20px, 4vw, 30px) !important; border-radius: 24px !important; }
.simple-form-card .field { margin-bottom: 20px; }
.simple-form-card .label { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--wallet-ink); }
.simple-form-card .input { min-height: 52px; padding: 14px 15px; border-radius: 14px; background: #f9fcfe; font-size: 16px; }
.simple-form-card textarea.input { min-height: 100px; }
.simple-form-card .btn-primary { min-height: 56px; font-size: 17px; font-weight: 900; }
.balance-notice { display: flex; align-items: center; gap: 12px; padding: 16px; margin-bottom: 18px; border-radius: 17px; color: var(--wallet-green-dark); background: var(--wallet-mint); border: 1px solid #c5efd5; }
.balance-notice.blue { color: var(--wallet-blue); background: var(--wallet-sky); border-color: #c9e7f8; }
.pending-notice { padding: 22px; border-left: 5px solid #f3a51d; }
.status-explainer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 22px; }
.status-explainer div { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--wallet-line); text-align: center; font-size: 12px; }
.status-explainer strong { display: block; margin-top: 4px; }

/* Public and authentication pages */
body.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(89,221,214,.05) 25%, transparent 25%) 0 0/120px 120px,
    linear-gradient(315deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0/120px 120px,
    radial-gradient(circle at 50% 15%, #163f61, transparent 45%),
    #071a2e;
}
.auth-body .site-header { color: #fff; background: rgba(7,31,56,.88); border-bottom-color: rgba(255,255,255,.08); }
.auth-body .site-header .btn-ghost { color: #d6e7f2; border-color: rgba(255,255,255,.18); }
.auth-screen { min-height: calc(100vh - 73px); padding: 42px 16px; display: grid; place-items: center; }
.auth-layout { width: min(100%, 1040px); display: grid; grid-template-columns: 1fr minmax(360px, 470px); align-items: center; gap: clamp(36px, 7vw, 90px); }
.auth-intro { color: #fff; }
.auth-intro .logo-mark { width: 86px; height: 86px; box-shadow: 0 0 0 7px rgba(89,221,214,.12); }
.auth-intro h1 { margin: 22px 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.auth-intro h1 span { color: var(--wallet-cyan); }
.auth-intro p { max-width: 500px; color: #bfd3e1; font-size: 17px; }
.auth-benefits { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
.auth-benefit { display: flex; align-items: center; gap: 10px; color: #e7f4fa; font-weight: 700; }
.auth-benefit span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #062d32; background: var(--wallet-cyan); }
.auth-card { padding: clamp(24px, 4vw, 38px); color: #fff; border: 1px solid rgba(89,221,214,.23); border-radius: 26px; background: linear-gradient(155deg, rgba(31,80,116,.98), rgba(7,31,56,.98)); box-shadow: 0 28px 65px rgba(0,0,0,.35); }
.auth-card-header { text-align: center; margin-bottom: 24px; }
.auth-card-header .logo-mark { width: 72px; height: 72px; margin: 0 auto 15px; box-shadow: 0 0 0 5px rgba(89,221,214,.12); }
.auth-card-header h2 { margin: 0; font-size: 26px; }
.auth-card-header p { margin: 5px 0 0; color: #b9d0df; }
.auth-card .label { color: #d7e7f0; font-size: 13px; text-transform: none; }
.auth-card .input { min-height: 54px; padding: 14px 16px; color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); font-size: 16px; }
.auth-card .input::placeholder { color: #9fb7c8; }
.auth-card .input:focus { border-color: var(--wallet-cyan); box-shadow: 0 0 0 3px rgba(89,221,214,.15); }
.auth-card .btn-primary { min-height: 55px; color: #052d2a; background: linear-gradient(135deg, #7bedda, #3bd1b8); box-shadow: 0 8px 22px rgba(89,221,214,.22); font-size: 17px; font-weight: 900; }
.auth-card .btn-secondary { color: #e7f4fa; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.auth-card .text-muted, .auth-card a.text-muted { color: #b9d0df; }
.auth-card .auth-switch { margin: 20px 0 0; padding-top: 20px; text-align: center; color: #b9d0df; border-top: 1px solid rgba(255,255,255,.12); }
.auth-card .auth-switch a { color: var(--wallet-cyan); font-weight: 900; }
.auth-card .alert { color: inherit; }
.auth-card .alert-error { color: #ffe1e1; background: rgba(239,68,68,.16); border-color: rgba(255,120,120,.3); }
.auth-card .alert-success { color: #dfffea; background: rgba(32,184,98,.16); border-color: rgba(90,230,150,.3); }
.username-status { min-height: 18px; margin-top: 6px; color: #b9d0df; font-size: 12px; font-weight: 800; }
.username-status.is-checking { color: #b9d0df; }
.username-status.is-available { color: #78efb4; }
.username-status.is-available::before { content: '\2713'; margin-right: 5px; }
.username-status.is-unavailable { color: #ffd08a; }
.username-status.is-unavailable::before { content: '!'; margin-right: 5px; }
.username-suggestions { margin-top: 10px; padding: 11px; color: #dbeaf2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.username-suggestions > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.username-suggestion-list { display: flex; flex-wrap: wrap; gap: 7px; }
.username-suggestion { padding: 7px 10px; color: #063749; background: var(--wallet-cyan); border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 900; }
.username-suggestion:hover, .username-suggestion:focus-visible { background: #8af1e7; box-shadow: 0 0 0 3px rgba(89,221,214,.17); outline: 0; }

/* Registration stays compact until username suggestions are needed */
.register-body .auth-screen { padding-block: 20px; }
.register-body .auth-card { padding: 20px 24px; }
.register-body .auth-card-header { margin-bottom: 15px; }
.register-body .auth-card-header .logo-mark { width: 56px; height: 56px; margin-bottom: 8px; }
.register-body .auth-card-header h2 { font-size: 23px; }
.register-body .auth-card-header p { margin-top: 2px; font-size: 13px; }
.register-body .field { margin-bottom: 11px; }
.register-body .label { margin-bottom: 4px; }
.register-body .input { min-height: 48px; padding: 11px 13px; font-size: 16px; }
.register-body .help-text { margin: 3px 0 0; font-size: 11px; line-height: 1.3; }
.register-body .username-status { min-height: 0; margin-top: 3px; line-height: 1.3; }
.register-body .username-status:empty { display: none; }
.register-body .username-suggestions { margin-top: 6px; padding: 8px 9px; }
.register-body .username-suggestions > strong { margin-bottom: 6px; }
.register-body .username-suggestion { padding: 6px 9px; }
.register-body .auth-card .btn-primary { min-height: 47px; }
.register-body .auth-card .auth-switch { margin-top: 12px; padding-top: 12px; }
.register-body .auth-card > .text-center { margin-top: 9px !important; }

@media (max-width: 800px) {
  .register-body .auth-screen { min-height: calc(100vh - 62px); padding: 12px 10px 22px; align-items: start; }
  .register-body .auth-card { padding: 16px 18px; border-radius: 20px; }
  .register-body .auth-card-header { margin-bottom: 12px; }
  .register-body .auth-card-header .logo-mark { width: 50px; height: 50px; margin-bottom: 6px; }
  .register-body .auth-card-header h2 { font-size: 21px; }
  .register-body .field { margin-bottom: 9px; }
}

body.public-body { background: #f3f8fb; }
.public-body .site-header { background: rgba(255,255,255,.93); }
.public-hero { padding: clamp(52px, 8vw, 100px) 16px; color: #fff; background: linear-gradient(135deg, #0d3b60, #071f38 70%); }
.public-hero-inner { max-width: 1120px; margin: auto; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
.public-hero h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 6vw, 70px); line-height: 1.02; }
.public-hero h1 span { color: var(--wallet-cyan); }
.public-hero p { max-width: 620px; color: #c2d8e5; font-size: 18px; }
.public-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.public-hero .btn { min-height: 55px; padding-inline: 26px; font-size: 16px; }
.public-wallet-visual { min-height: 300px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(145deg, rgba(89,221,214,.18), rgba(255,255,255,.04)); border: 1px solid rgba(89,221,214,.25); }
.public-wallet-visual .icon { width: 140px; height: 140px; color: var(--wallet-cyan); }
.public-section { max-width: 1120px; margin: auto; padding: 64px 16px; }
.public-section-heading { text-align: center; margin-bottom: 28px; }
.public-section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.public-section-heading p { color: var(--wallet-muted); }
.public-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.public-step { padding: 25px; background: #fff; border: 1px solid var(--wallet-line); border-radius: 22px; box-shadow: var(--wallet-shadow); }
.public-step-number { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--wallet-green); font-size: 20px; font-weight: 900; }

/* Responsive behavior */
@media (max-width: 1050px) {
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .guide-step:not(:last-child)::after { display: none; }
  .public-hero-inner { grid-template-columns: 1fr .55fr; }
}
@media (max-width: 800px) {
  .user-sidebar { display: none; }
  .user-topbar { min-height: 66px; padding: 9px 14px; justify-content: space-between; }
  .mobile-user-brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--wallet-ink); font-size: 13px; font-weight: 900; }
  .mobile-user-brand .logo-mark { flex-shrink: 0; width: 36px; height: 36px; }
  .mobile-user-brand span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-profile-copy { display: none; }
  .user-avatar-mini { width: 38px; height: 38px; }
  .user-profile-link { padding: 4px; }
  .topbar-logout { display: block; }
  .user-portal-body .app-main-inner { padding: 20px 14px 40px; }
  .user-portal-body .app-bottomnav {
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
    background: rgba(7,31,56,.97); border-top: 0; box-shadow: 0 -8px 25px rgba(7,31,56,.15);
  }
  .user-portal-body .app-bottomnav a { min-width: 0; color: #b8ccda; font-size: 10px; font-weight: 700; }
  .user-portal-body .app-bottomnav a.active { color: var(--wallet-cyan); background: rgba(89,221,214,.10); }
  .user-portal-body .app-bottomnav .nav-icon { width: 25px; height: 25px; }
  .user-portal-body .app-main { padding-bottom: calc(70px + 14px + env(safe-area-inset-bottom)); }
  .user-portal-body .fab-support { bottom: calc(78px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .user-portal-body .fab-panel { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .wallet-balance-card { min-height: 190px; }
  .wallet-visual { width: 120px; height: 100px; }
  .wallet-visual .icon { width: 55px; height: 55px; }
  .guide-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; max-width: 480px; }
  .auth-intro { display: none; }
  .public-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .public-hero p { margin-inline: auto; }
  .public-hero .actions { justify-content: center; }
  .public-wallet-visual { display: none; }
}
@media (max-width: 620px) {
  .dashboard-greeting { align-items: flex-start; }
  .dashboard-greeting p { font-size: 13px; }
  .wallet-balance-card { min-height: 175px; padding: 24px 20px; }
  .wallet-balance-label { font-size: 14px; }
  .wallet-visual { width: 82px; height: 82px; border-radius: 20px; }
  .wallet-visual::before { display: none; }
  .wallet-visual .icon { width: 42px; height: 42px; }
  .primary-actions { gap: 12px; }
  .big-action { min-height: 150px; padding: 17px 12px; flex-direction: column; justify-content: center; gap: 10px; text-align: center; font-size: 20px; }
  .big-action-icon { width: 68px; height: 68px; flex-basis: 68px; }
  .big-action .action-arrow { display: none; }
  .payment-method-grid { grid-template-columns: 1fr; gap: 10px; }
  .payment-method-card { min-height: 78px; }
  .credential-grid { grid-template-columns: 1fr; }
  .guide-steps, .form-guide-steps { grid-template-columns: repeat(2, 1fr); }
  .request-card { align-items: flex-start; }
  .request-status { max-width: 90px; }
  .public-step-grid { grid-template-columns: 1fr; }
  .status-explainer { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .topbar-logout button { padding: 8px 10px; font-size: 12px; gap: 5px; }
  .wallet-balance-value { font-size: 38px; }
  .wallet-visual { width: 68px; height: 68px; }
  .big-action { font-size: 17px; }
  .account-access-card { padding: 18px; }
  .request-card { flex-direction: column; }
  .request-status { max-width: none; text-align: left; }
  .auth-screen { padding: 20px 10px; }
  .auth-card { border-radius: 20px; }
}

/* Requests, profile setup and support */
.user-page-narrow { max-width: 1120px; }
.user-page-compact { max-width: 620px; margin-inline: auto; }
.user-page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.user-page-heading h1 { margin: 4px 0 5px; color: var(--wallet-ink); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.user-page-heading p { margin: 0; color: var(--wallet-muted); font-size: 15px; }
.user-eyebrow { color: var(--wallet-green); font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.simple-help-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: #12618e; background: #eaf6fc; border: 1px solid #c9e6f5; border-radius: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.request-status-guide { margin-bottom: 18px; padding: 15px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: #fff; border: 1px solid var(--wallet-line); border-radius: 18px; box-shadow: 0 9px 25px rgba(7,31,56,.05); }
.request-status-guide > div { display: grid; grid-template-columns: 13px auto; column-gap: 8px; align-items: center; }
.request-status-guide small { grid-column: 2; color: var(--wallet-muted); }
.status-dot { width: 11px; height: 11px; border-radius: 50%; }
.status-dot-waiting { background: #f59e0b; box-shadow: 0 0 0 4px #fff1cc; }
.status-dot-done { background: var(--wallet-green); box-shadow: 0 0 0 4px #dff8e8; }
.status-dot-rejected { background: #e94c4c; box-shadow: 0 0 0 4px #ffe4e4; }
.user-filter-tabs { width: 100%; margin-bottom: 16px; padding: 5px; background: #e7f0f6; border-color: #d9e6ee; }
.user-filter-tabs .seg-btn { flex: 1; padding: 11px 15px; text-align: center; color: #526c7e; }
.user-filter-tabs .seg-btn.active { color: #fff; background: var(--wallet-navy); box-shadow: none; }
.request-list { display: flex; flex-direction: column; gap: 11px; }
.request-list-card { min-height: 86px; padding: 15px 17px; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--wallet-line); border-radius: 17px; box-shadow: 0 7px 20px rgba(7,31,56,.05); }
.request-list-icon { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 16px; }
.request-list-icon.is-deposit { color: #098749; background: #e7f8ee; }
.request-list-icon.is-withdraw { color: #126aa1; background: #e8f4fb; }
.request-list-main { min-width: 0; flex: 1; }
.request-list-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--wallet-ink); font-size: 16px; }
.request-list-title span { font-size: 18px; font-weight: 900; white-space: nowrap; }
.request-list-main p { margin: 5px 0 0; overflow: hidden; color: var(--wallet-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.request-status-pill { min-width: 82px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; text-align: center; }
.request-status-pill.is-waiting { color: #8a5700; background: #fff1cc; }
.request-status-pill.is-done { color: #087743; background: #ddf8e7; }
.request-status-pill.is-rejected { color: #a52727; background: #ffe2e2; }
.user-empty-state { padding: 42px 20px; text-align: center; background: #fff; border: 1px dashed #bed4e1; border-radius: 20px; }
.user-empty-icon { width: 68px; height: 68px; margin: 0 auto 14px; display: grid; place-items: center; color: #1674a9; background: #e9f6fc; border-radius: 20px; }
.user-empty-state h2 { margin: 0; color: var(--wallet-ink); }
.user-empty-state p { margin: 7px 0 18px; color: var(--wallet-muted); }
.user-pager { margin-top: 20px; color: var(--wallet-muted); }

.profile-summary-card { margin-bottom: 18px; padding: 22px; display: flex; align-items: center; gap: 16px; color: #fff; background: linear-gradient(135deg, #0c4770, #071f38); border: 1px solid rgba(89,221,214,.25); border-radius: 22px; box-shadow: var(--wallet-shadow); }
.profile-summary-card .avatar { flex: 0 0 auto; color: #073348; background: var(--wallet-cyan); border: 4px solid rgba(255,255,255,.16); }
.profile-summary-card h2 { margin: 2px 0 3px; font-size: 23px; }
.profile-summary-card p { margin: 0; color: #bcd3e2; font-size: 13px; }
.profile-label { color: var(--wallet-cyan); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.secure-account-badge { margin-left: auto; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; color: #bff7dd; background: rgba(32,184,98,.14); border: 1px solid rgba(98,230,166,.3); border-radius: 999px; font-size: 12px; font-weight: 800; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.simple-form-card { padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid var(--wallet-line); border-radius: 22px; box-shadow: var(--wallet-shadow); }
.simple-card-heading { margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.simple-card-heading h2 { margin: 0; color: var(--wallet-ink); font-size: 20px; }
.simple-card-heading p { margin: 3px 0 0; color: var(--wallet-muted); font-size: 13px; }
.simple-card-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #07884b; background: #e4f8ec; border-radius: 15px; }
.simple-card-icon.is-blue { color: #156a9d; background: #e8f5fb; }
.simple-form-card .label { color: var(--wallet-ink); font-size: 13px; text-transform: none; }
.simple-form-card .label span { color: var(--wallet-muted); font-weight: 500; }
.simple-form-card .input { min-height: 51px; background: #f8fbfd; border-color: #cddce5; }
.simple-form-card input[type=file] { padding: 11px; }
.simple-info-box { margin: -7px 0 18px; padding: 11px 13px; color: #0a628e; background: #eaf7fd; border-radius: 11px; font-size: 13px; font-weight: 700; }
.simple-support-banner { margin-top: 18px; padding: 17px 20px; display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--wallet-line); border-radius: 18px; }
.simple-support-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #116797; background: #e7f4fb; border-radius: 50%; }
.simple-support-banner div:nth-child(2) { flex: 1; }
.simple-support-banner strong, .simple-support-banner span { display: block; }
.simple-support-banner span { margin-top: 2px; color: var(--wallet-muted); font-size: 13px; }

.profile-setup-card { margin-top: clamp(16px, 7vh, 70px); padding: clamp(25px, 5vw, 42px); text-align: center; background: #fff; border: 1px solid var(--wallet-line); border-radius: 26px; box-shadow: var(--wallet-shadow); }
.profile-setup-icon { width: 78px; height: 78px; margin: 0 auto 17px; display: grid; place-items: center; color: #08794a; background: linear-gradient(145deg, #dff9ec, #eaf8ff); border-radius: 23px; box-shadow: 0 8px 20px rgba(32,184,98,.12); }
.profile-setup-card h1 { margin: 5px 0 8px; color: var(--wallet-ink); font-size: clamp(26px, 5vw, 34px); }
.profile-setup-card > p { max-width: 470px; margin: 0 auto; color: var(--wallet-muted); }
.profile-setup-card form { margin-top: 25px; text-align: left; }
.simple-steps-row { margin: 25px 0 5px; display: flex; align-items: flex-start; justify-content: center; }
.simple-steps-row > span { width: 42px; height: 42px; display: grid; place-items: center; color: #718796; background: #e8eff3; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d6e2e9; font-weight: 900; }
.simple-steps-row > span.is-done { color: #fff; background: var(--wallet-green); }
.simple-steps-row > span.is-active { color: #063d4e; background: var(--wallet-cyan); }
.simple-steps-row small { width: 88px; position: absolute; margin-top: 62px; color: var(--wallet-muted); font-size: 10px; font-weight: 700; }
.simple-steps-row i { width: 65px; height: 2px; margin-top: 20px; background: #d5e1e8; }
.profile-setup-card .field { margin-top: 48px; }
.input-with-icon { position: relative; }
.input-with-icon > span { position: absolute; left: 15px; top: 50%; z-index: 1; color: #5b7382; transform: translateY(-50%); }
.input-with-icon .input { min-height: 56px; padding-left: 48px; font-size: 17px; }
.profile-setup-note { margin-top: 17px !important; display: flex; align-items: center; justify-content: center; gap: 6px; color: #547182 !important; font-size: 12px; }

.user-page-chat { max-width: 960px; }
.support-online-badge { padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; color: #087743; background: #ddf8e7; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.support-online-badge i { width: 8px; height: 8px; background: #19a85e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(25,168,94,.13); }
.support-tip-row { margin-bottom: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.support-tip-row span { padding: 10px 13px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #315a72; background: #fff; border: 1px solid var(--wallet-line); border-radius: 12px; font-size: 13px; font-weight: 800; }
.user-chat-window { height: min(610px, calc(100vh - 260px)); min-height: 430px; background: #fff; border: 1px solid var(--wallet-line); border-radius: 22px; box-shadow: var(--wallet-shadow); }
.chat-support-header { padding: 14px 17px; display: flex; align-items: center; gap: 11px; color: #fff; background: linear-gradient(135deg, #0b4770, #082a49); }
.chat-support-avatar { width: 43px; height: 43px; display: grid; place-items: center; color: #052f3c; background: var(--wallet-cyan); border-radius: 50%; }
.chat-support-header strong, .chat-support-header span { display: block; }
.chat-support-header span { margin-top: 2px; color: #bdd4e2; font-size: 12px; }
.user-chat-window .chat-messages { padding: 20px; background: linear-gradient(#f7fbfd, #f2f8fb); }
.chat-welcome-message { max-width: 360px; margin: auto; padding: 18px; text-align: center; color: var(--wallet-ink); background: #fff; border: 1px solid var(--wallet-line); border-radius: 16px; box-shadow: 0 8px 20px rgba(7,31,56,.06); }
.chat-welcome-message strong, .chat-welcome-message span { display: block; }
.chat-welcome-message span { margin-top: 5px; color: var(--wallet-muted); font-size: 13px; }
.user-chat-window .chat-bubble { max-width: min(78%, 520px); padding: 11px 14px; border-radius: 16px; line-height: 1.45; box-shadow: 0 3px 10px rgba(7,31,56,.05); }
.user-chat-window .chat-bubble.mine { color: #fff; background: #0d72aa; }
.user-chat-window .chat-bubble.theirs { color: var(--wallet-ink); background: #fff; border: 1px solid var(--wallet-line); }
.user-chat-window .chat-input-bar { padding: 12px; gap: 10px; background: #fff; border-top: 1px solid var(--wallet-line); }
.user-chat-window .chat-input-bar .input { min-height: 50px; background: #f5f9fb; border-color: #cddde6; }
.user-chat-window .chat-input-bar .btn { min-height: 50px; display: inline-flex; align-items: center; gap: 7px; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 800px) {
  .profile-form-grid { grid-template-columns: 1fr; }
  .user-chat-window { height: calc(100vh - 285px); min-height: 400px; }
}
@media (max-width: 620px) {
  .user-page-heading { align-items: flex-start; }
  .request-status-guide { grid-template-columns: 1fr; }
  .request-list-card { padding: 13px; gap: 10px; }
  .request-list-icon { width: 45px; height: 45px; flex-basis: 45px; border-radius: 13px; }
  .request-list-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .request-list-main p { max-width: none; }
  .request-status-pill { min-width: 68px; padding-inline: 8px; }
  .secure-account-badge { display: none; }
  .simple-support-banner { align-items: flex-start; flex-wrap: wrap; }
  .simple-support-banner .btn { width: 100%; }
  .support-tip-row { grid-template-columns: 1fr 1fr 1fr; }
  .support-tip-row span { padding: 9px 4px; flex-direction: column; font-size: 10px; }
  .user-chat-window { height: calc(100vh - 302px); min-height: 380px; border-radius: 17px; }
  .user-chat-window .chat-messages { padding: 13px; }
  .user-chat-window .chat-input-bar .btn { padding-inline: 13px; }
}
@media (max-width: 390px) {
  .user-page-heading .simple-help-link { padding: 9px; font-size: 0; }
  .request-list-main p { max-width: none; font-size: 12.5px; }
  .request-status-pill { min-width: 61px; font-size: 11.5px; }
  .profile-summary-card { padding: 17px; }
  .profile-summary-card .avatar { width: 54px; height: 54px; }
  .simple-steps-row i { width: 40px; }
  .user-chat-window .chat-input-bar .btn .icon { display: none; }
}

/* Compact dashboard: keep balance and bpexch credentials above the fold */
.compact-dashboard-body .user-topbar { min-height: 62px; padding-block: 7px; }
.compact-dashboard-body .app-main-inner { padding-top: 16px; }
.dashboard-page .dashboard-greeting { margin-bottom: 12px; }
.dashboard-page .dashboard-greeting h1 { font-size: clamp(22px, 2.4vw, 29px); }
.dashboard-page .dashboard-greeting p { margin-top: 2px; font-size: 13px; }
.dashboard-page .dashboard-avatar { width: 44px; height: 44px; }
.dashboard-priority-grid.has-bpexch-account { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(440px, 1.15fr); gap: 14px; align-items: stretch; }
.dashboard-priority-grid .wallet-balance-card { min-height: 196px; padding: 22px 24px; border-radius: 21px; }
.dashboard-priority-grid .wallet-balance-label { font-size: 14px; }
.dashboard-priority-grid .wallet-balance-value { margin: 7px 0; font-size: clamp(38px, 4.3vw, 54px); }
.dashboard-priority-grid .wallet-balance-value.unavailable { font-size: clamp(23px, 3vw, 34px); }
.dashboard-priority-grid .wallet-visual { width: 98px; height: 82px; border-radius: 20px; }
.dashboard-priority-grid .wallet-visual::before { top: -20px; left: 14px; font-size: 17px; }
.dashboard-priority-grid .wallet-visual .icon { width: 46px; height: 46px; }
.priority-account-card { min-width: 0; margin-top: 0; padding: 14px 16px; border-radius: 21px; }
.priority-account-card .account-access-head { margin-bottom: 8px; gap: 9px; }
.priority-account-card .account-access-head .feature-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; }
.priority-account-card .account-access-head h2 { font-size: 17px; }
.priority-account-card .account-access-head p { margin-top: 1px; font-size: 11px; }
.priority-account-card .credential-grid { gap: 8px; }
.priority-account-card .cred-row { min-width: 0; min-height: 58px; padding: 8px 10px; gap: 7px; border-radius: 11px; }
.priority-account-card .credential-copy { min-width: 0; }
.priority-account-card .cred-row .text-muted { font-size: 10px; }
.priority-account-card .cred-row .value { max-width: 100%; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.priority-account-card .copy-btn { flex: 0 0 auto; padding: 7px 8px; font-size: 11px; }
.priority-account-card .visit-bpexch-btn { min-height: 42px; margin-top: 8px; font-size: 14px; }
.priority-account-card .help-text { margin: 4px 0 0; font-size: 10px; line-height: 1.2; }
.dashboard-page .primary-actions { gap: 14px; margin-top: 14px; }
.dashboard-page .big-action { min-height: 88px; padding: 13px 18px; gap: 12px; border-radius: 19px; font-size: clamp(19px, 2vw, 25px); }
.dashboard-page .big-action-icon { width: 54px; height: 54px; flex-basis: 54px; }
.dashboard-page .big-action-icon .icon { width: 31px; height: 31px; }
.dashboard-page .big-action .action-arrow { font-size: 28px; }
.dashboard-page .section-heading { margin: 18px 0 9px; }
.dashboard-page .section-heading h2 { font-size: 18px; }
.dashboard-page .section-heading p { margin-top: 2px; font-size: 12px; }
.dashboard-page .payment-method-grid { gap: 10px; }
.dashboard-page .payment-method-card { min-height: 72px; padding: 10px 12px; gap: 10px; border-radius: 15px; }
.dashboard-page .payment-logo { width: 72px; height: 46px; flex-basis: 72px; border-radius: 11px; }
.dashboard-page .payment-logo-bank { width: 46px; flex-basis: 46px; }
.dashboard-page .payment-method-card strong { font-size: 14px; }

@media (max-width: 1100px) {
  .dashboard-priority-grid.has-bpexch-account { grid-template-columns: 1fr; }
  .dashboard-priority-grid .wallet-balance-card { min-height: 145px; }
}
@media (max-width: 800px) {
  .compact-dashboard-body .user-topbar { min-height: 58px; padding-block: 6px; }
  .compact-dashboard-body .app-main-inner { padding-top: 11px; }
  .dashboard-page .dashboard-greeting { margin-bottom: 9px; }
  .dashboard-page .dashboard-greeting h1 { font-size: 21px; }
  .dashboard-page .dashboard-greeting p { font-size: 12px; }
  .dashboard-page .dashboard-avatar { width: 40px; height: 40px; }
  .dashboard-priority-grid.has-bpexch-account { gap: 10px; }
  .dashboard-priority-grid .wallet-balance-card { min-height: 112px; padding: 14px 16px; border-radius: 18px; }
  .dashboard-priority-grid .wallet-balance-value { margin: 4px 0; font-size: 34px; }
  .dashboard-priority-grid .wallet-refresh { font-size: 11px; }
  .dashboard-priority-grid .wallet-visual { width: 66px; height: 62px; border-radius: 16px; }
  .dashboard-priority-grid .wallet-visual::before { display: none; }
  .dashboard-priority-grid .wallet-visual .icon { width: 34px; height: 34px; }
  .priority-account-card { padding: 12px 13px; border-radius: 18px; }
  .priority-account-card .account-access-head { margin-bottom: 7px; }
  .priority-account-card .credential-grid { grid-template-columns: 1fr 1fr; }
  .priority-account-card .cred-row { min-height: 76px; padding: 8px; align-items: flex-start; flex-direction: column; }
  .priority-account-card .cred-row .value { max-width: 130px; }
  .priority-account-card .copy-btn { width: 100%; min-height: 28px; justify-content: center; padding: 5px; }
  .dashboard-page .primary-actions { gap: 9px; margin-top: 10px; }
  .dashboard-page .big-action { min-height: 72px; padding: 9px 10px; flex-direction: row; gap: 8px; border-radius: 16px; font-size: 15px; text-align: left; }
  .dashboard-page .big-action-icon { width: 43px; height: 43px; flex-basis: 43px; }
  .dashboard-page .big-action-icon .icon { width: 25px; height: 25px; }
  .dashboard-page .big-action .action-arrow { display: none; }
}
@media (max-width: 390px) {
  .priority-account-card .account-access-head p { display: none; }
  .priority-account-card .cred-row .value { max-width: 115px; font-size: 13px; }
  .dashboard-page .big-action { font-size: 13px; }
}

/* ========================================================================== */
/* Admin Console — isolated navy + teal design system                         */
/* ========================================================================== */
.admin-body,
.admin-login-body {
  --brand: #119d87;
  --brand-dark: #087565;
  --brand-mint: #63dcc2;
  --brand-light: #dff8f2;
  --brand-soft: rgba(17, 157, 135, .11);
  --brand-border: rgba(17, 157, 135, .23);
  --bg-page: #eef3f7;
  --bg-card: #ffffff;
  --bg-surface: #f2f6f9;
  --border: #d9e4ec;
  --text-primary: #10263a;
  --text-secondary: #40576a;
  --text-muted: #6d8293;
  --text-placeholder: #9babb8;
  --glass-bg: rgba(255,255,255,.92);
  --glass-bg-strong: #ffffff;
  --glass-border: #dce6ed;
  --shadow-card: 0 1px 2px rgba(9,32,50,.04), 0 8px 24px rgba(9,32,50,.055);
  --shadow-lg: 0 18px 42px rgba(5,27,45,.14);
  --radius: 16px;
}

.admin-body {
  background-color: #eef3f7;
  background-image:
    radial-gradient(circle at 88% 4%, rgba(37, 166, 203, .09), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.7), transparent 42%);
  color: var(--text-primary);
  font-size: 15px;
}

.admin-body .admin-shell { min-height: 100vh; align-items: flex-start; }
.admin-body .admin-sidebar {
  position: sticky; top: 0; z-index: 40;
  width: 268px; height: 100vh; padding: 22px 16px 16px;
  display: flex; flex-direction: column; overflow-y: auto;
  color: #d8e6ef;
  background:
    radial-gradient(circle at 12% 0, rgba(76, 221, 190, .15), transparent 26%),
    linear-gradient(180deg, #071a2b 0%, #0a2438 58%, #0b2c40 100%);
  border: 0; box-shadow: 10px 0 30px rgba(6, 27, 43, .10);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.admin-body .admin-brand {
  min-width: 0; padding: 2px 8px 24px; gap: 11px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-body .admin-brand .logo-mark,
.admin-login-body .admin-login-logo .logo-mark {
  width: 44px; height: 44px; padding: 3px;
  background: #dffbf2; border: 1px solid rgba(105,232,203,.52);
  box-shadow: 0 7px 20px rgba(0,0,0,.20);
}
.admin-body .admin-brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.admin-body .admin-brand-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.admin-body .admin-brand-copy small { margin-top: 5px; color: #75d8c2; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-body .admin-sidebar nav { flex: 1; margin-top: 20px; }
.admin-body .admin-sidebar nav a {
  position: relative; min-height: 45px; margin-bottom: 5px; padding: 7px 10px;
  gap: 10px; color: #aebfcb; border: 1px solid transparent; border-radius: 11px;
  font-size: 13px; font-weight: 650; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.admin-body .admin-sidebar nav a > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.admin-body .admin-sidebar nav a .nav-icon {
  width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px;
  color: #9bb5c4; background: rgba(255,255,255,.055);
}
.admin-body .admin-sidebar nav a:hover {
  color: #fff; background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.07); transform: translateX(2px);
}
.admin-body .admin-sidebar nav a.active {
  color: #72e6cd; background: rgba(42,195,165,.13); border-color: rgba(87,221,191,.18);
}
.admin-body .admin-sidebar nav a.active::before {
  content: ""; position: absolute; left: -17px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 4px 4px 0; background: #54ddbf; box-shadow: 0 0 12px rgba(84,221,191,.55);
}
.admin-body .admin-sidebar nav a.active .nav-icon { color: #76e9d0; background: rgba(69,209,180,.13); }
.admin-body .admin-sidebar .badge-danger {
  min-width: 22px; justify-content: center; padding: 3px 7px;
  color: #fff; background: #e95562; box-shadow: 0 3px 10px rgba(233,85,98,.3);
}
.admin-body .admin-sidebar-actions {
  display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px 4px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.admin-body .admin-sidebar-actions form { margin: 0; }
.admin-body .admin-sidebar-actions .btn {
  min-height: 39px; color: #bed0da; background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09); box-shadow: none;
}
.admin-body .admin-sidebar-actions .btn:hover { color: #fff; background: rgba(255,255,255,.10); }

.admin-body .admin-main {
  width: calc(100% - 268px); min-height: 100vh; padding: clamp(22px, 3vw, 38px);
  background: transparent;
}
.admin-body .admin-main > h1,
.admin-body .admin-main > div:first-child h1,
.admin-body .admin-main > .row-between:first-child h1 {
  color: #0b2438; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.035em;
}
.admin-body .admin-main h2,
.admin-body .admin-main h3 { color: #173348; letter-spacing: -.012em; }
.admin-body .admin-main > .row-between:first-child,
.admin-body .admin-main > div:first-child { margin-bottom: 20px; }

.admin-body .card {
  background: #fff; border: 1px solid #dce6ed; border-radius: 16px;
  box-shadow: var(--shadow-card); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.admin-body .grid-4,
.admin-body .grid-2 { gap: 14px; }
.admin-body .stat-card { position: relative; min-height: 112px; padding: 19px; overflow: hidden; }
.admin-body .stat-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, #18ac93, #45d3b7);
}
.admin-body .grid-4 > .stat-card:nth-child(2)::before { background: linear-gradient(90deg, #268bc7, #59bce4); }
.admin-body .grid-4 > .stat-card:nth-child(3)::before { background: linear-gradient(90deg, #7b68c9, #a390e4); }
.admin-body .grid-4 > .stat-card:nth-child(4)::before { background: linear-gradient(90deg, #e9a43b, #f4c461); }
.admin-body .stat-card .stat-label { color: #718697; font-size: 10px; letter-spacing: .09em; }
.admin-body .stat-card .stat-value { margin-top: 10px; color: #112b40; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.035em; }
.admin-body .text-brand { color: #0b8f79; }
.admin-body .text-danger { color: #d34854; }
.admin-body .report-metric {
  padding: 16px; background: linear-gradient(145deg, #f8fbfd, #f1f6f9); border-color: #dce7ee;
}
.admin-body .report-value { color: #173348; letter-spacing: -.025em; }
.admin-body .action-tile { min-height: 108px; border-color: #d9e5ec; }
.admin-body .action-tile:hover { border-color: rgba(17,157,135,.35); box-shadow: 0 14px 30px rgba(11,43,66,.10); transform: translateY(-3px); }
.admin-body .action-tile .stat-value { color: #0b8f79; }

.admin-body .btn {
  min-height: 42px; padding: 10px 17px; border-radius: 10px; font-size: 14px; font-weight: 700;
}
.admin-body .btn-sm { min-height: 35px; padding: 7px 12px; border-radius: 8px; font-size: 12px; }
.admin-body .btn-primary {
  color: #fff; background: linear-gradient(135deg, #12aa90, #087e6e);
  box-shadow: 0 6px 16px rgba(10,139,119,.20);
}
.admin-body .btn-primary:hover { background: linear-gradient(135deg, #0d987f, #066d60); }
.admin-body .btn-secondary { color: #304d63; background: #eff4f7; border-color: #d8e3ea; }
.admin-body .btn-secondary:hover { color: #17364d; background: #e3ecf2; }
.admin-body .btn-ghost { color: #506a7e; background: #fff; border-color: #ccdbe5; }
.admin-body .btn-ghost:hover { color: #17364d; background: #f5f8fa; }
.admin-body .btn-danger { background: #df4f5c; box-shadow: 0 5px 14px rgba(223,79,92,.16); }
.admin-body .btn-danger:hover { background: #c93e4a; }

.admin-body .input,
.admin-body select.input,
.admin-body textarea.input {
  min-height: 45px; color: #183247; background: #fbfdfe; border-color: #cfdee8; border-radius: 10px;
}
.admin-body .input:focus { border-color: #12a68d; box-shadow: 0 0 0 3px rgba(18,166,141,.12); background: #fff; }
.admin-body .label { color: #61798b; font-size: 10px; letter-spacing: .09em; }
.admin-body .search-bar {
  margin: 16px 0; padding: 12px; background: #fff; border: 1px solid #dce6ed; border-radius: 14px;
  box-shadow: 0 4px 18px rgba(10,38,58,.045);
}
.admin-body .help-text { color: #6b8192; line-height: 1.55; }
.admin-body .admin-main > .help-text {
  padding: 10px 13px; color: #3e657c; background: #edf7fb; border-left: 3px solid #39a9d1; border-radius: 0 9px 9px 0;
}

.admin-body .badge { padding: 4px 9px; font-size: 10px; letter-spacing: .055em; }
.admin-body .badge-success { color: #08725e; background: #def7ef; border: 1px solid #bfeade; }
.admin-body .badge-warning { color: #9a6515; background: #fff4d9; border: 1px solid #f4dfac; }
.admin-body .badge-danger { color: #b9313d; background: #fde7e9; border: 1px solid #f4c8cd; }
.admin-body .status-dot.online { background: #17b996; box-shadow: 0 0 0 3px rgba(23,185,150,.14); }
.admin-body .bulk-bar {
  padding: 11px 13px; background: #e7f7f3; border-color: #bde8dc; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(9,86,72,.06);
}
.admin-body .bulk-bar .bulk-summary { color: #087565; }
.admin-body .bulk-check,
.admin-body .bulk-all { accent-color: #109d87; }

.admin-body .card.table-wrap { padding: 0; border-radius: 14px; }
.admin-body .table-wrap { scrollbar-color: #a9becb transparent; scrollbar-width: thin; }
.admin-body table.data-table { font-size: 13px; }
.admin-body table.data-table th {
  padding: 12px 13px; color: #61788a; background: #f2f6f9; border-bottom-color: #d7e3eb;
  font-size: 10px; letter-spacing: .075em;
}
.admin-body table.data-table td { padding: 13px; color: #3a5367; border-top-color: #e5edf2; }
.admin-body table.data-table td strong { color: #163248; }
.admin-body table.data-table tbody tr { transition: background .14s ease; }
.admin-body table.data-table tbody tr:hover { background: #f3fbf9; }
.admin-body .table-actions { gap: 7px; }
.admin-body .table-actions .btn { min-height: 32px; }
.admin-body .detail-row { border-color: #e4ebf0; }
.admin-body .detail-key { color: #718596; }
.admin-body .detail-val { color: #183247; }
.admin-body .receipt-img { border-color: #d2e0e8; border-radius: 14px; }

.admin-body .bar-chart { padding-top: 6px; }
.admin-body .bar-track { border-radius: 8px; background: linear-gradient(180deg, #f2f7f9, #e8f0f4); }
.admin-body .bar-fill { background: linear-gradient(180deg, #55d9bd, #0e927d); box-shadow: 0 4px 10px rgba(14,146,125,.15); }
.admin-body .pagination a { color: #405d71; background: #fff; border-color: #d5e2e9; }
.admin-body .pagination a:hover { color: #087565; background: #e8f7f3; }
.admin-body .pagination .current { background: #0e927d; box-shadow: 0 4px 12px rgba(14,146,125,.18); }
.admin-body .avatar { color: #087565; background: #dff7f1; border: 2px solid #fff; box-shadow: 0 0 0 1px #cde5de; }
.admin-body .chat-window { background: #fff; border-color: #d9e5ec; box-shadow: var(--shadow-card); }
.admin-body .chat-messages { background: linear-gradient(180deg, #f7fafc, #eef4f7); }
.admin-body .chat-bubble.mine { background: linear-gradient(135deg, #139f88, #087666); }
.admin-body .chat-bubble.theirs { color: #2b465b; background: #fff; border: 1px solid #dce6ed; box-shadow: 0 3px 10px rgba(9,35,54,.05); }
.admin-body .chat-input-bar { background: #fff; border-color: #dce6ed; }
.admin-body .modal-overlay { background: rgba(4,21,34,.62); }
.admin-body .modal-box { background: #fff; border-color: #d6e2ea; box-shadow: var(--shadow-lg); }

/* Admin authentication */
.admin-login-body { background: #071a2b; color: #173348; }
.admin-login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(440px, .95fr); }
.admin-login-brand {
  position: relative; min-height: 100vh; padding: clamp(34px, 6vw, 78px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; background:
    radial-gradient(circle at 15% 18%, rgba(70,222,190,.20), transparent 29%),
    radial-gradient(circle at 85% 82%, rgba(35,133,181,.22), transparent 33%),
    linear-gradient(145deg, #071a2b, #0a2b43 63%, #0c3749);
}
.admin-login-brand::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -190px; top: 18%;
  border: 1px solid rgba(117,224,203,.14); border-radius: 50%; box-shadow: 0 0 0 55px rgba(117,224,203,.035), 0 0 0 110px rgba(117,224,203,.025);
}
.admin-login-logo { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; color: #fff; }
.admin-login-logo .logo-mark { width: 58px; height: 58px; flex: 0 0 58px; }
.admin-login-logo > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.admin-login-logo strong { font-size: 19px; }
.admin-login-logo small { margin-top: 6px; color: #6ad9c1; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.admin-login-intro { position: relative; z-index: 1; max-width: 560px; padding-bottom: 5vh; }
.admin-login-kicker {
  display: inline-flex; padding: 6px 11px; margin-bottom: 18px; border: 1px solid rgba(100,225,198,.24); border-radius: 999px;
  color: #70e0c8; background: rgba(44,188,158,.10); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.admin-login-intro h1 { max-width: 600px; margin: 0 0 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.admin-login-intro p { max-width: 490px; margin: 0; color: #a9c0cf; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; }
.admin-login-panel {
  min-width: 0; padding: clamp(24px, 5vw, 72px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #f3f7fa;
}
.admin-login-card {
  width: 100%; max-width: 455px; padding: clamp(26px, 4vw, 40px);
  background: #fff; border: 1px solid #dbe6ed; border-radius: 22px; box-shadow: 0 24px 65px rgba(7,35,55,.13);
}
.admin-login-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.admin-login-shield {
  width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center;
  color: #087565; background: #ddf7f0; border: 1px solid #c2ecdf; border-radius: 15px;
}
.admin-login-heading h2 { margin: 0; color: #102b40; font-size: 25px; letter-spacing: -.025em; }
.admin-login-heading p { margin: 3px 0 0; color: #788c9b; font-size: 12px; }
.admin-login-card .field { margin-bottom: 17px; }
.admin-login-card .label { color: #5c7487; font-size: 10px; letter-spacing: .1em; }
.admin-login-card .input { min-height: 52px; background: #f8fbfc; border-color: #cfdee7; border-radius: 11px; }
.admin-login-card .input:focus { border-color: #13a58c; background: #fff; box-shadow: 0 0 0 4px rgba(19,165,140,.11); }
.admin-login-card .btn-primary {
  min-height: 52px; margin-top: 4px; border-radius: 11px;
  background: linear-gradient(135deg, #14ad92, #087565); box-shadow: 0 9px 22px rgba(8,117,101,.22);
}
.admin-login-card .btn-primary:hover { background: linear-gradient(135deg, #109c84, #066657); }
.admin-player-link { margin: 23px 0 0; padding-top: 19px; text-align: center; color: #7a8e9e; border-top: 1px solid #e3ebf0; font-size: 13px; }
.admin-player-link a { color: #087c69; font-weight: 800; }
.admin-login-copyright { margin: 18px 0 0; color: #8ca0af; font-size: 11px; }

@media (max-width: 980px) {
  .admin-body .admin-sidebar { width: 238px; }
  .admin-body .admin-main { width: calc(100% - 238px); padding: 24px; }
  .admin-login-layout { grid-template-columns: minmax(320px, .82fr) minmax(400px, 1.18fr); }
  .admin-login-intro h1 { font-size: 42px; }
}

@media (max-width: 800px) {
  .admin-body .admin-shell { display: block; }
  .admin-body .admin-sidebar {
    width: 100%; height: auto; min-height: 0; padding: 10px 12px 8px;
    display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 26px rgba(4,24,39,.15); overflow: visible;
  }
  .admin-body .admin-brand { grid-column: 1; grid-row: 1; padding: 0; border: 0; }
  .admin-body .admin-brand .logo-mark { width: 38px; height: 38px; }
  .admin-body .admin-sidebar nav {
    grid-column: 1 / -1; grid-row: 2; margin: 9px -2px 0; padding: 0 2px 2px;
    display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none;
  }
  .admin-body .admin-sidebar nav::-webkit-scrollbar { display: none; }
  .admin-body .admin-sidebar nav a { min-height: 38px; flex: 0 0 auto; margin: 0; padding: 5px 9px; white-space: nowrap; }
  .admin-body .admin-sidebar nav a .nav-icon { width: 27px; height: 27px; flex-basis: 27px; }
  .admin-body .admin-sidebar nav a.active::before { inset: auto 10px -9px; width: auto; height: 3px; border-radius: 4px 4px 0 0; }
  .admin-body .admin-sidebar nav a:hover { transform: none; }
  .admin-body .admin-sidebar-actions {
    grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0;
    display: flex; flex-direction: row; gap: 6px;
  }
  .admin-body .admin-sidebar-actions .btn { width: auto; min-height: 36px; }
  .admin-body .admin-main { width: 100%; min-height: calc(100vh - 102px); padding: 20px 16px 32px; }
  .admin-body .admin-main > .row-between:first-child { align-items: flex-start; flex-wrap: wrap; }
  .admin-body .admin-main > .row-between:first-child > .row {
    width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none;
  }
  .admin-body .admin-main > .row-between:first-child > .row::-webkit-scrollbar { display: none; }
  .admin-body .card.table-wrap { max-width: 100%; overflow-x: auto; }
  .admin-body table.data-table { min-width: max-content; }
  .admin-body table.data-table th:last-child,
  .admin-body table.data-table td:last-child {
    position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -8px 0 14px rgba(13,42,62,.05);
  }
  .admin-body table.data-table th:last-child { z-index: 2; background: #f2f6f9; }
  .admin-body table.data-table tbody tr:hover td:last-child { background: #f3fbf9; }

  .admin-login-layout { grid-template-columns: 1fr; background: #f3f7fa; }
  .admin-login-brand { min-height: auto; padding: 24px 22px 30px; justify-content: flex-start; gap: 34px; }
  .admin-login-brand::after { width: 250px; height: 250px; right: -120px; top: -80px; }
  .admin-login-logo .logo-mark { width: 46px; height: 46px; flex-basis: 46px; }
  .admin-login-intro { padding: 0; }
  .admin-login-intro h1 { max-width: 620px; margin-bottom: 9px; font-size: clamp(27px, 7vw, 38px); }
  .admin-login-intro p { max-width: 620px; font-size: 14px; line-height: 1.55; }
  .admin-login-kicker { display: none; }
  .admin-login-panel { padding: 24px 16px 30px; justify-content: flex-start; }
  .admin-login-card { max-width: 560px; }
}

@media (max-width: 560px) {
  .admin-body .admin-brand-copy strong { font-size: 13px; }
  .admin-body .admin-brand-copy small { font-size: 8px; }
  .admin-body .admin-sidebar-actions .btn { width: 36px; min-width: 36px; padding: 7px; overflow: hidden; font-size: 0; }
  .admin-body .admin-sidebar-actions .btn .icon { width: 17px; height: 17px; }
  .admin-body .admin-main { padding-inline: 12px; }
  .admin-body .admin-main > h1,
  .admin-body .admin-main > div:first-child h1,
  .admin-body .admin-main > .row-between:first-child h1 { font-size: 25px; }
  .admin-body .stat-card { min-height: 96px; padding: 15px; }
  .admin-body .stat-card .stat-value { font-size: 22px; }
  .admin-body .search-bar { flex-wrap: wrap; }
  .admin-body .search-bar .input { flex: 1 0 100%; }
  .admin-body .search-bar .btn { flex: 1; }
  .admin-body .bulk-bar { align-items: stretch; }
  .admin-body .bulk-bar .bulk-summary { flex: 1 0 100%; }
  .admin-body .bulk-bar .btn { flex: 1; }
  .admin-body .detail-row { gap: 10px; }
  .admin-body .detail-key { flex: 0 0 42%; }
  .admin-body .detail-val { min-width: 0; }
  .admin-body .chat-window { height: 68vh; }
  .admin-body .chat-input-bar { padding: 9px; }
  .admin-body .chat-input-bar .btn { padding-inline: 13px; }
  .admin-login-brand { gap: 24px; padding-bottom: 24px; }
  .admin-login-intro p { display: none; }
  .admin-login-card { padding: 24px 20px; border-radius: 18px; }
  .admin-login-heading { margin-bottom: 22px; }
  .admin-login-heading h2 { font-size: 22px; }
}

/* Admin account and bpexch master routing */
.admin-body .admin-page-heading { margin-bottom: 22px; }
.admin-body .admin-page-heading h1 { margin: 4px 0 7px; }
.admin-body .admin-page-heading p,
.admin-body .section-title-row p { max-width: 760px; margin: 0; color: #667e90; line-height: 1.55; }
.admin-body .admin-eyebrow {
  color: #0b8f79; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase;
}
.admin-body .admin-account-grid { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(360px, 1.18fr); gap: 16px; }
.admin-body .admin-settings-card { padding: 22px; }
.admin-body .admin-settings-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.admin-body .admin-settings-heading h2 { margin: 0; font-size: 19px; }
.admin-body .admin-settings-heading p { margin: 3px 0 0; color: #708595; font-size: 12px; line-height: 1.45; }
.admin-body .admin-settings-icon {
  width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center;
  color: #087565; background: #dff7f1; border: 1px solid #c5ebdf; border-radius: 13px;
}
.admin-body .admin-settings-icon.master { color: #246f9d; background: #e5f3fb; border-color: #c9e4f3; }
.admin-body .admin-settings-card .field { margin-bottom: 13px; }
.admin-body .master-accounts-section { margin-top: 30px; }
.admin-body .section-title-row { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.admin-body .section-title-row h2 { margin: 4px 0 5px; font-size: 22px; }
.admin-body .section-title-row .btn { flex: 0 0 auto; }
.admin-body .master-account-list { display: grid; gap: 14px; }
.admin-body .master-account-card { position: relative; padding: 20px; overflow: hidden; }
.admin-body .master-account-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #b5c5cf;
}
.admin-body .master-account-card.is-primary::before { background: linear-gradient(180deg, #48d5b7, #087565); }
.admin-body .master-account-card.is-primary { border-color: #bfe5db; box-shadow: 0 10px 28px rgba(8,117,101,.09); }
.admin-body .master-account-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-body .master-account-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.admin-body .master-account-avatar {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  color: #0a7d6b; background: linear-gradient(145deg, #e1faf4, #c8efe5); border: 1px solid #b8e5d9; border-radius: 14px;
  font-size: 19px; font-weight: 900;
}
.admin-body .master-account-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-body .master-account-title-row h3 { margin: 0; font-size: 17px; }
.admin-body .master-account-identity p { margin: 4px 0 0; color: #6e8393; font-size: 12px; }
.admin-body .master-security-note,
.admin-body .primary-routing-note { display: inline-flex; align-items: center; gap: 6px; color: #168873; font-size: 11px; font-weight: 750; }
.admin-body .master-edit-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.admin-body .master-edit-form .field { margin: 0; }
.admin-body .master-edit-form .btn { min-height: 45px; white-space: nowrap; }
.admin-body .master-account-actions { min-height: 35px; margin-top: 14px; padding-top: 14px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #e5edf2; }
.admin-body .master-account-actions form { margin: 0; }
.admin-body .master-account-actions .primary-routing-note { margin: 0; }
.admin-body .master-empty-state { padding: 34px; text-align: center; }
.admin-body .master-empty-state .admin-settings-icon { margin: 0 auto 12px; }
.admin-body .master-empty-state h3 { margin: 0 0 5px; }
.admin-body .master-empty-state p { margin: 0; color: #6b8192; }
.admin-body .btn:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }

@media (max-width: 1100px) {
  .admin-body .admin-account-grid { grid-template-columns: 1fr; }
  .admin-body .master-edit-form { grid-template-columns: 1fr 1fr; }
  .admin-body .master-edit-form .btn { width: 100%; }
}

@media (max-width: 700px) {
  .admin-body .section-title-row { align-items: flex-start; flex-direction: column; }
  .admin-body .master-account-top { flex-direction: column; }
  .admin-body .master-edit-form { grid-template-columns: 1fr; }
  .admin-body .master-account-actions { align-items: stretch; flex-direction: column; }
  .admin-body .master-account-actions form,
  .admin-body .master-account-actions .btn { width: 100%; }
  .admin-body .master-account-actions .primary-routing-note { padding: 5px 0; }
}

/* ============================================================
   Dashboard: bpexch credentials card + compact wallet rows.
   Palette discipline: white surfaces, navy ink (#16283A),
   one green accent (#0A9D6C) reserved for the primary action,
   navy guidance tags. Nothing else gets color.
   ============================================================ */
/* Roman Urdu second line, shown under every English label */
/* Roman Urdu sits under the English on nearly every label. Players who need
   it are the ones least able to read small type, so it stays legible. */
.bp-ur { display: block; color: var(--text-muted); font-size: 12.5px; font-weight: 600; font-style: normal; }

.bp-card {
  padding: 20px 18px 16px;
  border-radius: var(--radius);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
}
.bp-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.bp-card-logo { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; }
.bp-card-head h2 { margin: 0; color: var(--text-primary); font-size: 16px; font-weight: 800; }
.bp-card-head p { margin: 1px 0 0; }

.bp-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.bp-step-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 11px;
}
/* Steps 1 and 2 pulse in red so the eye lands on what to press first */
.bp-num {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--danger);
  font-size: 11px; font-weight: 800; line-height: 1;
  animation: bp-num-pulse 1.6s ease-in-out infinite;
}
.bp-step-row:nth-child(2) .bp-num { animation-delay: .35s; }
@keyframes bp-num-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  55% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.bp-num-light { color: var(--danger); background: #fff; animation: none; box-shadow: none; }
.bp-step-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0; }
.bp-step-en { color: var(--text-primary); font-size: 12.5px; font-weight: 700; }
.bp-step-ur { color: var(--brand-dark); font-size: 12px; font-weight: 600; }
.bp-value {
  margin-top: 2px; color: var(--ink); font-size: 15px; font-weight: 800;
  letter-spacing: .01em; overflow-wrap: anywhere;
}
.bp-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 34px; min-width: 68px; padding: 7px 11px;
  border: 1px solid var(--brand-border); border-radius: 9px;
  color: var(--brand-dark); background: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.bp-copy:hover { background: var(--brand-soft); border-color: var(--brand); }

/* Whole row is tappable, not just the small chip */
.bp-tap-row { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s ease, border-color .15s ease; }
.bp-tap-row:hover { background: #cdf7da; border-color: var(--brand); }
.bp-tap-row:active { background: #bff2cf; }
.bp-tap-row:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.bp-tap-row:hover .bp-copy { background: var(--brand); border-color: var(--brand); color: #fff; }
.bp-tap-row.is-copied { background: var(--brand); border-color: var(--brand-dark); }
.bp-tap-row.is-copied .bp-step-en,
.bp-tap-row.is-copied .bp-value { color: #fff; }
.bp-tap-row.is-copied .bp-step-ur { color: var(--brand-light); }
.bp-tap-row.is-copied .bp-copy { background: #fff; border-color: #fff; color: var(--brand-dark); }
.bp-tap-row.is-copied .bp-num { background: #fff; color: var(--danger); animation: none; }

/* Step 3 is the action row: brand green, with the Betpro mark on the button */
.bp-step-last { background: var(--brand); border-color: var(--brand-dark); }
.bp-step-last .bp-step-en { color: #fff; }
.bp-step-last .bp-step-ur { color: var(--brand-light); }
/* Step 3: the whole row is the button, so a mis-tap still opens bpexch */
.bp-step-last { padding: 0; overflow: hidden; }
.bp-open-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border: none; background: none; cursor: pointer;
  text-align: left; font: inherit;
  transition: background .15s ease;
}
.bp-open-row:hover { background: var(--brand-dark); }
.bp-open-row:active { transform: scale(.995); }
.bp-open-row .bp-step-main { display: flex; flex-direction: column; }
.bp-open-pill {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  min-height: 36px; padding: 7px 11px;
  border-radius: 9px; background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 800;
}
.bp-marks { display: inline-flex; align-items: center; }
.bp-marks img { width: 19px; height: 19px; border-radius: 50%; }
.bp-mark-bp {
  width: 19px; height: 19px; margin-left: -5px;
  display: grid; place-items: center; border-radius: 50%;
  background: #5fd6cf; border: 1.5px solid #fff;
  color: #10202c; font-size: 8.5px; font-weight: 800; font-style: italic; letter-spacing: -.03em;
}
.bp-click-dot { display: inline-flex; color: var(--brand-dark); animation: bp-click 1.9s ease-in-out infinite; }
@keyframes bp-click {
  0%, 62%, 100% { transform: translate(0, 0); }
  70% { transform: translate(-2px, -2px); }
  76%, 84% { transform: translate(0, 0); }
}

.bp-caption { margin: 10px 0 0; color: var(--text-muted); font-size: 11.5px; text-align: center; }
.bp-caption .bp-ur { margin-top: 1px; }
.bp-caption-strong { color: var(--brand-dark); font-weight: 800; }
.bp-caption-strong .bp-ur { color: var(--brand-dark); }

/* Compact balance row */
.balance-line {
  margin-top: 12px;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: #fff; border: 1px solid #E3E9F0; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,40,64,.05);
}
.balance-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; color: #33475C; background: #EDF2F7; }
.balance-copy { display: flex; flex-direction: column; gap: 1px; }
.balance-label { color: #64748B; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.balance-value { color: #16283A; font-size: 19px; font-weight: 800; line-height: 1.2; }
.balance-value.unavailable { color: #B07714; font-size: 15px; }
.balance-refresh { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 9px 14px; border-radius: 11px; color: #33475C; background: #F1F5F8; font-size: 13px; font-weight: 700; }
.balance-refresh:hover { background: #E8EEF4; }

/* Deposit / withdraw action cards */
.primary-actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action-card {
  display: flex; align-items: center; gap: 13px;
  min-height: 78px; padding: 14px 16px;
  background: #fff; border: 1px solid #E3E9F0; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,40,64,.05);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.action-card:hover { transform: translateY(-2px); border-color: #B9CBDA; box-shadow: 0 10px 24px -10px rgba(16,40,64,.2); }
.action-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 12px; }
.action-icon-deposit { color: #0A9D6C; background: #E9F6F0; }
.action-icon-withdraw { color: #2270C8; background: #EAF2FC; }
.action-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.action-copy strong { color: #16283A; font-size: 15.5px; font-weight: 800; }
.action-copy small { color: #64748B; font-size: 12px; font-weight: 600; }
.action-chevron { margin-left: auto; color: #A8B8C7; font-size: 24px; line-height: 1; }

/* Payment method tiles: one uniform size, art contained */
.payment-logo,
.payment-logo-bank,
.dashboard-page .payment-logo,
.dashboard-page .payment-logo-bank {
  width: 64px; height: 56px; flex: 0 0 64px;
  border-radius: 12px; overflow: hidden;
}
.payment-logo-jazzcash img { transform: none; }
.payment-method-card { min-height: 84px; }

@media (max-width: 620px) {
  .dashboard-greeting { margin-bottom: 12px; }
  .dashboard-greeting h1 { font-size: 21px; }
  .dashboard-avatar { width: 44px; height: 44px; }
  .bp-card { padding: 14px 12px 13px; border-radius: 14px; }
  .bp-card-head { margin-bottom: 11px; gap: 9px; }
  .bp-card-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .bp-card-head h2 { font-size: 15px; }
  .bp-step-row { padding: 8px 10px; gap: 9px; }
  .bp-num { width: 20px; height: 20px; flex-basis: 20px; font-size: 10.5px; }
  .bp-step-en { font-size: 12px; }
  .bp-step-ur { font-size: 12px; }
  .bp-value { font-size: 14.5px; }
  .bp-copy { min-width: 62px; min-height: 32px; padding: 7px 9px; font-size: 11.5px; }
  .bp-step-last { padding: 0; }
  .bp-open-row { padding: 8px 10px; gap: 9px; }
  .bp-open-pill { min-height: 32px; padding: 6px 9px; font-size: 12px; }
  .bp-marks img, .bp-mark-bp { width: 17px; height: 17px; }
  .bp-mark-bp { font-size: 8px; }
  .balance-line { padding: 11px 13px; }
  .balance-value { font-size: 17px; }
  .primary-actions { grid-template-columns: 1fr; gap: 9px; }
  .action-card { min-height: 68px; padding: 12px 14px; }
}
@media (max-width: 390px) {
  .bp-cred-value { font-size: 16px; }
  .balance-refresh { padding-inline: 11px; }
}

/* ---- Android app download page ---- */
.app-download { max-width: 760px; margin-inline: auto; }
.app-dl-card {
  padding: 30px 24px 26px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--brand-border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.app-dl-logo { width: 76px; height: 76px; border-radius: 50%; }
.app-dl-card h1 { margin: 14px 0 4px; font-size: 24px; }
.app-dl-sub { margin: 0 0 20px; color: var(--text-secondary); font-size: 14px; }
.app-dl-btn { min-height: 52px; padding-inline: 34px; font-size: 16px; }
.app-dl-note { margin: 12px 0 0; color: var(--text-muted); font-size: 12px; }

.app-dl-steps { margin-top: 26px; padding: 22px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); }
.app-dl-steps h2 { margin: 0 0 14px; font-size: 18px; }
.app-dl-steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.app-dl-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  background: var(--brand-light); border: 1px solid var(--brand-border); border-radius: 12px; }
.app-dl-steps li span { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-dark); color: #fff; font-size: 12px; font-weight: 800; }
.app-dl-steps li strong { display: block; font-size: 13.5px; }
.app-dl-steps li small { display: block; color: var(--brand-dark); font-size: 11.5px; font-weight: 600; }
.app-dl-help { margin: 14px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }

.app-dl-features { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-dl-features > div { padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.app-dl-features strong { display: block; margin-bottom: 3px; font-size: 13.5px; }
.app-dl-features small { color: var(--text-muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 620px) {
  .app-dl-features { grid-template-columns: 1fr; }
  .app-dl-card { padding: 24px 16px 20px; }
  .app-dl-card h1 { font-size: 20px; }
  .nav-get-app { display: none; }
}

/* ============================================================
   Professional home page (home-v2). Fintech/wallet framing.
   Uses the brand green + a deep navy, never gambling motifs.
   ============================================================ */
.home-v2 { background: #fff; }
/* Premium header: contained bar, ringed logo lockup, clear button hierarchy */
.home-v2 .site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid #e9f0ec; }
.home-v2 .site-header .bar { max-width: 1120px; margin: 0 auto; padding: 13px 20px; }
.home-v2 .brand { display: flex; align-items: center; gap: 11px; }
.home-v2 .brand .logo-mark { width: 38px; height: 38px; padding: 2px; background: #fff; border: 1px solid var(--brand-border); box-shadow: 0 4px 12px -4px rgba(34,180,85,.5); }
.home-v2 .brand-word { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text-primary); }
.home-v2 .brand-word strong { font-weight: 800; color: var(--brand-dark); }
.home-v2 .header-actions { gap: 8px; align-items: center; }
.home-v2 .header-actions .btn-sm { min-height: 42px; padding-inline: 18px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.home-v2 .nav-get-app { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); background: transparent; }
.home-v2 .nav-get-app::before { content: "\2193"; font-weight: 900; color: var(--brand); }
.home-v2 .nav-get-app:hover { background: var(--brand-light); color: var(--brand-dark); }
.home-v2 .header-actions .btn-ghost { color: var(--text-primary); border: 1px solid #dce6e0; }
.home-v2 .header-actions .btn-ghost:hover { background: #f2f7f4; border-color: #c7d6cd; }
.home-v2 .header-actions .btn-primary { box-shadow: 0 6px 16px -6px rgba(34,180,85,.65); }
.home-v2 .header-actions .btn-primary:hover { transform: translateY(-1px); }
@media (max-width: 560px) { .home-v2 .brand-word { font-size: 15px; } .home-v2 .header-actions .btn-sm { padding-inline: 13px; } }
.hx-tag { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--brand-light);
  color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hx-tag-light { background: rgba(255,255,255,.14); color: #bff0cf; }

/* Hero */
.hx-hero { position: relative; overflow: hidden; padding: clamp(40px,7vw,84px) 20px 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(34,180,85,.16), transparent 60%), linear-gradient(180deg, #0a2f1c 0%, #06251a 55%, #04120d 100%); color: #fff; }
.hx-hero-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #9fe6b8; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-mint); box-shadow: 0 0 0 4px rgba(140,232,148,.22); }
.hx-hero h1 { margin: 16px 0 0; font-size: clamp(34px,5.4vw,60px); line-height: 1.04; letter-spacing: -.02em; font-weight: 900; }
.hx-hero h1 span { color: var(--brand-mint); }
.hx-hero-copy > p { margin: 18px 0 0; max-width: 520px; color: #c7dfd0; font-size: clamp(15px,2vw,18px); line-height: 1.6; }
.hx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hx-btn-lg { min-height: 54px; padding-inline: 28px; font-size: 16px; font-weight: 800; border-radius: 14px; }
.hx-btn-ghost { color: #fff; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); }
.hx-btn-ghost:hover { background: rgba(255,255,255,.18); }
.hx-hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hx-hero-trust span { display: inline-flex; align-items: center; gap: 7px; color: #a9cbb8; font-size: 13px; font-weight: 600; }
.hx-hero-trust .icon { color: var(--brand-mint); }

/* Hero card mockup */
.hx-hero-card { position: relative; display: grid; place-items: center; min-height: 320px; }
.hx-card { width: 300px; padding: 22px; border-radius: 22px; color: #06251a;
  background: linear-gradient(145deg, #8ce894, #22b455); box-shadow: 0 26px 60px -20px rgba(4,18,13,.7); }
.hx-card-top { display: flex; align-items: center; justify-content: space-between; }
.hx-card-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.hx-card-brand img { border-radius: 50%; }
.hx-card-chip { width: 34px; height: 25px; border-radius: 6px; background: linear-gradient(135deg,#f4d47a,#c99b2e); }
.hx-card-balance { margin: 26px 0 20px; }
.hx-card-balance small { color: #0b3a26; font-size: 12px; font-weight: 700; opacity: .8; }
.hx-card-balance strong { display: block; margin-top: 4px; font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.hx-card-balance strong span { font-size: 20px; opacity: .7; }
.hx-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hx-card-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 12px;
  font-size: 13px; font-weight: 800; background: rgba(255,255,255,.85); color: #0b3a26; }
.hx-float { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 12px;
  background: #fff; color: #0b3a26; font-size: 12px; font-weight: 800; box-shadow: 0 14px 30px -10px rgba(4,18,13,.5); }
.hx-float .icon { color: var(--brand); }
.hx-float-1 { top: 34px; right: 8px; animation: hx-bob 3s ease-in-out infinite; }
.hx-float-2 { bottom: 40px; left: 0; animation: hx-bob 3s ease-in-out infinite .8s; }
@keyframes hx-bob { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }

.hx-logos { max-width: 1120px; margin: 46px auto 0; padding: 22px 0 30px; display: flex; align-items: center; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.10); flex-wrap: wrap; }
.hx-logos > span { color: #7fa891; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hx-logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hx-logo-bank { display: inline-flex; align-items: center; gap: 7px; color: #cfe6d8; font-size: 14px; font-weight: 700; }

/* Stats strip */
.hx-stats { background: var(--brand-dark); }
.hx-stats-inner { max-width: 1120px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.hx-stats-inner div { text-align: center; color: #fff; }
.hx-stats-inner strong { display: block; font-size: clamp(22px,3vw,30px); font-weight: 900; }
.hx-stats-inner span { color: #bff0cf; font-size: 13px; }

/* Sections */
.hx-section { max-width: 1120px; margin: 0 auto; padding: clamp(56px,8vw,88px) 20px; }
.hx-section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.hx-section-head h2 { margin: 14px 0 0; font-size: clamp(26px,4vw,40px); font-weight: 900; letter-spacing: -.02em; color: var(--text-primary); }
.hx-section-head p { margin: 12px 0 0; color: var(--text-secondary); font-size: 16px; }

.hx-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.hx-feature { padding: 26px; background: #fff; border: 1px solid #e7eef0; border-radius: 20px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.hx-feature:hover { transform: translateY(-4px); border-color: #cfe3d6; box-shadow: 0 18px 40px -22px rgba(9,30,18,.4); }
.hx-feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; margin-bottom: 16px; }
.hx-fi-green { color: var(--brand-dark); background: var(--brand-light); }
.hx-fi-blue { color: #1565b0; background: #e6f1fb; }
.hx-fi-amber { color: #a5680a; background: #fbf0d8; }
.hx-feature h3 { margin: 0 0 7px; font-size: 18px; font-weight: 800; color: var(--text-primary); }
.hx-feature p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }

/* Animated "Get the app" button: a glow pulse plus a bouncing down-arrow */
.hx-getapp { position: relative; overflow: hidden; }
.hx-getapp-icon { display: inline-flex; }
.hx-getapp-arrow { display: inline-flex; margin-left: 2px; animation: hx-arrow 1.3s ease-in-out infinite; }
@keyframes hx-arrow { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.hx-getapp::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(140,232,148,.5); animation: hx-glow 2s ease-out infinite; pointer-events: none; }
@keyframes hx-glow { 0% { box-shadow: 0 0 0 0 rgba(140,232,148,.5); } 70%,100% { box-shadow: 0 0 0 12px rgba(140,232,148,0); } }
.hx-store-anim .hx-store-ic { display: inline-flex; animation: hx-arrow 1.3s ease-in-out infinite; color: var(--brand); }
.hx-store-anim { position: relative; transition: transform .12s ease; }
.hx-store-anim:hover { transform: translateY(-2px); }
.hx-store-anim::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: hx-glow-w 2s ease-out infinite; pointer-events: none; }
@keyframes hx-glow-w { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70%,100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) {
  .hx-getapp-arrow, .hx-store-anim .hx-store-ic, .hx-getapp::after, .hx-store-anim::after, .hx-float { animation: none; }
}

/* Install guide */
.hx-install { max-width: 1120px; margin: 0 auto; padding: clamp(52px,7vw,80px) 20px; }
.hx-install-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.hx-inst { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--line, #e7eef0); border-radius: 20px; text-align: center; }
.hx-inst-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px; box-shadow: 0 8px 16px -6px rgba(34,180,85,.6); }
.hx-inst-ico { width: 54px; height: 54px; margin: 10px auto 14px; display: grid; place-items: center; border-radius: 16px; color: var(--brand-dark); background: var(--brand-light); }
.hx-inst h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.hx-inst p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.hx-inst strong { color: var(--text-primary); }
.hx-inst-ur { display: block; margin-top: 8px; color: var(--brand-dark); font-size: 12.5px; font-weight: 600; }
.hx-install-note { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 640px; margin: 24px auto 0;
  padding: 12px 16px; border-radius: 12px; background: #f5faf7; color: var(--text-secondary); font-size: 13px; text-align: center; }
.hx-install-note .icon { color: var(--brand); flex-shrink: 0; }
.hx-install-cta { text-align: center; margin-top: 22px; }

/* App band */
.hx-appband { background: linear-gradient(135deg, #0a2f1c, #06251a); color: #fff; }
.hx-appband-inner { max-width: 1120px; margin: 0 auto; padding: clamp(48px,7vw,72px) 20px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
.hx-appband-copy h2 { margin: 14px 0 0; font-size: clamp(26px,4vw,38px); font-weight: 900; letter-spacing: -.02em; }
.hx-appband-copy > p { margin: 12px 0 0; max-width: 460px; color: #c7dfd0; font-size: 16px; line-height: 1.6; }
.hx-appband-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hx-store-btn { display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px; border-radius: 14px; background: #fff; color: #06251a; }
.hx-store-btn .icon { color: var(--brand); }
.hx-store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.hx-store-btn small { font-size: 11px; font-weight: 600; opacity: .7; }
.hx-store-btn strong { font-size: 17px; font-weight: 900; }
.hx-appband-meta { display: inline-flex; align-items: center; gap: 6px; color: #a9cbb8; font-size: 13px; font-weight: 600; }
.hx-appband-meta .icon { color: var(--brand-mint); }
.hx-appband-phone { display: grid; place-items: center; }
.hx-phone { width: 190px; padding: 8px; border-radius: 30px; background: #04120d; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); }
.hx-phone-notch { width: 70px; height: 5px; margin: 4px auto 6px; border-radius: 999px; background: #22332a; }
.hx-phone-body { border-radius: 22px; padding: 20px 16px 18px; text-align: center; background: linear-gradient(180deg,#f4fbf6,#e7f5ec); }
.hx-phone-logo { width: 46px; height: 46px; border-radius: 50%; }
.hx-phone-name { display: block; margin: 8px 0 0; color: var(--text-primary); font-size: 13px; font-weight: 900; }
.hx-phone-bal { margin: 14px 0; padding: 12px; border-radius: 14px; background: linear-gradient(145deg,#8ce894,#22b455); color: #06251a; }
.hx-phone-bal small { font-size: 10px; font-weight: 700; opacity: .8; }
.hx-phone-bal strong { display: block; font-size: 20px; font-weight: 900; }
.hx-phone-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-top: 8px; border-radius: 11px; background: #fff;
  color: var(--text-primary); font-size: 12.5px; font-weight: 800; box-shadow: 0 2px 6px -3px rgba(9,30,18,.2); }
.hx-phone-row .icon { color: var(--brand-dark); }

/* Steps */
.hx-steps { background: #f5faf7; }
.hx-steps > .hx-section-head { padding-top: clamp(56px,8vw,80px); }
.hx-steps-grid { max-width: 1000px; margin: 0 auto; padding: 0 20px clamp(56px,8vw,80px); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 8px; }
.hx-step { text-align: center; padding: 0 10px; }
.hx-step-num { width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 22px; font-weight: 900; box-shadow: 0 12px 24px -10px rgba(34,180,85,.6); }
.hx-step h3 { margin: 0 0 7px; font-size: 18px; font-weight: 800; color: var(--text-primary); }
.hx-step p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.hx-step-line { align-self: center; height: 2px; margin-top: 26px; background: repeating-linear-gradient(90deg, #bfe3cc 0 8px, transparent 8px 16px); }

/* Security band */
.hx-security { background: linear-gradient(135deg, #0a2f1c, #06251a); color: #fff; }
.hx-security-inner { max-width: 1120px; margin: 0 auto; padding: clamp(56px,8vw,84px) 20px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px; }
.hx-security-copy h2 { margin: 14px 0 0; font-size: clamp(26px,4vw,38px); font-weight: 900; letter-spacing: -.02em; }
.hx-security-copy > p { margin: 14px 0 0; max-width: 560px; color: #c7dfd0; font-size: 16px; line-height: 1.6; }
.hx-security-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hx-security-list li { display: flex; align-items: center; gap: 10px; color: #dbeee3; font-size: 15px; }
.hx-security-list .icon { color: var(--brand-mint); flex-shrink: 0; }
.hx-security-badge { display: grid; place-items: center; }
.hx-shield { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 40px;
  color: var(--brand-mint); background: rgba(140,232,148,.10); border: 1px solid rgba(140,232,148,.25); }

/* FAQ */
.hx-faq { max-width: 860px; margin: 0 auto; padding: clamp(56px,8vw,88px) 20px; }
.hx-faq-grid { display: flex; flex-direction: column; gap: 12px; }
.hx-faq-item { padding: 4px 20px; background: #fff; border: 1px solid #e7eef0; border-radius: 16px; }
.hx-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 0; font-size: 16px; font-weight: 800; color: var(--text-primary); }
.hx-faq-item summary::-webkit-details-marker { display: none; }
.hx-faq-x { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.hx-faq-x::before, .hx-faq-x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px;
  background: var(--brand); transform: translate(-50%,-50%); transition: transform .2s ease; border-radius: 2px; }
.hx-faq-x::after { transform: translate(-50%,-50%) rotate(90deg); }
.hx-faq-item[open] .hx-faq-x::after { transform: translate(-50%,-50%) rotate(0); }
.hx-faq-item p { margin: 0 0 16px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* Bottom CTA */
.hx-cta { padding: 20px 20px clamp(48px,7vw,72px); }
.hx-cta-inner { max-width: 900px; margin: 0 auto; padding: clamp(40px,6vw,60px) 30px; text-align: center; border-radius: 28px;
  color: #fff; background: radial-gradient(600px 300px at 50% -20%, rgba(140,232,148,.25), transparent), linear-gradient(135deg, #178a41, #0a5f2c); }
.hx-cta-inner h2 { margin: 0; font-size: clamp(26px,4vw,40px); font-weight: 900; letter-spacing: -.02em; }
.hx-cta-inner p { margin: 12px 0 0; color: #d6f3e0; font-size: 16px; }
.hx-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

@media (max-width: 860px) {
  .hx-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hx-hero-copy > p { margin-inline: auto; }
  .hx-hero-actions, .hx-hero-trust { justify-content: center; }
  .hx-hero-card { margin-top: 20px; }
  .hx-security-inner { grid-template-columns: 1fr; text-align: center; }
  .hx-security-list { align-items: center; }
  .hx-security-badge { order: -1; }
  .hx-feature-grid { grid-template-columns: 1fr; }
  .hx-install-grid { grid-template-columns: 1fr; gap: 26px; }
  .hx-steps-grid { grid-template-columns: 1fr; gap: 26px; }
  .hx-step-line { display: none; }
  .hx-appband-inner { grid-template-columns: 1fr; text-align: center; }
  .hx-appband-copy > p { margin-inline: auto; }
  .hx-appband-actions { justify-content: center; }
  .hx-appband-phone { order: -1; }
}
@media (max-width: 560px) {
  .hx-stats-inner { grid-template-columns: 1fr 1fr; }
  .hx-feature-grid { grid-template-columns: 1fr; }
  .hx-hero-trust { gap: 12px; }
  .hx-float-1, .hx-float-2 { display: none; }
}

/* ============================================================
   Professional footer + static content pages (about, contact,
   faq, terms, privacy). Shares the home-v2 typography.
   ============================================================ */
.site-footer { background: #06251a; color: #cfe0d6; }
.site-footer-inner { max-width: 1120px; margin: 0 auto; padding: clamp(40px,6vw,60px) 20px 30px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer-brand .brand { display: inline-flex; align-items: center; gap: 10px; }
.site-footer-brand .logo-mark { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.site-footer-brand .brand-word { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #fff; }
.site-footer-brand .brand-word strong { font-weight: 800; color: var(--brand-mint); }
.site-footer-brand p { margin: 14px 0 0; max-width: 280px; color: #8fb0a0; font-size: 14px; line-height: 1.6; }
.site-footer-col h4 { margin: 0 0 14px; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7fa891; }
.site-footer-col a { display: block; padding: 6px 0; color: #cfe0d6; font-size: 14.5px; transition: color .12s ease; }
.site-footer-col a:hover { color: var(--brand-mint); }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,.09); }
.site-footer-bottom { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: center; justify-content: space-between; color: #7fa891; font-size: 13px; }
.site-footer-note { color: #6f9483; }
@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
  .site-footer-brand { grid-column: 1 / -1; }
}

/* Page hero + body shared by content pages */
.page-v2 { background: #fff; }
.pg-hero { color: #fff; background: radial-gradient(900px 400px at 80% -20%, rgba(34,180,85,.16), transparent 60%), linear-gradient(180deg, #0a2f1c, #06251a); }
.pg-hero-inner { max-width: 820px; margin: 0 auto; padding: clamp(48px,7vw,84px) 20px; text-align: center; }
.pg-hero-inner h1 { margin: 16px 0 0; font-family: var(--font-display); font-size: clamp(30px,5vw,50px); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; }
.pg-hero-inner p { margin: 16px auto 0; max-width: 560px; color: #c7dfd0; font-size: 17px; line-height: 1.6; }
.pg-hero-sm .pg-hero-inner { padding: clamp(40px,5vw,60px) 20px; }
.pg-hero-sm .pg-hero-inner p { color: #9fbfae; font-size: 14px; }

.pg-body { max-width: 860px; margin: 0 auto; padding: clamp(44px,6vw,72px) 20px; }
.pg-prose h2 { margin: 34px 0 12px; font-family: var(--font-display); font-size: clamp(20px,3vw,26px); font-weight: 700; color: var(--text-primary); }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose p { margin: 0 0 14px; color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
.pg-prose a { color: var(--brand-dark); font-weight: 700; }
.pg-legal p { font-size: 15px; }

.pg-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 8px 0 8px; }
.pg-value { padding: 22px; background: #fff; border: 1px solid #e7eef0; border-radius: 18px; }
.pg-value-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 14px; }
.pg-value h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.pg-value p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }

.pg-cta-card { margin-top: 40px; padding: 34px 24px; text-align: center; border-radius: 24px; color: #fff;
  background: radial-gradient(500px 240px at 50% -30%, rgba(140,232,148,.24), transparent), linear-gradient(135deg, #178a41, #0a5f2c); }
.pg-cta-card h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.pg-cta-card p { margin: 8px 0 20px; color: #d6f3e0; }

.pg-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pg-contact-card { display: block; padding: 28px; background: #fff; border: 1px solid #e7eef0; border-radius: 20px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pg-contact-card:hover { transform: translateY(-4px); border-color: #cfe3d6; box-shadow: 0 18px 40px -22px rgba(9,30,18,.4); }
.pg-contact-card h3 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.pg-contact-card p { margin: 0 0 16px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.pg-contact-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); font-weight: 800; font-size: 14px; }
.pg-note-box { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 16px 18px; border-radius: 16px;
  background: var(--brand-light); border: 1px solid var(--brand-border); }
.pg-note-box .icon { color: var(--brand-dark); flex-shrink: 0; margin-top: 2px; }
.pg-note-box p { margin: 0; color: var(--brand-dark); font-size: 14px; line-height: 1.6; font-weight: 600; }

.pg-faq { display: flex; flex-direction: column; gap: 12px; }
.pg-faq-item { padding: 4px 20px; background: #fff; border: 1px solid #e7eef0; border-radius: 16px; }
.pg-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 0; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); }
.pg-faq-item summary::-webkit-details-marker { display: none; }
.pg-faq-item p { margin: 0 0 18px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

@media (max-width: 720px) {
  .pg-values { grid-template-columns: 1fr; }
  .pg-contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Online payment: instant top-up block, redirect and result pages
   ============================================================ */
.pay-online { margin-bottom: 18px; padding: 20px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, #f0fbf4, #e7f7ed); border: 1px solid var(--brand-border); }
.pay-online-head { margin-bottom: 16px; }
.pay-online-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--brand);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pay-online-head h2 { margin: 10px 0 4px; font-size: 18px; font-weight: 800; color: var(--text-primary); }
.pay-online-head p { margin: 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; }
.pay-online-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.pay-online-btn { display: flex; align-items: center; gap: 11px; padding: 12px 14px; cursor: pointer;
  text-align: left; background: #fff; border: 1px solid #d9e6df; border-radius: 14px;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease; }
.pay-online-btn:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 12px 24px -14px rgba(9,30,18,.5); }
.pay-online-btn strong { display: block; color: var(--text-primary); font-size: 14px; font-weight: 800; }
.pay-online-btn small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 11.5px; }
.pay-online-note { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: var(--brand-dark); font-size: 12px; font-weight: 600; }
.pay-online-note .icon { flex-shrink: 0; }
.pay-or { position: relative; margin: 20px 0 16px; text-align: center; }
.pay-or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.pay-or span { position: relative; padding: 0 14px; background: var(--bg-page); color: var(--text-muted); font-size: 12px; font-weight: 700; }

/* Redirect + result pages */
.pay-wait { display: grid; place-items: center; min-height: 68vh; padding: 40px 20px; }
.pay-wait-card { max-width: 460px; padding: 38px 30px; text-align: center; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-card); }
.pay-wait-logo { width: 54px; height: 54px; border-radius: 50%; }
.pay-wait-card h1 { margin: 18px 0 8px; font-size: 22px; font-weight: 800; }
.pay-wait-card p { margin: 0 0 6px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.pay-wait-note { margin-top: 18px !important; color: var(--text-muted) !important; font-size: 12px !important; }
.pay-spinner { width: 34px; height: 34px; margin: 20px auto 0; border-radius: 50%;
  border: 3px solid var(--brand-light); border-top-color: var(--brand); animation: pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-badge { width: 66px; height: 66px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%;
  font-size: 30px; font-weight: 900; }
.pay-badge-ok { color: #fff; background: var(--brand); box-shadow: 0 12px 26px -10px rgba(34,180,85,.7); }
.pay-badge-bad { color: #fff; background: var(--danger); }
.pay-badge-wait { color: var(--warning-dark); background: var(--warning-light); }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.pay-btn-quiet { color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border); }

@media (max-width: 560px) {
  .pay-online-btns { grid-template-columns: 1fr; }
  .pay-wait-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { .pay-spinner { animation: none; } }

/* ============================================================
   Mobile polish for the public site. Most players arrive through
   the Android app, which is a WebView at phone width, so this is
   the primary layout rather than an afterthought.
   Placed last so it wins over the desktop rules above.
   ============================================================ */
@media (max-width: 620px) {
  /* Header: brand + three buttons did not fit in 375px and pushed the page
     3px wide, which shows as a horizontal wobble on a phone. The download
     button is redundant here because the page offers it twice below. */
  .home-v2 .site-header .bar,
  .page-v2 .site-header .bar { padding: 10px 14px; gap: 10px; }
  .home-v2 .nav-get-app,
  .page-v2 .nav-get-app { display: none !important; }
  .home-v2 .brand .logo-mark,
  .page-v2 .brand .logo-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .home-v2 .brand-word,
  .page-v2 .brand-word { font-size: 15px; }
  /* The logo lockup is a link too, so give it a full-height hit area. */
  .home-v2 .brand, .page-v2 .brand,
  .site-footer-brand .brand { min-height: 44px; align-items: center; }
  .home-v2 .header-actions .btn-sm,
  .page-v2 .header-actions .btn-sm { min-height: 40px; padding-inline: 14px; font-size: 13.5px; }

  /* Hero: tighter type and full-width actions so the buttons are easy to hit */
  .hx-hero { padding-top: 34px; }
  .hx-hero h1 { font-size: clamp(28px, 8.5vw, 36px); line-height: 1.1; }
  .hx-hero-copy > p { font-size: 15.5px; }
  .hx-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hx-hero-actions .btn { width: 100%; min-height: 52px; }
  .hx-hero-trust { gap: 10px 16px; font-size: 12.5px; justify-content: center; }
  .hx-hero-card { min-height: 0; margin-top: 26px; }
  .hx-card { width: 100%; max-width: 320px; }
  .hx-logos { margin-top: 30px; padding-bottom: 26px; justify-content: center; text-align: center; }
  .hx-logo-row { justify-content: center; }

  /* Sections: less vertical air, so the page is not endless on a phone */
  .hx-section, .hx-install, .hx-faq { padding-block: 44px; }
  .hx-appband-inner, .hx-security-inner { padding-block: 44px; }
  .hx-steps > .hx-section-head { padding-top: 44px; }
  .hx-steps-grid { padding-bottom: 44px; }
  .hx-section-head { margin-bottom: 26px; }
  .hx-section-head h2 { font-size: clamp(22px, 6.5vw, 28px); }
  .hx-section-head p { font-size: 14.5px; }

  .hx-feature { padding: 20px; }
  .hx-feature-icon { width: 46px; height: 46px; margin-bottom: 12px; }
  .hx-inst { padding: 24px 18px 20px; }
  .hx-store-btn { width: 100%; justify-content: center; }
  .hx-appband-meta { width: 100%; justify-content: center; }

  .hx-cta { padding-bottom: 44px; }
  .hx-cta-inner { padding: 34px 20px; border-radius: 22px; }
  .hx-cta-actions { flex-direction: column; align-items: stretch; }
  .hx-cta-actions .btn { width: 100%; }

  /* Footer: links were 34px tall, below the ~44px a thumb reliably hits */
  .site-footer-inner { padding: 34px 18px 22px; gap: 22px; }
  .site-footer-col a { padding: 11px 0; font-size: 15px; }
  .site-footer-col h4 { margin-bottom: 6px; }
  .site-footer-bottom { padding: 16px 18px; flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Content pages */
  .pg-hero-inner { padding-block: 40px; }
  .pg-hero-inner h1 { font-size: clamp(26px, 7.5vw, 34px); }
  .pg-hero-inner p { font-size: 15px; }
  .pg-body { padding-block: 40px; }
  .pg-faq-item summary, .hx-faq-item summary { padding-block: 16px; font-size: 15px; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .home-v2 .brand-word, .page-v2 .brand-word { font-size: 14px; }
  .home-v2 .header-actions .btn-sm,
  .page-v2 .header-actions .btn-sm { padding-inline: 11px; font-size: 13px; }
  .hx-hero h1 { font-size: 26px; }
  .hx-stats-inner strong { font-size: 20px; }
}

/* ============================================================
   Deposit: a numbered flow where picking a method reveals only
   that method's receiving accounts.
   ============================================================ */
.dstep { padding: 16px; margin-bottom: 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.dstep-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 13px;
  font-size: 17px; font-weight: 800; color: var(--text-primary); }
.dstep-n { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 10px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; }
.dstep-head .bp-ur { flex-basis: 100%; margin: 0; padding-left: 40px; }
.dstep-hint { margin: 9px 0 0; color: var(--text-muted); font-size: 12.5px; font-weight: 600; }

.dstep-amount { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { min-height: 42px; padding: 10px 15px; cursor: pointer; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-secondary); font-size: 13.5px; font-weight: 700;
  transition: background .15s ease, border-color .15s ease, color .15s ease; }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Step 2: the method picker. Whole card is the tap target. */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pick { display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick-box { position: relative; display: flex; align-items: center; gap: 11px; height: 100%;
  padding: 13px 12px; background: var(--bg-surface);
  border: 2px solid var(--border); border-radius: 14px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.pick-name strong { display: block; font-size: 15px; font-weight: 800; color: var(--text-primary); }
.pick-name small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 11.5px; }
.pick-tick { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #fff; opacity: 0; transform: scale(.6);
  transition: opacity .15s ease, transform .15s ease; }
.pick:hover .pick-box { border-color: var(--brand-border); }
.pick input:focus-visible + .pick-box { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.pick input:checked + .pick-box { background: var(--brand-light); border-color: var(--brand);
  box-shadow: 0 10px 22px -16px rgba(9,30,18,.7); }
.pick input:checked + .pick-box .pick-tick { opacity: 1; transform: scale(1); }

/* Step 3: one panel per method. Without scripting every panel stays
   visible, so the page never becomes a dead end. */
.dflow.js-on .pay-panel { display: none; }
.dflow.js-on .pay-panel.is-on { display: block; }

.send-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px;
  background: var(--bg-surface); border: 1px dashed var(--border); border-radius: 14px;
  color: var(--text-secondary); }
.send-empty .icon { flex-shrink: 0; color: var(--brand-dark); }
.send-empty div { flex: 1 1 160px; }
.send-empty strong { display: block; color: var(--text-primary); font-size: 14px; font-weight: 800; }
.send-empty span { font-size: 12.5px; }

.pay-now-box { padding: 14px; margin-bottom: 12px; border-radius: 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-border); }
.pay-now-tag { display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; }
.pay-now-box p { margin: 9px 0 12px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.pay-now { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 14px;
  cursor: pointer; background: var(--brand); border: 0; border-radius: 13px;
  color: #fff; font-size: 15px; font-weight: 800; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease; }
.pay-now span { flex: 1; }
.pay-now:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(9,30,18,.7); }
.pay-now .payment-logo { flex-shrink: 0; }

.label-opt { color: var(--text-muted); font-weight: 600; }

.send-card { padding: 14px; margin-bottom: 12px; background: var(--bg-card);
  border: 1px solid var(--brand-border); border-radius: 16px; box-shadow: var(--shadow-card); }
.send-card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.send-card-name strong { display: block; font-size: 15px; font-weight: 800; color: var(--text-primary); }
.send-card-name small { display: block; color: var(--text-muted); font-size: 12px; }

.send-rows { display: flex; flex-direction: column; gap: 7px; }
.send-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  padding: 9px 11px; min-height: 52px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: var(--brand-light); border: 1px solid var(--brand-border); border-radius: 11px;
  transition: background .15s ease, border-color .15s ease; }
.send-row:hover { background: #cdf7da; border-color: var(--brand); }
.send-row:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.send-label { grid-column: 1; color: var(--brand-dark); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; }
.send-value { grid-column: 1; color: var(--ink); font-size: 16px; font-weight: 800;
  overflow-wrap: anywhere; }
.send-copy { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 11px; background: #fff; border: 1px solid var(--brand-border); border-radius: 9px;
  color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.send-row.is-copied { background: var(--brand); border-color: var(--brand-dark); }
.send-row.is-copied .send-label { color: var(--brand-light); }
.send-row.is-copied .send-value { color: #fff; }
.send-row.is-copied .send-copy { background: #fff; color: var(--brand-dark); }

.send-qr { margin-top: 11px; padding: 12px; text-align: center; background: var(--bg-surface);
  border: 1px dashed var(--brand-border); border-radius: 12px; }
.send-qr img { width: 168px; height: 168px; object-fit: contain; background: #fff;
  border-radius: 10px; padding: 6px; }
.send-qr span { display: block; margin-top: 8px; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.send-note { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; padding: 9px 11px;
  background: var(--warning-light); border-radius: 10px; color: var(--warning-dark);
  font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.send-note .icon { flex-shrink: 0; margin-top: 1px; }

/* Admin: payment method management. Pick a method, then three fields. */
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pm-span { grid-column: 1 / -1; }
.pm-pick { max-width: 560px; }
.pm-add.js-on .pm-fields { display: none; }
.pm-add.js-on .pm-fields.is-on { display: block; }
.pm-qr-thumb { width: 58px; height: 58px; object-fit: contain; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.pm-check { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  color: var(--text-secondary); font-size: 13px; }

/* Refresh control on the request queues. Sized as a proper tap target because
   its main use is inside the Android app, which has no reload button. */
.refresh-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.refresh-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 18px; cursor: pointer; border-radius: 12px;
  background: var(--brand); border: 0; color: #fff; font-size: 14px; font-weight: 800;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; }
.refresh-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(9,30,18,.7); }
.refresh-btn:active { transform: translateY(0); }
.refresh-btn .icon { flex-shrink: 0; }
.refresh-age { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.refresh-bar.is-refreshing .refresh-btn { opacity: .6; pointer-events: none; }
.refresh-bar.is-refreshing .refresh-btn .icon { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .refresh-btn { transition: none; }
  .refresh-bar.is-refreshing .refresh-btn .icon { animation: none; }
}
@media (max-width: 620px) {
  .refresh-bar { width: 100%; }
  .refresh-btn { flex: 1; justify-content: center; }
}

/* Admin notification list */
.alert-list { display: flex; flex-direction: column; gap: 1px; margin-top: 16px;
  background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.alert-row { display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  background: var(--bg-card); transition: background .15s ease; }
.alert-row:hover { background: var(--bg-surface); }
.alert-row.is-unread { background: var(--brand-soft); }
.alert-row.is-unread:hover { background: var(--brand-light); }
.alert-icon { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: var(--bg-surface); color: var(--text-secondary); }
.alert-icon-deposit { background: var(--brand-light); color: var(--brand-dark); }
.alert-icon-withdrawal { background: var(--warning-light); color: var(--warning-dark); }
.alert-body { flex: 1; min-width: 0; }
.alert-body strong { display: block; color: var(--text-primary); font-size: 14px; font-weight: 700; }
.alert-body small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12.5px; }
.alert-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

/* Withdrawals: the live bettor balance that decides whether Approve appears */
.wd-balance { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.wd-balance-state { color: var(--text-muted); font-size: 12.5px; font-style: italic; }
.wd-balance-value { font-size: 14px; font-weight: 800; white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.wd-balance-unknown { color: var(--warning-dark); font-size: 12.5px; font-weight: 600; }
.wd-balance-retry { flex-basis: 100%; align-self: flex-start; padding: 0; cursor: pointer;
  background: none; border: 0; color: var(--brand-dark);
  font-size: 11.5px; font-weight: 700; text-decoration: underline; text-align: left; }

.pm-row { margin-top: 12px; }
.pm-row.pm-off { opacity: .68; }
.pm-row-top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.pm-row-id { flex: 1 1 200px; min-width: 0; }
.pm-row-id strong { display: block; font-size: 15.5px; font-weight: 800; color: var(--text-primary); }
.pm-row-id span { display: block; margin-top: 1px; color: var(--text-muted);
  font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }

.pm-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.pm-actions form { display: inline; }
.pm-edit { flex: 1 1 100%; order: -1; }
.pm-edit summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.pm-edit summary::-webkit-details-marker { display: none; }
.pm-edit summary::after { content: "\25BE"; font-size: 11px; }
.pm-edit[open] summary::after { content: "\25B4"; }
.pm-edit[open] > form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

@media (max-width: 620px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pm-actions .btn { flex: 1 1 auto; }
  .send-qr img { width: 148px; height: 148px; }
  .send-value { font-size: 15px; }
}
