/* ============================================================
   WHOOSH MINI APP v2.0 — Premium Dark + Gold Theme
   Font: Space Grotesk (display) + Inter (body)
   Icons: Remix Icon
   ============================================================ */

:root {
    --bg: #07070b;
    --bg-alt: #0c0c12;
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-elevated: rgba(255, 255, 255, 0.05);

    --text: #f4f4f7;
    --text-2: rgba(255, 255, 255, 0.55);
    --text-3: rgba(255, 255, 255, 0.28);

    --accent: #f5c518;
    --accent-2: #ffe14d;
    --accent-dim: #c99e00;
    --accent-glow: rgba(245, 197, 24, 0.30);
    --accent-subtle: rgba(245, 197, 24, 0.07);

    --green: #34d399;
    --green-bg: rgba(52, 211, 153, 0.10);
    --red: #f87171;
    --red-bg: rgba(248, 113, 113, 0.10);
    --blue: #60a5fa;
    --blue-bg: rgba(96, 165, 250, 0.10);
    --purple: #a78bfa;
    --purple-bg: rgba(167, 139, 250, 0.10);
    --orange: #fb923c;

    --border: rgba(255, 255, 255, 0.055);
    --border-2: rgba(255, 255, 255, 0.10);
    --border-accent: rgba(245, 197, 24, 0.14);

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 0.68, 0, 1);

    --nav-h: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #root { height: 100%; overflow: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font-family: inherit; border: none; outline: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== SPLASH ===== */
.splash {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--bg);
    gap: 24px;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.splash.hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}
.splash-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: splashPulse 2s ease-in-out infinite;
}
@keyframes splashPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.7; }
}
.splash-logo {
    position: relative; z-index: 1;
}
.splash-icon-wrap {
    width: 80px; height: 80px;
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--bg);
    box-shadow: 0 8px 40px var(--accent-glow);
    animation: splashBounce 0.8s var(--ease-spring);
}
@keyframes splashBounce {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.splash-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px; font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: splashFade 0.6s 0.3s var(--ease) both;
}
@keyframes splashFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.splash-bar-track {
    width: 120px; height: 3px;
    background: var(--border);
    border-radius: 3px; overflow: hidden;
    animation: splashFade 0.6s 0.5s var(--ease) both;
}
.splash-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 3px;
    animation: barFill 1.8s 0.6s var(--ease-out) forwards;
}
@keyframes barFill {
    to { width: 100%; }
}

/* ===== APP CONTAINER ===== */
.app {
    height: 100%; display: flex; flex-direction: column;
    position: relative;
    animation: appIn 0.5s var(--ease);
}
@keyframes appIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== PAGES ===== */
.pages-wrap {
    flex: 1; position: relative; overflow: hidden;
}
.page {
    position: absolute; inset: 0;
    opacity: 0; transform: translateX(20px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    overflow: hidden;
}
.page.active {
    opacity: 1; transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
}
.page.exit {
    opacity: 0; transform: translateX(-20px);
}
.page-scroll {
    height: 100%; overflow-y: auto; overflow-x: hidden;
    padding: 0 20px calc(var(--nav-h) + 12px);
    -webkit-overflow-scrolling: touch;
}

/* ===== HOME HEADER ===== */
.home-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0 16px;
}
.greeting-small {
    font-size: 13px; color: var(--text-3);
    font-weight: 500; letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.greeting-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px; font-weight: 700;
    letter-spacing: -0.5px;
}
.avatar-btn {
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--text-2);
    transition: all 0.2s var(--ease);
}
.avatar-btn:active { transform: scale(0.92); }
.avatar-btn.admin {
    background: var(--accent-subtle);
    border-color: var(--border-accent);
    color: var(--accent);
}

