@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
    --bg-0: #070708;
    --bg-1: #0c0c0e;
    --bg-2: #121214;
    --bg-3: #1a1a1d;
    --panel: #161618;
    --panel-2: #1e1e22;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.12);
    --steel: #b8b8c0;
    --steel-bright: #e8e8ec;
    --accent: #d4d4d8;
    --ember: #e11d48;
    --ember-soft: #fb7185;
    --text: #f4f4f5;
    --muted: rgba(244, 244, 245, 0.48);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-2: rgba(255, 255, 255, 0.06);
    --danger: #fb7185;
    --success: #4ade80;
    --warn: #fbbf24;
    --nav-h: 72px;
    --radius: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    min-height: 100%;
    overflow-x: hidden;
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 100% 70% at 50% -30%, rgba(80, 80, 90, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 80%, rgba(40, 40, 48, 0.35), transparent 50%),
        linear-gradient(180deg, #050506 0%, #0a0a0c 45%, #0e0e10 100%);
}

.mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black, transparent);
    opacity: .7;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 280px; height: 280px; background: #3f3f46; top: -120px; right: -60px; }
.orb-2 { width: 220px; height: 220px; background: #27272a; bottom: 20%; left: -80px; animation-delay: -4s; }
.orb-3 { width: 180px; height: 180px; background: #52525b; bottom: -40px; right: 15%; animation-delay: -7s; opacity: .22; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -16px) scale(1.04); }
}

.grain {
    position: absolute;
    inset: 0;
    opacity: .04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
}

#app {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
}

.screen {
    display: none;
    padding: 0 16px 24px;
    max-width: 520px;
    margin: 0 auto;
    animation: screenIn .35s cubic-bezier(.22, 1, .36, 1);
}
.screen.active { display: block; }

@keyframes screenIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ── Shop hero ── */
.shop-hero {
    padding: 20px 0 22px;
}
.shop-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.shop-greeting {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.shop-title {
    font-family: 'Syne', 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin-top: 6px;
    color: var(--text);
}
.shop-badge {
    padding: 7px 11px;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    color: var(--steel);
    white-space: nowrap;
    letter-spacing: .02em;
}

.search-wrap {
    position: relative;
    margin-bottom: 18px;
}
.search-wrap::before {
    content: '⌕';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, background .2s;
}
.search-input:focus {
    border-color: var(--line-strong);
    background: var(--panel-2);
}
.search-input::placeholder { color: var(--muted); }

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

/* ── Category grid ── */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cat-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 15px;
    min-height: 128px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    color: #fff;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,.08) 0%, transparent 45%);
    pointer-events: none;
}
.cat-card::after {
    content: '';
    position: absolute;
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -18px; right: -18px;
}
.cat-card:active { transform: scale(.97); }
.cat-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
}

.cat-card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.cat-card-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
    position: relative;
    z-index: 1;
}
.cat-card-meta {
    font-size: 11px;
    opacity: .55;
    margin-top: 6px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ── Products ── */
.products-header {
    padding: 16px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.products-header-text { flex: 1; min-width: 0; }
.products-cat-name {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.products-cat-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.prod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.prod-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, border-color .2s;
    text-align: left;
    color: inherit;
    padding: 0;
}
.prod-card:active { transform: scale(.97); }
.prod-card:hover { border-color: var(--line-strong); }
.prod-card.out-of-stock { opacity: .45; pointer-events: none; }

.prod-visual {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    position: relative;
    overflow: hidden;
}
.prod-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55) 100%);
}
.prod-visual span {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.85);
}

.prod-body { padding: 12px 13px 14px; }
.prod-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 35px;
}
.prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 6px;
}
.prod-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--steel-bright);
    letter-spacing: -.02em;
    font-family: 'Syne', sans-serif;
}
.stock-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 6px;
    white-space: nowrap;
}
.stock-ok { background: rgba(74,222,128,.12); color: var(--success); }
.stock-low { background: rgba(251,191,36,.12); color: var(--warn); }
.stock-out { background: rgba(251,113,133,.12); color: var(--danger); }

/* ── Product detail ── */
.product-page { padding-bottom: 100px; }

.prod-hero {
    margin: 0 -16px 20px;
    padding: 32px 24px 36px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    border-bottom: 1px solid var(--line);
}
.prod-hero-glow {
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    top: -40px; right: -40px;
}
.prod-hero-letter {
    font-family: 'Syne', sans-serif;
    font-size: 68px;
    font-weight: 800;
    line-height: 1;
    opacity: .9;
    color: rgba(255,255,255,.9);
}
.prod-hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-top: 14px;
    line-height: 1.2;
}
.prod-hero-id {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: .04em;
}

.info-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.info-chip {
    flex: 1;
    padding: 14px 10px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--line);
    text-align: center;
}
.info-chip-val {
    font-size: 18px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: var(--steel-bright);
}
.info-chip-label {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.qty-block {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    margin-bottom: 14px;
}
.qty-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.qty-btn {
    width: 46px; height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:active { transform: scale(.92); }
.qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.qty-val {
    font-size: 30px;
    font-weight: 800;
    min-width: 48px;
    text-align: center;
    font-family: 'Syne', sans-serif;
}

.total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    margin-bottom: 18px;
}
.total-label { font-size: 13px; color: var(--muted); }
.total-price {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: var(--steel-bright);
}

.sticky-cta {
    position: fixed;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
    left: 16px; right: 16px;
    max-width: 488px;
    margin: 0 auto;
    z-index: 50;
}

/* ── Checkout ── */
.checkout-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.checkout-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--steel), transparent);
    opacity: .4;
}
.checkout-item { font-size: 16px; font-weight: 700; }
.checkout-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.checkout-total {
    font-size: 28px;
    font-weight: 800;
    margin-top: 12px;
    font-family: 'Syne', sans-serif;
    color: var(--steel-bright);
}

