/* ==================== Vocal Mobile App - Design System ==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);

    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;

    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --radius-sm: 0.625rem;
    --radius: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);

    --header-h: 56px;
    --tabbar-h: 64px;
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*:focus { outline: none; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.5;
    overscroll-behavior-y: none;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ==================== Splash ==================== */
#splash {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.35s ease;
}
#splash.splash-hidden { opacity: 0; pointer-events: none; }
#splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; color: #fff; }
#splash-logo {
    width: 88px; height: 88px; border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
#splash-logo svg { width: 48px; height: 48px; }
#splash-text { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
#splash-loader {
    width: 32px; height: 32px;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== Layout ==================== */
.app-shell {
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    padding-top: var(--safe-top);
    background: var(--bg);
}
.screen {
    flex: 1;
    display: flex; flex-direction: column;
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 0.5rem);
    min-height: 0;
}
.screen.no-tabbar { padding-bottom: var(--safe-bottom); }
.screen-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem 2rem;
}
.screen-content.dense { padding: 0.75rem 0.75rem 1.5rem; }

/* ==================== Top Header ==================== */
.top-header {
    height: var(--header-h);
    padding: 0 1rem;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: var(--safe-top); z-index: 30;
    gap: 0.75rem;
}
.top-header.transparent {
    background: transparent;
    border-bottom: 0;
}
.top-header h1 {
    font-size: 1.0625rem; font-weight: 700; margin: 0;
    flex: 1; text-align: center;
    color: var(--text);
}
.top-header.left h1 { text-align: left; padding-left: 0.25rem; }
.top-header .header-action {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text);
    transition: background 0.15s;
}
.top-header .header-action:active { background: var(--surface-2); }
.top-header .back-btn { color: var(--primary); padding-left: 0; gap: 0.25rem; }

.hero-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 1.25rem 1rem 1.75rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 1rem;
}
.hero-header h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
.hero-header .subtitle { opacity: 0.85; font-size: 0.875rem; }
.hero-header.with-safe-top { padding-top: calc(1.25rem + var(--safe-top)); margin-top: calc(-1 * var(--safe-top)); }

/* ==================== Bottom Tab Bar ==================== */
.tab-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex; align-items: stretch;
    z-index: 40;
}
.tab-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.2rem;
    color: var(--text-muted);
    transition: color 0.15s, transform 0.1s;
    position: relative;
    padding: 0.25rem 0.25rem 0.5rem;
}
.tab-item:active { transform: scale(0.92); }
.tab-item.active { color: var(--primary); }
.tab-item svg { width: 24px; height: 24px; }
.tab-item span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em; }
.tab-item .badge-dot {
    position: absolute; top: 6px; left: 50%; transform: translateX(8px);
    width: 8px; height: 8px; background: var(--danger); border-radius: 50%;
    border: 2px solid #fff;
}