/* ===== ACCOUNT CARD ===== */
.account-card {
    position: relative; overflow: hidden;
    background: linear-gradient(145deg, rgba(245, 197, 24, 0.09), rgba(245, 197, 24, 0.02));
    border: 1px solid var(--border-accent);
    border-radius: var(--r-lg);
    padding: 22px;
    margin-bottom: 20px;
}
.account-card-shine {
    position: absolute; top: -50%; right: -30%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.12), transparent 70%);
    pointer-events: none;
}
.account-card-orb {
    position: absolute; bottom: -40px; left: -20px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.06), transparent 70%);
    pointer-events: none;
}
.account-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.account-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-3); font-weight: 500;
}
.account-label i { font-size: 16px; color: var(--accent); opacity: 0.7; }
.account-switch {
    width: 36px; height: 36px;
    background: rgba(255,255,255, 0.04);
    border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--text-2);
    transition: all 0.2s var(--ease);
}
.account-switch:active { transform: scale(0.9); }
.account-phone {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px; font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.75));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.account-bottom {
    display: flex; align-items: center; justify-content: space-between;
}
.account-status {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-2);
}
.dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-3);
    flex-shrink: 0;
}
.dot.active {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 12px rgba(52, 211, 153, 0.7); }
}
.account-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    opacity: 0.4;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 13px; font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 2px;
    display: flex; align-items: center; gap: 6px;
}
.section-title i { font-size: 14px; color: var(--accent); }

/* ===== QUICK ACTIONS ===== */
.actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.action-pill {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
    padding: 20px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all 0.2s var(--ease);
    position: relative; overflow: hidden;
}
.action-pill::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}
.action-pill:active { transform: scale(0.95); }
.action-pill:active::after { opacity: 1; }
.action-pill i {
    font-size: 24px; color: var(--accent);
    transition: transform 0.2s var(--ease-spring);
}
.action-pill:active i { transform: scale(1.15); }
.action-pill span {
    font-size: 12px; font-weight: 600;
    color: var(--text-2);
}

/* Accent action (Start) */
.action-pill.accent {
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    border-color: transparent;
    box-shadow: 0 6px 24px var(--accent-glow);
}
.action-pill.accent i { color: var(--bg); }
.action-pill.accent span { color: var(--bg); font-weight: 700; }

/* Red action (Stop) */
.action-pill.red {
    border-color: rgba(248, 113, 113, 0.12);
}
.action-pill.red i { color: var(--red); }

/* ===== TRIP CARD ===== */
.trip-card {
    position: relative; overflow: hidden;
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.02));
    border: 1px solid rgba(52, 211, 153, 0.18);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 20px;
    animation: cardIn 0.4s var(--ease-spring);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.trip-glow {
    position: absolute; top: -40px; right: -40px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15), transparent 70%);
    pointer-events: none;
}
.trip-head { margin-bottom: 18px; }
.trip-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(52, 211, 153, 0.10);
    border-radius: var(--r-sm);
    font-size: 13px; font-weight: 600;
    color: var(--green);
}
.trip-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.trip-metrics {
    display: flex; align-items: stretch;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--r-md);
    padding: 14px 0;
}
.trip-metric {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
}
.trip-metric i {
    font-size: 20px; color: var(--green);
    margin-bottom: 2px;
}
.metric-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 700;
}
.metric-label {
    font-size: 11px; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.metric-sep {
    width: 1px;
    background: var(--border);
}
.btn-stop-trip {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, var(--red), #dc2626);
    border-radius: var(--r-md);
    font-size: 14px; font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.25);
    transition: all 0.2s var(--ease);
}
.btn-stop-trip i { font-size: 18px; }
.btn-stop-trip:active { transform: scale(0.97); }

/* ===== MENU GROUP ===== */
.menu-group {
    display: flex; flex-direction: column;
    gap: 6px; margin-bottom: 20px;
}
.menu-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all 0.2s var(--ease);
}
.menu-row:active {
    background: var(--bg-card-hover);
    transform: scale(0.98);
}
.menu-ico {
    width: 40px; height: 40px;
    background: var(--accent-subtle);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--accent);
    flex-shrink: 0;
}
.menu-ico.gold { background: rgba(245, 197, 24, 0.10); color: var(--accent); }
.menu-ico.green { background: var(--green-bg); color: var(--green); }
.menu-ico.blue { background: var(--blue-bg); color: var(--blue); }
.menu-ico.purple { background: var(--purple-bg); color: var(--purple); }

