/* ============ CSS VARIABLES & ROOT ============ */
:root {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    scrollbar-width: thin;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #ea580c;
    --gold: #eab308;
    --gold-light: #fef9c3;
    --dark: #000000;
    --dark-card: rgba(18, 18, 18, 0.8);
    --dark-surface: rgba(30, 30, 30, 0.6);
    --text: #f1f5f9;
    --text-secondary: #a0aec0;
    --success: #22c55e;
    --success-bg: rgba(34,197,94,0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245,158,11,0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239,68,68,0.15);
    --border: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 64px 0 rgba(0, 0, 0, 0.85);
    --radius: 24px;
    --radius-sm: 14px;
    --radius-xs: 8px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: #000;
    color: var(--text);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
}

body.lang-en { direction: ltr; font-family: 'Montserrat', sans-serif; }



.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ============ CUSTOM CURSOR ============ */
.custom-cursor {
    position: fixed;
    width: 28px;
    height: auto;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, opacity 0.2s;
}

.custom-cursor svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.custom-cursor.hover {
    width: 34px;
    opacity: 0.85;
}

/* ============ CANVAS CONTAINER ============ */
.canvas-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: -10;
    overflow: hidden;
    background: #000;
}

#scenic-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.85) 100%),
                linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, #000 100%);
    pointer-events: none;
    z-index: 1;
}

/* ============ SMOOTH SCROLL (html) ============ */
html.has-scroll-smooth { overflow: hidden; }
html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Vendor prefix fallbacks for external libraries */
select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

* {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
.has-scroll-smooth body { overflow: hidden; }
.has-scroll-smooth [data-scroll-container] { min-height: 100vh; }

[data-scroll-section] { position: relative; }
[data-scroll-section] + [data-scroll-section] { margin-top: -1px; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============ SECTION HEADER ============ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 52px;
    font-weight: 200;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 12px;
    font-family: 'Outfit', 'Montserrat', sans-serif;
}
/* The admin panel's title uses hero-title styling (bold, gold,
   bigger glow) to match the homepage headline. */
.section-header h2.hero-title {
    font-size: 58px;
    font-weight: 900;
    color: #d4af37;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
    font-family: 'Outfit', 'Tajawal', 'Montserrat', sans-serif;
}

#page-newcar .section-header h2 {
    font-size: 46px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    letter-spacing: -1px;
}

body.lang-en .section-header h2 { font-weight: 200; }

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Valuation section header - heavier text, moved up */
#valuation {
    margin-top: 0;
}

#valuation .section-header {
    margin-top: 50px;
    margin-bottom: 40px;
}

#valuation .section-header h2 {
    font-weight: 900;
    color: #d4af37;
    font-size: 46px;
    font-family: var(--font);
    letter-spacing: normal;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

#valuation .section-header p {
    font-size: clamp(13px, 1.4vw, 18px);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============ HERO SECTION (CINEMATIC) ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero .container {
    margin-top: 0;
    text-align: center;
    padding-top: 100px;
}

.philosophy-card {
    max-width: 840px;
    margin: 50px auto 0;
    text-align: center;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(35px) saturate(1.8);
    backdrop-filter: blur(35px) saturate(1.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
    margin: 340px auto 0;
    max-width: 960px;
}

.site-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #050608;
}

.site-bg-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.5) saturate(1.3);
}

.site-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

.page,
.wizard-section,
.dark-section {
    position: relative;
    z-index: 1;
    background: transparent;
}

.dark-section {
    background: transparent;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero__title {
    font-size: 120px;
    font-weight: 200;
    color: #fff;
    letter-spacing: 12px;
    margin-bottom: 16px;
    font-family: 'Outfit', 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.hero__tagline {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 2;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(1.5); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* ============ NEXORA-STYLE NAV ============ */
.nav-nexora {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    transition: background 0.4s, padding 0.4s;
}

.nav-nexora.scrolled {
    background: rgba(0,0,0,0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 40px;
}

.nav-nexora__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-nexora__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    letter-spacing: 6px;
    font-family: 'Outfit', 'Montserrat', sans-serif;
    line-height: 1;
}

.logo-icon-svg {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.logo-spin {
    animation: spinTire 4s linear infinite;
}

.logo-spin:hover {
    animation-duration: 0.8s;
}

@keyframes spinTire {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.lang-en .logo-spin {
    direction: ltr;
}

/* logo-balanced — applied to every tire/wheel image. The current
   source is the symmetric SVG (logo-wheel.svg) which is perfectly
   balanced by construction, so no filter tweaks are needed. We
   keep the class as a hook in case future updates need to overlay
   a subtle glow without touching the source artwork. */
.logo-balanced {
    filter:
        drop-shadow(0 0 12px rgba(212, 175, 55, 0.55))
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.logo-arabic {
    font-size: 34px;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 0;
    line-height: 1.1;
}

body.lang-en .nav-nexora__logo { flex-direction: row; align-items: center; }
body.lang-en .logo-arabic { font-family: 'Outfit', sans-serif; }

.nav-nexora__links {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
    flex: 1;
}

.nav-nexora__links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-nexora__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-nexora__links a:hover { color: #fff; }
.nav-nexora__links a:hover::after { width: 100%; }

.nav-nexora__cta {
    padding: 10px 28px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.nav-nexora__cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}



/* NEXORA-style Header (replaces old .header) */
.header { display: none; } /* old header hidden, using nav-nexora instead */

/* ============ HEADER (old, deleted — using nav-nexora) ============ */
.header { display: none; }

.lang-toggle {
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--gold);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
}

.lang-toggle:hover { background: rgba(212,168,83,0.18); transform: scale(1.05); }

.user-info { display: flex; align-items: center; gap: 10px; }
.user-info .text-danger { margin-inline-start: 18px; font-size: 15px !important; }
.user-name-admin {
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2px 14px;
    border-radius: 999px;
    font-size: 14px !important;
}


.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold), #ff8800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.25);
}

/* ============ MODERN GLASS MODAL ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.7);
    -webkit-backdrop-filter: blur(15px) saturate(1.8);
    backdrop-filter: blur(15px) saturate(1.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: rgba(13, 20, 35, 0.5);
    -webkit-backdrop-filter: blur(25px) saturate(1.8);
    backdrop-filter: blur(25px) saturate(1.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
    width: 92%;
    max-width: 440px;
    max-height: 86vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: var(--danger); transform: rotate(90deg); }

.cert-modal {
    display: flex;
    flex-direction: column;
    width: 94%;
    max-width: 900px;
    max-height: 95vh;
    padding: 18px;
}
.cert-modal .modal-title { font-size: 20px; margin-bottom: 14px; }
.cert-iframe {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 72vh;
    border: 0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.cert-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    flex: 0 0 auto;
}

.modal-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 28px;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-message {
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.auth-message.success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.auth-message.error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* AUDIT DETAIL MODAL — wide, full detail view */
.audit-modal { max-width: 760px; }
.audit-modal .modal-title { font-size: 20px; margin-bottom: 20px; }
.audit-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 20px; }
.audit-detail-row { display: flex; flex-direction: column; gap: 2px; }
.audit-detail-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.audit-detail-value { font-size: 14px; color: #fff; word-break: break-all; }
.audit-detail-full { grid-column: 1 / -1; }
.audit-modal-actions { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--glass-border); padding-top: 16px; margin-top: 4px; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-secondary);
    text-align: right;
}

body.lang-en .form-group label {
    text-align: left;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 15.5px;
    accent-color: #d4af37;
     color: #fff;
     transition: var(--transition);
     font-family: var(--font);
     -webkit-appearance: none;
     appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23faf3e0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    padding-left: 40px;
}

body.lang-en .form-group select {
    background-position: calc(100% - 16px) center;
    padding-right: 40px;
    padding-left: 18px;
}

.form-group select option {
    background: #0d1423;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(212, 168, 83, 0.06);
    box-shadow: 0 0 15px rgba(212,168,83,0.15);
}

.form-group input::placeholder { color: #475569; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.password-wrapper {
    position: relative;
}
.password-wrapper input {
    padding-right: 44px !important;
}
.password-toggle {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.password-toggle:hover { opacity: 1; color: var(--gold); }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13.5px;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}
.remember-me input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.remember-me input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}
.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.forgot-pass {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s;
}
.forgot-pass:hover { opacity: 0.8; text-decoration: underline; }

.form-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14.5px;
}

