/**
 * Moovo App — CSS Principal
 * Dark Premium Theme (Uber-inspired) + Light Mode
 * Gold/orange gradient accents, glassmorphism, glow effects
 */

/* ─── CSS Variables ──────────────────────────────────────── */
/*
 * Brand moovo (handoff iunie 2026): sistem violet cu gradient,
 * dark + light, variante de accent (Violet/Ocean/Sunset/Mint),
 * colțuri (Default/Soft/Crisp) și energie (Lively/Calm).
 *
 * Sursa de adevăr a accentului = --g1/--g2/--g3 + --acc + --accRGB.
 * Variabilele istorice (--accent, --accent-gradient, --glow…) sunt
 * derivate din ele cu var(), deci schimbarea accentului cascadează
 * automat în toată aplicația.
 */

:root {
    /* ── Accent: sursa de adevăr (Violet, implicit) ── */
    --g1: #7C4DFF;          /* gradient start  */
    --g2: #B23BE0;          /* gradient mid    */
    --g3: #FF5BA3;          /* gradient end    */
    --acc: #B23BE0;         /* accent solid    */
    --accSoft: #C77DFF;     /* accent deschis  */
    --accRGB: 178, 59, 224;
    --g1RGB: 124, 77, 255;
    --g3RGB: 255, 91, 163;
    --grad: linear-gradient(125deg, var(--g1), var(--g2) 52%, var(--g3));

    /* ── Raze colț (Default) ── */
    --r-xl: 26px; --r-l: 20px; --r-m: 18px; --r-s: 16px;

    /* ── Dark theme (implicit) ── */
    --bg-primary: #08060E;
    --bg-secondary: #0F0C18;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(255, 255, 255, 0.03);
    --text-primary: #F4F2F8;
    --text-secondary: #9C98AB;
    --text-muted: #6A6678;
    --success: #3DDC97;
    --error: #FF5B7B;
    --warning: #FFBA49;
    --border: rgba(255, 255, 255, 0.10);
    --shadow: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 12, 24, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(11, 9, 19, 0.92);
    --nav-height: 64px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-top: env(safe-area-inset-top, 0px);

    /* ── Derivate din accent (nu edita direct) ── */
    --accent: var(--acc);
    --accent-hover: var(--accSoft);
    --accent-light: rgba(var(--accRGB), 0.14);
    --accent-gradient: var(--grad);
    --border-focus: var(--acc);
    --glow: 0 0 20px rgba(var(--accRGB), 0.18);
    --glow-strong: 0 0 30px rgba(var(--accRGB), 0.28);
}

[data-theme="light"] {
    --bg-primary: #EEEAF4;
    --bg-secondary: #FFFFFF;
    --bg-card: #F3F1F8;
    --bg-input: #F6F4FA;
    --text-primary: #15121F;
    --text-secondary: #605C70;
    --text-muted: #9A96A8;
    --border: rgba(20, 16, 32, 0.10);
    --shadow: rgba(20, 16, 32, 0.10);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(20, 16, 32, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.92);
    --glow: 0 0 16px rgba(var(--accRGB), 0.14);
    --glow-strong: 0 0 24px rgba(var(--accRGB), 0.22);
}

/* ── Variante de accent ── */
[data-accent="ocean"]  { --g1:#2563EB; --g2:#0EA5E9; --g3:#22D3EE; --acc:#0EA5E9; --accSoft:#67E8F9; --accRGB:14,165,233;  --g1RGB:37,99,235;  --g3RGB:34,211,238; }
[data-accent="sunset"] { --g1:#FB923C; --g2:#F43F5E; --g3:#EC4899; --acc:#F43F5E; --accSoft:#FDA4AF; --accRGB:244,63,94;  --g1RGB:251,146,60; --g3RGB:236,72,153; }
[data-accent="mint"]   { --g1:#10B981; --g2:#14B8A6; --g3:#34D399; --acc:#14B8A6; --accSoft:#6EE7B7; --accRGB:20,184,166; --g1RGB:16,185,129; --g3RGB:52,211,153; }

/* ── Variante de colțuri ── */
[data-corners="soft"]  { --r-xl:34px; --r-l:28px; --r-m:24px; --r-s:22px; }
[data-corners="crisp"] { --r-xl:14px; --r-l:11px; --r-m:11px; --r-s:9px; }

/* ── Energie: Calm dezactivează animații + glow ── */
[data-energy="calm"] *,
[data-energy="calm"] *::before,
[data-energy="calm"] *::after { animation: none !important; }
[data-energy="calm"] { --glow: none; --glow-strong: none; }

/* ─── Base ────────────────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* ─── Tipografie brand: titluri pe Space Grotesk ─────────────── */
h1, h2, h3, h4,
.page-title, .auth-title, .thanks-title, .account-name,
.section-title, .card-title, .home-cta, .price-value,
.btn-primary, .nav-item span {
    font-family: 'Space Grotesk', 'Hanken Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

body {
    padding-top: var(--safe-area-top);
    padding-bottom: calc(var(--nav-height) + var(--safe-area-bottom));
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* ─── Top Bar ─────────────────────────────────────────────── */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(56px + var(--safe-area-top));
    padding-top: var(--safe-area-top);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
    z-index: 100;
}

.top-bar-logo img {
    height: 26px;
    width: auto;
    display: block;
}
/* Logo: deschis pe dark, închis pe light */
.top-bar-logo .lg-d { display: none; }
.top-bar-logo .lg-l { display: block; }
[data-theme="light"] .top-bar-logo .lg-d { display: block; }
[data-theme="light"] .top-bar-logo .lg-l { display: none; }

/* Logo brand generic (modal login, oauth, thanks, empty state) */
.mvlogo { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.mvlogo img { display: block; }
.mvlogo .lg-d { display: none; }
.mvlogo .lg-l { display: block; }
[data-theme="light"] .mvlogo .lg-d { display: block; }
[data-theme="light"] .mvlogo .lg-l { display: none; }

.top-bar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.btn-theme-toggle:hover { background: var(--accent-light); color: var(--accent); }

/* ─── Bottom Nav ──────────────────────────────────────────── */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
}

.nav-item i { font-size: 20px; }

.nav-item.active {
    color: var(--accent);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 0 0 2px 2px;
}

.nav-item:hover { color: var(--accent); text-decoration: none; }

/* Badge notificare mesaje necitite (tab Cont + rând Mesaje din Cont) */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 12px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
    box-shadow: 0 0 0 2px var(--nav-bg);
}
.account-grid-item { position: relative; }
.acc-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
}

/* Banner consimțământ notificări (cerere explicită, in-context) */
.notif-consent-banner {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(var(--nav-height) + var(--safe-area-bottom) + 12px);
    z-index: 200;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card, #1e1e2a);
    border: 1px solid var(--glass-border, rgba(255,255,255,.12));
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    animation: ncb-in .25s ease;
}
@keyframes ncb-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.notif-consent-banner .ncb-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 18px; color: #fff;
    background: var(--accent-gradient, linear-gradient(135deg,#7C4DFF,#B23BE0));
}
.notif-consent-banner .ncb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-consent-banner .ncb-text strong { font-size: 14px; color: var(--text-primary); }
.notif-consent-banner .ncb-text span { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.notif-consent-banner .ncb-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.notif-consent-banner .ncb-allow {
    background: var(--accent, #7C4DFF); color: #fff; border: none;
    padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.notif-consent-banner .ncb-later {
    background: transparent; color: var(--text-muted); border: none;
    padding: 4px; font-size: 12px; cursor: pointer;
}

/* Cat timp bannerul de jos e vizibil, impinge continutul in sus ca sa nu
   acopere butoanele („Vreau sa rezerv" / „Rezervarile mele" pe Acasa).
   --bottom-banner-h e setat din JS dupa inaltimea reala a bannerului. */
body.has-bottom-banner {
    padding-bottom: calc(var(--nav-height) + var(--safe-area-bottom) + var(--bottom-banner-h, 92px));
}
body.has-bottom-banner #home-screen {
    height: calc(100vh - var(--nav-height) - var(--safe-area-bottom) - var(--bottom-banner-h, 92px));
}

/* ─── Page Container ──────────────────────────────────────── */

.page-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 72px 16px 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.page-title i { color: var(--accent); margin-right: 8px; }

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ─── Cards ───────────────────────────────────────────────── */

.booking-card, .auth-card, .thanks-card, .price-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-card { text-align: center; padding: 16px 24px; }

.auth-logo { margin-bottom: 8px; }
.auth-logo-img { height: 48px; width: auto; }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.3px; }
.auth-subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── Social Login Buttons ────────────────────────────────── */

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.btn-social:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-social .social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-google {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-google:hover:not(:disabled) {
    background: var(--bg-input);
    border-color: var(--text-muted);
}

.btn-facebook {
    background: #1877F2;
    color: #FFFFFF;
    border-color: #1877F2;
}

.btn-facebook:hover:not(:disabled) {
    background: #166FE5;
    border-color: #166FE5;
}

.btn-facebook .social-icon {
    fill: #FFFFFF;
}

/* Sign in with Apple — negru pe temă închisă, alb pe temă deschisă,
   conform Apple Human Interface Guidelines. Se afișează doar pe iOS nativ. */
.btn-apple {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.btn-apple:hover:not(:disabled) {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-apple .social-icon {
    fill: #FFFFFF;
}

[data-theme="light"] .btn-apple {
    background: #FFFFFF;
    color: #000000;
    border-color: #000000;
}

[data-theme="light"] .btn-apple:hover:not(:disabled) {
    background: #F5F5F7;
}

[data-theme="light"] .btn-apple .social-icon {
    fill: #000000;
}

[data-theme="light"] .btn-google {
    background: #FFFFFF;
    border-color: #DADCE0;
    color: #3c4043;
}

[data-theme="light"] .btn-google:hover:not(:disabled) {
    background: #F8F9FA;
    border-color: #C0C0C0;
}

/* ─── Forms ───────────────────────────────────────────────── */

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light), var(--glow);
}

.form-input.input-error {
    border-color: var(--error);
    animation: shake 0.3s;
}

.form-input::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-half { min-width: 0; }

/* iOS: empty date input shrinks to intrinsic width and lets the select overlap it */
.form-input[type="date"],
.form-input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    min-width: 0;
    width: 100%;
    min-height: 49px;
    text-align: left;
}
.form-input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.form-buttons .btn { flex: 1; }

.input-with-icon {
    position: relative;
}

.input-with-icon .form-input { padding-right: 48px; }

.btn-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent);
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-icon:hover { background: var(--accent-light); }

/* ─── OTP Inputs ──────────────────────────────────────────── */

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.otp-digit:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light), var(--glow);
}

.otp-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.otp-resend {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Buttons ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(var(--accRGB), 0.3);
}
.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(var(--accRGB), 0.45);
    transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover:not(:disabled) { background: var(--accent-light); }

.btn-full { width: 100%; }

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}
.btn-link:hover { text-decoration: underline; }