/* ==================== Cards ==================== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.card-pressable {
    transition: transform 0.1s, box-shadow 0.15s;
    cursor: pointer;
    display: block; width: 100%; text-align: left;
}
.card-pressable:active { transform: scale(0.985); box-shadow: var(--shadow); }
.card-padded { padding: 1rem 1.125rem; }
.card-padded-lg { padding: 1.25rem 1.25rem; }

.section-title {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted);
    margin: 1.25rem 0.25rem 0.625rem;
}

/* ==================== Stat Cards (Mobile Grid) ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem 1rem 1.125rem;
    border: 1px solid var(--border);
    text-align: left; cursor: pointer;
    display: flex; flex-direction: column; gap: 0.5rem;
    transition: transform 0.1s;
}
.stat-card:active { transform: scale(0.98); }
.stat-card .stat-icon {
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
}
.stat-card .stat-icon svg { width: 18px; height: 18px; }
.stat-card .stat-icon.indigo { background: #eef2ff; color: #6366f1; }
.stat-card .stat-icon.green { background: #d1fae5; color: #059669; }
.stat-card .stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-card .stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-card .stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-card .stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-card .stat-icon.rose { background: #ffe4e6; color: #e11d48; }
.stat-card .stat-label {
    font-size: 0.7rem; color: var(--text-muted);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.stat-card .stat-value {
    font-size: 1.375rem; font-weight: 800; color: var(--text);
    letter-spacing: -0.01em;
}

/* ==================== Wallet Hero ==================== */
.wallet-hero {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1rem;
    position: relative; overflow: hidden;
}
.wallet-hero::before {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.wallet-hero::after {
    content: ''; position: absolute; right: 30px; bottom: -60px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.wallet-hero .wallet-label { font-size: 0.75rem; opacity: 0.85; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; position: relative; z-index: 1; }
.wallet-hero .wallet-amount { font-size: 2.5rem; font-weight: 800; margin: 0.25rem 0 0.5rem; letter-spacing: -0.02em; position: relative; z-index: 1; }
.wallet-hero .wallet-meta { font-size: 0.8125rem; opacity: 0.85; position: relative; z-index: 1; }
.wallet-hero .wallet-cta {
    position: relative; z-index: 1;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff; font-weight: 600;
    padding: 0.75rem 1rem; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; font-size: 0.9375rem;
}
.wallet-hero .wallet-cta:active { background: rgba(255, 255, 255, 0.28); }
.wallet-hero.warning { background: linear-gradient(135deg, #f59e0b, #f97316); }
.wallet-hero.critical { background: linear-gradient(135deg, #ef4444, #f87171); }

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 600; border-radius: var(--radius);
    padding: 0.875rem 1.25rem; font-size: 0.9375rem;
    transition: opacity 0.15s, transform 0.1s, background 0.15s;
    border: 1px solid transparent;
    line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 1.0625rem 1.25rem; font-size: 1rem; }
.btn-pill { border-radius: 999px; }

/* ==================== Inputs ==================== */
.input {
    width: 100%; padding: 0.875rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 1rem; color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.input::placeholder { color: var(--text-muted); }
.input-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4375rem; padding-left: 0.125rem; }
.input-group { margin-bottom: 1rem; }
.code-input {
    text-align: center;
    letter-spacing: 0.6em;
    font-size: 1.625rem;
    font-weight: 700;
    padding: 1.125rem 0.5rem 1.125rem 1.1em;
    font-variant-numeric: tabular-nums;
}
.search-input {
    background: var(--surface-2);
    border: 1px solid transparent;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 999px;
    font-size: 0.9375rem;
}
.search-wrapper { position: relative; }
.search-wrapper svg { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 18px; height: 18px; }

/* ==================== Login ==================== */
.login-screen {
    min-height: 100vh; min-height: 100dvh;
    background: var(--gradient-primary);
    display: flex; flex-direction: column;
    color: #fff;
    padding: var(--safe-top) 0 var(--safe-bottom);
}
.login-hero {
    flex: 0 0 auto;
    padding: 2.25rem 1.5rem 2rem;
    text-align: center;
}
.login-hero .logo-circle {
    width: 84px; height: 84px; border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.login-hero .logo-circle svg { width: 44px; height: 44px; color: #fff; }
.login-hero h1 { font-size: 2rem; font-weight: 800; margin: 0 0 0.375rem; letter-spacing: -0.02em; }
.login-hero p { opacity: 0.88; font-size: 0.9375rem; max-width: 320px; margin: 0 auto; }
.login-card {
    flex: 1;
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.75rem 1.25rem 1.5rem;
    display: flex; flex-direction: column;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.05);
}
.login-card h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.375rem; }
.login-card .login-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.login-features {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem;
    margin-top: auto;
    padding-top: 1.5rem;
}
.login-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 0.875rem;
    text-align: center;
}
.login-feature .icon { font-size: 1.25rem; margin-bottom: 0.25rem; }
.login-feature .title { font-size: 0.75rem; font-weight: 600; }
.error-msg { color: var(--danger); font-size: 0.8125rem; margin: 0 0 0.75rem; padding: 0.625rem 0.875rem; background: var(--danger-bg); border-radius: var(--radius-sm); }
.success-msg { color: var(--success); font-size: 0.8125rem; margin: 0 0 0.75rem; padding: 0.625rem 0.875rem; background: var(--success-bg); border-radius: var(--radius-sm); }

/* ==================== Lists ==================== */
.list { display: flex; flex-direction: column; gap: 0.625rem; }
.list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    display: flex; align-items: center; gap: 0.875rem;
    text-align: left; width: 100%;
    transition: transform 0.1s, background 0.15s;
}
.list-item:active { transform: scale(0.985); background: var(--surface-2); }
.list-item-icon {
    width: 40px; height: 40px; border-radius: 12px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); background: #eef2ff;
}
.list-item-icon svg { width: 20px; height: 20px; }
.list-item-icon.green { background: #d1fae5; color: #059669; }
.list-item-icon.red { background: #fee2e2; color: #dc2626; }
.list-item-icon.amber { background: #fef3c7; color: #d97706; }
.list-item-icon.blue { background: #dbeafe; color: #2563eb; }
.list-item-icon.purple { background: #ede9fe; color: #7c3aed; }
.list-item-icon.gray { background: #f1f5f9; color: #64748b; }
.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
    font-weight: 600; color: var(--text);
    font-size: 0.9375rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-item-subtitle {
    font-size: 0.8125rem; color: var(--text-muted);
    margin-top: 0.125rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-item-trail { color: var(--text-muted); flex-shrink: 0; text-align: right; }
.list-item-trail .price { font-weight: 700; color: var(--text); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.list-item-trail .when { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.125rem; }

/* ==================== Badges ==================== */
.badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.6875rem; font-weight: 600;
    padding: 0.2rem 0.5rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.03em;
    line-height: 1.2;
}
.badge-success { background: var(--success-bg); color: #047857; }
.badge-warning { background: var(--warning-bg); color: #b45309; }
.badge-danger { background: var(--danger-bg); color: #b91c1c; }
.badge-info { background: var(--info-bg); color: #1e40af; }
.badge-primary { background: #eef2ff; color: #4338ca; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-dark { background: #e2e8f0; color: #1e293b; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ==================== Segmented Control ==================== */
.segmented {
    display: flex;
    background: var(--surface-2);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
}
.segmented button {
    flex: 1;
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.18s;
}
.segmented button.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* ==================== Bottom Sheet / Modal ==================== */
.sheet-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.5);
    display: flex; align-items: flex-end;
    animation: fadeIn 0.2s ease;
}
.sheet {
    background: var(--surface);
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 0.5rem 1rem calc(1rem + var(--safe-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet-handle {
    width: 40px; height: 4px;
    background: var(--border-strong);
    border-radius: 999px;
    margin: 0.5rem auto 1rem;
}
.sheet-title { font-size: 1.125rem; font-weight: 700; margin: 0 0 1rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeUp 0.25s ease both; }

/* ==================== Toast ==================== */
.toast-container {
    position: fixed;
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
    left: 50%; transform: translateX(-50%);
    z-index: 200;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
    width: calc(100% - 2rem); max-width: 380px;
}
.toast {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s ease, fadeIn 0.2s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    text-align: center;
}
.toast.success { background: rgba(16, 185, 129, 0.95); }
.toast.error { background: rgba(239, 68, 68, 0.95); }

/* ==================== Empty / Skeleton ==================== */
.empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 3rem 1.5rem; text-align: center;
    color: var(--text-muted);
}
.empty-state .icon-circle {
    width: 72px; height: 72px;
    background: var(--surface-2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.empty-state h3 { color: var(--text); font-size: 1rem; font-weight: 700; margin: 0 0 0.375rem; }
.empty-state p { font-size: 0.875rem; max-width: 280px; }

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 6px;
    display: inline-block;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-circle { border-radius: 50%; }

/* ==================== Tabs (in screen) ==================== */
.tabs-bar {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tabs-bar button {
    padding: 0.875rem 1rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    flex-shrink: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s;
}
.tabs-bar button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ==================== Detail Rows ==================== */
.detail-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .label { color: var(--text-muted); font-size: 0.8125rem; flex-shrink: 0; }
.detail-row .value { font-weight: 600; font-size: 0.875rem; text-align: right; word-break: break-word; }
.detail-row.col { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.detail-row.col .value { text-align: left; }

.kv-card { padding: 0.25rem 0.25rem; }
.kv-card .detail-row { padding-left: 1rem; padding-right: 1rem; }

/* ==================== Pull-to-refresh hint ==================== */
.refresh-spinner {
    display: flex; justify-content: center;
    padding: 0.5rem 0;
    color: var(--primary);
}
.refresh-spinner svg { animation: spin 0.8s linear infinite; }

/* ==================== Recharge packs ==================== */
.pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
.pack-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}
.pack-card:active { transform: scale(0.97); }
.pack-card.popular { border-color: var(--primary); background: linear-gradient(135deg, #eef2ff, #ffffff); }
.pack-card .pack-amount { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.pack-card .pack-currency { font-size: 0.75rem; color: var(--text-muted); }
.pack-card .pack-bonus { font-size: 0.7rem; color: var(--success); font-weight: 600; margin-top: 0.25rem; }
.pack-card .pack-popular {
    position: absolute; top: 6px; right: 6px;
    background: var(--primary); color: #fff;
    font-size: 0.625rem; font-weight: 700;
    padding: 0.125rem 0.4rem; border-radius: 999px;
}

/* ==================== Phone helpers ==================== */
.phone-large {
    font-size: 1.375rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.copy-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    color: var(--primary); font-size: 0.8125rem; font-weight: 600;
    padding: 0.25rem 0.5rem; border-radius: 6px;
}
.copy-btn:active { background: #eef2ff; }

/* ==================== Misc ==================== */
.divider { height: 1px; background: var(--border); margin: 1rem 0; border: 0; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.font-bold { font-weight: 700; }
.font-semi { font-weight: 600; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.0625rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.375rem; } .gap-2 { gap: 0.625rem; } .gap-3 { gap: 1rem; }
.w-full { width: 100%; }
.flex-1 { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* ==================== Tablet/desktop tweaks ==================== */
@media (min-width: 640px) {
    body { background: #f1f5f9; }
    .app-shell {
        max-width: 480px;
        margin: 0 auto;
        background: var(--bg);
        min-height: 100vh;
        box-shadow: 0 0 60px rgba(15, 23, 42, 0.08);
    }
    .tab-bar { max-width: 480px; left: 50%; transform: translateX(-50%); }
    .toast-container { max-width: 380px; }
    .sheet-backdrop { align-items: center; padding: 1rem; }
    .sheet { max-width: 480px; max-height: 80vh; border-radius: var(--radius-xl); }
}
