:root {
  /* 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: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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);
  font-size: 15px; 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; }

/* 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;
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid var(--wallet-line);
  backdrop-filter: blur(16px);
}
.mobile-user-brand { display: none; }
.user-profile-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; }
.user-profile-link:hover { background: var(--wallet-sky); }
.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; margin-bottom: 14px; color: var(--wallet-blue); font-size: 14px; font-weight: 800; }
.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: 11px; }
.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; }
.request-status small { display: block; margin-top: 3px; color: var(--wallet-muted); font-size: 9px; }

/* 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: 45px; padding: 10px 13px; font-size: 15px; }
.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; color: var(--wallet-ink); font-size: 13px; font-weight: 900; }
  .mobile-user-brand .logo-mark { width: 38px; height: 38px; }
  .user-profile-copy { display: none; }
  .user-avatar-mini { width: 38px; height: 38px; }
  .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) {
  .mobile-user-brand span:last-child { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .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: 11px; font-weight: 900; letter-spacing: .08em; 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: 170px; }
  .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: 125px; }
  .request-status-pill { min-width: 61px; font-size: 10px; }
  .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; }
}