.form-switch a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 800;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #af8231);
    color: #050811;
    box-shadow: 0 4px 20px rgba(212,168,83,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(212,168,83,0.55);
}

.btn-accent {
    background: linear-gradient(135deg, var(--gold), #be8d2c);
    color: #050811;
    box-shadow: 0 4px 20px rgba(212,168,83,0.35);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(212,168,83,0.55);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #be8d2c, #a67c27);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(212,168,83,0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-secondary:disabled { background: rgba(255,255,255,0.015); color: var(--text-secondary); border-color: rgba(255,255,255,0.06); cursor: not-allowed; transform: none; opacity: 0.4; }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 18px; border-radius: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239,68,68,0.35);
    border: 1px solid rgba(239,68,68,0.5);
}
.btn-danger:hover { background: linear-gradient(135deg, #991b1b, #6b1717); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(239,68,68,0.55); }
.btn-danger:disabled { background: linear-gradient(135deg, #5b5b5b, #3a3a3a); box-shadow: none; cursor: not-allowed; transform: none; }

.role-picker { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--glass-border); border-radius: 20px; padding: 8px 16px; font-size: 13px; cursor: pointer; outline: none; }
.role-picker:focus { border-color: var(--gold); }

/* Make platform action buttons identical in size/shape */
.platforms-action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.platforms-action-bar button {
    flex: 1 1 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}
.platforms-action-bar button.btn-accent {
    background: linear-gradient(135deg, var(--gold), #be8d2c);
    color: #050811;
    border: none;
    box-shadow: 0 4px 20px rgba(212,168,83,0.35);
}
.platforms-action-bar button.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(212,168,83,0.55);
}
.platforms-action-bar button.btn-secondary {
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border: 1px solid var(--glass-border);
}
.platforms-action-bar button.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.platforms-action-bar button.btn-danger {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.platforms-action-bar button.btn-danger:hover {
    background: linear-gradient(135deg, #991b1b, #6b1717);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(239,68,68,0.55);
}



.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; transform: translateY(-2px); }
.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { background: #d97706; transform: translateY(-2px); }

/* ============ MODELS SECTION ============ */
.models {
    padding: 120px 0;
    background: #000;
}

.models__slider {
    overflow: visible;
    padding: 0 40px;
}

.models__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.model-card {
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.model-card__img {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16/11;
    /* Fallback for browsers without aspect-ratio (e.g., Safari < 15) */
    height: auto;
    min-height: 180px;
}

.model-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s;
    filter: brightness(0.6) saturate(1.1);
}

.model-card:hover .model-card__img img {
    transform: scale(1.05);
    filter: brightness(0.8) saturate(1.2);
}

.model-card__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.model-card__info {
    padding: 20px 8px;
}

.model-card__info h3 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 6px;
    font-family: 'Outfit', 'Montserrat', sans-serif;
}

.model-card__info p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============ PHILOSOPHY / ENGINEERING SECTION ============ */
.philosophy-card h2 {
    font-size: 46px;
    font-weight: 900;
    color: #d4af37;
    line-height: 1.25;
    margin-bottom: 20px;
    font-family: var(--font);
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

.philosophy-card p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

.philosophy__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 28px;
}

.philosophy__keywords span {
    font-size: 14px;
    color: #f5d37c;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 8px 22px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.08);
    transition: all 0.3s;
}

.philosophy__keywords span:hover {
    background: rgba(212, 175, 55, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.philosophy__content p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto;
}

/* ============ SPECIFICATIONS SECTION ============ */
.specs {
    padding: 120px 0;
    background: #0a0a0a;
}

.specs.dark-text { color: #fff; }

.specs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.spec-card {
    text-align: center;
    padding: 36px 20px;
}

.spec-card__value {
    font-size: 48px;
    font-weight: 200;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'Outfit', 'Montserrat', sans-serif;
}

.spec-card__value .unit {
    font-size: 18px;
    color: var(--accent);
    font-weight: 300;
}

.spec-card__label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 16px;
}

.spec-card__bar {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 0 auto;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-card__bar.animated {
    width: 60px;
}

.spec-card:nth-child(2) .spec-card__bar.animated { width: 80px; }
.spec-card:nth-child(3) .spec-card__bar.animated { width: 50px; }
.spec-card:nth-child(4) .spec-card__bar.animated { width: 70px; }

/* ============ CRAFT / DESIGN SECTION ============ */
.craft {
    padding: 100px 0;
    background: #000;
}

.craft__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.craft__item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    /* Fallback for browsers without aspect-ratio (e.g., Safari < 15) */
    height: auto;
    min-height: 160px;
}

.craft__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(1.1);
    transition: transform 0.8s, filter 0.8s;
}

.craft__item:hover img {
    transform: scale(1.05);
    filter: brightness(0.7) saturate(1.2);
}

.craft__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.craft__item:hover .craft__overlay {
    opacity: 1;
}

.craft__overlay span {
    font-size: 14px;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ============ GALLERY SECTION ============ */
.gallery {
    padding: 100px 0;
    background: #050505;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.gallery__img {
    overflow: hidden;
    border-radius: 12px;
}

.gallery__img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.5) saturate(1.05);
    transition: transform 0.8s, filter 0.8s;
}

.gallery__img:hover img {
    transform: scale(1.03);
    filter: brightness(0.65);
}

/* ============ CTA SECTION ============ */
.cta {
    padding: 140px 0;
    background: #0a0a0a;
    text-align: center;
}

.cta__inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta__inner h2 {
    font-size: 48px;
    font-weight: 200;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 36px;
    font-family: 'Outfit', 'Montserrat', sans-serif;
}

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn--primary {
    padding: 14px 36px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: var(--font);
}

.btn--primary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn--ghost {
    padding: 14px 36px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-family: var(--font);
}

.btn--ghost:hover {
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ============ PREMIUM FOOTER ============ */
.prefooter {
    padding: 50px 0 36px;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-premium {
    padding: 30px 0 30px;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-premium__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__region {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 36px;
}

.region-label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.region-select {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.region-select .globe-icon { width: 16px; height: 16px; }

.region-change {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
}

.footer__columns {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col h4 {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer__col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer__col a:hover { color: #fff; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer__socials {
    display: flex;
    gap: 16px;
}

.footer__socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    transition: all 0.3s;
}

.footer__socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(234, 88, 12, 0.1);
}

.footer__socials a svg {
    width: 16px;
    height: 16px;
}

.footer__apps {
    display: flex;
    gap: 12px;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: #fff;
}

.app-badge:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.03);
}

.app-badge .small {
    font-size: 9px;
    opacity: 0.5;
    display: block;
}

.app-badge .big {
    font-size: 13px;
    font-weight: 500;
    display: block;
}

/* ============ GOLD ENHANCEMENTS ============ */
.text-gold { color: var(--gold); text-shadow: 0 0 20px rgba(212,168,83,0.3); }

.glow-gold {
    box-shadow: 0 0 30px rgba(212,168,83,0.15), 0 0 60px rgba(212,168,83,0.05);
}

/* ============ MICRO-INTERACTIONS ============ */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212,168,83,0.2); }
    50% { box-shadow: 0 0 40px rgba(212,168,83,0.4), 0 0 60px rgba(212,168,83,0.15); }
}

.pulse-gold {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

.pulse-gold:hover {
    animation: none;
}

/* Image zoom on hover */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s;
}

.hover-zoom:hover img {
    transform: scale(1.08);
    filter: brightness(0.7) saturate(1.2);
}

/* Border shimmer */
@keyframes shimmerBorder {
    0% { border-color: rgba(212,168,83,0.15); }
    50% { border-color: rgba(212,168,83,0.5); }
    100% { border-color: rgba(212,168,83,0.15); }
}

.shimmer-border {
    animation: shimmerBorder 3s ease-in-out infinite;
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(212,168,83,0.08);
}

/* ============ HERO BADGE (for inline hero content) ============ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(212,168,83,0.12);
    border: 1px solid rgba(212,168,83,0.35);
    border-radius: 30px;
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(212,168,83,0.15);
}

.hero-title {
    font-size: 58px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.25;
    color: #d4af37;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

.hero-subtitle {
    font-size: clamp(13px, 1.4vw, 18px);
    color: var(--text-secondary);
    margin: 0 auto 55px;
    position: relative;
    z-index: 1;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 1000px;
    text-align: center;
}

.hero-stat {
    width: 100%;
    min-width: 0;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.hero-stat-value {
    font-size: 34px;
    font-weight: 900;
    color: var(--gold);
    direction: ltr;
    line-height: 1.1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.4;
}

/* ============ BUTTONS (NEXORA style overrides) ============ */
.btn { cursor: pointer; }

/* ============ WIZARD ============ */
.wizard-section { padding: 40px 0 80px; position: relative; z-index: 10; }

.wizard-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    max-width: 840px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(35px) saturate(1.8);
    backdrop-filter: blur(35px) saturate(1.8);
    text-align: center;
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #ff8800, var(--gold-light));
}

.wizard-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wizard-title .icon {
    width: 40px;
    height: 40px;
    background: rgba(212,168,83,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gold);
    box-shadow: 0 0 15px rgba(212,168,83,0.15);
}

/* ============ CONDITION OPTIONS ============ */
.condition-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.condition-option {
    display: flex;
    height: 100%;
}

.condition-option input { display: none; }

.condition-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-height: 240px;
    padding: 20px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
    border: 1.5px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.condition-card:hover {
    border-color: rgba(212,168,83,0.5);
    background: linear-gradient(180deg, rgba(212,168,83,0.05) 0%, rgba(212,168,83,0.02) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.1);
}

.condition-option input:checked + .condition-card {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(212,168,83,0.15) 0%, rgba(212,168,83,0.05) 100%);
    box-shadow: 0 0 24px rgba(212,168,83,0.3);
    transform: scale(1.02);
}

.condition-option.condition-disabled .condition-card {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.005);
    border-color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.condition-icon {
    color: var(--gold);
    margin-bottom: 8px;
    line-height: 1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

.condition-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.3px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-note {
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 16px;
    font-weight: 400;
    text-align: right;
    padding: 0 4px;
}

body.lang-en .condition-note {
    text-align: left;
}
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
}

/* ============ LOADING ============ */
.loading-section { padding: 80px 0; }

.loading-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: var(--radius);
    padding: 64px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.loading-wheel-container {
    margin: 0 auto 28px;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-wheel {
    width: 96px;
    height: 96px;
    animation: spinWheel 0.25s linear infinite;
}

@keyframes spinWheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--gold);
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ============ RESULTS ============ */
.results-section { padding: 20px 0 80px; }

.results-header { text-align: center; margin-bottom: 40px; }

.results-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--gold);
}