.link-primary { color: var(--accent); font-weight: 500; }

/* ─── Price Card ──────────────────────────────────────────── */

.price-card {
    background: var(--accent-light);
    border-color: rgba(var(--accRGB), 0.3);
    box-shadow: var(--glow);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 15px;
}

.price-highlight {
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
}

.price-note {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
}

/* ─── Thanks Page ─────────────────────────────────────────── */

.thanks-card { text-align: center; }

.thanks-icon { font-size: 64px; color: var(--success); margin-bottom: 16px; }
.thanks-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.thanks-subtitle { color: var(--text-secondary); font-size: 16px; margin-bottom: 20px; }
.thanks-id {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.thanks-next {
    text-align: left;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}
.thanks-next h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.thanks-next ul { list-style: none; }
.thanks-next li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.thanks-next li i { color: var(--accent); width: 20px; margin-right: 8px; }

.thanks-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ─── Welcome Banner ─────────────────────────────────────── */

.welcome-banner {
    background: var(--accent-light);
    border: 1px solid rgba(var(--accRGB), 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    box-shadow: var(--glow);
}

/* ─── Login CTA ───────────────────────────────────────────── */

.login-cta {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ─── Toast Notifications ─────────────────────────────────── */

#toast-container {
    position: fixed;
    top: calc(60px + var(--safe-area-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    width: calc(100% - 32px);
}

.toast {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show { opacity: 1; transform: translateY(0); }

.toast-error { background: rgba(255, 77, 106, 0.9); color: #fff; }
.toast-success { background: rgba(45, 212, 168, 0.9); color: #fff; }
.toast-info { background: rgba(var(--accRGB), 0.9); color: #fff; }

/* ─── intl-tel-input override ─────────────────────────────── */

.iti { width: 100%; }

.iti__selected-flag {
    background: var(--bg-input) !important;
    border-radius: 12px 0 0 12px;
}

.iti__country-list {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
}

.iti__country:hover {
    background: var(--accent-light) !important;
}

/* ─── Animations ──────────────────────────────────────────── */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--accRGB), 0.2); }
    50% { box-shadow: 0 0 40px rgba(var(--accRGB), 0.4); }
}

@keyframes splashPulse {
    0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 8px rgba(var(--accRGB), 0.3)); }
    50% { opacity: 0.8; transform: scale(0.96); filter: drop-shadow(0 0 20px rgba(var(--accRGB), 0.6)); }
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@keyframes gradientSpin {
    to { transform: rotate(360deg); }
}

.fa-spin { animation: spin 1s linear infinite; }

/* ─── Tabs ────────────────────────────────────────────────── */

.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-align: center;
}

.tab.active {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--accRGB), 0.3);
}

.tab:hover:not(.active) { color: var(--text-primary); }

/* ─── Trip Cards ─────────────────────────────────────────── */

.trips-list { display: flex; flex-direction: column; gap: 12px; }

