/* ===========================
   MOVEIT — Complete Styles
   Dark theme, electric blue accent
   =========================== */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg-surface: #12121a;
    --bg-card: #1a1a25;
    --bg-elevated: #222233;
    --text: #f0f0f5;
    --text-secondary: #8888aa;
    --text-muted: #9494a8;
    --accent: #2d7aff;
    --accent-glow: rgba(45, 122, 255, 0.3);
    --accent-soft: rgba(45, 122, 255, 0.15);
    --gold: #f5a623;
    --gold-glow: rgba(245, 166, 35, 0.3);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --nav-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color-scheme: dark;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
}

#app {
    height: 100%;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* ---------- SCREENS ---------- */
.screen {
    display: none;
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
}
.screen.active { display: block; }
.screen-content {
    padding: 24px 20px;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 24px);
    min-height: 100%;
}

/* ---------- SCROLLBAR ---------- */
.screen::-webkit-scrollbar { width: 4px; }
.screen::-webkit-scrollbar-track { background: transparent; }
.screen::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
.accent { color: var(--accent); }
.gold-text { color: var(--gold); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4090ff; box-shadow: 0 0 20px var(--accent-glow); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card); }
.btn-accent { background: rgba(45, 122, 255, 0.15); color: var(--accent); border: 1px solid rgba(45, 122, 255, 0.3); }
.btn-accent:hover { background: rgba(45, 122, 255, 0.25); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { box-shadow: 0 0 20px var(--gold-glow); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; }
.btn-circle { width: 64px; height: 64px; border-radius: 50%; padding: 0; }
.btn-circle i { width: 28px; height: 28px; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.label-note { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    transition: border-color 0.2s;
}
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-wrap i { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.input-wrap input,
.input-wrap textarea {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    padding: 12px 0;
    outline: none;
    font-family: inherit;
    width: 100%;
}
.input-wrap input::placeholder,
textarea::placeholder { color: var(--text-muted); }
textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    font-family: inherit;
    width: 100%;
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.toggle-pw {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
}
.toggle-pw i { width: 18px; height: 18px; }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- PASSWORD STRENGTH ---------- */
.pw-strength { display: flex; gap: 4px; margin-top: 8px; height: 4px; }
.pw-strength .bar { flex: 1; border-radius: 2px; background: var(--bg-elevated); transition: background 0.3s; }
.pw-strength .bar.active.weak { background: var(--danger); }
.pw-strength .bar.active.medium { background: var(--warning); }
.pw-strength .bar.active.strong { background: var(--success); }
.pw-match { font-size: 0.82rem; margin-top: 4px; }
.pw-match.match { color: var(--success); }
.pw-match.no-match { color: var(--danger); }

/* ---------- AUTH ---------- */
.auth-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
}
.auth-logo { text-align: center; margin-bottom: 40px; }
.logo-icon-large {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.logo-icon-large i { width: 40px; height: 40px; color: #fff; }
.brand-title { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; }
.brand-tagline { color: var(--text-secondary); margin-top: 4px; font-size: 0.9rem; }
.brand-sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--text-secondary); font-size: 0.85rem; }
.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
}

/* ---------- HOME ---------- */
.home-hero { margin-bottom: 28px; }
.hero-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.hero-title { font-size: 1.8rem; line-height: 1.2; margin-bottom: 10px; }
.hero-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* Premium Banner */
.premium-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.04));
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}
.premium-banner i { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.banner-text { flex: 1; }
.banner-text strong { color: var(--gold); display: block; font-size: 0.9rem; }
.banner-text span { color: var(--text-secondary); font-size: 0.78rem; }

/* Stats */
.stats-row { display: flex; gap: 12px; margin-bottom: 28px; }
.stat-card {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
}
.stat-num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Section Title */
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--text-secondary); }

/* Action Grid */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
}
.action-card i { width: 28px; height: 28px; color: var(--accent); }
.action-card:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Steps */
.steps-list { margin-bottom: 28px; }
.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.step-num {
    width: 32px; height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.step-text strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.step-text p { font-size: 0.8rem; color: var(--text-secondary); }

/* India Pride Card */
.india-pride-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.india-pride-card span:first-child { font-size: 2rem; }
.india-pride-card strong { display: block; font-size: 0.9rem; }
.india-pride-card p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

/* ---------- VEHICLES ---------- */
.screen-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.screen-header h2 { display: flex; align-items: center; gap: 8px; }
.screen-header h2 i { width: 22px; height: 22px; color: var(--accent); }

.limit-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
}
.limit-notice i { width: 20px; height: 20px; color: var(--warning); flex-shrink: 0; }
.limit-notice div { flex: 1; }
.limit-notice strong { font-size: 0.85rem; color: var(--warning); display: block; }
.limit-notice p { font-size: 0.78rem; color: var(--text-secondary); }