.results-car-info {
    font-size: 17px;
    color: var(--text-secondary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto 32px;
    max-width: 960px;
}

.result-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(25px) saturate(1.8);
    backdrop-filter: blur(25px) saturate(1.8);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212,168,83,0.1);
    border-color: rgba(212,168,83,0.3);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.result-fair::before { background: linear-gradient(90deg, var(--gold), #ffaa00); }
.result-low::before { background: linear-gradient(90deg, var(--warning), #ffcc00); }
.result-high::before { background: linear-gradient(90deg, var(--success), #00ffaa); }

.result-badge {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-price {
    font-size: 20px;
    font-weight: 700;
    direction: ltr;
    white-space: nowrap;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}

.result-fair .result-price { color: var(--gold); text-shadow: 0 0 25px rgba(212,168,83,0.25); }
.result-low .result-price { color: #ef4444; text-shadow: 0 0 25px rgba(239,68,68,0.25); }
.result-high .result-price { color: var(--success); text-shadow: 0 0 25px rgba(16,185,129,0.25); }

.result-currency {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.result-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.market-info {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.market-line {
    width: 100%;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}
.gold-word { color: var(--gold); font-weight: 800; }
.results-market-box {
    background: var(--dark-card);
    border: 1px solid rgba(212,168,83,0.25);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 0 auto 32px;
    max-width: 960px;
    text-align: right;
    direction: rtl;
}
.results-market-row {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}
.results-market-row + .results-market-row {
    margin-top: 10px;
}

.market-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-label { font-weight: 700; font-size: 14.5px; }
.market-value { font-weight: 900; color: var(--gold); direction: ltr; font-size: 17px; }

.market-badge {
    background: var(--warning-bg);
    color: var(--warning);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    border: 1px solid rgba(245,158,11,0.2);
}

/* ============ VALUATIONS ============ */
.valuations-list { padding: 20px 0 60px; }

.valuation-item {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    transition: var(--transition);
}

.valuation-item:hover { border-color: rgba(212,168,83,0.45); transform: translateY(-2px); }

.valuation-row { display: flex; flex-direction: row; align-items: center; gap: 16px; }
.valuation-row .btn-delete-sm { flex-shrink: 0; margin-inline-start: 4px; }
.valuation-info { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.valuation-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.valuation-header h3 { font-size: 18px; font-weight: 800; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.valuation-sub { font-size: 14px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-delete-sm {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    border: 1px solid rgba(239,68,68,0.5);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1;
}
.btn-delete-sm:hover { background: linear-gradient(135deg, #991b1b, #6b1717); transform: scale(1.1); box-shadow: 0 4px 16px rgba(239,68,68,0.5); }

.valuation-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    direction: ltr;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.valuation-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
    flex-shrink: 0;
}
.price-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}
.price-col.price-fair { background: rgba(212,168,83,0.08); }
.price-col.price-low { background: rgba(239,68,68,0.08); }
.price-col.price-high { background: rgba(34,197,94,0.08); }
.price-label {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    color: var(--text-secondary);
}
.price-value {
    font-weight: 800;
    font-size: 20px;
    white-space: nowrap;
    direction: ltr;
}
.price-fair .price-value { color: var(--gold); }
.price-low .price-value { color: #ef4444; }
.price-high .price-value { color: #22c55e; }

.mini-sep { font-size: 0.62em; opacity: 1; }
.mini-cur { font-size: 0.78em; color: inherit; }

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

.eval-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.eval-page-btn {
    min-width: 34px; height: 34px; padding: 0 10px;
    border: 1px solid var(--glass-border); border-radius: 6px;
    background: var(--dark-card); color: var(--text); font-weight: 700; font-size: 13px;
    cursor: pointer; font-family: inherit; transition: var(--transition);
}
.eval-page-btn:hover:not(:disabled) { border-color: rgba(212,168,83,0.5); }
.eval-page-btn.active { background: var(--gold); color: #111; border-color: var(--gold); }
.eval-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-delete {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}

.btn-delete:hover { background: linear-gradient(135deg, #991b1b, #6b1717); transform: scale(1.05); box-shadow: 0 6px 28px rgba(239,68,68,0.55); }

/* Bulk-delete-all button on opposite side above the list */
.btn-delete-all {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.btn-delete-all svg, .btn-delete svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.btn-delete-all:hover { background: linear-gradient(135deg, #991b1b, #6b1717); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(239,68,68,0.55); }

/* ============ ADMIN ============ */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* RTL: sidebar moves to the right (column order reversed) */
body.lang-ar .admin-layout {
    grid-template-columns: 1fr 260px;
    direction: rtl;
}

body.lang-en .admin-layout {
    grid-template-columns: 260px 1fr;
    direction: ltr;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.admin-content {
    min-width: 0;
}

/* English admin panel: Montserrat renders lighter than the Arabic font —
   keep the admin text bold so it stays legible and consistent. */
body.lang-en .admin-content { font-weight: 700; }
body.lang-en .text-muted,
body.lang-en .setting-desc,
body.lang-en .platform-count { font-weight: 500; }

/* Mobile: stack vertically (sidebar on top) */
@media (max-width: 900px) {
    .admin-layout,
    body.lang-ar .admin-layout,
    body.lang-en .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
    }
    .admin-sidebar .admin-tab {
        flex: 1 1 auto;
        text-align: center;
    }
}

.admin-tab {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: start;
    font-family: var(--font);
}

.admin-tab.active {
    background: var(--gold);
    color: #050811;
    box-shadow: 0 4px 15px rgba(212,168,83,0.3);
}

.admin-tab:hover:not(.active) { background: rgba(212,168,83,0.12); color: #fff; }

.btn-toggle-auto {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-toggle-auto.start {
    background: #22c55e;
    color: #fff;
}
.btn-toggle-auto.start:hover { background: #16a34a; transform: translateY(-2px); }
.btn-toggle-auto.stop {
    background: #ef4444;
    color: #fff;
}
.btn-toggle-auto.stop:hover { background: #dc2626; transform: translateY(-2px); }

.admin-panel {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.admin-section { margin-top: 28px; }

.admin-section h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--gold);
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover { border-color: rgba(212,168,83,0.4); }

.stat-icon { font-size: 30px; margin-bottom: 10px; }
.stat-value { font-size: 30px; font-weight: 900; color: var(--gold); direction: ltr; font-family: 'Montserrat', sans-serif; }
.stat-label { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }

.audit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.filter-select {
    padding: 8px 12px;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 14px;
    min-width: 240px;
}

/* ADMIN TABLE */
.table-responsive { overflow-x: auto; }
body.lang-ar .table-responsive { direction: ltr; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th, .admin-table td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.admin-table td.code { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.admin-table td.details { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: normal; }
.admin-table td.actions { white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.admin-table td.date { white-space: nowrap; }

.admin-table th {
    background: rgba(255,255,255,0.02);
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 12px;
}

.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.04); }

.role-select { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--glass-border); border-radius: 6px; padding: 6px 8px; font-size: 11.5px; font-weight: 800; cursor: pointer; outline: none; min-width: 100px; color-scheme: light; }
.role-select:focus { border-color: var(--gold); }
.role-select:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-role-save { background: var(--gold); color: #000; border: none; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-role-save:hover { opacity: 0.85; }

.users-search-container { margin-bottom: 12px; position: relative; }
.users-search-input { width: 100%; padding: 10px 14px; padding-inline-end: 34px; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text); font-size: 14px; outline: none; box-sizing: border-box; }
.users-search-input:focus { border-color: var(--gold); }
.users-search-container .search-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
}
.users-search-container .search-clear:hover { color: #ef4444; background: rgba(239, 68, 68, 0.12); }

.user-modal { max-width: 600px; }
.user-detail-grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: rgba(255,255,255,0.02); border-radius: 8px; }
.detail-label { color: var(--text-secondary); font-size: 13px; }
.detail-value { color: var(--text); font-size: 14px; font-weight: 600; }
.user-modal-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--glass-border); }
.user-modal-buttons { display: flex; gap: 8px; width: 100%; justify-content: center; }
.user-modal-buttons .btn { background: var(--gold); color: #000; border: none; min-width: 120px; }
.user-modal-buttons .btn:hover { opacity: 0.85; }
.detail-value .btn { background: var(--gold); color: #000; border: none; white-space: nowrap; }
.detail-value .btn:hover { opacity: 0.85; }
.pw-input { background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-radius: 8px; padding: 8px 12px; color: var(--text); font-size: 13px; outline: none; }
.pw-input:focus { border-color: var(--gold); }
.modal-role-select { min-width: 140px; }

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
}

.status-active { background: var(--success-bg); color: var(--success); }
.status-banned { background: var(--danger-bg); color: var(--danger); }
.status-inactive { background: var(--warning-bg); color: var(--warning); }
.status-admin { background: rgba(212,168,83,0.18); color: var(--gold); }
.status-monitor { background: rgba(96,165,250,0.18); color: #60a5fa; }
.status-user { background: rgba(148,163,184,0.15); color: var(--text-secondary); }
.risk-normal { background: rgba(34,197,94,0.15); color: #22c55e; }
.risk-suspicious { background: rgba(234,179,8,0.15); color: #eab308; }
.risk-dangerous { background: rgba(249,115,22,0.18); color: #f97316; }
.risk-critical { background: rgba(239,68,68,0.20); color: #ef4444; font-weight: 700; }
.status-success { background: var(--success-bg); color: var(--success); }
.status-failed { background: var(--danger-bg); color: var(--danger); }
.status-fallback { background: var(--warning-bg); color: var(--warning); }

/* CHART */
.chart-container { padding: 18px 0; }

.chart-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.chart-label {
    min-width: 180px;
    font-weight: 700;
    font-size: 13.5px;
}

.chart-bar-track {
    flex: 1;
    height: 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #ffaa00);
    border-radius: 15px;
    min-width: 6px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-rank {
    flex: 0 0 auto;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: #050811;
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.chart-count {
    flex: 0 0 auto;
    min-width: 64px;
    text-align: center;
    font-weight: 900;
    font-size: 19px;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
}

/* SETTINGS */
.settings-container { display: grid; gap: 28px; }

.settings-group h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.settings-save-msg {
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
    animation: fadeInUp 0.3s ease;
}

.settings-save-msg.success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
}

.settings-save-msg.error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.02);
    gap: 10px;
}

.setting-label { font-weight: 600; font-size: 13.5px; min-width: 0; flex: 1; white-space: normal; }

.setting-input-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.setting-input {
    width: 80px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 13.5px;
    text-align: center;
    direction: ltr;
    color: #fff;
    font-family: var(--font);
}

.setting-input:focus { outline: none; border-color: var(--gold); }

.setting-input-wide { width: 180px; }

/* FOOTER */
.footer {
    background: rgba(5, 8, 17, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 28px 0;
    margin-top: 50px;
    color: var(--text-secondary);
    font-size: 13.5px;
}

.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-secondary);
}

.empty-state-icon { font-size: 52px; margin-bottom: 18px; }
.empty-state-text { font-size: 18px; font-weight: 700; }

/* ============ NAV HAMBURGER TOGGLE ============ */
.nav-nexora__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.nav-nexora__toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-nexora__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-nexora__toggle.active span:nth-child(2) { opacity: 0; }
.nav-nexora__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    * { cursor: auto !important; }
    .custom-cursor { display: none !important; }

    /* Nav mobile */
    .nav-nexora { padding: 16px 20px; }
    .nav-nexora.scrolled { padding: 10px 20px; }
    .nav-nexora__toggle { display: flex; order: 3; margin-left: auto; }
    .nav-nexora__links {
        order: 4;
        position: fixed;
        top: 0; right: 0; left: 0; bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        background: rgba(0,0,0,0.95);
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
        z-index: 999;
    }
    .nav-nexora__links.open { opacity: 1; pointer-events: all; }
    .nav-nexora__links { align-items: flex-end; padding-left: 48px; }
    body.lang-en .nav-nexora__links { align-items: flex-end; padding-left: 0; padding-right: 48px; }
    .nav-nexora__links a { font-size: 20px; color: rgba(255,255,255,0.7); }
    .nav-nexora__links a::after { display: none; }
    .nav-nexora__links .user-info { flex-direction: column; gap: 12px; }
    .nav-nexora__links .user-info span { font-size: 18px !important; }
    /* Language toggle stays OUTSIDE the menu, always visible in the header bar */
    .lang-toggle {
        order: 2;
        position: relative;
        z-index: 1002;
        margin-left: 12px;
        font-size: 16px;
        padding: 8px 16px;
    }
    /* Shrink the header pieces on phones so the logo + actions cluster fits */
    .logo-arabic { font-size: 28px; }
    .nav-nexora__actions { gap: 4px; }
    .nav-nexora__actions #pwa-install-btn { padding: 6px 10px; font-size: 10px; }


    /* Hero */
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 14px; white-space: normal; max-width: 90%; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-stat { min-width: 0; }
    .hero-stat-value { font-size: 26px; }
    .hero-badge { font-size: 12px; padding: 8px 16px; }

    /* Section headers */
    .section-header h2 { font-size: 32px; }
    .section-header p { font-size: 15px; }
    #valuation .section-header h2 { font-size: 32px; }
    #valuation .section-header p { white-space: normal; }

    /* Philosophy */
    .philosophy-card { padding: 32px 24px; }
    .philosophy-card h2 { font-size: 34px; }

    /* Craft */
    .craft__grid { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
    .craft { padding: 60px 0; }

    /* Gallery */
    .gallery__grid { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
    .gallery__img img { height: 260px; }
    .gallery { padding: 60px 0; }

    /* CTA */
    .cta { padding: 80px 0; }
    .cta__inner h2 { font-size: 32px; }
    .cta__actions { flex-direction: column; align-items: center; }

    /* Footer */
    .footer-premium__inner { padding: 0 20px; }
    .footer__columns { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer__socials { justify-content: center; }
    .footer-premium { padding: 40px 0 24px; }

    /* Wizard */
    .wizard-card { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .condition-options { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: 1fr; }

    /* Old nav hidden — NEXORA nav used instead */
    .nav { display: none !important; }
    .mobile-toggle { display: none !important; }

    /* Admin */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { flex-direction: column; gap: 14px; }
    .market-info { flex-direction: column; align-items: stretch; }
    .settings-grid { grid-template-columns: 1fr; }
    .setting-item { flex-wrap: wrap; gap: 6px; }
    .setting-label { min-width: 100%; margin-bottom: 2px; white-space: normal; }
    .admin-panel { padding: 20px; }
    .admin-tabs { gap: 4px; }
    .admin-tab { padding: 10px 14px; font-size: 13px; }

    /* Loading */
    .loading-card { padding: 40px 24px; margin: 0 16px; }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .hero-stat { min-width: 0; max-width: 100%; padding: 14px 18px; min-height: 95px; }
    .hero-stat-value { font-size: 28px; }
    .condition-options { grid-template-columns: 1fr 1fr; }
    .condition-card { padding: 16px 8px; }
    .condition-icon { font-size: 24px; }
    .wizard-card { padding: 18px 14px; }
    .result-card { padding: 24px 16px; }
    .result-price { font-size: 18px; }
    .results-title { font-size: 24px; }
    .philosophy-card h2 { font-size: 28px; }
    .section-header h2 { font-size: 26px; }
    .cta__inner h2 { font-size: 26px; }
    .loading-text { font-size: 18px; }
    .admin-tab { padding: 8px 12px; font-size: 12px; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-stats { margin-top: 43vh; }
    .hero-title { font-size: 48px; }
    #valuation .section-header h2 { font-size: 48px; }
    #valuation .section-header p { white-space: normal; }
    .philosophy-card { padding: 32px 24px; }
    .philosophy-card h2 { font-size: 28px; }
    .craft__grid { gap: 14px; padding: 0 32px; }
    .gallery__grid { gap: 14px; padding: 0 32px; }
    .footer-premium__inner { padding: 0 32px; }
    .nav-nexora { padding: 16px 24px; }
    .nav-nexora.scrolled { padding: 10px 24px; }
    .nav-nexora__toggle { display: flex; order: 3; margin-left: auto; }
    .nav-nexora__links {
        order: 4;
        position: fixed;
        top: 0; right: 0; left: 0; bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        background: rgba(0,0,0,0.95);
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
        z-index: 999;
    }
    .nav-nexora__links.open { opacity: 1; pointer-events: all; }
    .nav-nexora__links { align-items: flex-end; padding-left: 48px; }
    body.lang-en .nav-nexora__links { align-items: flex-end; padding-left: 0; padding-right: 48px; }
    .nav-nexora__links a { font-size: 20px; color: rgba(255,255,255,0.7); }
    .nav-nexora__links a::after { display: none; }
    .nav-nexora__links .user-info { flex-direction: column; gap: 12px; }
    .nav-nexora__links .user-info span { font-size: 18px !important; }
    .lang-toggle {
        order: 2;
        position: relative;
        z-index: 1002;
        margin-left: 12px;
        font-size: 16px;
        padding: 8px 16px;
    }
    .wizard-card { padding: 32px; }
}

/* Platform toggles */
.platform-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
}
.platform-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.platform-name {
    font-weight: 700;
    color: var(--text);
    font-size: 16.5px;
}
.platform-key {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-family: monospace;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    cursor: pointer;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #334155;
    border-radius: 30px;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toggle-slider:before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--gold);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}
.setting-suffix {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 700;
}

/* ============ NEW CAR PRICES ============ */
.newcar-result {
    margin-top: 24px;
}

.newcar-result-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.newcar-result-header {
    font-size: 16px;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.newcar-result-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.newcar-result-img {
    width: 280px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    padding: 8px;
}

.newcar-result-make {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.newcar-result-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    direction: ltr;
    white-space: nowrap;
    margin-bottom: 4px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.newcar-result-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.newcar-result-meta strong {
    color: var(--text);
}

.newcar-result-logo {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    opacity: 0.7;
    margin: 10px auto;
}

.newcar-noresult {
    padding: 48px 24px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Accessibility: respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .logo-spin { animation: none !important; }
    .loading-wheel { animation: none !important; }
}

/* ============ UTILITY CLASSES (replace inline styles) ============ */
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mt-12 { margin-top: 12px; }
.p-14 { padding: 14px; }
.p-16 { padding: 16px; }
.w-100 { width: 100%; }
.font-11 { font-size: 11px; }
.font-12 { font-size: 12px; }
.font-13 { font-size: 13px; }
.font-14 { font-size: 14px; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.text-muted { color: var(--text-secondary); }
.text-white { color: #fff; }
.text-gold { color: var(--gold); }
.text-danger { color: var(--danger); }
.text-decoration-none { text-decoration: none; }
.cursor-pointer { cursor: pointer; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.grid-auto-fill { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.grid-auto-280 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.status-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; margin-bottom: 18px; }
.status-card-item { display: flex; flex-direction: column; gap: 4px; }
.checkbox-20 { width: 20px; height: 20px; }
.avatar-38 { width: 38px; height: 38px; }
.logo-38 { width: 56px; height: 56px; }
.relative { position: relative; }
.z-3 { z-index: 3; }
.overflow-hidden { overflow: hidden; }

/* ============ VENDOR PREFIX FALLBACKS FOR EXTERNAL LIBRARIES ============ */
/* These overrides fix linter warnings from Chart.js, Swiper, and other CDN libraries */

/* text-wrap fallback for Safari < 17.4 */
h1, h2, h3, h4, h5, h6, p {
    text-wrap: balance;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* scrollbar fallbacks for Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* field-sizing fallback */
input, select, textarea {
    field-sizing: fixed;
}

/* appearance fallback for all elements */
button, [role="button"] {
    font-weight: 700;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* playsinline video fix */
video {
    object-fit: cover;
}

/* -webkit-text-size-adjust universal fallback */
html, body, div, span, p, a, li, td, th, h1, h2, h3, h4, h5, h6 {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ============ PLATFORMS GRID ============ */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.platform-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: all 0.3s ease;
}
.platform-card.active {
    border-color: rgba(34,197,94,0.3);
    background: rgba(34,197,94,0.04);
    box-shadow: none;
}
.platform-card.inactive {
    border-color: rgba(60,60,60,0.15);
    background: rgba(0,0,0,0.2);
    opacity: 0.55;
}
.platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.platform-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.platform-name {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
}
.platform-count {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}
.platform-card.active .platform-count {
    color: #22c55e;
}
.platform-led {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #111;
    box-shadow: none;
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-inline-end: 6px;
    flex-shrink: 0;
}
.platform-card.active .platform-led {
    background: radial-gradient(circle at 35% 35%, #4ade80, #166534);
    box-shadow: 0 0 10px #22c55e, 0 0 25px rgba(34,197,94,0.7), 0 0 50px rgba(34,197,94,0.3);
}
.platform-card.inactive .platform-led {
    background: #0a0a0a;
    box-shadow: none;
}
.platform-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    min-width: 160px;
}
.btn-platform-toggle,
.btn-platform-clear {
    padding: 10px 16px;
    border-radius: var(--radius-xs);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
    width: 100%;
    text-align: center;
}
.btn-platform-toggle {
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
}
.btn-platform-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}
.platform-card.active .btn-platform-toggle {
    border-color: rgba(34,197,94,0.4);
    background: rgba(34,197,94,0.12);
    color: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.2);
}
.platform-card.active .btn-platform-toggle:hover {
    background: rgba(34,197,94,0.2);
}
.platform-card.inactive .btn-platform-toggle {
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.08);
    color: #ef4444;
}
.platform-card.inactive .btn-platform-toggle:hover {
    background: rgba(239,68,68,0.15);
}
.btn-platform-clear {
    border: 1px solid rgba(239,68,68,0.5);
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.btn-platform-clear:hover {
    background: linear-gradient(135deg, #991b1b, #6b1717);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(239,68,68,0.55);
}
.btn-platform-clear:disabled,
.btn-platform-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.toggle-all-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.08);
    color: #ef4444;
}
.toggle-all-btn:hover {
    background: rgba(239,68,68,0.15);
    transform: translateY(-1px);
}
.toggle-all-btn.on {
    border-color: rgba(34,197,94,0.4);
    background: rgba(34,197,94,0.12);
    color: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.2);
}
.toggle-all-btn.on:hover {
    background: rgba(34,197,94,0.2);
}
.toggle-all-btn .platform-led {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: none;
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-inline-end: 4px;
    flex-shrink: 0;
}
.toggle-all-btn.on .platform-led {
    background: radial-gradient(circle at 35% 35%, #4ade80, #166534);
    box-shadow: 0 0 10px #22c55e, 0 0 25px rgba(34,197,94,0.7), 0 0 50px rgba(34,197,94,0.3);
}
.platform-clear-msg {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}
.platform-clear-msg.error {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.3);
    color: #ef4444;
}
.setting-save-msg {
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(60px); }
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(239,68,68,0.3);
    border-radius: 26px;
    transition: 0.3s;
}
.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: rgba(34,197,94,0.5);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Logout overlay */
.logout-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.logout-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 48px 56px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.logout-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spinTire 0.8s linear infinite;
    margin: 0 auto 20px;
}
#logoutText {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Loader inline (spinner for buttons) */
.loader-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spinTire 0.8s linear infinite;
    vertical-align: middle;
}

/* --- Car Prices Table: fit all columns without horizontal scroll --- */
.admin-table.car-prices-table { font-size: 11px; }
.admin-table.car-prices-table th,
.admin-table.car-prices-table td { padding: 6px 6px; }
.admin-table.car-prices-table .btn { font-size: 10px; padding: 4px 6px; min-width: 50px; }
.admin-table.car-prices-table td.actions { white-space: nowrap; gap: 3px; }
.admin-table.car-prices-table th { font-size: 10px; }

/* Car Price Edit Modal */
#cpEditModal .modal { max-width: 560px; }
#cpEditModal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#cpEditModal .form-group { display: flex; flex-direction: column; gap: 4px; }
#cpEditModal .form-group label { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
#cpEditModal .form-group select,
#cpEditModal .form-group input { width: 100%; padding: 8px 10px; background-color: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text); font-size: 13px; outline: none; }
#cpEditModal .form-group select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23faf3e0'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 16px center; padding-left: 34px; }
body.lang-en #cpEditModal .form-group select { background-position: calc(100% - 16px) center; padding-right: 34px; padding-left: 10px; }
#cpEditModal .form-group select:focus,
#cpEditModal .form-group input:focus { border-color: var(--gold); }

/* Gap Report modal (Alternative Prices) */
#cpGapModal .modal-content { max-width: 760px; }
.modal-content {
    max-height: 86vh;
    overflow-y: auto;
}
#cpHistoryModal .modal-content { max-width: 760px; }
.gap-summary { display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.gap-stat { flex: 1; min-width: 120px; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); border-radius: 10px; padding: 14px; text-align: center; }
.gap-stat span { display: block; font-size: 26px; font-weight: 800; color: var(--gold); }
.gap-stat label { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.gap-makes { font-size: 13px; color: #f59e0b; margin-bottom: 12px; line-height: 1.6; }
.gap-ok { font-size: 14px; color: #22c55e; text-align: center; padding: 16px; }
.gap-list-wrap { max-height: 360px; overflow-y: auto; border: 1px solid var(--glass-border); border-radius: 10px; }
.gap-list-wrap .admin-table td:first-child { white-space: nowrap; color: var(--gold); font-weight: 700; }

/* ============ SKELETON LOADING SCREENS ============ */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease infinite;
    border-radius: 8px;
}
.skeleton-card {
    height: 140px;
    margin-bottom: 12px;
}
.skeleton-line { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w30 { width: 30%; }
.skeleton-circle { width: 48px; height: 48px; border-radius: 50%; }
@keyframes skeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Header actions cluster: hamburger + language switch + PWA install button.
   Sits at the end of the bar (opposite the logo) in both RTL and LTR. */
.nav-nexora__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-nexora__actions .nav-nexora__toggle,
.nav-nexora__actions .lang-toggle,
.nav-nexora__actions #pwa-install-btn { order: 0; margin-left: 0; }

/* ============ PWA NAVIGATION ============ */
/* Sits inside the header bar right after the language switch button */
#pwa-install-btn {
    display: none;
    order: 2;
    margin: 0 8px;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12px;
    font-family: var(--font);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212,175,55,0.4);
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    white-space: nowrap;
}
body.lang-en #pwa-install-btn {
    font-family: 'Montserrat', sans-serif;
}
/* Hide the PWA install button inside the admin panel */
body.admin-open #pwa-install-btn { display: none !important; }

/* ============ PROFILE PAGE ============ */
.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(35px) saturate(1.8);
    backdrop-filter: blur(35px) saturate(1.8);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #ff8800, var(--gold-light));
}

.profile-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #af8231);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #000;
    box-shadow: 0 0 25px rgba(212,168,83,0.3);
}

.profile-card-header h3 {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-role-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-role-badge.role-admin {
    background: rgba(212,168,83,0.18);
    color: var(--gold);
    border: 1px solid rgba(212,168,83,0.3);
}

.profile-role-badge.role-monitor {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.3);
}

.profile-role-badge.role-customer {
    background: rgba(148,163,184,0.12);
    color: var(--text-secondary);
    border: 1px solid rgba(148,163,184,0.2);
}

.profile-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.profile-info-row + .profile-info-row {
    border-top: 1px solid var(--glass-border);
}

.profile-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    direction: ltr;
    text-align: right;
}

.profile-card-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 24px;
    color: var(--gold);
    text-align: center;
}

.profile-card .form-group {
    margin-bottom: 16px;
    text-align: right;
}

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

.profile-card input[type="text"],
.profile-card input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.profile-card input:focus {
    border-color: var(--gold);
}

.profile-msg {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.profile-msg.success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
}

.profile-msg.error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

body.lang-en .profile-value {
    text-align: left;
}

body.lang-en .profile-card .form-group {
    text-align: left;
}

@media (max-width: 768px) {
    .profile-card {
        padding: 24px 20px;
    }
    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
    .profile-card-header h3 {
        font-size: 18px;
    }
    .profile-layout {
        padding-bottom: 40px;
    }
}

/* ==================== MISSING CSS CLASSES (Issue 53 audit fix) ==================== */
.biases-table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.biases-wrap { overflow-x: visible; }
body.lang-ar .biases-wrap { direction: rtl; overflow-x: visible; }
.biases-table th, .biases-table td { padding: 12px 16px; font-size: 14px; }
body.lang-ar .biases-table th, body.lang-ar .biases-table td { text-align: right; }
.biases-table tbody tr { cursor: default; }
.biases-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.biases-table thead th { background: rgba(255,255,255,0.03); color: var(--text-secondary); font-weight: 800; font-size: 12px; }
.glass-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.user-row {
    cursor: pointer;
    transition: background 0.2s ease;
}
.user-row:hover {
    background: rgba(212,175,55,0.06);
}
.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.inline-form select,
.inline-form input {
    flex: 1 1 160px;
    min-width: 120px;
}
.inline-form button,
.inline-form .btn {
    flex: 0 0 auto;
}
.nav-link.active {
    color: var(--gold);
}
.mt-8 {
    margin-top: 8px;
}
.phil-desc {
    max-width: 600px;
}
.car-prices-table-wrap {
    margin-top: 16px;
}
.footer__copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    padding: 16px 0;
}
.footer__tagline {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    padding: 16px 0;
}
.footer-gold { color: var(--gold); font-weight: 900; }
.condition-help {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239,68,68,0.3) !important;
    background: rgba(239,68,68,0.06) !important;
}
.wizard-section .field-error {
    animation: shakeX 0.4s ease;
}
@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ===== About modal layout ===== */
#aboutModal .modal { max-width: 640px; }
.about-body {
    padding: 26px 30px 30px;
    color: rgba(255, 255, 255, 0.92);
}
.about-body p {
    margin: 0;
    font-size: 16px;
    line-height: 2.2;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 1.5px;
    letter-spacing: 0.2px;
}

/* ===== Contact modal layout ===== */
#contactModal .modal { max-width: 560px; }
.contact-row { display: flex; gap: 14px; }
.contact-row .form-group { flex: 1; min-width: 0; margin-bottom: 16px; }
.contact-modal .form-group { margin-bottom: 16px; }
.contact-modal label { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: block; }
.contact-modal input,
.contact-modal textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-modal input:focus,
.contact-modal textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.contact-modal textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.6;
}
.char-counter {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    text-align: start;
}
.char-counter.near-limit { color: #f59e0b; }
.contact-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.contact-actions .btn { flex: 1; }

/* ===== Admin Messages panel ===== */
.messages-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.messages-toolbar .search-box { flex: 1; }
.messages-search {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
}
.messages-search:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.message-row:hover { background: rgba(212,175,55,0.06); }
.btn svg.icon { vertical-align: middle; margin-inline: 4px; }
.detail-grid { display: flex; flex-direction: column; gap: 14px; padding: 6px 2px; }
.detail-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 14px;
}
.detail-label { color: rgba(255,255,255,0.6); font-weight: 700; }
.detail-value { color: #fff; word-break: break-word; }
.detail-value.msg-full { line-height: 1.7; white-space: pre-wrap; }

/* ===== Search boxes with clear (✕) button ===== */
.search-box { position: relative; display: flex; align-items: center; }
.search-box .search-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
}
.search-box .search-clear:hover { color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.search-box input { padding-inline-end: 34px; }