.trip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.trip-card:hover {
    border-color: rgba(var(--accRGB), 0.4);
    box-shadow: var(--glow);
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trip-id {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.trip-date {
    font-size: 13px;
    color: var(--text-muted);
}

.trip-route {
    margin-bottom: 12px;
    padding: 8px 0;
}

.trip-from, .trip-to {
    font-size: 14px;
    color: var(--text-primary);
    padding: 4px 0;
}

.trip-from i { color: var(--success); margin-right: 8px; }
.trip-to i { color: var(--error); margin-right: 8px; }

.trip-arrow {
    padding: 2px 0 2px 7px;
    color: var(--text-muted);
    font-size: 12px;
}

.trip-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.trip-details i { color: var(--accent); margin-right: 4px; }

.trip-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.trip-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trip-status-confirmata { background: rgba(45, 212, 168, 0.15); color: var(--success); }
.trip-status-noua { background: var(--accent-light); color: var(--accent); }
.trip-status-anulata { background: rgba(255, 77, 106, 0.15); color: var(--error); }
.trip-status-livrata { background: rgba(45, 212, 168, 0.15); color: var(--success); }

/* Status classes folosite de my-trips.js (status-XXX) */
.trip-status.status-new        { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.trip-status.status-processing { background: rgba(96, 165, 250, 0.20); color: #3b82f6; }
.trip-status.status-pending    { background: rgba(251, 146, 60, 0.18); color: #f97316; }
.trip-status.status-confirmed  { background: rgba(45, 212, 168, 0.15); color: var(--success); }
.trip-status.status-rescheduled{ background: rgba(250, 204, 21, 0.18); color: #ca8a04; }
.trip-status.status-assigned   { background: rgba(167, 139, 250, 0.18); color: #a78bfa; }
.trip-status.status-progress   { background: rgba(139, 92, 246, 0.20); color: #8b5cf6; }
.trip-status.status-done       { background: rgba(45, 212, 168, 0.18); color: var(--success); }
.trip-status.status-noshow     { background: rgba(248, 113, 113, 0.18); color: #f87171; }
.trip-status.status-cancelled  { background: rgba(255, 77, 106, 0.15); color: var(--error); }
.trip-status.status-transferred{ background: rgba(199, 210, 254, 0.20); color: #818cf8; }

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
    flex: 1;
}

/* ─── Empty / Loading States ─────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.4;
}

.empty-state p {
    font-size: 15px;
    margin-top: 8px;
}

.loading-center {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    height: 120px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--accRGB), 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

/* ─── Chat ───────────────────────────────────────────────── */

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 300px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-bubble-mine {
    align-self: flex-end;
    background: var(--accent-gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-other {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-sender {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

.chat-text { margin: 0; }

.chat-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.chat-bubble-mine .chat-time { color: rgba(255,255,255,0.7); }

.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.chat-input-bar .form-input {
    flex: 1;
    margin: 0;
}

.chat-input-bar .btn { flex-shrink: 0; padding: 12px 16px; }

.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ─── Availability Cards ─────────────────────────────────── */

.avail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    transition: box-shadow 0.25s ease;
}

.avail-card:hover { box-shadow: var(--glow); }

.avail-green { border-left: 4px solid var(--success); }
.avail-red { border-left: 4px solid var(--error); }

.avail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.avail-type {
    font-size: 14px;
    font-weight: 600;
}

.avail-green .avail-type { color: var(--success); }
.avail-red .avail-type { color: var(--error); }

.avail-dates {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.avail-dates i { color: var(--accent); margin-right: 6px; }

.avail-route {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.avail-route i { color: var(--accent); margin-right: 6px; }

.avail-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

.avail-note i { margin-right: 6px; }

.btn-icon-sm {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.btn-icon-sm:hover { color: var(--error); background: rgba(255, 77, 106, 0.1); }

/* ─── Stats Grid ─────────────────────────────────────────── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    border-color: rgba(var(--accRGB), 0.3);
    box-shadow: var(--glow);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ─── Referral Display ───────────────────────────────────── */

.referral-code-big {
    text-align: center;
    padding: 20px;
}

.referral-code-big code {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background: var(--accent-gradient);
    padding: 12px 24px;
    border-radius: 12px;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    box-shadow: 0 4px 16px rgba(var(--accRGB), 0.3);
}

.referral-code-display {
    text-align: center;
    margin: 8px 0;
}

.referral-code-display code {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--accent-gradient);
    padding: 8px 16px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.referral-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.referral-actions .btn { flex: 1; }

.referral-link-text {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
    text-align: center;
    margin-top: 8px;
}

/* ─── Level Progress ─────────────────────────────────────── */

.level-progress {
    margin: 16px 0;
}

.level-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.level-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.level-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ─── Referral List Items ────────────────────────────────── */

.ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.ref-item:last-child { border-bottom: none; }

.ref-date {
    color: var(--text-muted);
    font-size: 12px;
}

.ref-status {
    font-size: 12px;
    font-weight: 500;
}

.ref-bonus {
    font-weight: 600;
    color: var(--success);
}

/* ─── Card / Section Titles ──────────────────────────────── */

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i { color: var(--accent); }

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ─── Profile ────────────────────────────────────────────── */

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.profile-row:last-child { border-bottom: none; }

.profile-row span { color: var(--text-secondary); }
.profile-row strong { color: var(--text-primary); }

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Pagination ─────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* ─── User Menu ──────────────────────────────────────────── */

.user-menu {
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 8px 32px var(--shadow);
    z-index: 200;
}

.user-dropdown a, .user-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    width: 100%;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease;
}

.user-dropdown a:hover, .user-dropdown button:hover {
    background: var(--accent-light);
    text-decoration: none;
}

.user-dropdown i { width: 18px; color: var(--accent); }

/* ─── Badge ──────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--error);
    border-radius: 9px;
    position: absolute;
    top: 2px;
    right: 2px;
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (min-width: 640px) {
    .page-container { padding: 80px 24px 24px; }
    .otp-digit { width: 52px; height: 60px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   DARK PREMIUM UI — Splash, Home Screen, Map, Bottom Sheet, Modal
   ═══════════════════════════════════════════════════════════════ */

/* ─── Splash Screen ──────────────────────────────────────────── */

#splash-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(var(--g1RGB), 0.18), #08060E 62%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

#splash-screen.fade-out { opacity: 0; pointer-events: none; }

.splash-content { text-align: center; }

.splash-logo {
    width: 55%;
    max-width: 300px;
    height: auto;
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-loader {
    width: 40px;
    height: 40px;
    margin: 28px auto 0;
    border: 3px solid var(--border);
    border-top-color: var(--g1);
    border-right-color: var(--g3);
    border-radius: 50%;
    animation: gradientSpin 0.8s linear infinite;
}

/* ─── Home-active: hide top bar & adjust padding ─────────────── */

body.home-active { padding-top: 0; }
body.home-active .top-bar { display: none; }

/* ─── Home Screen Layout ─────────────────────────────────────── */

#home-screen {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-height) - var(--safe-area-bottom));
    padding: 0;
    max-width: 100%;
    overflow: hidden;
}

#home-map-container {
    flex: none;
    height: 60%;
    position: relative;
    background: var(--bg-secondary);
    transition: height 0.3s ease;
}

/* Harta rămâne 60% din ecran indiferent de numărul de călătorii;
   bottom-sheet-ul (40%) e scrollabil dacă sunt mai multe carduri. */
#home-screen.has-multi-trips #home-map-container {
    height: 60%;
}

#home-map {
    width: 100%;
    height: 100%;
}

/* Map skeleton (while loading) */
.map-skeleton {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.map-skeleton i { font-size: 32px; margin-bottom: 8px; display: block; }

/* ─── Map Overlay Buttons ────────────────────────────────────── */

.map-overlay-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all 0.25s ease;
    z-index: 10;
}

.map-overlay-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    box-shadow: var(--glow);
}

.map-overlay-btn:active { transform: scale(0.92); }

#btn-menu {
    top: calc(12px + var(--safe-area-top));
    left: 12px;
}

#btn-my-location {
    bottom: 12px;
    right: 12px;
}

.map-overlay-btn.map-location-btn {
    width: auto;
    height: 40px;
    border-radius: 20px;
    padding: 0 14px;
    font-size: 13px;
    gap: 6px;
    white-space: nowrap;
}

#btn-map-theme {
    top: calc(12px + var(--safe-area-top));
    right: 12px;
}

/* ─── Bottom Sheet ───────────────────────────────────────────── */

#home-bottom-sheet {
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(var(--accRGB), 0.15);
    box-shadow: 0 -4px 30px var(--shadow);
    padding: 12px 20px calc(8px + var(--safe-area-bottom));
    position: relative;
    flex: 1;
    overflow-y: auto;
    transition: max-height 0.35s ease;
    -webkit-overflow-scrolling: touch;
}

#home-bottom-sheet.expanded {
    max-height: 90vh;
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    margin: 0 auto 16px;
    opacity: 0.4;
}

/* ─── CTA Button ─────────────────────────────────────────────── */

#btn-vreau-rezerv {
    width: 100%;
    height: 56px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(var(--accRGB), 0.35);
    letter-spacing: 0.2px;
}

#btn-vreau-rezerv:hover {
    box-shadow: 0 6px 28px rgba(var(--accRGB), 0.5);
    transform: translateY(-2px);
}

#btn-vreau-rezerv:active {
    transform: translateY(0) scale(0.98);
}

/* ─── Reservation Status Cards (home) ────────────────────────── */

#reservations-section {
    margin-bottom: 16px;
    width: 100%;
}
#active-reservations { width: 100%; }

.reservations-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reservation-status-card {
    background: var(--bg-input);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-left: 5px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Săgeată „deschide" pe card (sus-dreapta, lângă rută) */
.reservation-status-card::after {
    content: "\f054"; /* fa-chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 18px;
    color: var(--text-muted);
    font-size: 13px;
}
/* lasă loc săgeții lângă rută */
.reservation-status-card .route-summary { padding-right: 18px; }

.reservation-status-card:hover {
    background: var(--accent-light);
    box-shadow: var(--glow);
}

.reservation-status-card:active {
    transform: scale(0.99);
}

.reservation-status-card.status-confirmata { border-left-color: var(--success); }
.reservation-status-card.status-in-curs { border-left-color: var(--warning); }
.reservation-status-card.status-noua { border-left-color: var(--accent); }
.reservation-status-card.status-anulata { border-left-color: var(--error); }

.route-summary {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.date-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge-confirmata { background: rgba(45, 212, 168, 0.15); color: var(--success); }
.status-badge-in-curs { background: rgba(255, 186, 73, 0.15); color: var(--warning); }
.status-badge-noua { background: var(--accent-light); color: var(--accent); }
.status-badge-anulata { background: rgba(255, 77, 106, 0.15); color: var(--error); }
.status-badge-livrata { background: rgba(45, 212, 168, 0.15); color: var(--success); }

/* Rândul de jos al cardului: status + preț */
.rez-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 10px;
}
.rez-card-bottom .status-badge { margin-top: 0; }
.rez-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ─── Swipe-to-delete pe cardurile de pe Acasa ───────────────── */

.rez-swipe-wrap {
    position: relative;
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
}
.rez-swipe-wrap .reservation-status-card {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    will-change: transform;
}
/* Indiciu vizual la apasarea lunga (cardul e „armat" pentru swipe) */
.rez-swipe-wrap .reservation-status-card.swipe-armed {
    box-shadow: 0 0 0 2px rgba(var(--accRGB), 0.35);
}
.rez-swipe-delete {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 96px;
    border: none;
    background: #ef4444;
    color: #fff;
    /* Ascuns implicit — apare DOAR la apasare lunga (swipe-arming)
       sau cand cardul e deja tras la o parte (swipe-open). */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 0;
}
.rez-swipe-delete i { font-size: 16px; }
.rez-swipe-delete:active { background: #dc2626; }
.rez-swipe-wrap.swipe-arming .rez-swipe-delete,
.rez-swipe-wrap.swipe-open .rez-swipe-delete {
    visibility: visible;
    opacity: 1;
}

/* ─── My Reservations Button (home center) ───────────────────── */

.btn-my-reservations {
    width: 100%;
    height: 48px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: all 0.25s ease;
}

.btn-my-reservations:hover {
    border-color: rgba(var(--accRGB), 0.4);
    color: var(--accent);
    box-shadow: var(--glow);
}

.btn-my-reservations:active {
    transform: scale(0.98);
}

.btn-my-reservations i {
    color: var(--accent);
}

.home-empty-state {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
}

.home-empty-state i { font-size: 28px; margin-bottom: 8px; display: block; opacity: 0.4; }
.home-empty-state p { font-size: 13px; }

.home-logo {
    width: 50%;
    max-width: 200px;
    height: auto;
    opacity: 0.7;
    display: block;
    margin: 0 auto;
}

/* ─── Booking Type Modal ─────────────────────────────────────── */

#booking-type-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
}

#booking-type-modal.active { display: block; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.bottom-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(var(--accRGB), 0.2);
    padding: 24px 20px calc(24px + var(--safe-area-bottom));
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.bottom-modal h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.3px;
}

.booking-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.booking-option:hover {
    border-color: rgba(var(--accRGB), 0.5);
    background: var(--accent-light);
    box-shadow: var(--glow);
    text-decoration: none;
}

.booking-option:last-child { margin-bottom: 0; }

.booking-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(var(--accRGB), 0.3);
}

.booking-option-text { flex: 1; }
.booking-option-title { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.booking-option-subtitle { font-size: 13px; color: var(--text-secondary); }

/* ─── Sheet Form (form inside bottom sheet) ──────────────────── */

#home-sheet-content {
    animation: fadeInUp 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.sheet-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sheet-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.sheet-back-btn:hover { background: var(--accent-light); color: var(--accent); }

.sheet-form-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sheet-form {
    width: 100%;
    align-self: stretch;
}
.sheet-form .form-group { margin-bottom: 14px; }

/* ─── Ecran confirmare rezervare ─────────────────────────────── */
.confirm-map {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    background: var(--bg-input);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}
.confirm-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.confirm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
    color: var(--text-primary);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row i {
    width: 18px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}
.confirm-price-box {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
    margin-bottom: 14px; /* aliniat cu ritmul de 14px al ecranului de confirmare */
    box-shadow: 0 6px 20px rgba(var(--accRGB), 0.25);
}
.confirm-price-box.confirm-price-na {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: none;
}
.confirm-price-label {
    font-size: 12px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.confirm-price-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.confirm-price-note {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 4px;
}
.confirm-muted { opacity: 0.7; font-size: 13px; font-weight: normal; }
.confirm-actions {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.promo-section {
    background: var(--bg-input);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.promo-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-primary); margin-bottom: 8px;
}
.promo-input-row { display: flex; gap: 8px; }
.promo-input-row .form-input {
    flex: 1; text-transform: uppercase;
    font-family: monospace; letter-spacing: 0.5px;
}
.btn-promo-apply {
    padding: 0 16px; height: 42px; min-height: 42px;
    background: var(--accent); color: #fff;
    border-radius: 10px; border: none; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.btn-promo-apply:hover { opacity: 0.9; }
.promo-loading { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.promo-success {
    font-size: 13px; color: #10b981; margin-top: 8px;
    padding: 8px 10px; background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}
.promo-error {
    font-size: 13px; color: #ef4444; margin-top: 8px;
    padding: 8px 10px; background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
}

.login-prompt-card {
    text-align: center;
    padding: 24px 0;
}

.login-prompt-card i { font-size: 40px; color: var(--accent); margin-bottom: 12px; display: block; }
.login-prompt-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }

/* ─── Google Maps Autocomplete fix ───────────────────────────── */

.pac-container { z-index: 600 !important; }

/* ─── Current location marker ────────────────────────────────── */

.current-location-marker {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(var(--accRGB), 0.3);
}

/* ─── PWA Install Banner ─────────────────────────────────────── */

.pwa-install-banner {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-area-bottom) + 12px);
    left: 16px;
    right: 16px;
    z-index: 99;
    background: var(--bg-card);
    border: 1px solid rgba(var(--accRGB), 0.3);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px var(--shadow), var(--glow);
    animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSlideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-install-banner .pwa-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pwa-install-banner .pwa-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pwa-install-banner .pwa-banner-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.pwa-install-banner .pwa-banner-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

.pwa-install-banner .pwa-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-input);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s ease;
}

.pwa-install-banner .pwa-banner-close:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.pwa-install-banner .pwa-install-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(var(--accRGB), 0.3);
}