.menu-text {
    flex: 1; font-size: 15px; font-weight: 500;
    text-align: left;
}
.menu-badge {
    padding: 3px 10px;
    background: var(--accent-subtle);
    border-radius: 20px;
    font-size: 11px; font-weight: 700;
    color: var(--accent);
}
.menu-badge.gold { background: rgba(245, 197, 24, 0.12); }
.menu-arr {
    font-size: 20px; color: var(--text-3);
    transition: transform 0.2s var(--ease);
}
.menu-row:active .menu-arr { transform: translateX(3px); color: var(--accent); }

/* ===== ADMIN ===== */
.admin-title { color: var(--accent) !important; }
.admin-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 14px;
}
.admin-num-card {
    display: flex; flex-direction: column;
    align-items: center; gap: 2px;
    padding: 18px 12px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
}
.admin-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px; font-weight: 700;
    color: var(--accent);
}
.admin-lab { font-size: 12px; color: var(--text-3); }
.admin-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 20px;
}
.admin-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-sm);
    font-size: 13px; font-weight: 600;
    transition: all 0.2s var(--ease);
}
.admin-chip i { font-size: 16px; color: var(--accent); }
.admin-chip:active { transform: scale(0.95); }

/* ===== SEARCH PAGE ===== */
.page-head {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px; font-weight: 700;
    letter-spacing: -0.5px;
    padding: 24px 0 20px;
}
.search-wrap {
    position: relative;
    display: flex; align-items: center;
    margin-bottom: 20px;
}
.sw-icon {
    position: absolute; left: 16px; z-index: 2;
    font-size: 20px; color: var(--text-3);
    pointer-events: none;
    transition: color 0.2s var(--ease);
}
.search-field {
    flex: 1;
    padding: 16px 56px 16px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    font-size: 16px; font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.25s var(--ease);
}
.search-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(245, 197, 24, 0.03);
}
.search-field:focus ~ .sw-icon { color: var(--accent); }
.search-field::placeholder {
    color: var(--text-3); font-weight: 400;
    letter-spacing: 0;
}
.search-go {
    position: absolute; right: 6px;
    width: 44px; height: 44px;
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--bg);
    transition: all 0.2s var(--ease);
    z-index: 2;
}
.search-go:active { transform: scale(0.92); }

/* Scooter Result */
.scooter-result {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-lg);
    padding: 20px;
    animation: cardIn 0.35s var(--ease-spring);
    margin-bottom: 16px;
}
.scooter-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 16px;
}
.sc-code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--accent);
}
.sc-model { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.close-circle {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--text-3);
    transition: all 0.2s var(--ease);
}
.close-circle:active { transform: scale(0.9); }
.sc-chips {
    display: flex; gap: 8px;
    margin-bottom: 16px;
}
.sc-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--accent-subtle);
    border-radius: var(--r-sm);
    font-size: 13px; font-weight: 600; color: var(--accent);
}
.sc-chip i { font-size: 16px; }
.sc-chip.ok {
    background: var(--green-bg);
    color: var(--green);
}
.btn-accent {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px;
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    border-radius: var(--r-md);
    font-size: 15px; font-weight: 700;
    color: var(--bg);
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.2s var(--ease);
}
.btn-accent i { font-size: 18px; }
.btn-accent:active { transform: scale(0.97); }

.search-hint {
    display: flex; flex-direction: column;
    align-items: center; gap: 14px;
    padding: 50px 20px;
    color: var(--text-3);
    text-align: center;
}
.search-hint i { font-size: 48px; opacity: 0.3; }
.search-hint p { font-size: 14px; line-height: 1.6; }

/* ===== EMPTY STATE ===== */
.empty-state {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    padding: 60px 20px; text-align: center;
}
.empty-icon {
    width: 72px; height: 72px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: var(--text-3);
    margin-bottom: 8px;
}
.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 700;
}
.empty-state p { font-size: 14px; color: var(--text-3); }

/* ===== PROFILE PAGE ===== */
.profile-hero {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    padding: 10px 0 24px;
}
.profile-ava {
    width: 72px; height: 72px;
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--bg);
    box-shadow: 0 6px 24px var(--accent-glow);
    margin-bottom: 4px;
}
.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
}
.profile-sub { font-size: 13px; color: var(--text-3); }

