/* ==========================================================================
   ACCOUNT PAGES — Unified Stylesheet
   Covers: Deposit · Transfer · Withdraw · History · Add Bank
           Pending · Inbox · Referral
   --------------------------------------------------------------------------
   Depends on:  root.css  (design tokens)
   Included by: all 8 account-section HTML pages
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────────────────────
    1.  Local tokens           (account-scope CSS vars)
    2.  Page shell             (layout, scroll, center-content override)
    3.  Page header            (.acct-head)
    4.  Category nav           (.account-cat-nav — overrides / extensions)
    5.  Content layout         (.acct-layout, .acct-main, .acct-side)
    6.  Glass card             (.acct-card)
    7.  Section label          (.acct-label)
    8.  Balance banner         (.acct-balance)
    9.  Picker grid            (.acct-picker-grid, .acct-picker)
   10.  Amount chips           (.acct-chips, .chip-btn overrides)
   11.  Input group            (.acct-input)
   12.  Primary CTA button     (.acct-submit)
   13.  Divider / rule         (.acct-divider)
   14.  Summary rows           (.acct-sum-*)
   15.  Info / notes card      (.acct-notes)
   16.  History link           (.acct-hist-link)
   17.  Transfer swap          (.acct-swap-*)
   18.  Transaction list       (.txn-list, .txn-row, .txn-*)
   19.  Pending page           (.ptx-*)
   20.  Inbox page             (.inbox-*)
   21.  Referral page          (.ref-*)
   22.  Shared modal overlay   (.acct-modal)
   23.  Toast notification     (.acct-toast)
   24.  Responsive breakpoints
   ========================================================================== */