.pwa-install-banner .pwa-install-btn:hover {
    box-shadow: 0 6px 20px rgba(var(--accRGB), 0.45);
    transform: translateY(-1px);
}

/* iOS install instructions variant */
.pwa-install-banner.ios .pwa-ios-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.pwa-install-banner.ios .pwa-ios-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pwa-install-banner.ios .pwa-ios-step .step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-install-banner.ios .pwa-ios-step svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: var(--accent);
}

/* ─── REWARDS / GAMIFICATION ────────────────────────────────── */

.rewards-page { padding-bottom: 100px; }
.rewards-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 18px;
}
.stat-block {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 8px; text-align: center;
}
.stat-block .stat-value {
    font-size: 18px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 2px;
}
.stat-block .stat-label {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.3px;
}

.streak-progress { margin-bottom: 16px; }
.streak-progress-bar {
    height: 8px; background: var(--bg-input); border-radius: 4px;
    overflow: hidden; margin-bottom: 6px;
}
.streak-progress-fill {
    height: 100%; background: linear-gradient(90deg, #fbbf24, #f97316);
    border-radius: 4px; transition: width 0.5s ease;
}
.streak-progress-label {
    font-size: 12px; color: var(--text-secondary); text-align: center;
}

.spin-extra-badge {
    display: block; text-align: center; padding: 8px 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; border-radius: 10px; font-weight: 600; font-size: 13px;
    margin-bottom: 16px; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.wheel-container {
    position: relative; width: 280px; height: 280px; margin: 20px auto;
    display: flex; align-items: center; justify-content: center;
}
.wheel-pointer {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; border-left: 14px solid transparent;
    border-right: 14px solid transparent; border-top: 24px solid #fbbf24;
    z-index: 10; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.wheel-spinner {
    width: 100%; height: 100%; transform-origin: center center;
    transform: rotate(0deg);
}
.wheel-svg { width: 100%; height: 100%; }
.wheel-center {
    position: absolute; width: 50px; height: 50px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: #fff; font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 5;
}

.btn-spin {
    height: 56px; font-size: 17px; font-weight: 700;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    margin-bottom: 24px;
}
.btn-spin.disabled, .btn-spin:disabled {
    background: var(--bg-input); color: var(--text-muted);
    cursor: not-allowed; box-shadow: none;
}

.rewards-divider {
    height: 1px; background: var(--border); margin: 24px 0 18px;
}

.section-title {
    font-size: 16px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state-small {
    text-align: center; padding: 20px; color: var(--text-muted);
    font-size: 14px; background: var(--bg-input); border-radius: 12px;
}

.premii-list { display: flex; flex-direction: column; gap: 10px; }
.premiu-card {
    background: var(--bg-input); border: 1px solid var(--border);
    border-left: 4px solid #f59e0b; border-radius: 10px; padding: 12px 14px;
}
.premiu-label {
    font-size: 14px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 6px;
}
.premiu-cod {
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.premiu-cod code {
    background: var(--bg-card); padding: 4px 8px; border-radius: 6px;
    font-size: 12px; color: var(--accent); font-family: monospace;
}
.btn-copy-small {
    background: none; border: 1px solid var(--border); color: var(--text-muted);
    padding: 4px 8px; border-radius: 6px; cursor: pointer; font-size: 11px;
}
.btn-copy-small:hover { background: var(--accent-light); color: var(--accent); }
.premiu-expira { font-size: 11px; color: var(--text-muted); }

/* Prize modal */
.prize-modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
    animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.prize-modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 28px 24px; max-width: 380px; width: 100%;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.05);
}
@keyframes modalSlideUp {
    from { transform: translateY(40px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.prize-emoji { font-size: 64px; margin-bottom: 8px; line-height: 1; }
.prize-modal h2 {
    font-size: 24px; font-weight: 700; margin: 0 0 16px;
    color: var(--text-primary);
}
.prize-label {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 16px;
}
.prize-code {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    background: var(--bg-input); padding: 12px; border-radius: 10px;
    margin-bottom: 12px;
}
.prize-code code {
    font-family: monospace; font-size: 16px; font-weight: 700;
    color: var(--accent); letter-spacing: 1px;
}
.btn-copy {
    background: var(--accent); color: #fff; border: none;
    padding: 6px 12px; border-radius: 6px; cursor: pointer;
}
.prize-note {
    font-size: 13px; color: var(--text-secondary); margin-bottom: 16px;
}
.milestone-bonus {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff; border-radius: 14px; padding: 14px;
    margin-bottom: 16px; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.milestone-bonus-icon { font-size: 36px; margin-bottom: 4px; }
.milestone-bonus-title {
    font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; opacity: 0.9; margin-bottom: 4px;
}
.milestone-bonus-label { font-size: 16px; font-weight: 700; }

/* Confetti */
.confetti {
    position: fixed; top: -20px; width: 10px; height: 10px;
    z-index: 10000; pointer-events: none;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ─── Auth pages (forgot/reset password) ─────────────────────── */
.auth-page .back-btn {
    background: none; border: none; color: var(--text-secondary);
    font-size: 14px; cursor: pointer; padding: 8px 0;
    margin-bottom: 16px; display: inline-flex; align-items: center; gap: 6px;
}
.auth-page .back-btn:hover { color: var(--accent); }
.auth-success {
    background: rgba(16, 185, 129, 0.1); color: #10b981;
    padding: 12px 14px; border-radius: 10px;
    font-size: 14px; margin-top: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.auth-error {
    background: rgba(239, 68, 68, 0.1); color: #ef4444;
    padding: 12px 14px; border-radius: 10px;
    font-size: 14px; margin-top: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ─── PWA Standalone Mode ────────────────────────────────────── */

body.pwa-standalone .browser-only {
    display: none !important;
}

body.pwa-standalone .top-bar {
    padding-top: calc(var(--safe-area-top) + 4px);
}

/* ─── Home Screen Responsive ─────────────────────────────────── */

@media (min-width: 640px) {
    #home-screen {
        max-width: 480px;
        margin: 0 auto;
    }

    #home-bottom-sheet {
        max-height: 50vh;
        padding: 16px 24px calc(12px + var(--safe-area-bottom));
    }
}

/* ─── Desktop Story Format ──────────────────────────────────── */

@media (min-width: 768px) {
    html {
        background: #000000;
    }

    body {
        max-width: 430px;
        margin: 0 auto;
        position: relative;
        box-shadow: 0 0 60px rgba(var(--accRGB), 0.08), 0 0 0 1px rgba(255, 255, 255, 0.06);
        min-height: 100vh;
        overflow-x: hidden;
    }

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse at center, rgba(var(--accRGB), 0.04) 0%, #000000 70%);
        z-index: -1;
        pointer-events: none;
    }

    .top-bar {
        width: 430px;
        max-width: 430px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .bottom-nav {
        width: 430px;
        max-width: 430px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .page-container {
        max-width: 100%;
    }

    #home-screen {
        max-width: 100%;
    }

    #splash-screen {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ─── Tabletă (shell nativ Capacitor) ───────────────────────────
   Suprascrie cardul de 430px de mai sus DOAR în app-ul nativ (iOS/Android),
   NU și pe browser desktop, unde formatul „story" îngust e intenționat.
   min-height exclude telefoanele ținute landscape (ex. iPhone ~932×430pt),
   care altfel ar trece și ele de min-width: 740px — rămân neschimbate.
   Edge-to-edge complet, fără card centrat (cerere explicită). */
@media (min-width: 740px) and (min-height: 600px) {
    body.native-app {
        max-width: 100%;
        box-shadow: none;
    }

    body.native-app .top-bar,
    body.native-app .bottom-nav {
        width: auto;
        max-width: 100%;
        left: 0;
        right: 0;
        transform: none;
    }

    body.native-app #splash-screen {
        max-width: 100%;
        left: 0;
        transform: none;
    }
}

/* ─── Auth Modal (Fullscreen) ───────────────────────────────── */

#auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-primary);
    display: none;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    #auth-modal {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ─── Telefon rotit în shell nativ (landscape) ───────────────────
   „Desktop Story Format" (max-width:430px de la 768px în sus) prindea
   și telefoanele ținute landscape (~932×430), lăsând benzi negre pe
   margini. În aplicația nativă, landscape = edge-to-edge; formatul
   îngust rămâne doar pe browser desktop (fără .native-app). */
@media (orientation: landscape) {
    body.native-app {
        max-width: 100%;
        box-shadow: none;
    }

    body.native-app .top-bar,
    body.native-app .bottom-nav,
    body.native-app #splash-screen,
    body.native-app #auth-modal {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        transform: none;
    }
}

@media (min-width: 740px) and (min-height: 600px) {
    body.native-app #auth-modal {
        max-width: 100%;
        left: 0;
        transform: none;
    }
}

#auth-modal.active {
    display: flex;
}

.auth-modal-header {
    display: flex;
    align-items: center;
    padding: 16px;
    padding-top: calc(16px + var(--safe-area-top));
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}

.auth-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.auth-modal-close:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.auth-modal-body {
    flex: 1;
    padding: 0 24px 40px;
}

.auth-modal-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-modal-logo img {
    width: 60%;
    max-width: 260px;
    height: auto;
}

/* Auth tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

/* Password toggle */
.input-with-toggle {
    position: relative;
}

.input-with-toggle .form-input {
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

/* Auth password section */
.auth-password-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.auth-password-section .form-label-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Terms checkbox enhanced */
.form-checkbox-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.form-checkbox-terms input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════════════════════════ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow);
}

.service-card:active {
    transform: scale(0.97);
}

.service-card-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 12px;
}

.service-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.countries-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-size: 15px;
}

.country-item:hover {
    background: var(--bg-input);
}

.country-item:active {
    transform: scale(0.98);
}

.country-emoji {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.country-name {
    flex: 1;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITY PAGE
   ═══════════════════════════════════════════════════════════════ */

.activity-filter {
    margin-bottom: 16px;
}

.activity-filter-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.activity-empty {
    text-align: center;
    padding: 48px 16px;
}

.activity-empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.activity-empty h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.activity-empty p {
    font-size: 14px;
    color: var(--text-secondary);
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 10px;
}

.activity-card-left {
    flex-shrink: 0;
}

.activity-card-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
}

.activity-card-center {
    flex: 1;
    min-width: 0;
}

.activity-card-dest {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.activity-card-right {
    flex-shrink: 0;
}

.btn-rebook {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-rebook:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ═══════════════════════════════════════════════════════════════ */

.account-header-guest {
    text-align: center;
    padding: 32px 0;
}

.account-avatar-guest {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.account-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.account-avatar {
    font-size: 48px;
    color: var(--text-muted);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.account-grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.account-grid-item i:first-child {
    font-size: 18px;
    color: var(--text-primary);
}

.account-grid-item:hover {
    background: var(--bg-input);
}

.account-grid-item:active {
    transform: scale(0.97);
}

.account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow);
}

.account-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.account-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.account-card-icon {
    font-size: 28px;
    color: var(--accent);
    flex-shrink: 0;
    margin-left: 16px;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 15px;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    transition: background 0.2s;
}

.account-menu-item:hover {
    background: var(--bg-card);
}

.account-menu-item i:first-child {
    font-size: 18px;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
}

.account-menu-item span {
    flex: 1;
}

.account-menu-item i:last-child {
    font-size: 12px;
    color: var(--text-muted);
}

.account-menu-logout {
    color: var(--error);
    margin-top: 12px;
}

.account-menu-logout i:first-child {
    color: var(--error);
}

/* ═══════════════════════════════════════════════════════════════
   RESERVATION DETAIL / EDIT PAGE (/reservation)
   ═══════════════════════════════════════════════════════════════ */
.rez-detail-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.rez-route {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.rez-route .rez-arrow {
    color: var(--text-muted);
    font-size: 12px;
    padding-left: 2px;
}
.rez-from, .rez-to {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.rez-passenger {
    font-size: 14px;
    color: var(--text-primary);
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}
.rez-passenger i {
    color: var(--accent);
    margin-right: 6px;
}
.rez-status-label {
    font-size: 13px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rez-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 12px;
}
.rez-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
}
.rez-meta-item i {
    color: var(--accent);
    margin-right: 5px;
}
.rez-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rez-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
}
.rez-edit-section .section-subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin: 6px 0 12px;
}
.rez-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
    margin: 6px 0 12px;
    cursor: pointer;
}
.rez-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}
.rez-locked {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}
.rez-locked i {
    color: var(--warning);
    margin-right: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES PAGE — service type cards
   ═══════════════════════════════════════════════════════════════ */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.service-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.service-card:hover { background: var(--accent-light); box-shadow: var(--glow); }
.service-card:active { transform: scale(0.99); }
.service-icon {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.service-text { flex: 1; min-width: 0; }
.service-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.service-card-soon { opacity: 0.65; }
.service-card-soon .service-icon { background: var(--bg-input); color: var(--text-muted); }
.service-soon-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 8px;
    border-radius: 999px;
}

/* ── Reservation detail: card mai mare + form compact + disclaimer ── */
.rez-detail-card {
    padding: 20px;
}
.rez-from, .rez-to {
    font-size: 17px;
}
.rez-route { gap: 8px; margin-bottom: 16px; }
.rez-price { font-size: 19px; }
.rez-meta-item { font-size: 14px; }

/* Form de editare — mai compact */
.rez-edit-section { margin-top: 4px; }
.rez-edit-section .form-group { margin-bottom: 10px; }
.rez-edit-section .form-input { padding: 10px 12px; }
.rez-edit-section textarea.form-input { rows: 2; min-height: 56px; }
.rez-edit-section .form-label { font-size: 12px; margin-bottom: 4px; }

/* Disclaimer preț */
.rez-disclaimer {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.rez-disclaimer i { color: var(--warning); margin-top: 2px; }

/* ── Urmărire live „Mașina ta" (ecran detalii rezervare) ── */
.track-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(var(--accRGB),0.15);
}
.track-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    padding: 12px 16px 8px;
}
.track-title i { margin-right: 6px; }
.track-map {
    width: 100%;
    height: 220px;
    background: var(--bg-secondary);
    position: relative;
}
.track-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 22px;
}
.track-eta {
    padding: 12px 16px 4px;
    font-size: 15px;
    color: var(--text-primary);
}
.track-eta i { color: var(--accent); margin-right: 6px; }
.track-eta strong { color: var(--accent); }
.track-meta {
    padding: 0 16px 12px;
    display: flex; gap: 16px;
    font-size: 13px; color: var(--text-secondary);
}
.track-meta i { margin-right: 5px; color: var(--accent); }
.track-call {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 16px 16px;
    height: 46px;
    background: var(--accent-gradient, #f97316);
    color: #fff; font-weight: 600; font-size: 15px;
    border-radius: 12px; text-decoration: none;
}
.track-sofer {
    padding: 0 16px 16px; font-size: 14px; color: var(--text-secondary);
}
.track-sofer i { color: var(--accent); margin-right: 6px; }

/* ─── Bară live „Mașina ta vine" pe ecranul Acasă ──────────────── */
.home-live-bar {
    background: var(--accent-gradient, linear-gradient(135deg, #f97316, #ea580c));
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 12px;
    box-shadow: 0 6px 18px rgba(var(--accRGB), 0.28);
    animation: homeLivePulse 2.4s ease-in-out infinite;
}
@keyframes homeLivePulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(var(--accRGB), 0.28); }
    50%      { box-shadow: 0 6px 26px rgba(var(--accRGB), 0.5); }
}
.home-live-title {
    font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.home-live-title i { animation: homeLiveBlink 1.6s steps(1) infinite; }
.home-live-stale { font-weight: 500; font-size: 0.8em; opacity: 0.85; }
@keyframes homeLiveBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .45; } }
.home-live-eta {
    margin-top: 4px; font-size: 14px; line-height: 1.35;
}
.home-live-eta strong { font-size: 16px; }
.home-live-call {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px; padding: 8px 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    color: #fff; font-size: 13px; font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.home-live-call:active { background: rgba(255, 255, 255, 0.3); }

/* ─── Mod urmărire live: buton „Sună Șofer" + swipe-up pentru CTA-uri ──── */
.home-call-driver-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin: 0 0 12px; padding: 15px;
    background: var(--accent-gradient, linear-gradient(135deg, #f97316, #ea580c));
    color: #fff; font-size: 17px; font-weight: 700;
    border-radius: 14px; text-decoration: none;
    box-shadow: 0 6px 18px rgba(var(--accRGB), 0.35);
    -webkit-tap-highlight-color: transparent;
}
.home-call-driver-btn:active { transform: scale(0.98); }

/* În mod tracking, CTA-urile de rezervare rămân vizibile: clientul poate
   rezerva o cursă nouă și cât timp așteaptă mașina (cerere explicită).
   Ordinea în panou: bară live → Sună Șofer → Calatorii active → CTA-uri. */

/* La swipe-up în mod tracking, harta se micșorează ca să încapă butoanele */
#home-screen.tracking-mode.sheet-up #home-map-container {
    height: 35%;
}

/* Handle mai vizibil/„apucabil" în mod tracking (indiciu de swipe) */
#home-screen.tracking-mode .bottom-sheet-handle {
    cursor: pointer;
    height: 5px;
    width: 48px;
    background: var(--accent, #f97316);
    opacity: 0.7;
}

/* ─── Tracking fullscreen layout ─────────────────────────────────
   Layout dedicat modului urmărire live „Mașina ta vine spre tine".
   Portret: hartă ~40% / panou ~60% — bara live + „Sună Șofer" +
   „Calatorii active" vizibile fără scroll intern (sheet fixat extins;
   handle-ul rămâne doar pentru CTA-urile de rezervare la swipe-up).
   Landscape: hartă stânga ~55% / panou dreapta ~45%, bottom-nav jos.
   Totul e scoped pe .tracking-mode — layoutul normal rămâne neatins;
   clasa se curăță în _stopHomeTracking (booking.js). */

#home-screen.tracking-mode #home-map-container {
    height: 36%;
}

#home-screen.tracking-mode #home-bottom-sheet {
    display: flex;
    flex-direction: column;
    /* SINGURUL container cu scroll din panou (compact by design, ca în
       practică să nu fie nevoie de scroll pe ecranul principal în picioare —
       dar auto, NU hidden: hidden ar ascunde silentios cardul/CTA-urile pe
       un ecran mai mic in loc sa le faca doar accesibile prin scroll). */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px calc(6px + var(--safe-area-bottom));
}