/* ===== BOTTOM TAB BAR ===== */
.tab-bar {
    height: var(--nav-h);
    display: flex; align-items: stretch;
    background: rgba(7, 7, 11, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
    flex-shrink: 0;
}
.tab {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px;
    transition: all 0.2s var(--ease);
    position: relative;
}
.tab i {
    font-size: 22px;
    transition: all 0.2s var(--ease);
}
.tab .tab-on { display: none; }
.tab span {
    font-size: 10px; font-weight: 600;
    color: var(--text-3);
    transition: color 0.2s var(--ease);
}
.tab.active .tab-off { display: none; }
.tab.active .tab-on { display: block; color: var(--accent); }
.tab.active span { color: var(--accent); }
.tab.active::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
}
.tab:not(.active) i { color: var(--text-3); }
.tab:active { transform: scale(0.9); }

/* ===== BOTTOM SHEET ===== */
.sheet-backdrop {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.sheet-backdrop.show {
    opacity: 1; pointer-events: auto;
}
.sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 301;
    background: var(--bg-alt);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 88vh;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    border-top: 1px solid var(--border-accent);
}
.sheet.show {
    transform: translateY(0);
}
.sheet-pill {
    width: 36px; height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 10px auto 6px;
}
.sheet-inner {
    padding: 6px 20px 30px;
    max-height: calc(88vh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sheet elements */
.sheet-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.sheet-title i { font-size: 22px; color: var(--accent); }

/* ===== FORMS ===== */
.inp-group { margin-bottom: 16px; }
.inp-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-2); margin-bottom: 8px;
}
.inp-field {
    width: 100%; padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text); font-size: 16px;
    transition: all 0.2s var(--ease);
}
.inp-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(245, 197, 24, 0.03);
}
.inp-field::placeholder { color: var(--text-3); }
select.inp-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23f5c518' stroke-width='2'%3E%3Cpath d='M4 6L8 10L12 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px;
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    border-radius: var(--r-md);
    font-size: 15px; font-weight: 700;
    color: var(--bg);
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.2s var(--ease);
}
.btn-primary i { font-size: 20px; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 14px; font-weight: 600;
    transition: all 0.2s var(--ease);
}
.btn-secondary i { font-size: 18px; }
.btn-secondary:active { transform: scale(0.97); background: var(--bg-card-hover); }

.btn-danger {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, var(--red), #dc2626);
    border-radius: var(--r-md);
    font-size: 14px; font-weight: 700; color: #fff;
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.25);
    transition: all 0.2s var(--ease);
}
.btn-danger i { font-size: 18px; }
.btn-danger:active { transform: scale(0.97); }

/* ===== LIST ITEMS ===== */
.list-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.list-item:active { transform: scale(0.98); background: var(--bg-card-hover); }
.list-item.active { border-color: var(--accent); background: var(--accent-subtle); }
.list-ico {
    width: 40px; height: 40px;
    background: var(--accent-subtle);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--accent);
    flex-shrink: 0;
}
.list-ico.gold { background: rgba(245, 197, 24, 0.12); color: var(--accent); }
.list-ico.green { background: var(--green-bg); color: var(--green); }
.list-body { flex: 1; min-width: 0; }
.list-main {
    font-size: 15px; font-weight: 600;
    margin-bottom: 2px;
}
.list-sub {
    font-size: 12px; color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-3);
    flex-shrink: 0;
    transition: all 0.2s var(--ease);
}
.copy-btn:active { transform: scale(0.9); color: var(--accent); }

/* ===== LOADING INLINE ===== */
.loading-inline {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 40px; color: var(--text-3);
}
.loading-inline i { font-size: 22px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SUBSCRIPTION ===== */
.sub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
}
.sub-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
}
.sub-ico {
    width: 48px; height: 48px;
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--bg);
}
.sub-info { flex: 1; }
.sub-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.sub-stat { font-size: 13px; font-weight: 600; }
.sub-rows { display: flex; flex-direction: column; gap: 12px; }
.sub-row {
    display: flex; justify-content: space-between;
    font-size: 14px;
}
.sub-row span:first-child { color: var(--text-3); }