.vehicles-list { display: flex; flex-direction: column; gap: 12px; }
.vehicle-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.vehicle-icon {
    width: 48px; height: 48px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vehicle-icon i { width: 24px; height: 24px; color: var(--accent); }
.vehicle-info { flex: 1; }
.vehicle-plate { font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; }
.vehicle-token { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; font-family: monospace; }
.vehicle-actions { display: flex; gap: 8px; }
.vehicle-actions button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.vehicle-actions button i { width: 16px; height: 16px; }
.btn-qr { background: var(--accent-soft); color: var(--accent); }
.btn-qr:hover { background: var(--accent); color: #fff; }
.btn-delete { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: #fff; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { margin-bottom: 16px; font-size: 0.95rem; }

/* ---------- MODALS ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal.hidden { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px 20px;
    padding-bottom: calc(24px + var(--safe-bottom));
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 { display: flex; align-items: center; gap: 8px; }
.modal-header h3 i { width: 20px; height: 20px; color: var(--accent); }
.modal-close {
    background: var(--bg-elevated);
    border: none;
    color: var(--text-secondary);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modal-close i { width: 18px; height: 18px; }

/* QR Modal */
.modal-qr { text-align: center; }
.qr-display { margin: 16px 0; }
.qr-plate { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 16px; }
.qr-display canvas { border-radius: var(--radius-sm); margin-bottom: 12px; }
.qr-hint { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.qr-token-wrap { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.qr-token-wrap .label-small { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.qr-token-wrap code { font-size: 0.85rem; background: var(--bg-surface); padding: 6px 12px; border-radius: var(--radius-xs); color: var(--accent); word-break: break-all; }
.qr-actions { display: flex; gap: 10px; margin-top: 16px; }
.qr-actions .btn { flex: 1; }

/* ---------- SCAN ---------- */
.scan-area { text-align: center; padding-top: 20px; }
.scan-area h2 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.scan-area h2 i { width: 24px; height: 24px; color: var(--accent); }
.scan-area > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }
.scan-frame {
    width: 240px; height: 240px;
    margin: 0 auto 20px;
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
}
.scan-corner {
    position: absolute;
    width: 30px; height: 30px;
    border-color: var(--accent);
    border-style: solid;
}
.scan-corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.scan-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.scan-line {
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scanLine 2s ease-in-out infinite;
}
@keyframes scanLine { 0%,100%{ top: 10% } 50%{ top: 90% } }
.scan-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; color: var(--text-muted); opacity: 0.3; }
.scan-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; }
.manual-entry { max-width: 320px; margin: 0 auto; }
.manual-entry p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.input-row { display: flex; gap: 8px; }
.input-row input {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}
.input-row input:focus { border-color: var(--accent); }

/* ---------- CONTACT OWNER ---------- */
.contact-card { text-align: center; padding-top: 20px; }
.contact-avatar {
    width: 80px; height: 80px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.contact-avatar i { width: 36px; height: 36px; color: var(--accent); }
.contact-sub { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }
.contact-privacy { color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; margin-bottom: 28px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact-meta { display: flex; justify-content: center; gap: 16px; }
.contact-meta span { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-muted); }
.contact-meta i { width: 14px; height: 14px; }

/* ---------- CALLING ---------- */
.calling-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
.calling-avatar {
    width: 100px; height: 100px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.calling-avatar i { width: 40px; height: 40px; color: #fff; }
.pulse-ring {
    position: relative;
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}
.calling-sub { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }
.calling-timer { font-size: 2rem; font-weight: 700; color: var(--text); margin: 16px 0 24px; font-variant-numeric: tabular-nums; }
.calling-actions { margin-bottom: 20px; }
.calling-note { font-size: 0.78rem; color: var(--text-muted); }

/* Incoming Call */
.incoming-call-modal { text-align: center; padding: 40px 20px !important; }
.incoming-avatar {
    width: 80px; height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.incoming-avatar i { width: 36px; height: 36px; color: #fff; }
.incoming-actions { display: flex; gap: 24px; justify-content: center; margin-top: 24px; }

/* ---------- MESSAGES ---------- */
.message-container { padding-top: 10px; }
.message-container h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.message-container h2 i { width: 22px; height: 22px; color: var(--accent); }
.msg-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.preset-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); }
.msg-eta { margin-bottom: 16px; }
.msg-eta label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 8px; }
.eta-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.eta-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.eta-btn.active, .eta-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- LOCATION ---------- */
.location-header h3 { font-size: 1.2rem; margin-bottom: 8px; }
.location-header > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.privacy-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.privacy-checklist span { font-size: 0.85rem; color: var(--text-secondary); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

.location-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(34, 197, 94, 0.3);
    padding: 14px 20px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    z-index: 900;
}
.loc-banner-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.loc-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
}
.loc-dot.pulse { animation: locPulse 1s infinite; }
@keyframes locPulse { 0%,100%{ opacity:1 } 50%{ opacity:0.3 } }
.loc-banner-info { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.loc-banner-actions { display: flex; gap: 8px; }

/* Tracker Card */
.tracker-card {
    position: fixed;
    bottom: calc(var(--nav-height) + 10px);
    left: 20px;
    right: 20px;
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(45, 122, 255, 0.3);
    border-radius: var(--radius);
    padding: 16px;
    z-index: 800;
    backdrop-filter: blur(12px);
}
.tracker-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tracker-pulse {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: locPulse 1s infinite;
}
.tracker-header h3 { font-size: 0.95rem; }
.tracker-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.tracker-stat { flex: 1; }
.tracker-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tracker-value { display: block; font-size: 0.9rem; font-weight: 600; margin-top: 2px; }
.tracker-progress {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    border-radius: 2px;
    transition: width 1s ease;
}
.tracker-updated { font-size: 0.75rem; color: var(--text-muted); }

/* ---------- PREMIUM ---------- */
.premium-hero { text-align: center; margin-bottom: 28px; }
.crown-icon { font-size: 3rem; margin-bottom: 12px; }
.premium-hero h2 { font-size: 1.6rem; margin-bottom: 6px; }
.premium-hero p { color: var(--text-secondary); font-size: 0.9rem; }

.plan-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.plan-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
}
.plan-featured { border-color: var(--gold); }
.plan-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.plan-badge.gold { background: var(--gold); color: #000; }
.plan-card h3 { margin-bottom: 8px; }
.plan-price { font-size: 2rem; font-weight: 800; }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-secondary); }
.plan-save { color: var(--success); font-size: 0.82rem; font-weight: 600; margin-top: 4px; margin-bottom: 8px; }
.plan-features { list-style: none; margin: 12px 0 16px; }
.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.plan-features i { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

/* Payment */
.payment-section { margin-top: 24px; }
.payment-section h3 { margin-bottom: 8px; }
.payment-section > p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 16px; }
.upi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.upi-number-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.upi-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; width: 100%; }
.upi-number { font-size: 1.3rem; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; }
.upi-amount { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.upi-amount span { color: var(--text-secondary); font-size: 0.9rem; }
.upi-amount strong { font-size: 1.3rem; color: var(--gold); }

.upi-apps { margin-bottom: 16px; }
.upi-apps > p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.upi-app-btns { display: flex; gap: 8px; }
.upi-app-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.upi-app-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.payment-form { margin-top: 16px; }
.payment-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    text-align: center;
}
.payment-status.pending { background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.3); color: var(--gold); }
.payment-status.success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); }