/* IMPORTANT: #home-sheet-content NU are propriul lui overflow. Cu flex:1 +
   min-height:0 + overflow (auto SAU hidden) pe un element intermediar,
   conținutul care depășește înălțimea calculată e TĂIAT silențios chiar
   aici, înainte să ajungă la #home-bottom-sheet (care are scroll) — exact
   bug-ul „cardul/CTA-urile dispar, rămâne ecran gol/negru". Cu overflow
   vizibil, conținutul care nu încape „curge" natural în părintele
   scrollabil, unde chiar poate fi văzut prin scroll. */
#home-screen.tracking-mode #home-sheet-content {
    flex: 1;
    min-height: 0;
    height: auto;
    align-items: stretch;
    justify-content: flex-start;
}

/* Spațieri compacte ca toată informația să încapă pe un ecran, FĂRĂ scroll */
#home-screen.tracking-mode .home-live-bar {
    margin-bottom: 8px;
    padding: 10px 12px;
}
#home-screen.tracking-mode .home-live-title { font-size: 13px; }
#home-screen.tracking-mode .home-live-eta { font-size: 13px; margin-top: 2px; }
#home-screen.tracking-mode .home-call-driver-btn {
    margin-bottom: 8px;
    padding: 11px;
    font-size: 15px;
    min-height: 44px;
}
/* Bloc detalii cursă (adresă preluare + telefon șofer ca text) — umple
   panoul cu informație utilă în loc de spațiu gol atunci când nu e nevoie
   de scroll pentru a vedea și cardul + CTA-urile de mai jos. */