/* Promo */
.promo-box {
    text-align: center; padding: 30px 20px;
}
.promo-ico {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--bg);
    box-shadow: 0 6px 24px var(--accent-glow);
}
.promo-box h4 { font-size: 18px; margin-bottom: 8px; }
.promo-box p { color: var(--text-3); margin-bottom: 24px; font-size: 14px; }

/* Link card */
.link-box {
    text-align: center; padding: 20px;
}
.link-ico {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--green);
}
.link-box p { color: var(--text-2); margin-bottom: 20px; font-size: 14px; }
.link-btn { display: block; text-decoration: none; margin-bottom: 12px; }

/* Success / Error */
.ok-state, .err-state {
    text-align: center; padding: 30px 20px;
}
.ok-ico {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, var(--green), #059669);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}
.ok-state h4 { font-size: 18px; margin-bottom: 8px; }
.ok-state p, .err-state p { color: var(--text-3); }
.err-state i { font-size: 40px; color: var(--red); margin-bottom: 16px; }

/* ===== PAYMENT ===== */
.pm-list { display: flex; flex-direction: column; gap: 8px; }
.pm-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.pm-ico {
    width: 40px; height: 40px;
    background: var(--accent-subtle);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--accent);
    flex-shrink: 0;
}
.pm-ico.sbp { background: var(--green-bg); color: var(--green); }
.pm-body { flex: 1; min-width: 0; }
.pm-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.pm-stat { font-size: 11px; }
.pm-type {
    font-size: 10px; font-weight: 700;
    color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 3px 8px;
    background: var(--accent-subtle);
    border-radius: 6px; flex-shrink: 0;
}
.pm-empty {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    padding: 24px; color: var(--text-3);
}
.pm-empty i { font-size: 28px; opacity: 0.4; }
.pm-empty span { font-size: 13px; }

/* ===== BADGE ===== */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    background: rgba(245, 197, 24, 0.12);
    border-radius: 12px;
    font-size: 12px; font-weight: 600;
    color: var(--accent);
    margin-left: 8px;
}

/* ===== DIVIDER ===== */
.divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0 16px;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border);
}
.divider span {
    font-size: 11px; font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase; letter-spacing: 1px;
}

/* ===== CODE ===== */
code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    background: var(--accent-subtle);
    padding: 2px 8px; border-radius: 6px;
    color: var(--accent);
}

/* ===== TIME BADGE ===== */
.time-badge {
    font-size: 12px; text-align: right;
    color: var(--text-3); flex-shrink: 0;
}
.time-badge small { font-size: 10px; opacity: 0.7; }

/* ===== TOASTS ===== */
.toast-stack {
    position: fixed; top: 16px;
    left: 16px; right: 16px;
    z-index: 400;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 14px 18px;
    background: rgba(12, 12, 18, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toastIn 0.35s var(--ease-spring);
    pointer-events: auto;
    transition: all 0.3s var(--ease);
}
.toast i { font-size: 20px; flex-shrink: 0; }
.toast.success { border-color: rgba(52, 211, 153, 0.25); }
.toast.success i { color: var(--green); }
.toast.error { border-color: rgba(248, 113, 113, 0.25); }
.toast.error i { color: var(--red); }
.toast.warning { border-color: rgba(251, 146, 60, 0.25); }
.toast.warning i { color: var(--orange); }
.toast.info { border-color: rgba(245, 197, 24, 0.2); }
.toast.info i { color: var(--accent); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== FOOTER ===== */
.footer-text {
    text-align: center; padding: 20px;
    font-size: 12px; color: var(--text-3);
    opacity: 0.5;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245, 197, 24, 0.12); border-radius: 3px; }

/* ===== SAFE AREA ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tab-bar { padding-bottom: env(safe-area-inset-bottom); }
    .sheet-inner { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
    .account-phone { font-size: 24px; }
    .action-pill { padding: 16px 8px; }
    .action-pill i { font-size: 20px; }
    .page-head { font-size: 22px; }
}

/* ===== STAGGER CHILDREN ===== */
.stagger > * {
    opacity: 0; transform: translateY(12px);
    animation: staggerIn 0.4s var(--ease) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}
