/* =============================================
   FaxSell — Distinct editorial mobile UI
   Dark accents · Teal highlights · No wallet-app pattern
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --surface-alt: #F0F2F5;
    --ink: #111318;
    --ink-soft: #5A5F6B;
    --ink-muted: #9DA3AE;
    --border: #E4E7EC;
    --teal: #12B886;
    --teal-dark: #0CA678;
    --teal-bg: #E6FCF5;
    --red: #FA5252;
    --red-bg: #FFF0F0;
    --amber: #F59F00;
    --amber-bg: #FFF9DB;
    --blue: #4C6EF5;
    --blue-bg: #EDF2FF;
    --accent: var(--teal);
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-pill: 100px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.08);
    --tr: .2s ease;
    --app-w: 460px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: #E8EAED;
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

a { color: var(--teal); text-decoration: none; transition: var(--tr); }
a:hover { color: var(--teal-dark); }

/* ===== App Shell ===== */
.app-shell {
    width: 100%;
    max-width: var(--app-w);
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== Top Bar ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--surface);
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}
.logo-b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--teal);
    color: #fff;
    border-radius: 6px;
    font-size: .8rem;
    margin-right: 2px;
}

.topbar-tabs {
    display: flex;
    gap: 2px;
    background: var(--surface-alt);
    padding: 3px;
    border-radius: var(--radius-pill);
}
.tab {
    padding: 6px 14px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-muted);
    border-radius: var(--radius-pill);
    transition: var(--tr);
    white-space: nowrap;
}
.tab:hover { color: var(--ink-soft); }
.tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.topbar-exit {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ink-muted);
    font-size: .82rem;
    transition: var(--tr);
}
.topbar-exit:hover { background: var(--red-bg); color: var(--red); }

/* ===== App Body ===== */
.app-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 20px; }

/* ===== Footer ===== */
.app-foot {
    text-align: center;
    padding: 16px;
    font-size: .68rem;
    color: var(--ink-muted);
}

/* ===== Toast ===== */
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 500;
    animation: toastIn .35s ease;
}
.toast i { font-size: .9rem; flex-shrink: 0; }
.toast-success { background: var(--teal-bg); color: #087f5b; }
.toast-error { background: var(--red-bg); color: #c92a2a; }
.toast-info { background: var(--blue-bg); color: #364fc7; }

@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Balance Strip ===== */
.balance-strip {
    background: var(--ink);
    border-radius: 20px;
    padding: 28px 24px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.balance-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--teal);
    opacity: .08;
}

.bs-inner { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.bs-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); font-weight: 600; margin-bottom: 6px; }
.bs-amount { display: block; font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.bs-sub { display: block; font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 4px; }

.currency-pill {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tr);
    position: relative;
}
.currency-pill:hover { background: rgba(255,255,255,.2); }
.currency-pill i { margin-left: 4px; font-size: .6rem; }

.currency-drop {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    z-index: 60;
    box-shadow: var(--shadow-lg);
    width: 200px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    flex-wrap: wrap;
    gap: 4px;
}
.currency-drop.open { display: flex; }
.cd-item {
    padding: 6px 12px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--ink-soft);
    border-radius: var(--radius-xs);
    transition: var(--tr);
}
.cd-item:hover { background: var(--surface-alt); color: var(--ink); }
.cd-active { background: var(--teal); color: #fff !important; }
.cd-active:hover { background: var(--teal-dark); }

.bs-right { position: relative; }

.bs-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* ===== Pill Buttons ===== */
.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--tr);
    text-decoration: none;
    line-height: 1.3;
}
.pill-btn:active { transform: scale(.97); }