.home-trip-details {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.home-trip-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.3;
}
.home-trip-detail-row i { color: var(--accent); width: 14px; margin-top: 2px; flex-shrink: 0; }
.home-trip-detail-row a { color: var(--text-secondary); text-decoration: none; }
.home-trip-detail-row strong { color: var(--text-primary); font-weight: 600; }

#home-screen.tracking-mode #reservations-section { margin-bottom: 8px; }
#home-screen.tracking-mode .reservations-title { margin-bottom: 6px; }
#home-screen.tracking-mode .reservation-status-card {
    padding: 12px 14px;
    margin-bottom: 0;
}
#home-screen.tracking-mode .route-summary { font-size: 14px; margin-bottom: 2px; }
#home-screen.tracking-mode .date-info { font-size: 12px; }
#home-screen.tracking-mode .rez-card-bottom { margin-top: 4px; }

/* CTA-urile de rezervare, jos în panou — umplu spațiul rămas gol */
#home-screen.tracking-mode #btn-vreau-rezerv,
#home-screen.tracking-mode #btn-rezervarile-mele {
    display: flex;
    margin-top: auto;
    min-height: 42px;
    padding: 12px;
    font-size: 15px;
}
#home-screen.tracking-mode #btn-rezervarile-mele {
    margin-top: 8px;
}

/* Landscape (orice dispozitiv), DOAR în tracking: hartă stânga,
   panou de informații dreapta, bottom-nav jos pe toată lățimea. */
@media (orientation: landscape) {
    #home-screen.tracking-mode {
        flex-direction: row;
    }

    /* Harta plină pe înălțime până la bottom-nav; include .sheet-up
       ca să bată regula de 35% din modul portret */
    #home-screen.tracking-mode #home-map-container,
    #home-screen.tracking-mode.sheet-up #home-map-container {
        width: 55%;
        height: 100%;
    }

    #home-screen.tracking-mode #home-bottom-sheet {
        width: 45%;
        height: 100%;
        border-radius: 24px 0 0 24px;
        border-top: none;
        border-left: 1px solid rgba(var(--accRGB), 0.15);
        box-shadow: -4px 0 30px var(--shadow);
        justify-content: center;
        padding: 12px calc(16px + env(safe-area-inset-right, 0px)) calc(8px + var(--safe-area-bottom)) 16px;
    }

    /* Panoul e fix în landscape — handle-ul de swipe nu mai are rost */
    #home-screen.tracking-mode .bottom-sheet-handle {
        display: none;
    }

    /* justify-content:flex-start (nu center — vezi comentariul de mai sus la
       regula de bază) și FĂRĂ overflow propriu — scroll-ul e gestionat
       exclusiv de #home-bottom-sheet, care e overflow-y:auto și în landscape. */
    #home-screen.tracking-mode #home-sheet-content {
        flex: 1;
        min-height: 0;
        justify-content: flex-start;
    }

    /* Panoul e mai îngust decât ecranul: text și butoane adaptate ca
       „Sună Șofer · <nume>" să rămână pe UN rând, nu rupt pe verticală. */
    #home-screen.tracking-mode .home-call-driver-btn {
        white-space: nowrap;
        font-size: 15px;
        padding-left: 12px;
        padding-right: 12px;
        min-height: 46px;
    }
    #home-screen.tracking-mode .home-live-bar {
        padding: 10px 12px;
        font-size: 14px;
    }
    #home-screen.tracking-mode #btn-vreau-rezerv,
    #home-screen.tracking-mode #btn-rezervarile-mele {
        white-space: nowrap;
        font-size: 15px;
        min-height: 44px;
        margin-top: 8px;
    }
}

/* ─── Badge profil (tier) pe pagina Recompense ───────────────────── */
.rewards-tier {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    margin: 4px 0 14px; padding: 10px 14px;
    border-radius: 14px; text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
    border: 1px solid rgba(139,92,246,0.25);
}
.rewards-tier-ambasador {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(236,72,153,0.12));
    border-color: rgba(245,158,11,0.35);
}
.rewards-tier-calator {
    background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(59,130,246,0.12));
    border-color: rgba(16,185,129,0.3);
}
.rewards-tier-badge { font-size: 15px; font-weight: 800; }
.rewards-tier-hint { font-size: 12px; opacity: 0.85; line-height: 1.35; }

/* ─── Brand: token-uri de colț pe primitivele principale ─────────── */
/* Plasat la finalul fișierului ca să câștige în cascadă (specificitate egală). */
/* Astfel varianta [data-corners] (Default/Soft/Crisp) se simte vizibil. */

.service-card, .trip-card, .track-card, .thanks-card, .stat-card,
.stat-block, .price-card, .price-confirm-card, .rez-detail-card,
.reservation-status-card, .rewards-tier, .promo-section, .confirm-card,
.confirm-price-box, .confirm-map, .account-card, .account-menu,
.home-live-bar, .welcome-banner, .pwa-install-banner, .trip-status,
.prize-modal, .user-dropdown, .skeleton-card, .milestone-bonus {
    border-radius: var(--r-l);
}

.btn, .btn-primary, .btn-secondary, .btn-full,
.map-overlay-btn, .map-location-btn, .home-call-driver-btn,
.home-cta, .track-call, .pwa-install-btn, .thanks-next,
.account-grid-item, .tabs {
    border-radius: var(--r-m);
}

.form-input, .otp-digit, .status-badge, .rewards-stat,
.referral-code-big, .stat-block-mini {
    border-radius: var(--r-s);
}