.pay-grid { display: flex; flex-direction: column; gap: 8px; }
.pay-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all .2s;
    text-align: left;
    color: inherit;
    width: 100%;
}
.pay-card:active { transform: scale(.98); }
.pay-card:hover {
    border-color: var(--line-strong);
    background: var(--panel-2);
}
.pay-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid var(--line);
}
.pay-name { font-size: 15px; font-weight: 600; }
.pay-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pay-arrow { margin-left: auto; color: var(--muted); font-size: 20px; }

/* ── Shared ── */
.header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 8px;
}
.header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
    flex: 1;
}

.back-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.back-btn:active { background: var(--panel-2); }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-sub { font-size: 13px; color: var(--muted); }

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--line);
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}
.list-item:active { transform: scale(.98); }
.list-item .arrow { color: var(--steel); font-size: 18px; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: var(--panel-2);
    color: var(--steel);
    border: 1px solid var(--line);
}

.btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, opacity .15s, box-shadow .15s;
    text-align: center;
    text-decoration: none;
    letter-spacing: -.01em;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-primary {
    color: #0a0a0b;
    background: linear-gradient(180deg, #f4f4f5 0%, #d4d4d8 100%);
    box-shadow: 0 4px 20px rgba(255,255,255,.08);
}
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(255,255,255,.12);
}

.btn-secondary {
    color: var(--steel-bright);
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
}

.btn-danger {
    color: #fff;
    background: rgba(225, 29, 72, .18);
    border: 1px solid rgba(225, 29, 72, .35);
}

.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; display: inline-block; }

.input, .textarea, select.input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 15px;
    margin-bottom: 10px;
    outline: none;
    font-family: inherit;
}
.input:focus, .textarea:focus { border-color: var(--line-strong); background: var(--panel-2); }
.textarea { min-height: 100px; resize: vertical; }

/* ── Profile ── */
.profile-card {
    position: relative;
    border-radius: 22px;
    padding: 28px 20px 24px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 14px;
}
.profile-card-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,.06), transparent 65%);
    pointer-events: none;
}
.profile-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
}
.profile-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(135deg, #52525b, #a1a1aa, #3f3f46, #d4d4d8);
    background-size: 200% 200%;
    animation: ringSpin 8s linear infinite;
    opacity: .7;
}
@keyframes ringSpin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.profile-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: linear-gradient(145deg, #27272a, #3f3f46);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    border: 3px solid var(--bg-0);
    color: var(--steel-bright);
}
.profile-name {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    position: relative;
    z-index: 1;
}
.profile-id {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    position: relative;
    z-index: 1;
}
.profile-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}
.profile-status {
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.profile-status-admin {
    background: rgba(255,255,255,.08);
    color: var(--steel-bright);
    border: 1px solid var(--line-strong);
}
.profile-status-blocked {
    background: rgba(251,113,133,.12);
    color: var(--danger);
    border: 1px solid rgba(251,113,133,.25);
}
.profile-status-wait {
    background: rgba(251,191,36,.1);
    color: var(--warn);
    border: 1px solid rgba(251,191,36,.2);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.profile-stat {
    padding: 14px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    text-align: center;
}
.profile-stat-val {
    font-size: 14px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: var(--steel-bright);
    word-break: break-all;
}
.profile-stat-label {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.profile-alert {
    padding: 14px;
    border-radius: 14px;
    background: rgba(251,191,36,.06);
    border: 1px solid rgba(251,191,36,.2);
    margin-bottom: 8px;
}
.profile-alert-title { font-weight: 700; font-size: 14px; }
.profile-alert-text { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.profile-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.profile-link-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 14px;
    min-height: 108px;
    text-align: left;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}
.profile-link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.06), transparent 55%);
}
.profile-link-card:active { transform: scale(.97); }
.profile-link-card:hover { border-color: var(--line-strong); }
.profile-link-icon { font-size: 20px; display: block; margin-bottom: 10px; position: relative; }
.profile-link-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    letter-spacing: -.02em;
}
.profile-link-sub {
    display: block;
    font-size: 11px;
    opacity: .5;
    margin-top: 4px;
    position: relative;
}

.nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding: 8px 12px env(safe-area-inset-bottom);
    background: rgba(7, 7, 8, .92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 4px;
}
.nav.hidden { display: none; }

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s;
    letter-spacing: .04em;
}
.nav-btn .icon {
    font-size: 20px;
    width: 44px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background .2s;
}
.nav-btn.active { color: var(--steel-bright); }
.nav-btn.active .icon {
    background: rgba(255,255,255,.08);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { text-align: center; padding: 16px; }
.stat-num {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: var(--steel-bright);
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.qr-img {
    width: 100%;
    max-width: 260px;
    margin: 16px auto;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.toast {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(22, 22, 24, .96);
    border: 1px solid var(--line-strong);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
    backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; }

.loading, .empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .45; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.skeleton {
    height: 128px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
    background-size: 200% 100%;
    animation: skel 1.2s ease infinite;
    border: 1px solid var(--line);
}
@keyframes skel {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.captcha-img {
    width: 100%;
    max-width: 200px;
    margin: 12px auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.toggle {
    position: relative;
    width: 48px; height: 26px;
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
    border: 1px solid var(--line);
}
.toggle.on { background: #3f3f46; border-color: var(--line-strong); }
.toggle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #e4e4e7;
    transition: transform .2s;
}
.toggle.on::after { transform: translateX(22px); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.gap-8 { display: flex; gap: 8px; flex-wrap: wrap; }