.pill-primary { background: var(--teal); color: #fff; }
.pill-primary:hover { background: var(--teal-dark); color: #fff; }

.pill-outline {
    background: transparent;
    color: rgba(255,255,255,.8);
    border: 1.5px solid rgba(255,255,255,.2);
}
.pill-outline:hover { background: rgba(255,255,255,.08); color: #fff; }

.pill-surface { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
.pill-surface:hover { border-color: var(--teal); color: var(--teal); }

.pill-danger { background: var(--red); color: #fff; }

.pill-sm { padding: 7px 14px; font-size: .72rem; }
.pill-block { width: 100%; justify-content: center; }

.pill-btn:disabled, .pill-btn[disabled] { opacity: .4; pointer-events: none; }

/* ===== Metric Row ===== */
.metric-row {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px 0;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
}
.metric { flex: 1; text-align: center; }
.metric-num { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.metric-tag { font-size: .62rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.metric-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ===== Dashboard Sections ===== */
.dash-section {}
.ds-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ds-head h2 { font-size: .92rem; font-weight: 700; color: var(--ink); }
.ds-link { font-size: .72rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ===== Ticket Scroll Cards ===== */
.ticket-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.ticket-scroll::-webkit-scrollbar { display: none; }

.tcard {
    min-width: 220px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: var(--tr);
}
.tcard:hover { border-color: var(--teal); box-shadow: var(--shadow); }

.tcard-top { margin-bottom: 12px; }
.tcard-event { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 3px; }
.tcard-type { font-size: .68rem; color: var(--ink-muted); font-weight: 500; background: var(--surface-alt); padding: 2px 8px; border-radius: var(--radius-xs); }

.tcard-bot { display: flex; justify-content: space-between; align-items: center; }
.tcard-code { font-size: .65rem; font-family: 'Courier New', monospace; color: var(--ink-muted); }
.tcard-payout { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--teal); }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}

.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}
.tl-item + .tl-item { border-top: 1px solid var(--surface-alt); }

.tl-dot {
    position: absolute;
    left: -22px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2.5px solid var(--surface);
    z-index: 2;
}
.tl-dot-in { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-bg); }
.tl-dot-out { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }

.tl-body { flex: 1; min-width: 0; }
.tl-desc { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-time { font-size: .68rem; color: var(--ink-muted); }

.tl-amount { font-family: var(--font-display); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.tl-pos { color: var(--teal); }
.tl-neg { color: var(--red); }

/* ===== Empty Block ===== */
.empty-block {
    text-align: center;
    padding: 36px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1.5px dashed var(--border);
}
.empty-icon { font-size: 2rem; color: var(--border); margin-bottom: 10px; }
.empty-block p { font-size: .85rem; color: var(--ink-muted); margin-bottom: 14px; }

/* ===== Form Elements ===== */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { font-size: .75rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.form-label i { font-size: .7rem; margin-right: 3px; color: var(--ink-muted); }

.form-input {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .88rem;
    color: var(--ink);
    background: var(--surface);
    transition: var(--tr);
    width: 100%;
}
.form-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-bg); }
.form-input::placeholder { color: var(--ink-muted); }
.form-input-lg { font-size: 1rem; padding: 14px 18px; }

.form-hint { font-size: .68rem; color: var(--ink-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== Page Intro ===== */
.page-intro { margin-bottom: 4px; }
.page-intro h1 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.page-intro p { font-size: .82rem; color: var(--ink-soft); }

/* ===== Card ===== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 20px;
}

/* ===== Ticket Preview (Sell confirm) ===== */
.tk-preview {
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: var(--surface);
}
.tk-head {
    background: var(--ink);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tk-valid { background: var(--teal); padding: 3px 10px; border-radius: var(--radius-pill); font-size: .65rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.tk-code { font-family: 'Courier New', monospace; font-size: .78rem; opacity: .6; }

.tk-body { padding: 20px; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.tk-full { grid-column: 1 / -1; }
.tk-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-weight: 700; margin-bottom: 2px; }
.tk-val { font-size: .85rem; font-weight: 600; color: var(--ink); }
.tk-val small { font-weight: 400; color: var(--ink-soft); font-size: .76rem; }

.payout-strip {
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
}
.payout-strip h4 { font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }

.ps-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .82rem; }
.ps-fee { color: var(--red); }
.ps-total { border-top: 2px dashed var(--border); margin-top: 8px; padding-top: 10px; font-weight: 700; }
.ps-total-num { font-family: var(--font-display); font-size: 1.35rem; color: var(--teal); }

/* ===== Success Screen ===== */
.success-view { text-align: center; padding: 20px 0 10px; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.sv-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--teal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    animation: pop .5s cubic-bezier(.34,1.56,.64,1);
}
.sv-check i { font-size: 2.2rem; color: var(--teal); }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.success-view h1 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.success-view p { font-size: .85rem; color: var(--ink-soft); margin-bottom: 22px; }

.sv-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
    margin-bottom: 20px;
}
.sv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    font-size: .82rem;
    border-bottom: 1px solid var(--surface-alt);
}
.sv-row:last-child { border-bottom: none; }
.sv-row span:first-child { color: var(--ink-muted); }
.sv-row strong { color: var(--ink); font-weight: 700; }
.sv-row code { background: var(--surface-alt); padding: 2px 8px; border-radius: 4px; font-size: .72rem; font-weight: 600; }
.sv-row-hl { background: var(--teal-bg); }
.sv-row-hl strong { color: var(--teal); font-family: var(--font-display); font-size: 1rem; }

.sv-actions { display: flex; flex-direction: column; gap: 8px; }

/* ===== Withdraw Method ===== */
.wm-selector { display: flex; flex-direction: column; gap: 8px; }
.wm-option { cursor: pointer; }
.wm-option input { display: none; }
.wm-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--tr);
    font-weight: 600;
    font-size: .85rem;
    color: var(--ink-soft);
}
.wm-inner i { font-size: 1.1rem; color: var(--ink-muted); width: 20px; text-align: center; }
.wm-option input:checked + .wm-inner { border-color: var(--teal); background: var(--teal-bg); color: var(--teal-dark); }
.wm-option input:checked + .wm-inner i { color: var(--teal); }

.wm-fields { animation: toastIn .3s ease; margin-top: 10px; }

/* ===== Withdrawal History ===== */
.wh-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.wh-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wh-dot-pending { background: var(--amber); }
.wh-dot-processing { background: var(--blue); }
.wh-dot-completed { background: var(--teal); }
.wh-dot-failed { background: var(--red); }

.wh-info { flex: 1; min-width: 0; }
.wh-method { font-size: .82rem; font-weight: 700; color: var(--ink); }
.wh-date { font-size: .65rem; color: var(--ink-muted); }
.wh-amt { font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: var(--ink); }

/* ===== Balance Mini (Withdraw page) ===== */
.bal-mini {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 18px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.bal-mini-lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); font-weight: 600; display: block; }
.bal-mini-amt { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.bal-mini-sub { font-size: .68rem; color: rgba(255,255,255,.3); }

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge-success { background: var(--teal-bg); color: #087f5b; }
.badge-error { background: var(--red-bg); color: #c92a2a; }
.badge-warning { background: var(--amber-bg); color: #e67700; }
.badge-info { background: var(--blue-bg); color: #364fc7; }

/* ===== Pagination ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.pager-info { font-size: .78rem; color: var(--ink-muted); font-weight: 600; }

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.loading-overlay.active { opacity: 1; visibility: visible; }

.loader-ring { width: 48px; height: 48px; position: relative; margin-bottom: 16px; }
.loader-ring div {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--teal);
    animation: spin .9s linear infinite;
}
.loader-ring div:nth-child(2) { width: 70%; height: 70%; top: 15%; left: 15%; border-top-color: var(--ink); animation-duration: 1.4s; animation-direction: reverse; }
.loader-ring div:nth-child(3) { width: 40%; height: 40%; top: 30%; left: 30%; border-top-color: var(--teal); animation-duration: .7s; }
@keyframes spin { to { transform: rotate(360deg); } }

.loader-text { font-size: .85rem; font-weight: 600; color: var(--ink); }

/* ===== Auth Screens ===== */
.auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: var(--app-w);
    margin: 0 auto;
    width: 100%;
    background: var(--bg);
}

.auth-top {
    background: var(--ink);
    padding: 52px 28px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-top::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--teal);
    opacity: .06;
    top: -60%;
    right: -30%;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.auth-logo .logo-b { width: 28px; height: 28px; font-size: .9rem; }
.auth-top h1 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 4px; position: relative; z-index: 1; }
.auth-top p { color: rgba(255,255,255,.5); font-size: .85rem; position: relative; z-index: 1; }

.auth-form-wrap {
    flex: 1;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    padding: 30px 24px 40px;
    position: relative;
    z-index: 2;
}

.auth-switch { text-align: center; margin-top: 20px; font-size: .82rem; color: var(--ink-muted); }

/* ===== Landing Page ===== */
.landing-top {
    background: var(--ink);
    padding: 56px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.landing-top::before {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: var(--teal);
    opacity: .06;
    top: -50%; right: -30%;
}

.landing-top h1 { font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; position: relative; z-index: 1; }
.landing-top h1 span { color: var(--teal); }
.landing-top p { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.6; margin-bottom: 24px; position: relative; z-index: 1; }

.landing-body {
    background: var(--bg);
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    padding: 30px 20px 40px;
    position: relative;
    z-index: 2;
}

.land-section-title { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }

.step-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.step-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
}
.step-n {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--teal-bg);
    color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .82rem;
    flex-shrink: 0;
}
.step-card h3 { font-size: .85rem; font-weight: 700; margin-bottom: 2px; }
.step-card p { font-size: .75rem; color: var(--ink-soft); line-height: 1.5; }

.method-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.ml-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
}
.ml-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ml-card h4 { font-size: .82rem; font-weight: 700; margin-bottom: 1px; }
.ml-card p { font-size: .68rem; color: var(--ink-soft); }

.cur-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.cur-tag { background: var(--surface); border: 1.5px solid var(--border); padding: 5px 12px; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700; color: var(--ink-soft); transition: var(--tr); }
.cur-tag:hover { border-color: var(--teal); color: var(--teal); }

.land-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }

/* ===== Utilities ===== */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }

/* ===== PIN Input ===== */
.pin-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 8px 0;
}
.pin-box {
    width: 52px;
    height: 60px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--surface);
    transition: var(--tr);
    -webkit-appearance: none;
    -moz-appearance: textfield;
}
.pin-box:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-bg);
}
.pin-box::-webkit-inner-spin-button,
.pin-box::-webkit-outer-spin-button { -webkit-appearance: none; }