/* ─── Personalizare brand (pagina Cont) ─────────────────────────── */
.account-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 26px 4px 12px;
}
.brand-settings {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.brand-row-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.brand-swatches { display: flex; gap: 10px; }
.brand-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.brand-swatch i { color: #fff; font-size: 12px; opacity: 0; transition: opacity 0.15s ease; }
.brand-swatch.is-active { border-color: var(--text-primary); transform: scale(1.08); }
.brand-swatch.is-active i { opacity: 1; }
.brand-swatch-violet { background: linear-gradient(125deg, #7C4DFF, #B23BE0 52%, #FF5BA3); }
.brand-swatch-ocean  { background: linear-gradient(125deg, #2563EB, #0EA5E9 52%, #22D3EE); }
.brand-swatch-sunset { background: linear-gradient(125deg, #FB923C, #F43F5E 52%, #EC4899); }
.brand-swatch-mint   { background: linear-gradient(125deg, #10B981, #14B8A6 52%, #34D399); }

.brand-seg {
    display: inline-flex;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    padding: 3px;
    gap: 3px;
}
.brand-seg-btn {
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: calc(var(--r-s) - 5px);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.brand-seg-btn.is-active {
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: var(--glow);
}

/* ─── Gamification v2: banner partener sub roată + overlay jackpot ─── */
.rewards-banner { display:flex; align-items:center; gap:12px; margin-top:14px; padding:14px; border-radius:var(--r-l); border:1px dashed rgba(var(--accRGB),.45); background:rgba(var(--accRGB),.08); }
.rewards-banner-ic { width:46px; height:46px; border-radius:13px; background:var(--bg-card); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:24px; flex:none; }
.rewards-banner-logo { width:46px; height:46px; border-radius:13px; object-fit:contain; background:#fff; flex:none; }
.rewards-banner-kicker { font-family:'JetBrains Mono', monospace; font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-hover); }
.rewards-banner-prize { font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:14.5px; margin-top:3px; color:var(--text-primary); }
.rewards-banner-by { font-size:12px; color:var(--text-secondary); margin-top:3px; }
.rewards-banner-by strong { color:var(--accent-hover); }
.prize-by { font-size:13px; color:var(--text-secondary); margin:6px 0; }
.prize-by strong { color:var(--accent-hover); }
.jackpot-bonus { margin:16px 0; padding:16px; border-radius:16px; background:linear-gradient(135deg, rgba(var(--accRGB),.16), rgba(255,91,163,.12)); border:1px solid rgba(var(--accRGB),.35); text-align:center; }
.jackpot-badge { font-family:'JetBrains Mono', monospace; font-size:11px; letter-spacing:.1em; color:var(--accent-hover); }
.jackpot-prize { font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:18px; margin-top:8px; color:var(--text-primary); }
.jackpot-by { font-size:12.5px; color:var(--text-secondary); margin-top:4px; }
.jackpot-by strong { color:var(--accent-hover); }
.jackpot-note { font-size:13px; color:var(--text-primary); margin-top:10px; }

/* Tagline sub logo pe ecranul de incarcare */
.splash-tagline {
    margin: 18px auto 0;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* ─── Dispatch local (L2): card ofertă șofer ─── */
.dispatch-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 12, 20, 0.82);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: dispatchIn 0.25s ease;
}
@keyframes dispatchIn { from { opacity: 0; } to { opacity: 1; } }
.dispatch-card {
    background: var(--bg-card, #fff);
    color: var(--text-primary, #111);
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.dispatch-countdown {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid var(--primary, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary, #6d28d9);
}
.dispatch-ruta {
    text-align: left;
    margin: 14px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
}
.dispatch-meta {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.dispatch-pret {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary, #6d28d9);
    margin: 6px 0 14px;
}
.dispatch-btns {
    display: flex;
    gap: 10px;
}
.dispatch-btns .btn { flex: 1; padding: 13px 8px; font-size: 15px; }
.dispatch-countdown-lunga { font-size: 22px; }
.dispatch-later {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-secondary, #666);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px;
}

/* ─── Câștiguri șofer (D1) ─── */
.earn-hero { text-align: center; padding: 22px 16px; }
.earn-label { font-size: 13px; color: var(--text-secondary, #666); }
.earn-sum { font-size: 30px; font-weight: 800; color: var(--primary, #6d28d9); margin: 6px 0; }
.earn-meta { display: flex; justify-content: center; gap: 16px; font-size: 13px; color: var(--text-secondary, #666); }
.earn-rows { display: flex; flex-direction: column; gap: 8px; }
.earn-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; gap: 12px; }
.earn-trip {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--border-color, #eee);
}
.earn-trip:last-child { border-bottom: none; }
.trip-actions-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.trip-actions-nav .btn { flex: 1; min-width: 90px; text-align: center; }
.trip-pasager { font-size: 13px; color: var(--text-secondary, #666); margin: 6px 0 2px; }

/* ══════════════════════════════════════════════════════════════
   Moovo Șofer — ecran dedicat (fără hartă, fără UI de client)
   ══════════════════════════════════════════════════════════════ */
.drv-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px));
}
.drv-header {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 18px;
}
.drv-hello { font-size: 20px; font-weight: 800; color: var(--text-primary, #fff); }
.drv-sub { font-size: 13px; color: var(--text-secondary, #9aa3b2); margin-top: 2px; }
.drv-status {
    font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
    padding: 6px 12px; border-radius: 999px;
}
.drv-status.on  { background: rgba(34,197,94,0.15);  color: #22c55e; box-shadow: 0 0 0 1px rgba(34,197,94,0.35); }
.drv-status.off { background: rgba(148,163,184,0.15); color: #94a3b8; box-shadow: 0 0 0 1px rgba(148,163,184,0.3); }

.drv-card {
    background: var(--bg-card, #12101c);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}
.drv-live { border-color: rgba(34,197,94,0.4); }
.drv-label { font-size: 13px; font-weight: 700; color: var(--text-primary, #fff); margin-bottom: 10px; }
.drv-optional {
    font-size: 11px; font-weight: 600; color: var(--text-secondary, #9aa3b2);
    background: rgba(148,163,184,0.15); padding: 2px 7px; border-radius: 999px; margin-left: 6px;
}
.drv-hint { font-size: 12px; color: var(--text-secondary, #9aa3b2); margin: -4px 0 10px; }

.drv-ruta { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 700; }
.drv-meta { font-size: 13px; color: var(--text-secondary, #9aa3b2); margin-top: 10px; }

.drv-field { margin-bottom: 12px; }
.drv-field label {
    display: block; font-size: 12px; color: var(--text-secondary, #9aa3b2);
    margin-bottom: 5px; font-weight: 600;
}
.drv-field input {
    width: 100%; padding: 13px 14px; font-size: 16px;
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 12px; color: var(--text-primary, #fff);
    -webkit-appearance: none; appearance: none;
}
.drv-field input:focus { outline: none; border-color: var(--primary, #6d28d9); }
.drv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.drv-stepper { display: flex; align-items: center; gap: 14px; }
.drv-step {
    width: 52px; height: 52px; border-radius: 14px; font-size: 26px; font-weight: 700;
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    color: var(--text-primary, #fff); cursor: pointer;
}
.drv-step:active { transform: scale(0.95); }
.drv-step-val { flex: 1; text-align: center; font-size: 34px; font-weight: 800; color: var(--primary, #a78bfa); }

.drv-btn-start, .drv-btn-stop {
    width: 100%; padding: 20px; border: none; border-radius: 16px;
    font-size: 18px; font-weight: 800; cursor: pointer; color: #fff; margin-top: 4px;
}
.drv-btn-start { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 8px 24px rgba(34,197,94,0.3); }
.drv-btn-stop  { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 8px 24px rgba(239,68,68,0.28); }
.drv-btn-start:active, .drv-btn-stop:active { transform: scale(0.99); }

.drv-btn-sec {
    width: 100%; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 700;
    background: transparent; color: var(--primary, #a78bfa);
    border: 1px dashed var(--primary, #6d28d9); cursor: pointer; margin-top: 8px;
}
.drv-subform {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.drv-oprire {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
}
.drv-oprire:last-of-type { border-bottom: none; }
.drv-oprire-nume { font-weight: 700; font-size: 14px; }
.drv-oprire-adr { font-size: 12px; color: var(--text-secondary, #9aa3b2); margin-top: 2px; }
.drv-del {
    background: none; border: none; color: #ef4444; font-size: 15px; cursor: pointer; padding: 8px;
}
.drv-badge {
    font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
    background: rgba(109,40,217,0.2); color: #a78bfa;
}
.drv-empty { font-size: 13px; color: var(--text-secondary, #9aa3b2); padding: 6px 0 2px; }
.drv-gps {
    font-size: 12px; color: var(--text-secondary, #9aa3b2);
    text-align: center; margin-top: 14px;
}

/* ─── Traseu optimizat + navigare ───────────────────────────── */
.drv-traseu {
    margin: 10px 0 6px; padding: 12px;
    background: rgba(255,255,255,0.04); border-radius: 14px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.drv-traseu-cifre {
    display: flex; gap: 18px; align-items: center;
    font-size: 15px; font-weight: 700; margin-bottom: 10px;
}
.drv-traseu-cifre i { color: var(--primary, #a78bfa); margin-right: 5px; }
.drv-traseu-gol {
    display: block; font-size: 12px; font-weight: 500;
    color: var(--text-secondary, #9aa3b2);
}
.drv-btn-optim {
    width: 100%; padding: 12px; border-radius: 12px; cursor: pointer;
    font-size: 14px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9); border: none;
}
.drv-btn-optim:disabled { opacity: 0.6; cursor: default; }
.drv-btn-optim:active { transform: scale(0.99); }

.drv-btn-nav {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 18px; border-radius: 16px; margin-top: 4px;
    font-size: 17px; font-weight: 800; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 24px rgba(59,130,246,0.28);
}
.drv-btn-nav:active { transform: scale(0.99); }

/* Oprirea capătă număr de ordine + butoane de navigare */
.drv-oprire { align-items: flex-start; }
.drv-oprire-nr {
    flex: 0 0 26px; width: 26px; height: 26px; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px; font-size: 12px; font-weight: 800;
    background: rgba(109,40,217,0.22); color: #a78bfa;
}
.drv-oprire-info { flex: 1; min-width: 0; }
.drv-oprire-nume { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.drv-oprire-etapa {
    font-size: 11px; font-weight: 600;
    color: var(--text-secondary, #9aa3b2);
}
.drv-oprire-nav { display: flex; gap: 8px; margin-top: 8px; }
.drv-nav-mic {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none;
    color: var(--primary, #a78bfa);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color, rgba(255,255,255,0.10));
}
.drv-nav-mic:active { transform: scale(0.95); }
.drv-fara-gps { color: #f59e0b; }

/* Starea GPS: verde când trimite, roșu când browserul blochează localizarea */
.drv-gps-bun { color: #22c55e !important; }
.drv-gps-rau {
    text-align: left !important; color: #fca5a5 !important;
    background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.28);
    border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5;
}
.drv-gps-rau b { color: #fecaca; }
.drv-gps-ajutor {
    color: var(--text-secondary, #9aa3b2); font-size: 12px; margin-top: 6px;
}
.drv-gps-cere { text-align: center !important; }
.drv-btn-gps {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px; border: none; border-radius: 14px; cursor: pointer;
    font-size: 16px; font-weight: 800; font-family: inherit; color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 6px 20px rgba(139,92,246,0.28);
}
.drv-btn-gps:active { transform: scale(0.99); }
.drv-gps-rau .drv-btn-gps {
    margin-top: 12px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: none;
}
.drv-gps-ajutor b { color: var(--text-primary, #f4f2fa); }

/* Lista de sugestii Google Places, peste cardurile aplicației */
.pac-container { z-index: 100000 !important; }

/* Partajare locație în Contul șoferului */
.dp-loc-stare { font-size: 16px; display: flex; align-items: center; gap: 9px; }
.dp-loc-ok { color: #22c55e; }
.dp-loc-off { color: var(--text-secondary, #9aa3b2); }
.dp-loc-rau { color: #ef4444; }
.dp-loc-detaliu {
    font-size: 13px; color: var(--text-secondary, #9aa3b2); margin-top: 6px;
}
.dp-loc-ajutor {
    font-size: 13px; line-height: 1.55; margin-top: 10px;
    color: var(--text-secondary, #9aa3b2);
}
.dp-loc-ajutor b { color: var(--text-primary, #f4f2fa); }
.dp-loc-pasi {
    margin-top: 10px; padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.05); font-size: 12.5px; line-height: 1.6;
}

/* Lista de ecrane din pagina Cont a șoferului */
.drv-linkuri { display: flex; flex-direction: column; }
.drv-link {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 4px; text-decoration: none;
    color: var(--text-primary, #f4f2fa);
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.07));
}
.drv-link:last-child { border-bottom: none; }
.drv-link > i:first-child {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    background: rgba(109,40,217,0.18); color: var(--primary, #a78bfa);
}
.drv-link-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drv-link-txt strong { font-size: 15px; font-weight: 700; }
.drv-link-txt small { font-size: 12px; color: var(--text-secondary, #9aa3b2); margin-top: 1px; }
.drv-link-sag { font-size: 12px; color: var(--text-secondary, #9aa3b2); }
.drv-link:active { background: rgba(255,255,255,0.04); }

/* Aplicația de șofer are bara ei, cu trei butoane mari (Acasă, Mesaje, Cont).
   Nu e nav-ul de client — acela avea cinci tab-uri. */
html[data-moovo-rol="sofer"] .bottom-nav .nav-item { font-size: 12px; }
html[data-moovo-rol="sofer"] .bottom-nav .nav-item i { font-size: 22px; }

/* ═══════════════════════════════════════════════════════════════
   ECRANUL DE REZERVARE (client) — mod formular
   ───────────────────────────────────────────────────────────────
   BUG REPARAT: #home-sheet-content avea `justify-content:center` +
   `height:100%`. Când formularul era mai înalt decât panoul, conținutul
   se centra vertical și primul câmp („Locație plecare") ieșea deasupra
   zonei vizibile — iar la el NU se putea ajunge prin scroll, fiindcă
   scrollTop nu poate fi negativ. Exact bug-ul reparat în v57 pentru
   modul tracking, rămas nereparat pentru formular.
   Centrarea rămâne pentru ecranul principal; o anulăm doar în formular.
   ═══════════════════════════════════════════════════════════════ */

#home-screen.form-mode #home-sheet-content {
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
}

/* Harta rămâne vizibilă sus, dar redusă. Panoul ia restul și e cel
   care derulează, dacă e nevoie. */
#home-screen.form-mode #home-map-container {
    height: 27%;
    min-height: 110px;
    /* La înălțime 0 (ecrane foarte scunde) butoanele de pe hartă ar rămâne
       plutind peste formular — sunt poziționate absolut față de container. */
    overflow: hidden;
}
#home-screen.form-mode #home-bottom-sheet {
    padding: 10px 16px calc(10px + var(--safe-area-bottom));
}

/* Câmpuri compacte, ca toate să încapă fără derulare */
#home-screen.form-mode .sheet-form-header { margin-bottom: 12px; }
#home-screen.form-mode .sheet-form .form-group { margin-bottom: 10px; }
#home-screen.form-mode .form-label { font-size: 12px; margin-bottom: 4px; }
#home-screen.form-mode .form-input { height: 46px; }
#home-screen.form-mode .form-textarea { height: auto; }

/* Pe ecrane scunde (iPhone SE) se micșorează HARTA, nu câmpurile. */
@media (max-height: 740px) {
    #home-screen.form-mode #home-map-container { height: 20%; min-height: 92px; }
    #home-screen.form-mode .sheet-form .form-group { margin-bottom: 8px; }
    #home-screen.form-mode .form-input { height: 44px; }
    #home-screen.form-mode .sheet-form-title { font-size: 16px; }
}
@media (max-height: 620px) {
    #home-screen.form-mode #home-map-container { height: 0; min-height: 0; }
}

/* Secțiunea pliată „Mai multe opțiuni" */
.form-extra-toggle {
    width: 100%;
    background: none;
    border: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.form-extra-toggle i { font-size: 11px; transition: transform 0.2s ease; }
.form-extra-toggle.deschis i { transform: rotate(180deg); }
.form-extra { padding-top: 6px; }

/* Butonul „Află preț" — dezactivat până când formularul e complet */
#btn-booking-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* Caseta „Alte detalii" e opțională — nu are rost să ocupe 80px degeaba */
#home-screen.form-mode .form-textarea { min-height: 56px; }

/* ─── Ecranul de confirmare: harta 2/3, panoul 1/3 ──────────────
   Mini-harta din panou a fost scoasă din HTML — desena a doua oară
   exact aceeași rută care e deja pe harta mare de deasupra. */
#home-screen.confirm-mode #home-map-container {
    height: 66%;
    min-height: 0;
}
#home-screen.confirm-mode #home-bottom-sheet {
    /* Panoul derulează, dar butoanele de jos rămân mereu la vedere */
    display: flex;
    flex-direction: column;
    padding: 8px 16px calc(8px + var(--safe-area-bottom));
}
#home-screen.confirm-mode .sheet-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
#home-screen.confirm-mode .sheet-form-header { margin-bottom: 8px; }
#home-screen.confirm-mode .sheet-form-title { font-size: 16px; }

/* Rezumatul se strânge; dacă nu încape, el derulează, nu butoanele */
#home-screen.confirm-mode .confirm-card {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 8px;
    padding: 8px 12px;
}
#home-screen.confirm-mode .confirm-row {
    padding: 5px 0;
    font-size: 14px;
}
#home-screen.confirm-mode .confirm-price-box {
    flex: none;
    padding: 8px 12px;
    margin-bottom: 8px;
}
#home-screen.confirm-mode .confirm-price-value { font-size: 22px; }
#home-screen.confirm-mode .confirm-price-note { font-size: 11px; }

/* Butoanele: lipite jos, niciodată tăiate de bara de navigare */
#home-screen.confirm-mode .confirm-actions {
    flex: none;
    display: flex;
    gap: 10px;
}
#home-screen.confirm-mode .confirm-actions .btn { margin-bottom: 0 !important; }
#home-screen.confirm-mode #btn-confirm-edit { flex: 0 0 38%; height: 50px !important; }
#home-screen.confirm-mode #btn-confirm-yes { flex: 1; height: 50px !important; font-size: 16px !important; }

@media (max-height: 740px) {
    #home-screen.confirm-mode #home-map-container { height: 55%; }
    #home-screen.confirm-mode .confirm-row { padding: 4px 0; font-size: 13px; }
    #home-screen.confirm-mode .confirm-price-value { font-size: 19px; }
}