.support-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 24px;
}
.support-card h4 { margin-bottom: 10px; }
.support-links { display: flex; flex-direction: column; gap: 8px; }
.support-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xs);
}
.support-link i { width: 16px; height: 16px; }

/* ---------- PROFILE ---------- */
.profile-header { text-align: center; padding-bottom: 20px; }
.profile-avatar {
    width: 72px; height: 72px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.profile-avatar i { width: 32px; height: 32px; color: var(--accent); }
.profile-email { color: var(--text-secondary); font-size: 0.88rem; margin-top: 4px; }
.profile-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 10px;
}
.profile-badge.free { background: var(--bg-elevated); color: var(--text-secondary); }
.profile-badge.premium { background: rgba(245, 166, 35, 0.15); color: var(--gold); }

.profile-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.pstat {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
}
.pstat-num { display: block; font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.pstat-label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }

.upgrade-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.04));
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 20px;
}
.upgrade-card > i { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.upgrade-card div { flex: 1; }
.upgrade-card strong { font-size: 0.9rem; display: block; }
.upgrade-card p { font-size: 0.78rem; color: var(--text-secondary); }

.profile-menu { display: flex; flex-direction: column; gap: 4px; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    text-align: left;
    width: 100%;
}
.menu-item i:first-child { width: 18px; height: 18px; color: var(--text-muted); }
.menu-item span { flex: 1; }
.menu-item i:last-child { width: 16px; height: 16px; color: var(--text-muted); }
.menu-item:hover { border-color: var(--accent); }
.menu-item-danger { color: var(--danger); }
.menu-item-danger i:first-child { color: var(--danger) !important; }

/* ---------- NOTIFICATIONS ---------- */
.notifications-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.notif-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.notif-icon {
    width: 36px; height: 36px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-icon i { width: 16px; height: 16px; color: var(--accent); }
.notif-text { flex: 1; }
.notif-text strong { font-size: 0.88rem; display: block; margin-bottom: 2px; }
.notif-text p { font-size: 0.8rem; color: var(--text-secondary); }
.notif-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- ABOUT ---------- */
.about-content { text-align: center; }
.about-logo { margin-bottom: 16px; }
.about-logo i { width: 48px; height: 48px; color: var(--accent); margin-bottom: 8px; }
.about-content p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; line-height: 1.5; }
.about-version { font-size: 0.8rem; color: var(--text-muted); }
.about-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* ---------- TOAST ---------- */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 0.88rem;
    z-index: 2000;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.hidden { display: none; }

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(18, 18, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: calc(8px + var(--safe-bottom));
    z-index: 100;
}
.bottom-nav.hidden { display: none; }
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    padding: 6px 12px;
    position: relative;
    transition: color 0.2s;
    font-family: inherit;
}
.nav-item i { width: 22px; height: 22px; }
.nav-item.active { color: var(--accent); }
.notif-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.notif-badge.hidden { display: none; }

/* ---------- UTILITIES ---------- */
.hidden { display: none !important; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 481px) {
    .bottom-nav, .modal-content, .modal, .location-banner { max-width: 480px; }
}
@media (min-width: 768px) {
    #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