.pin-single-input {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .3em;
    max-width: 180px;
    margin: 0 auto;
    display: block;
}

.pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 700;
}
.pin-badge-on { background: var(--teal-bg); color: #087f5b; }
.pin-badge-off { background: var(--amber-bg); color: #e67700; }

/* ===== PIN Verify Screen ===== */
.pin-verify {
    text-align: center;
    padding: 20px 0;
}
.pin-verify-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--ink);
}
.pin-verify h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.pin-verify p {
    font-size: .82rem;
    color: var(--ink-soft);
    margin-bottom: 24px;
}
.pin-verify .pin-input-group { margin-bottom: 20px; }
.pin-error {
    color: var(--red);
    font-size: .78rem;
    font-weight: 600;
    margin-top: -12px;
    margin-bottom: 12px;
}
.pin-verify-summary {
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    text-align: left;
}
.pvs-row {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    padding: 4px 0;
}
.pvs-row span:first-child { color: var(--ink-muted); }
.pvs-row strong { color: var(--ink); font-weight: 700; }
.pvs-amount { font-family: var(--font-display); color: var(--teal) !important; font-size: .95rem; }

/* ===== Profile Page ===== */
.prof-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.prof-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}
.prof-name { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 1px; }
.prof-email { font-size: .78rem; color: var(--ink-muted); }

