/* =====================================================
   TrPay — Kurumsal tasarım sistemi
   Açık zemin + lacivert menü (Papara / Stripe / Mercury)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800&display=swap&text=%E2%82%BA');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }

:root {
    --bg-0: #F4F5F7;
    --bg-1: #FFFFFF;
    --bg-2: #F8FAFC;
    --bg-3: #EEF2F7;
    --bg-elev: #FFFFFF;
    --bg-sidebar: #0B1220;
    --bg-sidebar-2: #111827;

    --border: #E5E9F0;
    --border-strong: #D5DCE6;
    --border-brand: rgba(124, 58, 237, 0.22);

    --text: #0F172A;
    --text-muted: #64748B;
    --text-dim: #94A3B8;
    --on-dark: #F1F5F9;
    --on-dark-muted: #94A3B8;

    --brand: #7C3AED;
    --brand-light: #8B5CF6;
    --brand-2: #6D28D9;
    --brand-2-light: #A78BFA;
    --brand-accent: #5B21B6;
    --brand-3: #C4B5FD;

    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --info: #2563EB;

    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10);
    --glow-brand: none;
    --glow-gold: none;

    --header-h: 64px;
    --sidebar-w: 260px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    letter-spacing: -0.011em;
    overflow-wrap: break-word;
}

h1, h2, h3, h4 { letter-spacing: -0.025em; font-weight: 700; margin: 0; }
h1 { font-weight: 700; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

.ico-svg { display: block; flex-shrink: 0; }

.ico-tile {
    width: 28px; height: 28px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ico-tile .ico-svg { width: 15px; height: 15px; }

.sidebar .ico-tile.tone-violet { background: rgba(139, 92, 246, .18); color: #C4B5FD; }
.sidebar .ico-tile.tone-green  { background: rgba(16, 185, 129, .16); color: #6EE7B7; }
.sidebar .ico-tile.tone-rose   { background: rgba(244, 63, 94, .16); color: #FDA4AF; }
.sidebar .ico-tile.tone-blue   { background: rgba(59, 130, 246, .16); color: #93C5FD; }
.sidebar .ico-tile.tone-amber  { background: rgba(245, 158, 11, .18); color: #FCD34D; }
.sidebar .ico-tile.tone-slate  { background: rgba(148, 163, 184, .14); color: #CBD5E1; }
.sidebar .ico-tile.tone-sky    { background: rgba(14, 165, 233, .16); color: #7DD3FC; }
.sidebar .ico-tile.tone-indigo { background: rgba(99, 102, 241, .16); color: #A5B4FC; }

.main .ico-tile, .topbar .ico-tile, .bottom-nav .ico-tile {
    width: 32px; height: 32px; border-radius: 10px;
}
.main .ico-tile .ico-svg, .topbar .ico-tile .ico-svg, .bottom-nav .ico-tile .ico-svg { width: 16px; height: 16px; }
.main .ico-tile.tone-violet, .topbar .ico-tile.tone-violet, .bottom-nav .ico-tile.tone-violet { background: #F5F3FF; color: #7C3AED; }
.main .ico-tile.tone-green,  .topbar .ico-tile.tone-green,  .bottom-nav .ico-tile.tone-green  { background: #ECFDF5; color: #059669; }
.main .ico-tile.tone-rose,   .topbar .ico-tile.tone-rose,   .bottom-nav .ico-tile.tone-rose   { background: #FEF2F2; color: #DC2626; }
.main .ico-tile.tone-blue,   .topbar .ico-tile.tone-blue,   .bottom-nav .ico-tile.tone-blue   { background: #EFF6FF; color: #2563EB; }
.main .ico-tile.tone-amber,  .topbar .ico-tile.tone-amber,  .bottom-nav .ico-tile.tone-amber  { background: #FFFBEB; color: #D97706; }
.main .ico-tile.tone-slate,  .topbar .ico-tile.tone-slate,  .bottom-nav .ico-tile.tone-slate  { background: #F1F5F9; color: #475569; }
.main .ico-tile.tone-sky,    .topbar .ico-tile.tone-sky,    .bottom-nav .ico-tile.tone-sky    { background: #F0F9FF; color: #0284C7; }
.main .ico-tile.tone-indigo, .topbar .ico-tile.tone-indigo, .bottom-nav .ico-tile.tone-indigo { background: #EEF2FF; color: #4F46E5; }

.ico-usdt { display: block; flex-shrink: 0; object-fit: contain; }
.ico-tile.tone-usdt {
    background: transparent !important;
    overflow: hidden;
    border-radius: 50%;
    padding: 0;
}
.ico-tile.tone-usdt .ico-usdt,
.ico-tile.tone-usdt .ico-svg {
    width: 100% !important;
    height: 100% !important;
}

.card-title-l { display: inline-flex; align-items: center; gap: 10px; }

/* ---------------- Utility ---------------- */
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.mono { font-family: 'JetBrains Mono', 'Consolas', monospace; }
.center { text-align: center; }
.right { text-align: right; }
.grow { flex: 1; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-20{margin-bottom:20px}.mb-24{margin-bottom:24px}
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }
.text-sm { font-size: 14.5px; }
.text-xs { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.text-3xl { font-size: 34px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.bg-emerald-500\/15 { background: #ECFDF5; }
.border-emerald-400\/30 { border-color: #A7F3D0; }
.text-emerald-200 { color: #065F46; }
.bg-rose-500\/15 { background: #FEF2F2; }
.border-rose-400\/30 { border-color: #FECACA; }
.text-rose-200 { color: #991B1B; }
.bg-amber-500\/15 { background: #FFFBEB; }
.border-amber-400\/30 { border-color: #FDE68A; }
.text-amber-200 { color: #92400E; }
.bg-sky-500\/15 { background: #EFF6FF; }
.border-sky-400\/30 { border-color: #BFDBFE; }
.text-sky-200 { color: #1E40AF; }

/* ---------------- Flash ---------------- */
.flash {
    padding: 12px 16px;
    margin: 0 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: 15px;
}

/* ---------------- Brand ---------------- */
.brand-logo-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    line-height: 0;
}
.brand-logo-link:hover { color: inherit; }

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
    width: auto;
    height: auto;
    line-height: 0;
    background: transparent;
    border-radius: 0;
    filter: none;
}
.brand-logo img {
    display: block;
    width: auto;
    height: var(--brand-logo-h, 36px);
    max-width: min(200px, 72vw);
    object-fit: contain;
}
.sidebar .brand-logo,
.brand-panel .brand-logo,
.landing-footer .brand-logo,
.landing-card .brand-logo,
.auth-brand .brand-logo {
    background: #fff;
    border-radius: 10px;
    padding: 6px 8px;
    filter: none;
    max-width: 100%;
}
.sidebar .brand-logo img { height: 32px; max-width: min(220px, 100%); }
.landing-nav .brand-logo { max-width: 100%; }
.landing-nav .brand-logo img { height: 34px; max-width: min(168px, 52vw); }
.brand-name {
    font-weight: 700; font-size: 18px; letter-spacing: -0.03em;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600; font-size: 14.5px;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
    text-decoration: none;
    background: transparent; color: var(--text);
    line-height: 1.2;
    font-family: inherit;
    white-space: nowrap;
}
.btn:hover { color: inherit; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(124, 58, 237, 0.28);
}
.btn-primary:hover { background: var(--brand-light); color: #fff; }

.btn-gold {
    background: #fff;
    color: var(--brand);
    border-color: var(--border-strong);
}
.btn-gold:hover { background: var(--bg-2); color: var(--brand-accent); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-success:hover, .btn-danger:hover, .btn-warning:hover { color: #fff; filter: brightness(1.05); }

.btn-ghost { border-color: var(--border-strong); background: #fff; color: var(--text); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }

.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: rgba(124, 58, 237, 0.06); color: var(--brand); }

.btn-sm { padding: 7px 11px; font-size: 13.5px; border-radius: 7px; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-xl { padding: 14px 24px; font-size: 15px; border-radius: 10px; font-weight: 600; }
.btn-block { width: 100%; }

.btn-red {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(124, 58, 237, 0.28);
}
.btn-red:hover { background: var(--brand-light); color: #fff; }
.btn-red:disabled { background: #C4B5FD; }

/* ---------------- Cards ---------------- */
.card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }

.card-title {
    font-size: 16px; font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
    overflow-wrap: anywhere;
}

.card-elevated {
    background: var(--bg-1);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

/* ---------------- Forms ---------------- */
.form-row { margin-bottom: 16px; }
.form-row label {
    display: block; font-size: 14.5px; color: var(--text-muted); margin-bottom: 6px;
    font-weight: 600;
}
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    font-size: 15.5px;
    font-family: inherit;
    transition: border .15s, box-shadow .15s;
}
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color: #B8C0CC; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
.form-row .hint { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr !important; } }
.form-row input[type="file"] {
    max-width: 100%;
    min-height: 0;
    padding: 10px;
    font-size: 14px;
}

/* ---------------- Auth ---------------- */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-shell { width: 100%; max-width: 460px; }
.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-brand h1 { font-size: 26px; margin: 16px 0 8px; }
.auth-brand p { color: var(--text-muted); margin: 0; font-size: 15px; }
.auth-brand .brand-logo { width: auto; height: auto; border-radius: 10px; margin: 0 auto 8px; }
.auth-links { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-links a { color: var(--brand); font-weight: 600; }
.db-info { margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted); }

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}
.auth-split .brand-panel {
    background: linear-gradient(165deg, #0B1220 0%, #1E1B4B 55%, #0B1220 100%);
    padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
    color: var(--on-dark);
    min-width: 0;
    max-width: 100%;
}
.auth-split .brand-panel.red {
    background: linear-gradient(165deg, #0B1220 0%, #1E1B4B 50%, #4C1D95 100%);
}
.auth-split .brand-panel.red::before,
.auth-split .brand-panel::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(600px 400px at 20% 10%, rgba(124,58,237,.28), transparent 60%);
    pointer-events: none;
}
.auth-split .brand-panel > * { position: relative; z-index: 1; }
.auth-split .brand-panel .brand-name,
.auth-split .brand-panel.red .brand-name { color: #fff; }
.auth-split .brand-panel p,
.auth-split .brand-panel.red p { color: rgba(255,255,255,.72); }
.auth-split .brand-panel .brand-tagline,
.auth-split .brand-panel.red .brand-tagline { color: rgba(255,255,255,.5); }
.auth-split .form-panel {
    padding: 48px 56px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    min-width: 0;
    max-width: 100%;
}
.auth-split .form-panel-inner { width: 100%; max-width: 420px; min-width: 0; }
.form-panel-light { background: #fff !important; }

.brand-panel .brand-copy {
    width: 100%;
    text-align: center;
}
.brand-panel .brand-hero-desc {
    font-size: 14.5px; line-height: 1.7; margin: 12px auto 24px;
    max-width: min(400px, 100%); color: rgba(255,255,255,.7);
    text-align: center;
}
.brand-panel .brand-tagline {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
    text-align: center;
    width: 100%;
    overflow-wrap: anywhere;
}
.brand-panel .brand-illustration {
    margin: 0 auto; max-width: min(340px, 100%); opacity: .95;
}
.auth-split .brand-panel > :last-child { text-align: center; }

@media (max-width: 900px) {
    .auth-split { grid-template-columns: minmax(0, 1fr); }
    .auth-split .brand-panel { padding: 28px 20px; min-height: auto; }
    .auth-split .form-panel { padding: 32px 20px 64px; }
}

/* ---------------- App shell ---------------- */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; max-width: 100%; }
.sidebar {
    background: var(--bg-sidebar);
    color: var(--on-dark);
    padding: 18px 12px 24px;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    border-right: 0;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.sidebar .brand-row {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    margin-bottom: 18px; padding: 4px 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    min-width: 0; overflow: hidden;
}
.sidebar .brand-row strong { font-size: 16px; letter-spacing: -0.03em; display: block; color: #fff; }
.sidebar .brand-row small { display: block; color: var(--on-dark-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

.sidebar-bal {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    margin: 0 4px 18px;
}
.sidebar-bal .lbl { color: var(--on-dark-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sidebar-bal .lbl .ico-tile { width: 22px; height: 22px; border-radius: 6px; text-transform: none; }
.sidebar-bal .lbl .ico-tile .ico-svg { width: 12px; height: 12px; }
.sidebar-bal .amt { font-size: 22px; font-weight: 700; margin-top: 4px; color: #fff; font-feature-settings: 'tnum'; letter-spacing: -.02em; overflow-wrap: anywhere; min-width: 0; }
.sidebar-bal .acc { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); color: var(--on-dark-muted); font-size: 11px; min-width: 0; }
.sidebar-bal .acc span { min-width: 0; overflow-wrap: anywhere; }

.nav-section { margin-bottom: 8px; padding: 0 4px; }
.nav-section-title {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
    color: #64748B; padding: 12px 10px 6px; font-weight: 700;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    color: #94A3B8; font-size: 14.5px; font-weight: 500;
    transition: background .12s, color .12s;
    margin-bottom: 1px;
    border: 0;
    min-width: 0;
}
.nav-item span { min-width: 0; overflow-wrap: anywhere; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active {
    background: rgba(124, 58, 237, .22);
    color: #fff;
    box-shadow: none;
    border: 0;
}
.nav-item.active .ico-tile { box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.nav-item .badge {
    margin-left: auto;
    background: var(--danger);
    color: white; font-size: 10px;
    padding: 2px 6px; border-radius: 999px; font-weight: 700; min-width: 18px; text-align: center;
    border: 0;
}
.sidebar-foot {
    margin-top: 16px; padding: 14px 10px 4px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    color: #64748B; font-size: 10px; letter-spacing: .04em;
}
.comp-pill {
    display: inline-block; padding: 3px 7px; font-size: 9px; font-weight: 700;
    letter-spacing: .06em; border-radius: 4px; margin: 0 2px 6px;
    border: 1px solid rgba(255,255,255,.12); color: #CBD5E1;
}

/* Papara-like light user shell */
body.theme-user .sidebar {
    background: #fff;
    color: var(--text);
    border-right: 1px solid var(--border);
}
body.theme-user .sidebar::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .12); }
body.theme-user .sidebar .brand-row { border-bottom-color: var(--border); }
body.theme-user .sidebar .brand-row small { color: var(--text-muted); }
body.theme-user .sidebar .brand-logo {
    background: transparent; padding: 0; border-radius: 0;
}
body.theme-user .sidebar-bal {
    background: #F8F7FC;
    border-color: #EDE9FE;
}
body.theme-user .sidebar-bal .lbl { color: var(--text-muted); }
body.theme-user .sidebar-bal .amt { color: var(--text); }
body.theme-user .sidebar-bal .acc { color: var(--text-muted); border-top-color: #EDE9FE; }
body.theme-user .sidebar-bal .acc .mono { color: var(--text) !important; }
body.theme-user .nav-item { color: #475569; }
body.theme-user .nav-item:hover { background: #F5F3FF; color: var(--brand); }
body.theme-user .nav-item.active {
    background: #F5F3FF;
    color: var(--brand);
    font-weight: 600;
}
body.theme-user .nav-item.active .ico-tile { box-shadow: 0 0 0 1px rgba(124, 58, 237, .18); }
body.theme-user .nav-item-danger { color: #DC2626 !important; }
body.theme-user .nav-item-danger:hover { background: #FEF2F2; color: #B91C1C !important; }
body.theme-user .nav-section-title { color: #94A3B8; }
body.theme-user .sidebar-foot { border-top-color: var(--border); color: var(--text-dim); }
body.theme-user .comp-pill { border-color: var(--border); color: var(--text-muted); }
body.theme-user .sidebar-close {
    background: #fff; border: 1px solid var(--border); color: var(--text);
}
body.theme-user .sidebar .ico-tile.tone-violet { background: #F5F3FF; color: #7C3AED; }
body.theme-user .sidebar .ico-tile.tone-green  { background: #ECFDF5; color: #059669; }
body.theme-user .sidebar .ico-tile.tone-rose   { background: #FEF2F2; color: #DC2626; }
body.theme-user .sidebar .ico-tile.tone-blue   { background: #EFF6FF; color: #2563EB; }
body.theme-user .sidebar .ico-tile.tone-amber  { background: #FFFBEB; color: #D97706; }
body.theme-user .sidebar .ico-tile.tone-slate  { background: #F1F5F9; color: #475569; }
body.theme-user .sidebar .ico-tile.tone-sky    { background: #F0F9FF; color: #0284C7; }
body.theme-user .sidebar .ico-tile.tone-indigo { background: #EEF2FF; color: #4F46E5; }
body.theme-user .sidebar .ico-tile.tone-usdt,
.sidebar .ico-tile.tone-usdt { background: transparent; }

.nav-item-danger { color: #FCA5A5; }

.main { padding: 24px 32px 48px; min-width: 0; max-width: 1280px; width: 100%; }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
    position: relative; z-index: 80; overflow: visible;
}
.topbar h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); overflow-wrap: anywhere; }
.topbar-heading { min-width: 0; flex: 1; }
.topbar .subtitle { color: var(--text-muted); font-size: 14.5px; margin-top: 4px; font-weight: 400; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.topbar .actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.icon-btn {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 10px;
    background: #fff; border: 1px solid var(--border-strong);
    color: var(--text); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; z-index: 2; transition: border-color .15s, background .15s;
    pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { border-color: var(--brand-2); color: var(--brand); }
.icon-btn .dot {
    position: absolute; top: 6px; right: 6px;
    background: var(--danger); color: #fff; font-size: 9px;
    padding: 1px 5px; border-radius: 8px; min-width: 16px; font-weight: 700;
    border: 2px solid #fff;
    pointer-events: none;
}

.user-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 4px 4px;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13px;
}
.user-chip .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: white; font-size: 12px;
}
.vip-chip {
    text-decoration: none;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text);
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600;
}
.vip-chip:hover { border-color: var(--brand-2); color: var(--text); }

.notif-wrap {
    position: relative;
    z-index: 90;
    pointer-events: auto;
    flex-shrink: 0;
}
.notif-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    width: 360px; max-height: 460px; overflow-y: auto;
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 120;
    pointer-events: auto; -webkit-overflow-scrolling: touch;
}
.notif-dropdown.open { display: block !important; }
.notif-dropdown a {
    display: flex; gap: 12px; padding: 12px 16px;
    min-height: 44px; align-items: flex-start;
    pointer-events: auto; text-decoration: none; color: inherit;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}
.notif-dropdown a:last-child { border-bottom: 0; }
.notif-dropdown a.is-unread { background: #F5F3FF; }
.notif-dd-head {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.notif-dd-head b { font-size: 14px; }
.notif-dd-head a { font-size: 13px; color: var(--brand); font-weight: 600; }
.notif-dd-item { flex: 1; min-width: 0; }
.notif-dd-title { font-weight: 600; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.notif-dd-body {
    font-size: 13px; color: var(--text-muted); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notif-dd-time { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ---------------- Grid ---------------- */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid > .card + .card { margin-top: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-split {
    width: 100%;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.grid-split > .card { width: 100%; max-width: 100%; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 768px)  { .grid-2, .grid-split { grid-template-columns: minmax(0, 1fr) !important; } .hero-sav-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------- Stat Card ---------------- */
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 64px 20px 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
}
.stat-card::before { display: none; }
.stat-card .stat-label { color: var(--text-muted); font-size: 13px; letter-spacing: 0.04em; font-weight: 600; overflow-wrap: anywhere; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -0.03em; font-feature-settings: "tnum"; color: var(--text); overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.stat-card .stat-hint { font-size: 12px; color: var(--text-dim); margin-top: 8px; overflow-wrap: anywhere; }
.stat-card .stat-icon {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-2);
    border: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
}
.stat-card .stat-icon.tone-green { background: #ECFDF5; color: #059669; }
.stat-card .stat-icon.tone-rose  { background: #FEF2F2; color: #DC2626; }
.stat-card .stat-icon.tone-amber { background: #FFFBEB; color: #D97706; }

/* ---------------- Balance Hero ---------------- */
.balance-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 20px 22px 28px;
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}
.hero-sav-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    font: inherit;
    padding: 0;
    touch-action: manipulation;
    pointer-events: auto;
}
.hero-sav-arrow:hover { border-color: var(--brand); color: var(--brand); }
.hero-sav-arrow.is-savings { background: #F5F3FF; border-color: var(--brand); color: var(--brand); }
.hero-sav-arrow.is-savings .ico-svg { transform: rotate(180deg); }
.hero-sav-arrow .ico-svg { transition: transform .2s ease; }
.hero-panel { min-width: 0; width: 100%; max-width: 100%; padding-right: 48px; box-sizing: border-box; }
.hero-bal-main { min-width: 0; max-width: 100%; }
.hero-sav-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    gap: 16px;
    align-items: start;
    width: 100%;
}
.hero-sav-body > * { min-width: 0; max-width: 100%; }
.hero-sav-back { min-width: 0; max-width: 100%; }
.hero-sav-form { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
.hero-sav-form-row { display: flex; gap: 8px; align-items: stretch; min-width: 0; max-width: 100%; }
.hero-sav-form-row input {
    flex: 1;
    min-width: 0;
    width: auto;
    min-height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    max-width: 100%;
}
.hero-sav-form-row .btn { flex-shrink: 0; min-height: 44px; min-width: 44px; }
.balance-hero::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--brand);
}
.balance-hero::after { display: none; }
.balance-hero .label { color: var(--text-muted); font-size: 13px; letter-spacing: .04em; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.balance-hero .label .ico-tile { width: 28px; height: 28px; }
.balance-hero .amount { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; margin: 8px 0 8px; font-feature-settings: "tnum"; color: var(--text); overflow-wrap: anywhere; word-break: break-word; max-width: 100%; line-height: 1.15; }
.balance-hero .acc-no {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
    color: var(--text-muted); font-size: 13px;
    background: var(--bg-2); border: 1px solid var(--border);
    padding: 6px 10px; border-radius: 8px;
    max-width: 100%; min-width: 0; overflow-wrap: anywhere;
}
.balance-hero .acc-no span { color: var(--text); font-family: 'JetBrains Mono', monospace; cursor: pointer; }
.balance-hero .actions { display: none; }
.balance-hero .right { position: relative; z-index: 1; max-width: min(220px, calc(100% - 52px)); }
.wallet-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 14px;
}
.wallet-chip {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 6px 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12.5px;
}
.wallet-chip .sym { font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
.wallet-chip .bal { font-weight: 700; font-feature-settings: 'tnum'; }

.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}
.qa-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 10px 4px;
    min-height: 44px;
    min-width: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-size: 13.5px; font-weight: 600;
    transition: transform .15s;
    -webkit-tap-highlight-color: transparent;
}
.qa-item:hover { background: transparent; color: var(--text); transform: translateY(-1px); }
.qa-ico {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-2); border: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
}
.qa-ico.tone-green  { background: #ECFDF5; color: #059669; }
.qa-ico.tone-rose   { background: #FEF2F2; color: #DC2626; }
.qa-ico.tone-blue   { background: #EFF6FF; color: #2563EB; }
.qa-ico.tone-violet { background: #F5F3FF; color: #7C3AED; }
.qa-ico.tone-amber  { background: #FFFBEB; color: #D97706; }
.qa-ico.tone-indigo { background: #EEF2FF; color: #4F46E5; }
.qa-ico.tone-sky    { background: #F0F9FF; color: #0284C7; }
.qa-ico.tone-slate  { background: #F1F5F9; color: #475569; }
.qa-ico.tone-usdt {
    background: transparent;
    overflow: hidden;
    padding: 0;
}
.qa-ico.tone-usdt .ico-usdt { width: 100%; height: 100%; }
.qa-item span { text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.qa-item.primary .qa-ico { background: #ECFDF5; color: #059669; }
.qa-item.primary:hover { background: transparent; color: var(--text); }

/* ---------------- Table / tx list ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.card:has(> table.data) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; vertical-align: middle; overflow-wrap: anywhere; min-width: 0; }
table.data thead th {
    background: var(--bg-2); color: var(--text-muted); font-weight: 600;
    font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
table.data tbody tr { border-bottom: 1px solid var(--border); }
table.data tbody tr:hover { background: var(--bg-2); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody td { border-bottom: 1px solid var(--border); }

.dep-ops { min-width: 0; max-width: 196px; }
.dep-ops .dep-approve { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.dep-ops-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-muted); line-height: 1;
}
.dep-ops-amount {
    display: flex; align-items: center; gap: 6px; min-width: 0;
}
.dep-ops-input {
    width: 100%; min-width: 0; max-width: 132px;
    font-size: 13px; font-weight: 600; font-feature-settings: 'tnum';
    padding: 7px 9px; border: 1px solid var(--border-strong);
    border-radius: 7px; background: #fff; color: var(--text);
    line-height: 1.3;
}
.dep-ops-input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
.dep-ops-cur { font-size: 12px; font-weight: 600; flex-shrink: 0; }
.dep-ops-btns { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dep-ops-btns .btn { flex: 1 1 auto; }

.dep-receipt-cell { white-space: nowrap; }
.dep-receipt {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; max-width: 48px;
    border-radius: 8px; overflow: hidden; flex-shrink: 0;
    background: var(--bg-sidebar); border: 1px solid var(--border-strong);
    touch-action: manipulation;
}
.dep-receipt:hover { color: inherit; opacity: .92; }
.dep-receipt-thumb {
    display: block; width: 44px; height: 44px; max-width: 44px;
    object-fit: cover; border-radius: 6px;
}
.dep-receipt-pdf { white-space: nowrap; max-width: 100%; }
body.receipt-lb-open { overflow: hidden; }
.receipt-lb {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(11, 18, 32, .92);
    display: none; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 48px 16px 24px; overflow: hidden;
    gap: 12px;
}
.receipt-lb.open { display: flex; }
.receipt-lb[hidden] { display: none !important; }
.receipt-lb img {
    max-width: min(92vw, 960px); max-height: 82vh;
    width: auto; height: auto; object-fit: contain;
    border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.receipt-lb-close {
    position: absolute; top: 12px; right: 14px;
    width: 40px; height: 40px; border: 0; border-radius: 10px;
    background: rgba(255,255,255,.1); color: #F8FAFC;
    font-size: 26px; line-height: 1; cursor: pointer;
}
.receipt-lb-close:hover { background: rgba(255,255,255,.18); }
.receipt-lb-newtab {
    color: #CBD5E1; font-size: 13px; font-weight: 600;
    padding: 8px 12px; border-radius: 8px;
}
.receipt-lb-newtab:hover { color: #fff; background: rgba(255,255,255,.08); }

.tx-list { display: flex; flex-direction: column; }
.tx-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.tx-row:last-child { border-bottom: 0; }
.tx-row:hover { color: var(--text); }
.tx-ico {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--bg-2); color: var(--text-muted);
}
.tx-ico.in { background: #ECFDF5; color: var(--success); }
.tx-ico.out { background: #FEF2F2; color: var(--danger); }
.tx-meta { flex: 1; min-width: 0; }
.tx-title { font-weight: 600; font-size: 15px; }
.tx-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amt { font-weight: 700; font-feature-settings: 'tnum'; font-size: 15.5px; white-space: nowrap; }
.tx-amt.in { color: var(--success); }
.tx-amt.out { color: var(--danger); }
.tx-sender { font-size: 12px; color: var(--brand); font-weight: 500; margin-top: 3px; }
.tx-sender b { color: var(--text); font-weight: 600; }

.xfer-list { display: flex; flex-direction: column; gap: 10px; }
.xfer-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--bg-2);
    min-width: 0;
    max-width: 100%;
}
.xfer-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.xfer-item-who { min-width: 0; flex: 1; }
.xfer-date { font-size: 12px; color: var(--text-muted); }
.xfer-name { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.xfer-num { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow-wrap: anywhere; }
.xfer-item-sum { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.xfer-item-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.kyc-gate { max-width: 640px; }
.kyc-gate-inner { text-align: left; padding: 8px 0 4px; }
.kyc-gate-inner h2 { margin: 14px 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.kyc-gate-inner p { margin: 0 0 18px; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.kyc-banner { align-items: center; }
.kyc-page {
    width: 100%;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: start;
}
.kyc-page > .card { width: 100%; max-width: 100%; min-width: 0; }
.kyc-page .form-row input,
.kyc-page .form-row select,
.kyc-page .form-row textarea { width: 100%; max-width: 100%; }
.kyc-page input[type="file"] { width: 100%; max-width: 100%; }

/* ---------------- Badge ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px; font-weight: 600;
    background: var(--bg-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.badge-success { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.badge-warning { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.badge-danger  { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.badge-info    { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.badge-brand   { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.badge-gold    { background: var(--bg-2); color: var(--text); border-color: var(--border-strong); }

/* ---------------- Empty / tabs ---------------- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .emoji { display: none; }
.empty-state .empty-ico {
    display: flex; justify-content: center; margin-bottom: 12px;
}
.empty-state .empty-ico .ico-tile {
    width: 48px; height: 48px; border-radius: 14px;
}
.empty-state .empty-ico .ico-tile .ico-svg { width: 22px; height: 22px; }

.segmented {
    display: inline-flex; background: #fff;
    border: 1px solid var(--border); border-radius: 10px; padding: 4px; gap: 2px;
}
.segmented a {
    padding: 7px 14px; border-radius: 7px; font-size: 14px;
    color: var(--text-muted); font-weight: 600;
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.segmented a:hover { color: var(--text); }
.segmented a.active { background: var(--brand); color: #fff; box-shadow: none; }

.copyable {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-2); border: 1px solid var(--border-strong);
    padding: 10px 14px; border-radius: 10px;
    font-family: 'JetBrains Mono', monospace; font-size: 15.5px;
    word-break: normal;
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}
.copyable span, .copyable input {
    min-width: 0; flex: 1;
    overflow-wrap: anywhere;
}
.copyable input {
    background: transparent; border: none; color: var(--text);
    font-family: inherit; font-size: inherit; width: 100%;
}
.copyable button { background: #fff; border: 1px solid var(--border-strong); color: var(--brand); padding: 6px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; font-weight: 600; flex-shrink: 0; min-height: 44px; min-width: 44px; }

/* ---------------- Landing ---------------- */
.landing-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 40px; max-width: 1200px; margin: 0 auto;
    width: 100%;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--border);
    overflow-x: hidden;
}
.landing-nav-end {
    display: flex; align-items: center; gap: 8px; flex-shrink: 1; min-width: 0;
}
.landing-nav > .flex { min-width: 0; max-width: 100%; }
.nav-links .landing-nav-extra { display: none; }
.landing-nav .brand-name { font-weight: 700; font-size: 18px; color: var(--text); }
.landing-nav .nav-links { display: flex; gap: 2px; }
.landing-nav .nav-links a {
    padding: 8px 14px; font-size: 15px; font-weight: 500;
    color: var(--text-muted); border-radius: 8px;
}
.landing-nav .nav-links a:hover { color: var(--text); background: var(--bg-2); }

.landing-hero {
    max-width: 1200px; margin: 48px auto 32px; padding: 24px 40px 40px;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center;
    width: 100%;
    overflow-x: hidden;
}
.landing-hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 5px 12px 5px 8px; background: #F5F3FF;
    border: 1px solid #DDD6FE;
    border-radius: 999px; font-size: 12px; font-weight: 600;
    color: var(--brand); margin-bottom: 18px;
    letter-spacing: 0.02em; text-transform: uppercase;
    max-width: 100%;
}
.landing-hero > * { min-width: 0; max-width: 100%; }
.landing-hero h1 { font-size: clamp(28px, 4.2vw + 12px, 52px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.08; margin: 0 0 18px; color: var(--text); overflow-wrap: anywhere; }
.landing-hero h1 .grad { color: var(--brand); font-style: normal; font-family: inherit; background: none; -webkit-text-fill-color: unset; }
.landing-hero p { color: var(--text-muted); font-size: 17.5px; line-height: 1.65; margin: 0 0 28px; max-width: 520px; }
.landing-hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }

.trust-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 24px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    width: 100%;
    min-width: 0;
}
.trust-metrics .metric { min-width: 0; max-width: 100%; }
.trust-metrics .metric .value {
    font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
    color: var(--text); font-feature-settings: "tnum";
    line-height: 1.15;
    max-width: 100%;
}
.trust-metrics .metric .label {
    color: var(--text-muted); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.08em; margin-top: 4px;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.landing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 8px;
    box-shadow: var(--shadow-lg);
}
.landing-card .card-inner {
    background: linear-gradient(180deg, #0B1220, #111827);
    border: 0;
    border-radius: 14px; padding: 24px;
    color: #fff;
    position: relative; overflow: hidden;
}
.landing-card .card-inner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brand-light);
}

.trust-bar {
    max-width: 1200px; margin: 8px auto; padding: 28px 40px;
    text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    overflow-x: hidden;
}
.trust-bar .label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; font-weight: 600; }
.trust-bar .logos {
    display: flex; justify-content: center; align-items: center;
    gap: 12px 14px; flex-wrap: wrap; max-width: 100%; min-width: 0;
}
.trust-bar .logos .logo-item {
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
    color: var(--text-muted); font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; min-height: 36px; max-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.trust-bar .logos .logo-item:hover { color: var(--text); border-color: var(--border-strong); }
.trust-bar .logos .logo-item.logo-mark {
    padding: 6px 12px;
    width: auto;
    max-width: 108px;
    background: #fff;
}
.net-mark {
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 0; height: 22px; max-width: 84px; overflow: hidden;
}
.net-mark-svg { height: 22px; width: auto; max-height: 22px; display: block; }

.card-face { position: relative; }
.card-face-brand {
    position: absolute; top: 14px; left: 16px; z-index: 2;
    background: transparent; padding: 0; line-height: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .28));
}
.card-face-logo {
    display: block; height: 20px; width: auto; max-width: 96px; object-fit: contain;
}

.features { max-width: 1200px; margin: 56px auto; padding: 24px 40px; width: 100%; }
.features .section-eyebrow { text-align: center; color: var(--brand); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 10px; }
.features h2 {
    text-align: center; font-size: 34px; margin: 0 0 14px;
    letter-spacing: -0.03em; line-height: 1.2;
    max-width: 680px; margin-left: auto; margin-right: auto; color: var(--text);
}
.features > p {
    text-align: center; color: var(--text-muted); font-size: 16px;
    max-width: 600px; margin: 0 auto 40px; line-height: 1.6;
}
.feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color .2s, box-shadow .2s;
}
.feature:hover {
    transform: none;
    border-color: var(--brand-2);
    box-shadow: var(--shadow);
}
.feature .ico-wrap {
    width: 42px; height: 42px; border-radius: 10px;
    background: #F5F3FF;
    border: 1px solid #DDD6FE;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0; margin-bottom: 14px; color: var(--brand);
}
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.landing-footer {
    background: #0B1220;
    border-top: 0;
    padding: 56px 40px 28px;
    margin-top: 40px;
    color: #94A3B8;
}
.landing-footer .footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; font-weight: 700; }
.landing-footer .footer-col a { display: block; color: #94A3B8; font-size: 14px; padding: 5px 0; }
.landing-footer .footer-col a:hover { color: #fff; }
.landing-footer .footer-brand p { color: #94A3B8; font-size: 14px; line-height: 1.7; margin: 14px 0 18px; max-width: 380px; }
.landing-footer .footer-brand .brand-name { color: #fff; }
.landing-footer .footer-bottom {
    max-width: 1200px; margin: 20px auto 0;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    color: #64748B; font-size: 13px;
}
.landing-footer .footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.landing-footer .footer-bottom a { color: #64748B; }
.landing-footer .footer-bottom a:hover { color: #fff; }

.section-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }
.section-container h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.03em; }

.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
    width: 100%;
}
.landing-split > * { min-width: 0; max-width: 100%; }

.code-window { min-width: 0; max-width: 100%; overflow: hidden; }
.code-window pre {
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    white-space: pre;
}

.hero-wallet-head { gap: 12px; min-width: 0; flex-wrap: wrap; }
.hero-wallet-bal { min-width: 0; flex: 1 1 auto; }
.hero-wallet-head .brand-logo { flex-shrink: 0; }
.hero-wallet-head .brand-logo img { height: 28px; max-width: 96px; }
.hero-wallet-amt {
    font-size: clamp(22px, 6.5vw, 38px);
    font-weight: 800;
    margin-top: 8px;
    letter-spacing: -.02em;
    font-feature-settings: 'tnum';
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}
.amt-inline {
    display: inline-flex;
    align-items: baseline;
    font-family: inherit;
    font-size: 1em;
    font-weight: inherit;
    line-height: 1;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    letter-spacing: inherit;
}
.amt-inline .amt-cur {
    font-family: inherit;
    font-size: 1em;
    font-weight: inherit;
    line-height: 1;
    vertical-align: baseline;
    position: static;
    display: inline;
    transform: none;
    top: auto;
}
.amt-inline .amt-dec {
    color: var(--text-dim);
    font-size: .63em;
    line-height: 1;
    font-family: inherit;
    vertical-align: baseline;
}
.landing-card .card-inner .amt-inline .amt-dec { color: rgba(241, 245, 249, .55); }
.hero-wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-wallet-actions .btn { flex: 1; min-width: 0; }
.hero-mini-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    min-width: 0;
}
.hero-mini-grid > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.hero-payno {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.hero-payno > div { min-width: 0; }
.hero-payno-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    margin-top: 2px;
    letter-spacing: .05em;
    overflow-wrap: anywhere;
}
.hero-payno .badge { flex-shrink: 0; }
.landing-card { min-width: 0; max-width: 100%; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.compliance-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 24px 0; }
.compliance-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
}
.landing-footer .compliance-badge { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #CBD5E1; }
.compliance-badge .icon { color: var(--brand); font-size: 14px; }
.compliance-badge .ico-svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }
.landing-footer .compliance-badge .ico-svg { color: #C4B5FD; }

.gold-divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
    opacity: 1;
}

.cta-banner {
    background: linear-gradient(135deg, #0B1220, #1E1B4B);
    border: 0;
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    margin: 40px 0;
    color: #fff;
}
.cta-banner::before { display: none; }
.cta-banner h2 { font-size: 32px; letter-spacing: -0.03em; margin: 0 0 12px; color: #fff; }
.cta-banner p { color: #94A3B8; font-size: 16px; margin: 0 auto 24px; max-width: 560px; }

.section-eyebrow-line {
    display: inline-block; padding: 5px 12px;
    background: #F5F3FF;
    border: 1px solid #DDD6FE;
    border-radius: 999px;
    color: var(--brand); font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.tick-list { list-style: none; padding: 0; margin: 16px 0; }
.tick-list li {
    padding: 8px 0 8px 32px; position: relative;
    color: var(--text); font-size: 14.5px;
    overflow-wrap: anywhere;
}
.tick-list li::before {
    content: ''; position: absolute; left: 0; top: 10px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #ECFDF5; border: 1px solid #A7F3D0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3'><path d='M20 6 9 17l-5-5'/></svg>");
    background-repeat: no-repeat; background-position: center;
}

.stat-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}
.stat-block .big { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--brand); font-feature-settings: "tnum"; line-height: 1; }
.stat-block .lbl { color: var(--text-muted); font-size: 13px; margin-top: 10px; }

.testimonial {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}
.testimonial::before { display: none; }
.testimonial p { position: relative; z-index: 1; color: var(--text); line-height: 1.7; font-size: 14.5px; }
.testimonial .author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial .author .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: white; font-size: 13px; background: var(--brand);
}

details.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
}
details.faq-item[open] { border-color: var(--border-strong); background: #fff; }
details.faq-item summary {
    cursor: pointer; font-weight: 600; font-size: 15px;
    padding: 16px 18px; list-style: none;
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px; align-items: start;
    color: var(--text);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 20px; color: var(--brand); font-weight: 400; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-body { padding: 0 18px 18px; color: var(--text-muted); line-height: 1.7; font-size: 14.5px; }

/* ---------------- Modal / spinner ---------------- */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(15,23,42,.15); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; max-width: 500px; width: 100%; box-shadow: var(--shadow-lg); }
.modal h3 { margin: 0 0 6px; }

/* ---------------- Inputs extras ---------------- */
.input-icon { position: relative; }
.input-icon .icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-dim); font-size: 15px; pointer-events: none; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
}
.input-icon .icon .ico-svg { width: 16px; height: 16px; }
.input-icon input, .input-icon select { padding-left: 40px !important; }
.input-icon input[type="date"] { color-scheme: light; }
.input-icon input[type="password"], .input-icon input[type="text"].with-eye { padding-right: 44px !important; }
.input-icon .toggle-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: var(--text-dim);
    cursor: pointer; font-size: 16px; padding: 6px; z-index: 2;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 0;
}
.input-icon .toggle-eye:hover { color: var(--text); }

.chk-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; cursor: pointer;
    font-size: 13.5px; color: var(--text-muted); line-height: 1.5;
    min-width: 0; max-width: 100%; overflow-wrap: anywhere;
}
.chk-row input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px; flex-shrink: 0; margin: 1px 0 0;
    border: 1.5px solid var(--border-strong);
    border-radius: 5px; background: #fff; cursor: pointer; position: relative;
}
.chk-row input[type="checkbox"]:checked { background: var(--brand); border-color: var(--brand); }
.chk-row input[type="checkbox"]:checked::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><path d='M20 6 9 17l-5-5'/></svg>") center no-repeat;
}
.chk-row a { color: var(--brand); font-weight: 600; }

.lang-switch {
    display: inline-flex; align-items: center; flex-shrink: 0;
}
.lang-switch a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 4px;
    border-radius: 8px; line-height: 0;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.lang-switch a:hover { background: var(--bg-2); }
.lang-switch .lang-flag {
    width: 22px; height: 15px; display: block;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .14);
}

.chat-fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 500; text-decoration: none;
    font-size: 0;
}
.chat-fab .ico-svg { width: 22px; height: 22px; }
.chat-fab:hover { background: var(--brand-light); color: #fff; transform: none; }
@keyframes fabPulse { 0%, 100% { opacity: 1; } }

.compact-form .form-row { margin-bottom: 12px; }
.compact-form .form-row label {
    font-size: 13px; text-transform: none; letter-spacing: 0;
    font-weight: 600; color: var(--text);
}

/* ---------------- Mobile chrome ---------------- */
.mobile-menu-btn {
    display: none;
    align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 10px;
    background: #fff; border: 1px solid var(--border-strong);
    color: var(--text); cursor: pointer; flex-shrink: 0;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.topbar .topbar-logo { display: none; }
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45); z-index: 999;
}
.sidebar-overlay.show { display: block; }
.sidebar-close {
    display: none; position: absolute; top: 12px; right: 10px;
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 8px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    color: #fff; cursor: pointer;
    align-items: center; justify-content: center;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
body.sidebar-open { overflow: hidden; }

.bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 100;
}
.bottom-nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; margin: 0 auto; }
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 4px; color: var(--text-muted);
    font-size: 12px; font-weight: 600; text-align: center; position: relative;
    min-height: 48px; min-width: 0; max-width: 100%;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav a .ico { font-size: 0; line-height: 1; color: inherit; display: flex; }
.bottom-nav a .ico .ico-tile { width: 32px; height: 32px; }
.bottom-nav a.active { color: var(--brand); }
.bottom-nav a.active .ico-tile { box-shadow: 0 0 0 2px rgba(124, 58, 237, .18); }
.bottom-nav a .dot {
    position: absolute; top: 4px; right: 50%; transform: translateX(12px);
    width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
    border: 2px solid #fff;
}

.hide-mobile { }
.hide-desktop { display: none; }

/* Landing burger */
.landing-burger { display: none; }
.landing-nav-end .lang-switch { flex-shrink: 0; }

@media (max-width: 900px) {
    .landing-nav { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .landing-nav .brand-logo img { height: 32px; max-width: min(150px, 48vw); }
    .landing-nav .nav-links { display: none; width: 100%; flex-direction: column; order: 3; }
    .landing-nav.open .nav-links { display: flex; }
    .landing-nav.open .nav-links .landing-nav-extra { display: block; }
    .landing-nav-end { order: 2; margin-left: auto; min-width: 0; flex-shrink: 1; flex-wrap: wrap; justify-content: flex-end; }
    .landing-burger { display: inline-flex; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
    .landing-nav-end .btn { min-height: 44px; }
    .landing-hero { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; margin: 12px auto; gap: 28px; overflow-x: hidden; }
    .landing-hero h1 { font-size: clamp(26px, 8vw, 34px); }
    .landing-hero p { font-size: 16.5px; max-width: 100%; }
    .trust-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .landing-hero .cta { flex-direction: column; }
    .landing-hero .cta .btn { width: 100%; }
    .landing-split { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; align-items: stretch; }
    .features { padding: 24px 16px; overflow-x: hidden; }
    .features h2 { font-size: 26px; overflow-wrap: anywhere; }
    .cta-banner { padding: 32px 20px; }
    .cta-banner h2 { font-size: 24px; overflow-wrap: anywhere; }
    .landing-footer { padding: 36px 16px 20px; overflow-x: hidden; }
    .landing-footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .section-container { padding: 0 16px; }
    .trust-bar { padding: 20px 16px; overflow-x: hidden; }
    .trust-bar .logos { gap: 10px 12px; }
    .trust-bar .logos .logo-item { font-size: 11px; padding: 5px 8px; }
    .trust-bar .logos .logo-item.logo-mark { padding: 5px 8px; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-shell { padding: 24px 16px 64px; }
    .legal-header h1 { font-size: 28px; }

    .app-shell { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
    .sidebar {
        position: fixed; left: -280px; z-index: 1000;
        transition: left .25s ease;
        width: 270px; height: 100%;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { left: 0; }
    .sidebar-close { display: flex; }
    .main { padding: 16px 16px 32px; }
    .mobile-menu-btn { display: inline-flex; }
    .topbar .topbar-logo { display: inline-flex; flex-shrink: 0; max-width: 96px; }
    .topbar .topbar-logo img { height: 24px; max-width: 88px; }
    .user-chip > div:last-child { display: none; }
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .qa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .auth-split .brand-panel .brand-illustration,
    .auth-split .brand-panel .tick-list,
    .auth-split .brand-panel > *:last-child { display: none; }
    .auth-split .brand-panel, .auth-split .form-panel { min-width: 0; }
    .brand-panel .brand-hero-desc { margin-bottom: 0; }
}

@media (max-width: 640px) {
    .main { padding: 12px 12px calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
    .topbar { margin-bottom: 16px; gap: 10px; }
    .topbar > div:first-child { min-width: 0; }
    .topbar .flex.items-center { min-width: 0; }
    .topbar h1 { font-size: 20px; }
    .topbar .subtitle { font-size: 15px; line-height: 1.35; }
    .topbar .actions > a.vip-chip span:last-child { display: none; }
    .card { padding: 16px; max-width: 100%; }
    .balance-hero { padding: 16px 12px 16px 16px; }
    .hero-panel { padding-right: 52px; }
    .hero-sav-arrow { top: 8px; right: 8px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
    .hero-sav-form-row { flex-wrap: wrap; }
    .hero-sav-form-row input, .hero-sav-form-row .btn { width: 100%; flex: 1 1 100%; }
    .balance-hero .amount { font-size: clamp(30px, 9vw, 38px); }
    .qa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .qa-item { padding: 10px 4px 8px; font-size: 13.5px; }
    .qa-ico { width: 36px; height: 36px; }
    .stat-card .stat-value { font-size: 24px; }
    .stat-block .big { font-size: 28px; }
    .segmented { display: flex; flex-wrap: wrap; overflow-x: hidden; width: 100%; }
    .segmented a { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; }
    .bottom-nav { display: block; }
    .chat-fab { bottom: 88px; right: 14px; width: 48px; height: 48px; }
    .hide-mobile { display: none !important; }
    .hide-desktop { display: initial; }
    .notif-wrap { z-index: 90; position: static; }
    .notif-dropdown {
        left: 8px; right: 8px; width: auto; max-width: none;
        z-index: 120; pointer-events: auto;
    }
    .hero-wallet-actions { flex-wrap: wrap; }
    .hero-wallet-amt { font-size: clamp(20px, 7vw, 30px); }
    .amt-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flash { flex-wrap: wrap; }
    .section-container h2 { font-size: 24px; }

    table.data thead { display: none; }
    table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
    table.data tbody tr {
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
    }
    table.data tbody td {
        padding: 4px 0;
        border: 0;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        text-align: right;
        overflow-wrap: anywhere;
    }
    table.data tbody td::before {
        content: attr(data-label);
        font-weight: 600; color: var(--text-muted); font-size: 12.5px;
        text-transform: uppercase; letter-spacing: .04em;
        text-align: left;
        flex-shrink: 0;
    }
    table.data tbody td:last-child { justify-content: flex-end; }

    .form-row input, .form-row select, .form-row textarea { font-size: 16px; }
}

@media (max-width: 480px) {
    .landing-nav .btn { padding: 8px 12px; font-size: 14px; }
    .trust-metrics { gap: 16px 12px; }
    .trust-metrics .metric .value { font-size: 18px; }
    .trust-bar .logos { gap: 8px 10px; }
    .cta-banner .btn { width: 100%; }
    .features h2 { font-size: 22px; }
    .hero-wallet-actions .btn { flex: 1 1 calc(50% - 8px); }
    .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .topbar .flex.items-center > .ico-tile { display: none; }
    .topbar .user-chip {
        display: flex; padding: 4px;
        width: 44px; height: 44px; min-width: 44px; min-height: 44px;
        justify-content: center; box-sizing: border-box;
    }
    .topbar .user-chip > div:last-child { display: none; }
    .topbar .user-chip .avatar { width: 36px; height: 36px; }
    .card { max-width: 100%; }
    .topbar { overflow: visible; z-index: 80; }
}

@media (max-width: 430px) {
    .landing-nav { padding: 10px 12px; gap: 6px; flex-wrap: nowrap; }
    .landing-nav-login { display: none; }
    .landing-nav .brand-logo img { height: 26px; max-width: min(96px, 28vw); }
    .landing-nav-end { gap: 4px; flex-wrap: nowrap; flex-shrink: 0; }
    .landing-nav .btn { padding: 8px 10px; font-size: 14px; min-height: 44px; }
    .landing-hero { padding: 16px 12px; gap: 22px; }
    .landing-hero h1 { font-size: clamp(24px, 7.2vw, 30px); }
    .landing-hero p { font-size: 16.5px; }
    .trust-metrics { gap: 14px 10px; }
    .trust-metrics .metric .value { font-size: 18px; }
    .trust-metrics .metric .label { font-size: 12px; letter-spacing: 0.04em; }
    .trust-bar { padding: 16px 12px; }
    .trust-bar .label { letter-spacing: 0.08em; }
    .features { padding: 20px 12px; }
    .features h2 { font-size: 21px; }
    .section-container { padding: 0 12px; }
    .landing-footer { padding: 32px 12px 16px; }
    .cta-banner { padding: 28px 16px; }
    .cta-banner h2 { font-size: 22px; }
    .hero-payno-id { font-size: 12.5px; letter-spacing: .03em; }
    .hero-wallet-head .brand-logo img { height: 24px; max-width: 80px; }
    .auth-split .brand-panel { padding: 20px 16px; }
    .auth-split .form-panel { padding: 24px 16px 56px; }
    .brand-panel .brand-tagline { letter-spacing: 0.1em; font-size: 10.5px; }
    .brand-panel .brand-hero-desc { font-size: 13.5px; margin: 10px auto 0; }
    .form-panel .brand-logo img { height: 26px; max-width: min(120px, 40vw); }
    .topbar .topbar-logo img { height: 22px; max-width: 72px; }
    .bottom-nav a {
        font-size: 12px; padding: 8px 2px; line-height: 1.2;
        overflow-wrap: break-word; word-break: normal;
    }
    .bottom-nav a span:not(.ico):not(.dot) {
        overflow-wrap: break-word; word-break: normal; hyphens: none;
    }
    .copyable { flex-direction: column; align-items: stretch; }
    .copyable button { width: 100%; }
}

@media (max-width: 380px) {
    .balance-hero .amount { font-size: clamp(28px, 8.5vw, 34px); }
    .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-wallet-actions .btn { flex: 1 1 calc(50% - 8px); }
    .landing-nav { padding: 8px 10px; gap: 4px; }
    .landing-nav-login { display: none; }
    .landing-nav .brand-logo img { height: 24px; max-width: min(96px, 30vw); }
    .landing-nav .btn { padding: 8px 10px; font-size: 13.5px; min-height: 44px; }
    .landing-burger { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
    .hero-wallet-amt { font-size: clamp(18px, 6.5vw, 26px); white-space: normal; overflow-wrap: anywhere; }
    .amt-inline { white-space: normal; }
}

@supports (-webkit-touch-callout: none) {
    input, textarea, select { font-size: 16px !important; }
}
input, textarea, select { max-width: 100%; }
* { -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; height: auto; }
img.partner-logo {
    display: block;
    height: 22px !important;
    width: auto !important;
    max-height: 22px !important;
    max-width: 84px !important;
    object-fit: contain;
    object-position: center;
}
img.card-face-logo {
    display: block;
    height: 20px !important;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    background: transparent;
}
.brand-logo img, span.logo img {
    height: var(--brand-logo-h, 36px);
    width: auto;
    max-width: min(200px, 72vw);
    object-fit: contain;
}
.sidebar .brand-logo img { height: 32px; max-width: min(220px, 100%); }
.landing-nav .brand-logo img { height: 34px; max-width: min(168px, 52vw); }
@media (max-width: 900px) {
    .landing-nav .brand-logo img { height: 32px; max-width: min(150px, 48vw); }
}
@media (max-width: 480px) {
    .landing-nav .brand-logo img { height: 30px; max-width: min(140px, 46vw); }
    .sidebar .brand-logo img { height: 28px; max-width: 100%; }
    .form-panel .brand-logo img { height: 28px; max-width: min(130px, 42vw); }
}
@media (max-width: 430px) {
    .landing-nav .brand-logo img { height: 26px; max-width: min(96px, 28vw); }
    .form-panel .brand-logo img { height: 26px; max-width: min(120px, 40vw); }
    .auth-split .brand-panel .brand-logo img { height: 32px; max-width: min(160px, 70vw); }
}
@media (max-width: 380px) {
    .landing-nav .brand-logo img { height: 24px; max-width: min(96px, 30vw); }
}
pre, code { max-width: 100%; }
pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mono { overflow-wrap: anywhere; word-break: break-word; }
.card { max-width: 100%; }
.compliance-badge { max-width: 100%; }

.legal-shell { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-header { padding: 32px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.legal-header h1 { font-size: 36px; margin: 0 0 8px; }

.card-order-grid {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}
.card-order-grid > * { min-width: 0; max-width: 100%; }
.card-order-grid .card-face { width: 100%; max-width: 100%; box-sizing: border-box; }
.card-order-grid textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.card-order-head { align-items: flex-start; gap: 10px; }
.card-order-title { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.card-order-cancel { flex-shrink: 0; min-height: 40px; }

.support-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px;
    align-items: start;
    width: 100%;
}
.support-split > * { min-width: 0; max-width: 100%; }
.support-split > .card + .card { margin-top: 0; }

.ticket-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
    gap: 16px;
    align-items: start;
    width: 100%;
}
.ticket-split > * { min-width: 0; max-width: 100%; }
.ticket-split > .card + .card { margin-top: 0; }

.my-card-row {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    width: 100%;
}
.my-card-row > * { min-width: 0; max-width: 100%; }

.vip-hero-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    width: 100%;
}
.vip-hero-row > * { min-width: 0; }

/* ---------------- Deposit / pay flow (mobile-first) ---------------- */
.deposit-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 16px;
    align-items: start;
}
.notice {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: 12px; margin-bottom: 16px;
    border: 1px solid; font-size: 14px; line-height: 1.45;
}
.notice-warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.notice-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.notice .btn { flex-shrink: 0; }
.notice-ex { font-size: 13.5px; opacity: .9; }

.segmented.full { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.segmented.full a { justify-content: center; text-align: center; padding: 11px 12px; }
.segmented.full.tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pay-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: var(--bg-2);
    margin-bottom: 10px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.pay-box .pay-bank { font-weight: 700; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.pay-box .pay-holder { font-size: 15px; color: var(--text-muted); margin: 4px 0 10px; }
.pay-box .copyable.pay-holder {
    color: var(--text);
    font-weight: 600;
    margin: 8px 0 0;
    width: 100%;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.pay-hint { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.pay-hint b { color: var(--text); }

.amt-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.amt-chips button {
    min-height: 40px; border-radius: 8px; border: 1px solid var(--border-strong);
    background: #fff; color: var(--text); font-weight: 600; font-size: 13px;
    cursor: pointer; font-family: inherit;
}
.amt-chips button:hover, .amt-chips button.active {
    border-color: var(--brand); color: var(--brand); background: #F5F3FF;
}

.file-drop {
    display: flex; align-items: center; gap: 10px;
    padding: 14px; border: 1.5px dashed var(--border-strong);
    border-radius: 10px; background: #fff; cursor: pointer;
    font-size: 13.5px; color: var(--text-muted); min-height: 52px;
    min-width: 0; max-width: 100%; overflow: hidden;
    position: relative; z-index: 1;
}
.file-drop:hover { border-color: var(--brand); color: var(--text); }
.file-drop input { display: none; }
.file-drop .file-name { color: var(--text); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.deposit-cta {
    position: static;
    margin-top: 20px;
    z-index: auto;
    background: none;
    padding: 0;
}

@media (max-width: 900px) {
    .deposit-split { grid-template-columns: 1fr; }
    .deposit-info { order: -1; }
}

@media (max-width: 640px) {
    .notice { flex-direction: column; align-items: stretch; }
    .notice .btn { width: 100%; min-height: 44px; }
    .copyable { flex-direction: column; align-items: stretch; gap: 8px; }
    .copyable span, .copyable input { word-break: break-all; font-size: 16.5px; line-height: 1.45; overflow-wrap: anywhere; min-width: 0; }
    .copyable button { width: 100%; min-height: 44px; }
    .deposit-cta {
        position: static;
        bottom: auto;
        z-index: auto;
        margin-top: 20px;
        padding: 0;
        background: none;
    }
    .deposit-cta .btn { min-height: 48px; font-size: 15px; }
    .form-row select, .form-row input { min-height: 48px; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 44px; }
    .segmented.full { overflow-x: visible; -webkit-overflow-scrolling: auto; }
    .segmented.full a { min-height: 44px; display: inline-flex; align-items: center; }
    .segmented.full.tabs-3 {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .segmented.full.tabs-3 a {
        flex: 1 1 30%;
        min-width: 108px;
        flex-shrink: 1;
        white-space: nowrap;
        padding: 10px 8px;
        font-size: 13.5px;
    }
    .amt-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.iban-box {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
    background: var(--bg-3);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 0;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bank-acct {
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 0;
    max-width: 100%;
}
.bank-acct.is-primary { border-color: var(--brand-2); }
.bank-acct-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.bank-acct-head .who { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.bank-acct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; }

/* Inline 2-col grids used in PHP pages — stack on phones */
@media (max-width: 768px) {
    .xfer-item-main { flex-direction: column; }
    .xfer-item-sum { text-align: left; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
    .kyc-gate { max-width: none; }
    .kyc-page,
    .grid-2,
    .grid-split,
    .deposit-split,
    .card-order-grid,
    .support-split,
    .ticket-split,
    .my-card-row,
    .vip-hero-row {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        width: 100%;
    }
    .card-order-grid .card-face { min-height: 160px; }
    .my-card-row { text-align: left; }
    .vip-hero-row { text-align: left; }
    .grid[style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1.4fr 1fr"],
    [style*="grid-template-columns:1.4fr 1fr"],
    [style*="grid-template-columns: 1fr 1.4fr"],
    [style*="grid-template-columns:1fr 1.4fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: 1.3fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns: 1fr 260px"],
    [style*="grid-template-columns:200px 1fr auto"],
    [style*="grid-template-columns: auto 1fr auto"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    [style*="repeat(5"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .btn-block { white-space: normal; }
    .iban-box { letter-spacing: 0; font-size: 16.5px; overflow-wrap: anywhere; min-width: 0; }
}

/* Fatura / kur / EFT extras */
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; min-height: 44px;
    border-radius: 999px; border: 1px solid var(--border);
    background: #fff; color: var(--text);
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.svc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.svc-chip.active { background: #F5F3FF; border-color: var(--brand); color: var(--brand); }
.confirm-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.confirm-box .kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.confirm-box .kv span { color: var(--text-muted); }
.confirm-box .kv-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 15px; }
.saved-iban-list { display: flex; flex-direction: column; gap: 8px; }
.saved-iban {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    width: 100%; text-align: left; padding: 12px 14px; min-height: 44px;
    border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer;
}
.saved-iban.active { border-color: var(--brand); background: #F5F3FF; }
.rate-list { display: flex; flex-direction: column; }
.rate-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.rate-row:last-child { border-bottom: 0; }
.rate-sym { font-weight: 700; min-width: 52px; }
.rate-px { font-feature-settings: 'tnum'; font-weight: 700; margin-left: auto; }
.rate-chg { font-size: 12px; font-weight: 700; }
.rate-chg.up { color: var(--success); }
.rate-chg.down { color: var(--danger); }
.svc-mini { display: flex; flex-direction: column; gap: 8px; }
.svc-mini a {
    display: flex; align-items: center; min-height: 44px;
    padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
    font-weight: 600; font-size: 14px; color: var(--text);
}
.svc-mini a:hover { background: var(--bg-2); }

@media (max-width: 640px) {
    .rate-px { margin-left: 0; }
}

/* Google ile Devam Et — Kayıt Ol ile aynı genişlik, ortalı */
.google-continue {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 12px 0 0;
    text-align: center;
    box-sizing: border-box;
}
.google-continue .btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 20px;
    min-height: 46px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #3c4043;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
    box-sizing: border-box;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}
.google-continue .btn-google:hover {
    background: #f8f9fa;
    color: #202124;
    border-color: #c6c6c6;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}
.google-continue .btn-google:active { background: #f1f3f4; }
.google-continue .btn-google:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
.google-continue .btn-google-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    line-height: 0;
    vertical-align: middle;
}
.google-continue .btn-google-logo svg {
    display: block;
    width: 18px;
    height: 18px;
}
.google-continue .btn-google-text {
    display: inline-block;
    line-height: 18px;
    vertical-align: middle;
}

/* ---------------- Birikim hesabı ---------------- */
.savings-stack { display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; }
.savings-stack > * { min-width: 0; max-width: 100%; }

/* ---------------- Vadeli faiz ---------------- */
.faiz-stack { display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; }
.faiz-stack > * { min-width: 0; max-width: 100%; }
.faiz-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faiz-product {
    padding: 16px; border: 1px solid var(--border); border-radius: 14px;
    background: var(--bg-2); min-width: 0;
}
.faiz-product-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.faiz-product-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.faiz-rate { font-weight: 800; font-size: 22px; color: var(--brand); font-feature-settings: 'tnum'; white-space: nowrap; }
.faiz-est { display: grid; gap: 6px; margin-bottom: 10px; font-size: 13.5px; }
.faiz-est > div { display: flex; justify-content: space-between; gap: 8px; }
.faiz-warn { margin: 0 0 12px; }
.faiz-check {
    display: flex; align-items: flex-start; gap: 12px;
    min-height: 44px; margin: 0 0 14px; cursor: pointer;
    font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
}
.faiz-check input {
    width: 22px; height: 22px; min-width: 22px; min-height: 22px;
    margin-top: 2px; flex-shrink: 0; accent-color: var(--brand);
}
.faiz-row { align-items: flex-start; }
.faiz-break-form { flex-shrink: 0; }
.faiz-amt-wrap input { min-height: 44px; }
.faiz-admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; min-width: 0; }
.savings-notes {
    color: var(--text-muted); font-size: 13.5px; line-height: 1.75;
    margin: 18px 0 0; padding-left: 18px;
    overflow-wrap: anywhere;
}
.notif-list a {
    display: flex; gap: 14px; padding: 14px 16px;
    min-width: 0; max-width: 100%; min-height: 44px;
    overflow-wrap: anywhere; box-sizing: border-box;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.notif-list a:last-child { border-bottom: 0; }
.notif-list a > div { min-width: 0; flex: 1; }

/* ---------------- Mobile 320–430 pass ---------------- */
@media (max-width: 430px) {
    html, body, .app-shell, .auth-split, .landing-nav, .landing-hero { overflow-x: hidden; }
    .topbar { flex-wrap: nowrap; gap: 8px; align-items: center; overflow: visible; }
    .topbar .actions { gap: 4px; flex-shrink: 0; }
    .topbar-heading { min-width: 0; overflow: hidden; }
    .topbar-heading .subtitle { display: none; }
    .topbar h1 {
        font-size: 18px; line-height: 1.25;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .topbar .topbar-logo { display: none !important; }
    .icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
    .lang-switch a { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 4px; }
    .lang-switch .lang-flag { width: 22px; height: 15px; }
    .notif-wrap { position: static; }
    .notif-dropdown { left: 8px; right: 8px; width: auto; max-width: none; }

    .grid-2, .grid-split, .grid-3, .savings-stack .grid-2, .faiz-stack .grid-2 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .faiz-products { grid-template-columns: minmax(0, 1fr); }
    .faiz-row { flex-wrap: wrap; }
    .faiz-break-form, .faiz-break-form .btn { width: 100%; min-height: 44px; }
    .faiz-admin-grid { grid-template-columns: minmax(0, 1fr); }
    .form-row, .form-row input, .form-row select, .form-row textarea,
    .form-row .btn, .btn-block { width: 100%; max-width: 100%; }
    .form-grid { grid-template-columns: minmax(0, 1fr) !important; }

    .file-drop {
        flex-direction: column; align-items: flex-start; gap: 8px;
        width: 100%; box-sizing: border-box;
    }
    .file-drop .file-name { white-space: normal; overflow-wrap: anywhere; }
    .deposit-cta { margin-top: 16px; width: 100%; position: static; z-index: 1; }
    .deposit-cta .btn { width: 100%; }

    .segmented, .segmented.full, .segmented.full.tabs-3 {
        display: flex; flex-wrap: wrap; overflow: hidden; width: 100%;
    }
    .segmented a, .segmented.full a, .segmented.full.tabs-3 a {
        flex: 1 1 calc(50% - 4px); min-width: 0; white-space: normal;
        text-align: center; justify-content: center;
    }
    .segmented.full.tabs-3 a { flex: 1 1 calc(33% - 4px); min-width: 0; }

    .bottom-nav { overflow: hidden; }
    .bottom-nav-grid { width: 100%; min-width: 0; }
    .bottom-nav a { min-width: 0; min-height: 48px; padding: 6px 1px; }
    .bottom-nav a span:not(.ico):not(.dot) {
        max-width: 100%; overflow-wrap: break-word; word-break: normal;
        line-height: 1.15; font-size: 12px;
    }

    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dep-ops { max-width: 100%; }
    .dep-ops-input { max-width: 100%; }
    .dep-ops-btns .btn { min-height: 44px; }
    .dep-receipt-cell { white-space: normal; overflow: hidden; max-width: 100%; }
    .dep-receipt { margin-left: auto; }
    .dep-receipt-pdf { min-height: 44px; }
    .copyable { min-width: 0; max-width: 100%; flex-direction: column; align-items: stretch; }
    .copyable button { width: 100%; }
    .pay-box, .pay-box .copyable, .deposit-info, .deposit-pay { min-width: 0; max-width: 100%; }
    .card .flex.gap-12 { flex-wrap: wrap; }
    .card .flex.gap-12 .btn { flex: 1 1 100%; white-space: normal; }
    .google-continue .btn-google { white-space: normal; }

    .confirm-box .kv { flex-wrap: wrap; }
    .tx-row { min-width: 0; }
    .tx-meta { min-width: 0; overflow-wrap: anywhere; }
    .tx-sub { white-space: normal; overflow: visible; text-overflow: unset; }
    .tx-amt { overflow-wrap: anywhere; }

    .balance-hero { padding: 16px 12px 14px 16px; }
    .hero-panel { padding-right: 52px; }
    .hero-sav-arrow { top: 8px; right: 8px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
    .hero-sav-body { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
    .hero-sav-form-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    .hero-sav-form-row input, .hero-sav-form-row .btn { width: 100%; flex: 1 1 auto; }
    .hero-bal-main .acc-no { max-width: 100%; }
    .balance-hero .right { margin-top: 4px; padding-right: 0; }
    .qa-grid { margin-top: 16px; }
    .stat-card { padding: 16px 56px 16px 16px; }
    .stat-card .stat-icon { top: 12px; right: 12px; width: 36px; height: 36px; }

    .main > .flex.justify-between { flex-wrap: wrap; gap: 10px; }
    .main > .flex.justify-between .btn { white-space: normal; }
    [style*="min-width:200px"],
    [style*="min-width: 200px"],
    [style*="min-width:120px"],
    [style*="min-width: 120px"] { min-width: 0 !important; }

    .savings-notes { padding-left: 16px; overflow-wrap: anywhere; }
    .chat-bubble { max-width: min(78%, calc(100% - 48px)); min-width: 0; }
    .chat-system { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
    .chat-meta { flex-wrap: wrap; }
    .legal-header h1 { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
    .topbar .topbar-logo { display: none !important; }
    .topbar h1 { font-size: 16px; }
    .landing-nav-end .btn { padding: 8px 10px; font-size: 13.5px; }
    .balance-hero .amount { font-size: clamp(28px, 8.5vw, 34px); }
    .qa-item { font-size: 13.5px; padding: 8px 2px; }
}

/* ---------------- Transfer: son hesap + alıcı kimliği ---------------- */
.xfer-recents { margin: 0 0 18px; min-width: 0; max-width: 100%; }
.xfer-recents-h {
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    margin: 0 0 8px;
}
.xfer-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.xfer-recent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(124, 58, 237, .12);
    appearance: none;
}
.xfer-recent:hover { border-color: var(--brand); }
.xfer-recent.is-on {
    border-color: var(--brand);
    background: #F5F3FF;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.xfer-recent-txt {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.xfer-recent-name {
    font-weight: 650;
    font-size: 13.5px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.xfer-recent-no {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .02em;
    overflow-wrap: anywhere;
}
.xfer-ava {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #EDE9FE;
    color: #7C3AED;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.xfer-ident {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    min-height: 44px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-2);
}
.xfer-ident.is-on { display: flex; }
.xfer-ident.is-ok {
    border-color: rgba(124, 58, 237, .35);
    background: #F5F3FF;
}
.xfer-ident.is-err {
    border-color: rgba(220, 38, 38, .28);
    background: #FEF2F2;
}
.xfer-ident.is-wait {
    border-color: var(--border-strong);
    color: var(--text-muted);
}
.xfer-ident-txt {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xfer-ident-name {
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.xfer-ident-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 12px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.xfer-kind {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, .12);
    color: #6D28D9;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}
.xfer-ident.is-err .xfer-ava { background: #FEE2E2; color: #DC2626; }
.xfer-ident.is-err .xfer-ident-name { color: #991B1B; font-weight: 650; font-size: 13.5px; }
.xfer-ident.is-err .xfer-kind { display: none; }
.xfer-row-ok input[name="target"] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.xfer-row-err input[name="target"] {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.xfer-confirm {
    padding: 18px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(124, 58, 237, .06);
    min-width: 0;
    max-width: 100%;
}
.xfer-myno { overflow-wrap: anywhere; word-break: break-word; }
.xfer-actions { flex-wrap: wrap; }
.xfer-actions .btn { min-height: 44px; }

@media (min-width: 480px) {
    .xfer-recent {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}
@media (max-width: 430px) {
    .xfer-recent { flex: 1 1 100%; max-width: 100%; }
    .xfer-actions { flex-direction: column; }
    .xfer-actions .btn { width: 100%; }
    .xfer-ident, .xfer-recent { padding: 10px 12px; }
}

/* =====================================================
   Phone type + shell (≤768) — desktop sizes stay put
   Targets 320 / 375 / 390 / 414 / 430
   ===================================================== */
@media (max-width: 768px) {
    body {
        font-size: 16.5px;
        line-height: 1.55;
    }
    .text-sm { font-size: 15.5px; }
    .text-xs { font-size: 14.5px; }
    .flash { font-size: 16px; }
    p, .main p, .card > p { font-size: 16.5px; line-height: 1.55; }
    p.muted, .card > p.muted, .text-sm.muted { font-size: 16px; line-height: 1.55; }
    .card-title { font-size: 17px; }
    .btn { font-size: 15.5px; min-height: 44px; white-space: normal; }
    .google-continue .btn-google { white-space: normal; }
    .btn-sm { font-size: 14.5px; min-height: 44px; }
    .btn-lg, .btn-xl { font-size: 16px; }

    .form-row label, .compact-form .form-row label { font-size: 15.5px; }
    .form-row input, .form-row select, .form-row textarea,
    .hero-sav-form-row input {
        font-size: 16px;
        min-height: 48px;
    }
    .form-row .hint, .hint { font-size: 14.5px; line-height: 1.5; }
    .form-row input[type="file"] { font-size: 16px; }

    .copyable {
        font-size: 16.5px;
        line-height: 1.45;
        overflow-wrap: anywhere;
        word-break: normal;
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
    }
    .copyable span, .copyable input { font-size: 16.5px; min-width: 0; overflow-wrap: anywhere; }
    .copyable button { min-height: 44px; min-width: 44px; width: 100%; font-size: 14.5px; white-space: normal; }
    .iban-box { font-size: 16.5px; letter-spacing: 0; overflow-wrap: anywhere; }
    .pay-box .pay-bank { font-size: 16.5px; }
    .pay-box .pay-holder, .pay-box .copyable.pay-holder { font-size: 16.5px; }
    .pay-hint { font-size: 14.5px; }
    .notice { font-size: 15.5px; }
    .notice-ex { font-size: 15px; }

    .balance-hero .label { font-size: 14.5px; }
    .balance-hero .amount { font-size: clamp(30px, 9vw, 38px); }
    .balance-hero .acc-no { font-size: 14.5px; }
    .stat-card .stat-label { font-size: 14.5px; }
    .stat-card .stat-value { font-size: clamp(24px, 6.5vw, 28px); }
    .stat-card .stat-hint { font-size: 14px; }
    .wallet-chip { font-size: 14.5px; }
    .hero-wallet-amt { font-size: clamp(24px, 7.5vw, 32px); }

    .topbar h1 { font-size: 20px; }
    .topbar .subtitle { font-size: 15px; }
    .nav-item { font-size: 15.5px; min-height: 44px; }
    .nav-section-title { font-size: 11.5px; }
    .sidebar-bal .amt { font-size: 24px; }
    .sidebar-bal .lbl, .sidebar-bal .acc { font-size: 13px; }

    .bottom-nav a { font-size: 12px; min-height: 52px; }
    .bottom-nav a span:not(.ico):not(.dot) { font-size: 12px; line-height: 1.2; word-break: normal; }

    table.data { font-size: 15.5px; }
    table.data thead th { font-size: 13px; }
    table.data tbody td::before { font-size: 13.5px; }
    .tx-title { font-size: 16px; }
    .tx-sub { font-size: 15px; white-space: normal; overflow: visible; text-overflow: unset; }
    .tx-amt { font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
    .tx-sender { font-size: 14px; }
    .xfer-name { font-size: 16px; }
    .xfer-date, .xfer-num, .xfer-item-refs { font-size: 14px; }

    .faiz-product-name { font-size: 16.5px; }
    .faiz-rate { font-size: 24px; white-space: normal; }
    .faiz-est { font-size: 15.5px; }
    .faiz-check { font-size: 15.5px; min-height: 44px; }
    .savings-notes { font-size: 15px; }

    .xfer-recents-h { font-size: 14.5px; }
    .xfer-recent-name { font-size: 15.5px; }
    .xfer-recent-no { font-size: 14px; }
    .xfer-ident-name { font-size: 16px; }
    .xfer-ident-meta { font-size: 14px; }
    .xfer-kind { font-size: 12.5px; }
    .amt-chips button { font-size: 15px; min-height: 44px; }
    .svc-chip { font-size: 14.5px; }
    .confirm-box .kv { font-size: 15.5px; }
    .confirm-box .kv-total { font-size: 16px; }
    .svc-mini a { font-size: 15.5px; }
    .rate-row { font-size: 15.5px; }
    .rate-chg { font-size: 14px; }
    .segmented a { font-size: 15px; }
    .file-drop { font-size: 15px; }
    .qa-item { font-size: 13.5px; }
    .badge { font-size: 12.5px; }
    .empty-state { font-size: 16px; }
    .kyc-gate-inner p { font-size: 16.5px; }
    .chk-row { font-size: 15.5px; min-height: 44px; }
    .notif-dd-head b { font-size: 16px; }
    .notif-dd-head a { font-size: 15px; }
    .notif-dd-title { font-size: 15.5px; }
    .notif-dd-body { font-size: 15px; white-space: normal; overflow: visible; }
    .notif-dd-time { font-size: 14px; }

    .landing-hero p { font-size: 16.5px; }
    .landing-nav .nav-links a { font-size: 16px; min-height: 44px; }
    .landing-nav .btn { font-size: 14.5px; min-height: 44px; }
    .feature h3 { font-size: 17.5px; }
    .feature p { font-size: 16px; }
    .features > p { font-size: 16.5px; }
    .cta-banner p { font-size: 16px; }
    .testimonial p, details.faq-item .faq-body { font-size: 16px; }
    details.faq-item summary { font-size: 16px; }
    .landing-footer .footer-col a,
    .landing-footer .footer-brand p { font-size: 15.5px; }
    .landing-footer .footer-bottom { font-size: 14.5px; }
    .trust-metrics .metric .value { font-size: 18px; }
    .trust-metrics .metric .label { font-size: 12px; }
    .auth-brand p, .auth-links { font-size: 16px; }
    .brand-panel .brand-hero-desc { font-size: 15.5px; }

    /* Header: hamburger, flag, bell, VIP, avatar — 44px */
    .mobile-menu-btn,
    .icon-btn,
    .lang-switch a,
    .sidebar-close,
    .hero-sav-arrow {
        width: 44px; height: 44px;
        min-width: 44px; min-height: 44px;
    }
    .topbar { flex-wrap: nowrap; gap: 8px; min-width: 0; max-width: 100%; }
    .topbar > div:first-child,
    .topbar-heading { min-width: 0; overflow: hidden; }
    .topbar .actions { gap: 4px; flex-shrink: 0; }
    .topbar .vip-chip.hide-mobile { display: none !important; }
    .topbar .vip-chip:not(.hide-mobile) {
        display: inline-flex;
        width: 44px; height: 44px;
        min-width: 44px; min-height: 44px;
        padding: 0; justify-content: center;
    }
    .topbar .vip-chip:not(.hide-mobile) span:last-child { display: none; }
    .topbar .user-chip {
        display: flex;
        padding: 4px;
        width: 44px; height: 44px;
        min-width: 44px; min-height: 44px;
        justify-content: center;
        box-sizing: border-box;
    }
    .topbar .user-chip > div:last-child { display: none; }
    .topbar .user-chip .avatar { width: 36px; height: 36px; }

    /* Overflow after larger type */
    html, body, .app-shell, .main, .card, .grid, .grid-2, .grid-split {
        max-width: 100%; min-width: 0;
    }
    .main, .card, .pay-box, .deposit-info, .deposit-pay,
    .faiz-stack, .faiz-product, .savings-stack,
    .xfer-recents, .xfer-recent, .xfer-ident, .tx-row, .tx-meta {
        min-width: 0; max-width: 100%; overflow-wrap: anywhere;
    }
    .grid-2, .grid-split, .savings-stack .grid-2, .faiz-stack .grid-2,
    .faiz-admin-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .faiz-row { flex-wrap: wrap; }
    .faiz-break-form, .faiz-break-form .btn { width: 100%; min-height: 44px; }
    .form-row, .form-row input, .form-row select, .form-row textarea,
    .form-row .btn, .btn-block { max-width: 100%; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
    .card .flex.gap-12 { flex-wrap: wrap; }
    .card .flex.gap-12 .btn { flex: 1 1 100%; white-space: normal; }
    .xfer-recent-list { flex-wrap: wrap; }
    .xfer-actions { flex-wrap: wrap; }
    .xfer-actions .btn { min-height: 44px; }
    .hero-sav-arrow { top: 8px; right: 8px; }
    .hero-panel { padding-right: 52px; }
    .hero-sav-form-row { flex-wrap: wrap; }
    .hero-sav-form-row input, .hero-sav-form-row .btn { width: 100%; flex: 1 1 100%; }
}

@media (max-width: 375px) {
    .topbar { flex-wrap: nowrap; }
    .topbar > div:first-child { flex: 1 1 auto; min-width: 0; }
    .topbar .actions { margin-left: 0; flex-shrink: 0; }
}

/* Later than the ≤768 type pass so title can shrink on the tightest phones */
@media (max-width: 430px) {
    .topbar h1 { font-size: 18px; }
}
@media (max-width: 360px) {
    .topbar h1 { font-size: 16px; }
}