/* ==========================================================================
   1. LOCAL TOKENS
   ========================================================================== */
   :root {
    /* Glass card surface */
    --acct-card-bg:        linear-gradient(160deg,
                             rgba(255,255,255,0.11) 0%,
                             rgba(255,255,255,0.04) 100%);
    --acct-card-border:    1px solid rgba(255,255,255,0.14);
    --acct-card-shadow:    var(--liq-shadow),
                           inset 0 1px 0 rgba(255,255,255,0.16);
    --acct-card-radius:    var(--radius-xl);          /* 22px */
    --acct-card-pad:       var(--space-5);            /* 20px */
  
    /* Interactive items (picker, bank button…) */
    --acct-item-bg:        rgba(255,255,255,0.05);
    --acct-item-bg-hover:  rgba(255,255,255,0.09);
    --acct-item-border:    rgba(255,255,255,0.12);
    --acct-item-radius:    var(--radius-md);          /* 12px */
    --acct-item-pad:       10px 14px;
  
    /* Selected / active state */
    --acct-active-bg:      linear-gradient(135deg,
                             rgba(105,255,241,0.18),
                             rgba(155,92,255,0.16));
    --acct-active-border:  rgba(105,255,241,0.52);
    --acct-active-color:   var(--color-neon-cyan);
  
    /* Status badge colors */
    --status-done-bg:      rgba(74,222,128,0.14);
    --status-done-color:   #7ee69a;
    --status-pending-bg:   rgba(251,191,36,0.16);
    --status-pending-color:#f1cf75;
    --status-processing-bg:rgba(255,200,85,0.15);
    --status-processing-color: var(--color-neon-gold);
    --status-awaiting-bg:  rgba(192,132,252,0.15);
    --status-awaiting-color:var(--color-neon-violet);
    --status-review-bg:    rgba(56,189,248,0.14);
    --status-review-color: var(--color-neon-blue);
    --status-failed-bg:    rgba(248,113,113,0.16);
    --status-failed-color: var(--color-neon-red);
  
    /* Gold accent (balance, summary total) */
    --acct-gold:           var(--color-neon-gold);    /* #ffc855 */
  }
  
  
  /* ==========================================================================
     2. PAGE SHELL
     ========================================================================== */
  .page-deposit .center-content,
  .page-transfer .center-content,
  .page-withdraw .center-content,
  .page-history .center-content,
  .page-addbank .center-content,
  .page-pending-transaction .center-content,
  .page-inbox .center-content,
  .page-referral .center-content,
  .page-profile .center-content {
    padding: 5rem 1rem 7rem;
    width: 100%;
  }
  
  .acct-page-section {
    min-height: 100dvh;
    width: 100%;
  }
  
  .acct-page-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0 auto;
  }
  
  
  /* ==========================================================================
     3. PAGE HEADER
     ========================================================================== */
  .acct-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 2px 2px 6px;
  }
  
  .acct-head-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,200,85,0.14);
    color: var(--acct-gold);
    font-size: 1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255,200,85,0.35));
  }
  
  .acct-head h1 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-black);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-white);
  }
  
  
  /* ==========================================================================
     4. CATEGORY NAV — extensions only (base styles stay in style.css)
     ========================================================================== */
  /* Fade hint at the right edge on mobile to signal horizontal scroll */
  .account-cat-nav-section {
    position: relative;
    width: 100%;
    margin: 2px 0 var(--space-4);
  }
  
  @media (max-width: 899px) {
    .account-cat-nav-section::after {
      content: '';
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 48px;
      background: linear-gradient(to right, transparent, rgba(18,8,40,0.75));
      border-radius: 0 var(--category-nav-radius) var(--category-nav-radius) 0;
      pointer-events: none;
    }
  }
  
  /* Bump min tap target */
  .account-cat-nav .cat-btn {
    min-height: 56px;
  }
  
  
  /* ==========================================================================
     5. CONTENT LAYOUT
     ========================================================================== */
  .acct-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: start;
  }
  
  .acct-main {
    padding: var(--acct-card-pad);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .acct-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  
  
  /* ==========================================================================
     6. GLASS CARD — the unified surface for every account page card
     ========================================================================== */
  .acct-card {
    background: var(--acct-card-bg);
    border: var(--acct-card-border);
    border-radius: var(--acct-card-radius);
    box-shadow: var(--acct-card-shadow);
    backdrop-filter: blur(var(--liq-blur));
    -webkit-backdrop-filter: blur(var(--liq-blur));
    overflow: hidden;
  }
  
  /* Flush card — no internal padding, content controls its own */
  .acct-card--flush {
    padding: 0;
  }
  
  /* Padded card — consistent internal padding */
  .acct-card--pad {
    padding: var(--acct-card-pad);
  }
  
  
  /* ==========================================================================
     7. SECTION LABEL
     ========================================================================== */
  .acct-label {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
  }
  
  
  /* ==========================================================================
     8. BALANCE BANNER
     ========================================================================== */
  .acct-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(ellipse 60% 80% at 0% 0%, rgba(155,92,255,0.22) 0%, transparent 60%),
      linear-gradient(135deg, rgba(255,200,85,0.18), rgba(255,200,85,0.05));
    border: 1px solid rgba(255,200,85,0.28);
  }
  
  .acct-balance-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .acct-balance-label {
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-soft);
  }
  
  .acct-balance-amt {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    color: var(--text-white);
    letter-spacing: 0.02em;
  }
  
  .acct-balance-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255,200,85,0.16);
    color: var(--acct-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  
  
  /* ==========================================================================
     9. PICKER GRID  (payment methods, banks, transfer wallets)
     ========================================================================== */
  .acct-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
  
  .acct-picker-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .acct-picker-grid--4 { grid-template-columns: repeat(4, 1fr); }
  
  .acct-picker {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--acct-item-pad);
    border-radius: var(--acct-item-radius);
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    color: var(--text-soft);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    text-decoration: none;
    transition:
      background var(--duration-fast),
      border-color var(--duration-fast),
      color var(--duration-fast);
  }
  
  .acct-picker:hover {
    background: var(--acct-item-bg-hover);
  }
  
  .acct-picker.active {
    background: var(--acct-active-bg);
    border-color: var(--acct-active-border);
    color: var(--text-white);
  }
  
  .acct-picker i {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--duration-fast);
    flex-shrink: 0;
  }
  
  .acct-picker.active i { color: var(--acct-active-color); }
  
  /* Vertical layout (methods) */
  .acct-picker--col {
    flex-direction: column;
    text-align: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-2);
  }
  
  /* Logo badge (bank initials) */
  .acct-picker-logo {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    background: rgba(0,0,0,0.25);
    font-size: var(--text-xs);
    font-weight: var(--font-black);
    letter-spacing: 0.03em;
    color: var(--text-white);
    flex-shrink: 0;
  }
  
  /* Gold active (from → bank/account selectors) */
  .acct-picker--gold.active {
    background: rgba(255,200,85,0.14);
    border-color: rgba(255,200,85,0.50);
  }
  
  .acct-picker--gold.active .acct-picker-logo {
    background: rgba(255,200,85,0.22);
    color: var(--acct-gold);
  }
  
  
  /* ==========================================================================
     10. AMOUNT CHIPS
     ========================================================================== */
  .acct-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  
  /* Extend global .chip-btn */
  .acct-chips .chip-btn {
    min-height: 36px;
    padding: 6px var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    color: var(--text-soft);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition:
      background var(--duration-fast),
      border-color var(--duration-fast),
      color var(--duration-fast);
  }
  
  .acct-chips .chip-btn:hover  { background: var(--acct-item-bg-hover); }
  
  .acct-chips .chip-btn.active {
    background: var(--acct-active-bg);
    border-color: var(--acct-active-border);
    color: var(--text-white);
  }
  
  /* Filter chips (history, pending, inbox tabs) */
  .acct-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-4) 0;
  }
  
  .acct-filter-tab {
    min-height: 36px;
    padding: 6px var(--space-4);
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid var(--acct-item-border);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition:
      background var(--duration-fast),
      border-color var(--duration-fast),
      color var(--duration-fast);
    white-space: nowrap;
  }
  
  .acct-filter-tab:hover { color: var(--text-white); border-color: rgba(255,255,255,0.25); }
  
  .acct-filter-tab.active {
    background: rgba(105,255,241,0.12);
    border-color: rgba(105,255,241,0.50);
    color: var(--color-neon-cyan);
  }
  
  /* Unread badge inside a tab */
  .acct-filter-tab .acct-unread-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: var(--radius-pill);
    background: var(--color-neon-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: var(--font-black);
    vertical-align: middle;
  }
  
  
  /* ==========================================================================
     11. INPUT GROUP
     ========================================================================== */
  .acct-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }
  
  .acct-input-group label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-soft);
  }
  
  .acct-input-group .glass-input {
    width: 100%;
    padding: 11px var(--space-4);
    border-radius: var(--acct-item-radius);
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    color: var(--text-white);
    font-size: var(--text-sm);
    transition: border-color var(--duration-fast);
    outline: none;
  }
  
  .acct-input-group .glass-input:focus {
    border-color: rgba(105,255,241,0.50);
    box-shadow: 0 0 0 3px rgba(105,255,241,0.08);
  }
  
  
  /* ==========================================================================
     12. PRIMARY CTA BUTTON
     ========================================================================== */
  .acct-submit {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg,
      var(--color-neon-purple) 0%,
      var(--color-neon-cyan)   100%);
    border: none;
    color: #fff;
    font-size: var(--text-base);
    font-weight: var(--font-black);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
      opacity var(--duration-fast),
      box-shadow var(--duration-fast);
    box-shadow: var(--glow-purple);
  }
  
  .acct-submit:hover {
    opacity: 0.92;
    box-shadow: var(--glow-cyan);
  }
  
  .acct-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
  
  
  /* ==========================================================================
     13. DIVIDER
     ========================================================================== */
  .acct-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    border: none;
    margin: 0;
  }
  
  
  /* ==========================================================================
     14. SUMMARY ROWS (deposit side panel)
     ========================================================================== */
  .acct-side-title {
    margin: 0 0 var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-black);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-white);
  }
  
  .acct-sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 7px 0;
    font-size: var(--text-sm);
    color: var(--text-soft);
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .acct-sum-row:last-of-type { border-bottom: none; }
  
  .acct-sum-row strong {
    color: var(--text-white);
    font-weight: var(--font-bold);
  }
  
  .acct-sum-bonus  { color: var(--color-neon-green) !important; }
  .acct-sum-danger { color: var(--color-neon-red)   !important; }
  
  .acct-sum-total {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    padding-top: var(--space-2);
  }
  
  .acct-sum-total strong {
    font-size: var(--text-xl);
    color: var(--acct-gold);
  }
  
  
  /* ==========================================================================
     15. INFO / NOTES CARD
     ========================================================================== */
  .acct-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .acct-notes-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--text-soft);
  }
  
  .acct-notes-list i {
    color: var(--color-neon-cyan);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  .acct-info-banner {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3) var(--space-4);
    background: rgba(105,255,241,0.05);
    border: 1px solid rgba(105,255,241,0.15);
    border-radius: var(--radius-md);
  }
  
  .acct-info-banner i   { color: var(--color-neon-cyan); flex-shrink: 0; margin-top: 2px; }
  .acct-info-banner p   { margin: 0; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }
  
  
  /* ==========================================================================
     16. HISTORY LINK
     ========================================================================== */
  .acct-hist-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 11px;
    border-radius: var(--acct-item-radius);
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    color: var(--text-soft);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-decoration: none;
    transition: background var(--duration-fast), color var(--duration-fast);
  }
  
  .acct-hist-link:hover {
    background: var(--acct-item-bg-hover);
    color: var(--text-white);
  }
  
  
  /* ==========================================================================
     17. TRANSFER SWAP ROW
     ========================================================================== */
  .acct-swap-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-1) 0;
  }
  
  .acct-swap-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  }
  
  .acct-swap-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--acct-active-bg);
    border: 1px solid var(--acct-active-border);
    color: var(--color-neon-cyan);
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition:
      background var(--duration-fast),
      transform var(--duration-slow) var(--ease-out);
  }
  
  .acct-swap-btn:hover { background: linear-gradient(135deg, rgba(105,255,241,0.30), rgba(155,92,255,0.28)); }
  .acct-swap-btn.spin  { transform: rotate(180deg); }
  
  
  /* ==========================================================================
     18. TRANSACTION LIST  (history + addbank)
     ========================================================================== */
  .txn-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .txn-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--acct-item-radius);
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    transition: background var(--duration-fast);
  }
  
  .txn-row:hover { background: var(--acct-item-bg-hover); }
  
  /* Icon circle */
  .txn-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: var(--text-sm);
    font-weight: var(--font-black);
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    color: var(--text-white);
  }
  
  .txn-icon--in       { background: rgba(77,214,110,0.18);  color: #4dd66e; }
  .txn-icon--out      { background: rgba(248,113,113,0.18); color: #ff8a8a; }
  .txn-icon--transfer { background: rgba(105,255,241,0.16); color: var(--color-neon-cyan); }
  .txn-icon--bonus    { background: rgba(241,207,117,0.18); color: #f1cf75; }
  
  /* Text */
  .txn-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  
  .txn-title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .txn-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
  }
  
  /* Amount + badge */
  .txn-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
    flex-shrink: 0;
  }
  
  .txn-amt {
    font-size: var(--text-base);
    font-weight: var(--font-black);
    color: var(--text-white);
  }
  
  .txn-amt--in  { color: var(--color-neon-green); }
  .txn-amt--out { color: var(--color-neon-red);   }
  
  /* Status badges */
  .txn-badge {
    font-size: 0.65rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
  }
  
  .txn-badge--done    { background: var(--status-done-bg);     color: var(--status-done-color);    }
  .txn-badge--pending { background: var(--status-pending-bg);  color: var(--status-pending-color); }
  .txn-badge--failed  { background: var(--status-failed-bg);   color: var(--status-failed-color);  }
  
  
  /* ==========================================================================
     19. PENDING PAGE  (.ptx-*)
     ========================================================================== */
  
  /* Summary stat bar */
  .ptx-summary {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .ptx-stat {
    flex: 1;
    padding: var(--space-4) var(--space-3);
    text-align: center;
    border-right: 1px solid var(--border-subtle);
  }
  
  .ptx-stat:last-child { border-right: none; }
  
  .ptx-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-1);
  }
  
  .ptx-stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
  }
  
  .ptx-stat-value--gold   { color: var(--acct-gold); }
  .ptx-stat-value--cyan   { color: var(--color-neon-cyan); }
  .ptx-stat-value--muted  { color: var(--text-muted); }
  
  /* Filter tabs row */
  .ptx-filter-row {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    padding: var(--space-4) var(--space-4) 0;
  }
  
  /* Transaction card */
  .ptx-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
  }
  
  /* Simplified pending list: Trans ID + Type + status, click to open modal */
  .ptx-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
  
  .ptx-hint {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
  }
  
  .ptx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--acct-item-border);
    background: var(--acct-item-bg);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
  }
  
  .ptx-row:hover {
    background: var(--acct-item-bg-hover);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
  }
  
  .ptx-row-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  
  .ptx-row-id {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
  }
  
  .ptx-row-type {
    font-size: 12px;
    color: var(--text-muted);
  }
  
  .ptx-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
  }
  
  .ptx-status--done { background: var(--status-done-bg); color: var(--status-done-color); }
  .ptx-status--processing { background: rgba(91, 182, 255, 0.18); color: #7cc4ff; }
  .ptx-status--failed { background: rgba(255, 92, 92, 0.18); color: #ff8a8a; }
  
  .ptx-modal-note {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #ff8a8a;
  }
  
  .ptx-card {
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: border-color var(--duration-base), opacity var(--duration-slow);
  }
  
  /* Left accent stripe (color set per status via modifier) */
  .ptx-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    border-radius: 2px 0 0 2px;
    background: var(--ptx-accent, rgba(255,255,255,0.2));
  }
  
  .ptx-card--gold   { --ptx-accent: var(--acct-gold); }
  .ptx-card--purple { --ptx-accent: var(--color-neon-purple); }
  .ptx-card--cyan   { --ptx-accent: var(--color-neon-blue); }
  
  .ptx-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding: var(--space-4);
    padding-left: calc(var(--space-4) + 8px);   /* clear the stripe */
  }
  
  /* Left: icon + text */
  .ptx-card-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  
  .ptx-card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.07);
    font-size: 0.9rem;
    flex-shrink: 0;
    color: var(--ptx-accent, var(--color-neon-cyan));
  }
  
  .ptx-card-icon--gold   { background: rgba(255,200,85,0.15);  color: var(--acct-gold); }
  .ptx-card-icon--purple { background: rgba(155,92,255,0.15);  color: var(--color-neon-purple); }
  .ptx-card-icon--cyan   { background: rgba(56,189,248,0.15);  color: var(--color-neon-blue); }
  
  .ptx-card-title {
    font-weight: var(--font-bold);
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-white);
  }
  
  .ptx-card-id,
  .ptx-card-method {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 1px;
  }
  
  /* Right: amount + badge */
  .ptx-card-right {
    text-align: right;
  }
  
  .ptx-card-amt {
    font-size: 1.1rem;
    font-weight: var(--font-black);
    color: var(--color-neon-green);
  }
  
  .ptx-card-amt--out { color: var(--color-neon-red); }
  
  /* Status badge */
  .ptx-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
  }
  
  .ptx-badge--processing { background: var(--status-processing-bg); color: var(--status-processing-color); }
  .ptx-badge--awaiting   { background: var(--status-awaiting-bg);   color: var(--status-awaiting-color);   }
  .ptx-badge--review     { background: var(--status-review-bg);     color: var(--status-review-color);     }
  
  /* Crypto address block */
  .ptx-address-block {
    margin: 0 var(--space-4) var(--space-3);
    margin-left: calc(var(--space-4) + 8px);
    padding: var(--space-3) var(--space-4);
    background: rgba(155,92,255,0.08);
    border: 1px dashed rgba(155,92,255,0.30);
    border-radius: var(--radius-sm);
  }
  
  .ptx-address-label {
    font-size: var(--text-xs);
    color: var(--color-neon-violet);
    font-weight: var(--font-semibold);
    margin-bottom: 5px;
  }
  
  .ptx-address-value {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.85);
    word-break: break-all;
    font-family: monospace;
  }
  
  .ptx-address-copy {
    margin-top: var(--space-2);
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(155,92,255,0.40);
    background: transparent;
    color: var(--color-neon-violet);
    font-size: 0.7rem;
    cursor: pointer;
    transition: background var(--duration-fast);
  }
  
  .ptx-address-copy:hover { background: rgba(155,92,255,0.12); }
  
  /* Card footer: timestamp + actions */
  .ptx-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    padding-left: calc(var(--space-4) + 8px);
    border-top: 1px solid var(--border-subtle);
  }
  
  .ptx-card-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
  }
  
  .ptx-card-actions {
    display: flex;
    gap: var(--space-2);
  }
  
  .ptx-btn {
    padding: 6px var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: background var(--duration-fast), border-color var(--duration-fast);
    min-height: 32px;
  }
  
  .ptx-btn--detail {
    border: 1px solid var(--border-emphasis);
    background: transparent;
    color: var(--color-neon-cyan);
  }
  
  .ptx-btn--detail:hover { background: rgba(105,255,241,0.08); }
  
  .ptx-btn--cancel {
    border: 1px solid rgba(248,113,113,0.40);
    background: rgba(248,113,113,0.08);
    color: var(--color-neon-red);
  }
  
  .ptx-btn--cancel:hover { background: rgba(248,113,113,0.14); }
  
  /* Countdown */
  .ptx-countdown {
    color: var(--acct-gold);
    font-weight: var(--font-bold);
  }
  
  
  /* ==========================================================================
     20. INBOX PAGE  (.inbox-*)
     ========================================================================== */
  
  /* Toolbar */
  .inbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .inbox-mark-all {
    padding: 6px var(--space-4);
    min-height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--acct-item-border);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: color var(--duration-fast), border-color var(--duration-fast);
  }
  
  .inbox-mark-all:hover { color: var(--text-white); border-color: rgba(255,255,255,0.25); }
  
  /* Message list */
  .inbox-list {
    display: flex;
    flex-direction: column;
  }
  
  /* Individual message */
  .inbox-msg {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    position: relative;
    transition: background var(--duration-fast);
  }
  
  .inbox-msg:last-child { border-bottom: none; }
  .inbox-msg:hover      { background: rgba(255,255,255,0.03); }
  
  /* Unread accent stripe + background tint */
  .inbox-msg--unread {
    background: rgba(105,255,241,0.03);
  }
  
  .inbox-msg--unread::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--color-neon-cyan);
    border-radius: 0 2px 2px 0;
  }
  
  /* Read messages — slightly dimmed */
  .inbox-msg--read {
    opacity: 0.68;
  }
  
  /* Avatar icon */
  .inbox-msg-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    font-size: 0.95rem;
    color: #fff;
  }
  
  .inbox-msg-avatar--promo  { background: linear-gradient(135deg, var(--color-neon-purple), var(--color-neon-cyan)); }
  .inbox-msg-avatar--system { background: linear-gradient(135deg, var(--acct-gold), var(--color-neon-red)); }
  .inbox-msg-avatar--txn    { background: linear-gradient(135deg, var(--color-neon-blue), var(--color-neon-green)); }
  .inbox-msg-avatar--read   { background: rgba(255,255,255,0.08); color: var(--text-muted); }
  
  /* Text block */
  .inbox-msg-body { flex: 1; min-width: 0; }
  
  .inbox-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: 4px;
  }
  
  .inbox-msg-subject {
    font-size: 0.9rem;
    font-weight: var(--font-bold);
    color: var(--text-white);
    line-height: 1.3;
  }
  
  .inbox-msg--read .inbox-msg-subject { font-weight: var(--font-semibold); }
  
  .inbox-msg-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .inbox-msg-preview {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
  }
  
  /* Category badge */
  .inbox-cat-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
  }
  
  .inbox-cat-badge--promo  { background: rgba(155,92,255,0.15);  color: var(--color-neon-violet); }
  .inbox-cat-badge--system { background: rgba(255,200,85,0.14);  color: var(--acct-gold); }
  .inbox-cat-badge--txn    { background: rgba(74,222,128,0.12);  color: var(--color-neon-green); }
  
  /* Unread dot (right edge) */
  .inbox-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--color-neon-red);
    flex-shrink: 0;
    margin-top: 6px;
  }
  
  
  /* ==========================================================================
     21. REFERRAL PAGE  (.ref-*)
     ========================================================================== */
  
  /* Hero banner */
  .ref-hero {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(105,255,241,0.12), transparent 65%),
      linear-gradient(135deg, rgba(155,92,255,0.35) 0%, rgba(105,255,241,0.18) 100%);
    padding: var(--space-7) var(--space-6);
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
  }
  
  .ref-hero-avatars {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-4);
  }
  
  .ref-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
  }
  
  .ref-avatar--back  {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(155,92,255,0.50);
    transform: translateX(10px);
    color: var(--color-neon-violet);
    z-index: 0;
  }
  
  .ref-avatar--main  {
    background: linear-gradient(135deg, var(--color-neon-purple), var(--color-neon-cyan));
    border: 2px solid var(--color-neon-cyan);
    transform: scale(1.12);
    z-index: 1;
  }
  
  .ref-avatar--front {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(105,255,241,0.50);
    transform: translateX(-10px);
    color: var(--color-neon-cyan);
    z-index: 0;
  }
  
  .ref-hero h2 {
    margin: 0 0 var(--space-2);
    font-size: var(--text-xl);
    font-weight: var(--font-black);
  }
  
  .ref-hero p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-soft);
  }
  
  /* Stats bar */
  .ref-stats {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .ref-stat {
    flex: 1;
    padding: var(--space-4) var(--space-3);
    text-align: center;
    border-right: 1px solid var(--border-subtle);
  }
  
  .ref-stat:last-child { border-right: none; }
  
  .ref-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-1);
  }
  
  .ref-stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
  }
  
  .ref-stat-value--cyan   { color: var(--color-neon-cyan);   }
  .ref-stat-value--gold   { color: var(--acct-gold);         }
  .ref-stat-value--violet { color: var(--color-neon-violet); }
  
  /* Body padding wrapper */
  .ref-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
  
  /* Referral code */
  .ref-code-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
  }
  
  .ref-code-display {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(155,92,255,0.40);
    border-radius: var(--acct-item-radius);
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: var(--font-black);
    letter-spacing: 0.12em;
    color: var(--color-neon-violet);
  }
  
  .ref-copy-btn {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--acct-item-radius);
    background: linear-gradient(135deg, var(--color-neon-purple), var(--color-neon-cyan));
    border: none;
    color: #fff;
    font-weight: var(--font-black);
    font-size: var(--text-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--duration-fast);
  }
  
  .ref-copy-btn:hover { opacity: 0.88; }
  
  /* Referral link row */
  .ref-link-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
  }
  
  .ref-link-display {
    flex: 1;
    padding: var(--space-2) var(--space-4);
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    border-radius: var(--acct-item-radius);
    font-size: var(--text-xs);
    color: var(--text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .ref-link-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--acct-item-radius);
    border: 1px solid var(--border-emphasis);
    background: rgba(105,255,241,0.08);
    color: var(--color-neon-cyan);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--duration-fast);
  }
  
  .ref-link-btn:hover { background: rgba(105,255,241,0.14); }
  
  /* Share buttons row */
  .ref-share-row {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
  }
  
  .ref-share-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--acct-item-radius);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--duration-fast);
  }
  
  .ref-share-btn--whatsapp {
    border: 1px solid rgba(37,211,102,0.30);
    background: rgba(37,211,102,0.10);
    color: #25d366;
  }
  
  .ref-share-btn--whatsapp:hover { background: rgba(37,211,102,0.18); }
  
  .ref-share-btn--telegram {
    border: 1px solid rgba(41,182,246,0.30);
    background: rgba(41,182,246,0.10);
    color: #29b6f6;
  }
  
  .ref-share-btn--telegram:hover { background: rgba(41,182,246,0.18); }
  
  .ref-share-btn--more {
    border: 1px solid var(--acct-item-border);
    background: var(--acct-item-bg);
    color: var(--text-soft);
  }
  
  .ref-share-btn--more:hover { background: var(--acct-item-bg-hover); color: var(--text-white); }
  
  /* Commission table */
  .ref-commission-table {
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    border-radius: var(--acct-item-radius);
    overflow: hidden;
  }
  
  .ref-commission-head,
  .ref-commission-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    align-items: center;
  }
  
  .ref-commission-head {
    background: rgba(255,255,255,0.05);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .ref-commission-row {
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
  }
  
  .ref-tier-badge {
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .ref-tier-badge--1 { color: var(--acct-gold); }
  .ref-tier-badge--2 { color: var(--color-neon-violet); }
  .ref-tier-badge--3 { color: var(--color-neon-cyan); }
  
  .ref-rate  { color: var(--color-neon-green); font-weight: var(--font-bold); }
  .ref-cond  { font-size: var(--text-xs); color: var(--text-muted); }
  .ref-name  { color: var(--text-soft); }
  
  /* Referral history table */
  .ref-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
  }
  
  .ref-history-link {
    font-size: var(--text-xs);
    color: var(--color-neon-cyan);
    cursor: pointer;
    text-decoration: none;
  }
  
  .ref-history-table {
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    border-radius: var(--acct-item-radius);
    overflow: hidden;
  }
  
  .ref-history-head,
  .ref-history-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    align-items: center;
  }
  
  .ref-history-head {
    background: rgba(255,255,255,0.05);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .ref-history-row {
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
  }
  
  .ref-player  { color: var(--text-soft); font-weight: var(--font-semibold); display: flex; align-items: center; gap: 6px; }
  .ref-date    { color: var(--text-muted); font-size: var(--text-xs); }
  .ref-earned  { color: var(--acct-gold); font-weight: var(--font-bold); }
  
  .ref-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: var(--font-black);
  }
  
  .ref-status-badge--active    { background: var(--status-done-bg);    color: var(--status-done-color); }
  .ref-status-badge--nodeposit { background: var(--status-pending-bg); color: var(--status-pending-color); }
  
  /* Simplified referral panel: share link, QR, date filter, history */
  .ref-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  
  .ref-qr {
    display: flex;
    justify-content: center;
    padding: 4px 0;
  }
  
  .ref-qr img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  
  .ref-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .ref-date-row .glass-input {
    width: 100%;
  }
  
  /* Withdraw CTA */
  /* Pending info banner bottom margin */
  .ptx-info-wrap { padding: 0 var(--space-4) var(--space-4); }
  
  .ref-withdraw-btn {
    width: 100%;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-neon-purple), var(--color-neon-cyan));
    border: none;
    color: #fff;
    font-weight: var(--font-black);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity var(--duration-fast), box-shadow var(--duration-fast);
    box-shadow: var(--glow-purple);
  }
  
  .ref-withdraw-btn:hover { opacity: 0.90; box-shadow: var(--glow-cyan); }
  
  /* --------------------------------------------------------------------------
     Referral page: dark, readable panel + two-column body so the content
     stays high-contrast over the bright background and fits the viewport.
     -------------------------------------------------------------------------- */
  /* All member/account pages use the same dark referral-style panel background
     so content stays high-contrast over the bright app background. */
  .page-deposit .deposit-main,
  .page-deposit .deposit-side > .glass-card,
  .page-deposit .deposit-bonus-card,
  .page-deposit .prf-form-card,
  .page-deposit .acct-card {
    /* Matches the index check-in glass card / info-page cards */
    background:
      radial-gradient(ellipse 70% 55% at 12% 6%, rgba(177, 89, 245, 0.30) 0%, transparent 60%),
      linear-gradient(155deg, rgba(126, 38, 193, 0.47) 0%, rgba(63, 19, 97, 1) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 22px rgba(126, 38, 193, 0.30), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(21px);
    backdrop-filter: blur(21px);
  }
  
  /* Body becomes two columns of stacked sections */
  .ref-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }
  
  .ref-withdraw-btn {
    margin-top: auto;
  }
  
  @media (min-width: 900px) {
    .ref-body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-6);
    }
  
    /* Tighter hero so the panel fits 1440x900 without scrolling */
    .ref-hero {
      padding: var(--space-5) var(--space-6);
    }
  
    .ref-avatar {
      width: 46px;
      height: 46px;
    }
  }
  
  
  /* ==========================================================================
     22. SHARED MODAL OVERLAY  (.acct-modal)
     ========================================================================== */
  .acct-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .acct-modal.is-open { display: flex; }
  
  .acct-modal-box {
    background: var(--color-card);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    max-width: 420px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-overlay);
  }
  
  .acct-modal-box--wide { max-width: 500px; }
  
  .acct-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    border: none;
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--duration-fast), color var(--duration-fast);
  }
  
  .acct-modal-close:hover { background: rgba(255,255,255,0.15); color: var(--text-white); }
  
  .acct-modal-title {
    margin: 0 0 var(--space-5);
    font-size: var(--text-lg);
    font-weight: var(--font-black);
  }
  
  .acct-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
  }
  
  .acct-modal-row:last-of-type { border-bottom: none; }
  .acct-modal-row span { color: var(--text-muted); }
  .acct-modal-row strong { color: var(--text-white); font-weight: var(--font-semibold); }
  
  .acct-modal-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-5);
  }
  
  .acct-modal-actions button {
    flex: 1;
    padding: 11px;
    border-radius: var(--acct-item-radius);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: opacity var(--duration-fast);
  }
  
  .acct-modal-btn--primary {
    background: linear-gradient(135deg, var(--color-neon-purple), var(--color-neon-cyan));
    border: none;
    color: #fff;
  }
  
  .acct-modal-btn--danger {
    border: 1px solid rgba(248,113,113,0.40);
    background: transparent;
    color: var(--color-neon-red);
  }
  
  
  /* ==========================================================================
     23. TOAST NOTIFICATION
     ========================================================================== */
  .acct-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-card);
    border: 1px solid var(--color-neon-cyan);
    color: var(--color-neon-cyan);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    z-index: var(--z-toast);
    white-space: nowrap;
    box-shadow: var(--shadow-float);
    opacity: 1;
    transition: opacity var(--duration-slow);
    pointer-events: none;
  }
  
  .acct-toast.is-hiding { opacity: 0; }
  .acct-toast--success  { border-color: var(--color-neon-green); color: var(--color-neon-green); }
  .acct-toast--warning  { border-color: var(--acct-gold);        color: var(--acct-gold); }
  
  
  /* ==========================================================================
     24. RESPONSIVE BREAKPOINTS
     ========================================================================== */
  
  /* Small mobile */
  @media (max-width: 380px) {
    .ref-commission-head,
    .ref-commission-row,
    .ref-history-head,
    .ref-history-row {
      grid-template-columns: 1fr 1fr 1fr;
    }
    /* Hide condition column on tiny screens */
    .ref-commission-head > *:last-child,
    .ref-commission-row  > *:last-child { display: none; }
  }
  
  /* Tablet+ */
  @media (min-width: 640px) {
    .acct-picker-grid--auto { grid-template-columns: repeat(3, 1fr); }
    .ref-share-row { flex-wrap: nowrap; }
  }
  
  /* Desktop */
  @media (min-width: 900px) {
    .page-deposit .center-content,
    .page-transfer .center-content,
    .page-withdraw .center-content,
    .page-history .center-content,
    .page-addbank .center-content,
    .page-pending-transaction .center-content,
    .page-inbox .center-content,
    .page-referral .center-content {
      position: absolute;
      inset: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 5.5rem 2rem 8rem;
    }
  
    .page-deposit .app,
    .page-transfer .app,
    .page-withdraw .app,
    .page-history .app,
    .page-addbank .app,
    .page-pending-transaction .app,
    .page-inbox .app,
    .page-referral .app,
    .page-profile .app {
      overflow: hidden;
    }
  
    /* Two-column layout: form (wider) + sidebar */
    .acct-layout { grid-template-columns: 1.6fr 1fr; }
  
    /* Method picker: 4 columns */
    .acct-picker-grid--methods { grid-template-columns: repeat(4, 1fr); }
    .acct-picker--col { flex-direction: column; text-align: center; gap: var(--space-1); padding: var(--space-3) var(--space-2); }
  
    /* Bank picker: 3 columns */
    .acct-picker-grid--banks  { grid-template-columns: repeat(3, 1fr); }
  
    /* Transfer wallets: 3 columns */
    .acct-picker-grid--wallets { grid-template-columns: repeat(3, 1fr); }
  
    /* Pending / inbox / referral: single wide column */
    .acct-layout--single { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }
  
    /* Desktop scroll fix for profile — match the other member pages' bottom
       clearance (8rem) so the content box is the same height everywhere. */
    .page-profile .center-content {
      position: absolute;
      inset: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 5.5rem 2rem 8rem;
    }
  }
  
  
  /* ==========================================================================
     25. PROFILE PAGE  (.prf-*)
     ========================================================================== */
  
  /* Hero card */
  .prf-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-5);
    text-align: center;
    background: var(--acct-card-bg);
    border: var(--acct-card-border);
    border-radius: var(--acct-card-radius);
    box-shadow: var(--acct-card-shadow);
    backdrop-filter: blur(var(--liq-blur));
    -webkit-backdrop-filter: blur(var(--liq-blur));
  }
  
  /* Avatar */
  .prf-avatar-wrap {
    position: relative;
    display: inline-block;
  }
  
  .prf-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(155,92,255,0.35), rgba(105,255,241,0.25));
    border: 2px solid rgba(155,92,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--color-neon-cyan);
  }
  
  .prf-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-neon-purple);
    border: none;
    color: #fff;
    font-size: .7rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--duration-fast);
  }
  
  .prf-avatar-edit:hover { background: var(--color-neon-cyan); }
  
  /* Name & VIP tag */
  .prf-name {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-black);
    color: var(--text-white);
  }
  
  .prf-vip-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, rgba(155,92,255,0.22), rgba(105,255,241,0.18));
    border: 1px solid rgba(155,92,255,0.40);
    font-size: var(--text-xs);
    font-weight: var(--font-black);
    color: var(--color-neon-violet);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  
  /* Stats row */
  .prf-stats {
    display: flex;
    gap: var(--space-3);
    width: 100%;
  }
  
  .prf-stat {
    flex: 1;
    padding: var(--space-3) var(--space-2);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    text-align: center;
  }
  
  .prf-stat-val {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-black);
    color: var(--color-neon-cyan);
    line-height: 1.2;
  }
  
  .prf-stat-lbl {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
  }
  
  /* Form card shared wrapper */
  .prf-form-card {
    background: var(--acct-card-bg);
    border: var(--acct-card-border);
    border-radius: var(--acct-card-radius);
    box-shadow: var(--acct-card-shadow);
    backdrop-filter: blur(var(--liq-blur));
    -webkit-backdrop-filter: blur(var(--liq-blur));
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  
  /* Profile tabs: Update Profile / Change Password */
  .prf-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
  }
  
  .prf-tab {
    flex: 1;
    padding: 11px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft, rgba(255, 255, 255, 0.65));
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
  }
  
  .prf-tab:hover {
    color: #fff;
  }
  
  .prf-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(105, 255, 241, 0.20), rgba(155, 92, 255, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  
  /* Tab panes (the two forms) */
  .prf-pane {
    display: none;
  }
  
  .prf-pane.active {
    display: flex;
  }
  
  /* Password field with show/hide toggle */
  .prf-input-wrap {
    position: relative;
  }
  
  .prf-input-wrap .glass-input {
    width: 100%;
    padding-right: 42px;
  }
  
  .prf-pw-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
  }
  
  .prf-pw-toggle:hover {
    color: #69fff1;
    background: rgba(255, 255, 255, 0.06);
  }
  
  .prf-select {
    cursor: pointer;
  }
  
  .prf-select option {
    background-color: #1e1142;
    color: #fff;
  }
  
  /* Profile: both forms side-by-side, full width (no tabs) */
  .acct-layout.prf-grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
  }
  
  /* Drop the heavy dark drop-shadow on the profile cards */
  .prf-grid .prf-form-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  
  @media (min-width: 900px) {
    .acct-layout.prf-grid {
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }
  }
  
  /* Input field group */
  .prf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .prf-field label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-soft);
  }
  
  .prf-field .glass-input {
    width: 100%;
    padding: 11px var(--space-4);
    border-radius: var(--acct-item-radius);
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    color: var(--text-white);
    font-size: var(--text-sm);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    outline: none;
  }
  
  .prf-field .glass-input:focus {
    border-color: rgba(105,255,241,0.50);
    box-shadow: 0 0 0 3px rgba(105,255,241,0.08);
  }
  
  .prf-field .glass-input[readonly] {
    opacity: 0.55;
    cursor: not-allowed;
  }
  
  /* Sidebar: VIP progress card */
  .prf-vip-card {
    background: var(--acct-card-bg);
    border: var(--acct-card-border);
    border-radius: var(--acct-card-radius);
    box-shadow: var(--acct-card-shadow);
    backdrop-filter: blur(var(--liq-blur));
    -webkit-backdrop-filter: blur(var(--liq-blur));
    padding: var(--space-5);
  }
  
  .prf-vip-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
  }
  
  .prf-vip-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-neon-purple), var(--color-neon-cyan));
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
  }
  
  .prf-vip-label {
    font-weight: var(--font-black);
    font-size: var(--text-base);
    color: var(--text-white);
    line-height: 1.2;
  }
  
  .prf-vip-sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 2px;
  }
  
  .prf-progress-bar {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-pill);
    height: 8px;
    overflow: hidden;
    margin-bottom: var(--space-2);
  }
  
  .prf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-neon-purple), var(--color-neon-cyan));
    border-radius: var(--radius-pill);
  }
  
  .prf-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
  }
  
  /* Sidebar: KYC card */
  .prf-kyc-card {
    background: var(--acct-card-bg);
    border: var(--acct-card-border);
    border-radius: var(--acct-card-radius);
    box-shadow: var(--acct-card-shadow);
    backdrop-filter: blur(var(--liq-blur));
    -webkit-backdrop-filter: blur(var(--liq-blur));
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .prf-kyc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .prf-kyc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
  }
  
  .prf-kyc-name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-soft);
  }
  
  .prf-kyc-name i { opacity: 0.65; width: 14px; text-align: center; }
  
  .prf-kyc-status {
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .prf-kyc-status--ok      { color: #4dd66e; }
  .prf-kyc-status--pending { color: #ffc855; }
  .prf-kyc-status--fail    { color: var(--color-neon-red); }
  
  /* Sidebar: quick links card */
  .prf-links-card {
    background: var(--acct-card-bg);
    border: var(--acct-card-border);
    border-radius: var(--acct-card-radius);
    box-shadow: var(--acct-card-shadow);
    backdrop-filter: blur(var(--liq-blur));
    -webkit-backdrop-filter: blur(var(--liq-blur));
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .prf-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
    background: var(--acct-item-bg);
    border: 1px solid var(--acct-item-border);
    text-decoration: none;
    font-size: var(--text-sm);
    color: var(--text-soft);
    transition: background var(--duration-fast), color var(--duration-fast);
  }
  
  .prf-link-item:hover {
    background: var(--acct-item-bg-hover);
    color: var(--text-white);
  }
  
  .prf-link-item i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
  }
  