.prof-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}
.prof-tabs::-webkit-scrollbar { display: none; }
.ptab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 12px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-muted);
    border-radius: var(--radius-pill);
    transition: var(--tr);
    white-space: nowrap;
    text-decoration: none;
}
.ptab:hover { color: var(--ink-soft); }
.ptab.active { background: var(--ink); color: #fff; }
.ptab-red.active { background: var(--red); }

.prof-stats {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 16px 0;
    margin-bottom: 16px;
}
.ps-item { flex: 1; text-align: center; }
.ps-val { display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--ink); }
.ps-lbl { font-size: .6rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ps-div { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

.prof-section-title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.prof-section-title i { font-size: .78rem; color: var(--teal); }

/* ===== Currency Grid ===== */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.cur-option { cursor: pointer; }
.cur-option input { display: none; }
.cur-option-inner {
    display: block;
    text-align: center;
    padding: 10px 4px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-soft);
    transition: var(--tr);
}
.cur-option input:checked + .cur-option-inner {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.cur-option-inner:hover { border-color: var(--ink-muted); }

/* ===== Info Rows ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: .82rem;
    border-bottom: 1px solid var(--surface-alt);
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--ink-muted); }
.info-row strong { color: var(--ink); font-weight: 700; }

/* ===== Danger button ===== */
.pill-danger { background: var(--red); color: #fff; border: none; }
.pill-danger:hover { opacity: .9; color: #fff; }

/* ===== Desktop Centering ===== */
@media (min-width: 481px) {
    .app-shell {
        box-shadow: 0 0 80px rgba(0,0,0,.06);
        border-radius: 28px;
        margin: 16px auto;
        min-height: calc(100vh - 32px);
        overflow: hidden;
    }
    .auth-screen {
        box-shadow: 0 0 80px rgba(0,0,0,.06);
        border-radius: 28px;
        margin: 16px auto;
        min-height: calc(100vh - 32px);
        overflow: hidden;
    }
}
