/* ==========================================================================
   TSLA / Tesla Design System — White + Red (Light Institutional)
   Replaces the previous dark override so the palette is white with Tesla red.
   Marketplace / equities focused: no bitcoin / crypto imagery.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Brand */
    --tsla-red: #E82127;
    --tsla-red-dark: #C2181D;
    --tsla-red-soft: rgba(232, 33, 39, 0.08);
    --tsla-red-border: rgba(232, 33, 39, 0.28);

    /* Neutrals — white canvas */
    --ink: #0F172A;
    --ink-soft: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --surface: #F8FAFC;
    --surface-2: #F1F5F9;
    --white: #FFFFFF;

    /* Semantic (market up/down) */
    --up: #059669;
    --down: #DC2626;

    /* Typography / effects */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, 0.25);
    --radius: 12px;
}

/* ---------------------------------------------------------------- canvas -- */
body, html {
    background-color: var(--white) !important;
    background-image:
        radial-gradient(circle at 12% -10%, rgba(232, 33, 39, 0.05) 0%, transparent 45%),
        linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 60%, #FBFCFE 100%) !important;
    color: var(--ink) !important;
    font-family: var(--font-sans) !important;
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------- typography -- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.card-title, .title, .caption-title {
    color: var(--ink) !important;
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
    text-transform: none;
    font-weight: 700;
}

p, li {
    color: var(--ink-soft);
}

a { color: var(--tsla-red); }
a:hover { color: var(--tsla-red-dark); }

.text-gradient {
    background: linear-gradient(100deg, var(--ink) 0%, var(--tsla-red) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------- buttons -- */
.btn, .main-btn, .main-btn2, .sp_theme_btn, .sp_border_btn {
    border-radius: 10px !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn-tsla,
.main-btn,
.sp_theme_btn {
    background: var(--tsla-red) !important;
    color: #fff !important;
    border: 1px solid var(--tsla-red) !important;
    box-shadow: 0 10px 24px -12px rgba(232, 33, 39, 0.55);
}
.btn-tsla:hover,
.main-btn:hover,
.sp_theme_btn:hover {
    background: var(--tsla-red-dark) !important;
    transform: translateY(-1px);
}

.btn-tsla-outline,
.main-btn2,
.sp_border_btn {
    background: #fff !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
}
.btn-tsla-outline:hover,
.main-btn2:hover,
.sp_border_btn:hover {
    border-color: var(--tsla-red) !important;
    color: var(--tsla-red) !important;
}

.bg-gold { background: var(--tsla-red) !important; }
.text-gold { color: var(--tsla-red) !important; }
.border-gold { border-color: var(--tsla-red) !important; }
.text-black { color: #fff !important; }

/* ---------------------------------------------------------------- header -- */
.header-area, header, .navbar, .main-header, .header-bottom, .header-top {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none;
}
.header-area a, .navbar a, header a { color: var(--ink) !important; }
.header-area a:hover, .navbar a:hover { color: var(--tsla-red) !important; }
.navbar-brand, .logo img { filter: none !important; }

/* ----------------------------------------------------------------- cards -- */
.card, .obsidian-card, .aurora-card, .feature-card, .plan-card, .single-plan,
.overview-box, .counter-box {
    background: var(--white) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--ink) !important;
}
.card:hover, .feature-card:hover, .plan-card:hover {
    box-shadow: var(--shadow-md) !important;
    border-color: var(--tsla-red-border) !important;
}

section { background: transparent; }
.section-bg, .separate-bg, .bg-light, .bg-secondary {
    background: var(--surface) !important;
    color: var(--ink) !important;
}

/* ----------------------------------------------------------------- plans -- */
.plan-card .plan-price, .single-plan h3, .price-amount {
    color: var(--tsla-red) !important;
    font-family: var(--font-mono);
}
.badge, .plan-badge, .badge-tsla-red {
    background: var(--tsla-red-soft) !important;
    color: var(--tsla-red) !important;
    border: 1px solid var(--tsla-red-border) !important;
    font-weight: 700;
    letter-spacing: .04em;
}
.badge-success { background: rgba(5,150,105,.1) !important; color: var(--up) !important; border-color: rgba(5,150,105,.3) !important; }

/* --------------------------------------------------------------- tabular -- */
.table, table { color: var(--ink) !important; }
.table thead th {
    background: var(--surface) !important;
    color: var(--muted) !important;
    border-bottom: 1px solid var(--line) !important;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.table td { border-color: var(--line) !important; }

/* ======================================================================== */
/*  MARKET / STOCK COMPONENTS                                                */
/* ======================================================================== */

/* ticker strip */
.tsla-ticker {
    background: var(--ink);
    color: #fff;
    border-radius: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.tsla-ticker .ticker-track {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    white-space: nowrap;
    padding: 10px 0;
    font-family: var(--font-mono);
    font-size: .8rem;
    animation: tslaTicker 38s linear infinite;
}
.tsla-ticker .ticker-track:hover { animation-play-state: paused; }
.tsla-ticker .sym { color: #fff; font-weight: 700; }
.tsla-ticker .px { color: #CBD5E1; }
.tsla-ticker .chg.up { color: #34D399; }
.tsla-ticker .chg.down { color: #F87171; }
@keyframes tslaTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* market cards */
.market-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .15s ease;
}
.market-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.market-card .sym { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.market-card .name { font-size: .78rem; color: var(--muted); }
.market-card .px { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.market-card .chg { font-family: var(--font-mono); font-size: .82rem; font-weight: 600; }
.market-card .chg.up { color: var(--up); }
.market-card .chg.down { color: var(--down); }
.market-card .spark { width: 100%; height: 44px; display: block; margin-top: 10px; }

/* terminal / desk panel */
.desk-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.desk-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.desk-dots span { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; }
.desk-dots .r { background:#FF5F57; } .desk-dots .a { background:#FEBC2E; } .desk-dots .g { background:#28C840; }
.desk-title { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing:.06em; }

.desk-tabs { display:flex; gap:6px; padding: 10px 14px 0; flex-wrap: wrap; }
.desk-tab {
    border: 1px solid var(--line); background:#fff; color: var(--muted);
    font-family: var(--font-mono); font-size:.74rem; font-weight:600;
    padding: 5px 12px; border-radius: 8px; cursor: pointer;
}
.desk-tab.active { background: var(--tsla-red); border-color: var(--tsla-red); color:#fff; }

.desk-quote { padding: 14px 16px 6px; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.desk-quote .sym { font-family: var(--font-mono); font-weight:700; font-size:1.15rem; color: var(--tsla-red); }
.desk-quote .name { color: var(--muted); font-size:.84rem; }
.desk-quote .px { font-family: var(--font-mono); font-size:1.6rem; font-weight:700; color: var(--ink); margin-left:auto; }
.desk-quote .chg { font-family: var(--font-mono); font-weight:700; font-size:.9rem; }
.desk-quote .chg.up { color: var(--up); } .desk-quote .chg.down { color: var(--down); }

.desk-chart { display:block; width:100%; height:170px; }
.desk-stats { display:grid; grid-template-columns: repeat(4, 1fr); gap:1px; background: var(--line); border-top:1px solid var(--line); }
.desk-stats div { background:#fff; padding:10px 12px; }
.desk-stats .k { font-size:.62rem; letter-spacing:.09em; text-transform:uppercase; color: var(--muted); }
.desk-stats .v { font-family: var(--font-mono); font-weight:700; color: var(--ink); font-size:.86rem; }

.desk-book { border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1fr; gap:1px; background: var(--line); }
.desk-book > div { background:#fff; padding:10px 12px; }
.desk-book .hd { font-size:.62rem; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.book-row { display:flex; justify-content:space-between; font-family: var(--font-mono); font-size:.74rem; padding:1px 0; }
.book-row .bid { color: var(--up); } .book-row .ask { color: var(--down); }

/* hero helpers */
.hero-pill {
    display:inline-flex; align-items:center; gap:8px;
    border:1px solid var(--tsla-red-border);
    background: var(--tsla-red-soft);
    padding: 6px 14px; border-radius: 999px;
}
.hero-pill .label { color: var(--tsla-red); font-weight: 700; font-family: var(--font-mono); font-size: .72rem; letter-spacing:.05em; }
.pulse-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background: var(--tsla-red); animation: tslaPulse 1.6s ease-in-out infinite; }
@keyframes tslaPulse { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:.35; transform:scale(.8);} }

.stat-tile { background: var(--surface); border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
.stat-tile .k { font-size:.62rem; letter-spacing:.09em; text-transform:uppercase; color: var(--muted); }
.stat-tile .v { font-family: var(--font-mono); font-weight:700; color: var(--ink); font-size:.9rem; }

/* ---------------------------------------------------------------- footer -- */
footer, .footer-area, .footer-bottom, .footer-top {
    background: var(--ink) !important;
    color: #CBD5E1 !important;
    border-top: 3px solid var(--tsla-red) !important;
}
footer a, .footer-area a { color: #E2E8F0 !important; }
footer a:hover, .footer-area a:hover { color: #fff !important; }
footer h4, footer h5, .footer-area h4, .footer-area h5 { color: #fff !important; }

/* ------------------------------------------------------- misc / utilities -- */
.rounded-full { border-radius: 999px !important; }
.obsidian-banner, .aurora-banner, .banner-section.cover-image {
    background-image: none !important;
    background: transparent !important;
}
.form-control, input, select, textarea {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    border-radius: 10px !important;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--tsla-red) !important;
    box-shadow: 0 0 0 3px var(--tsla-red-soft) !important;
}
::selection { background: var(--tsla-red); color: #fff; }

/* ==========================================================================
   Legacy "obsidian" surfaces → light. style.css forces dark on these; undo.
   ========================================================================== */
body, html { background: var(--white) !important; color: var(--ink) !important; }

.sp_separator_bg, .counter-section, .plan-section, .about-section, .benefit-section,
.testimonial-section, .transaction-section, .investor-section, .referral-section,
.work-section, .banner-section, .page-banner, .newsletter-section, .faq-section,
.obsidian-section, .contact-section, .blog-section {
    background: var(--white) !important;
    background-image: none !important;
    color: var(--ink) !important;
}
.sp_separator_bg { background: var(--surface) !important; }

.counter-item, .counter-wrapper div[class*="col"], .benefit-item, .plan-item, .d-card,
.testimonial-item, .site-card, .blog-item, .transaction-wrapper, .investor-item,
.work-item, .accordion-item, .contact-item, .overview-box, .about-thumb,
.subscription-form, .dropdown-menu, .user-header, .sidebar-menu li a,
.blog-widget, .referral-item, .work-section .work-item, .account-wrapper {
    background: var(--white) !important;
    background-image: none !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
    box-shadow: var(--shadow-sm) !important;
}
.counter-item::before, .counter-section::before, .about-section::before,
.about-thumb .line, .about-thumb .line.one::before, .about-thumb .line.one::after,
.plan-section .plan-el, .plan-section .top-dollar, .plan-section .dollar-right,
.banner-section::before, .banner-section .banner-lady, .page-banner::before,
.subscription-form button, .counter-wrapper div[class*="col"]::after,
.investor-item .investor-content::after, .work-section::before,
.work-section .man-with-dollar, .benefit-item .benefit-icon i,
.accordion-item .accordion-button::before, .referral-item::after,
.referral-item .referral-img, .about-content ul li::before {
    background: transparent !important;
    background-image: none !important;
}
.benefit-item .benefit-icon { background: var(--tsla-red-soft) !important; border: none !important; }
.benefit-item .benefit-icon i, .benefit-item .benefit-icon .benefit-icon-inner,
.contact-item .icon { color: var(--tsla-red) !important; background: var(--tsla-red-soft) !important; }

/* header stays white over the canvas */
.header, .header-bottom, .header-top, .obsidian-header, .header .sp_main_menu,
.header .sp_main_menu li .sub-menu, body .header, .header.header-fixed .header-bottom {
    background: rgba(255, 255, 255, 0.94) !important;
    background-image: none !important;
    border-color: var(--line) !important;
}
.header .sp_main_menu li a, .hc-list > li > a, .social-icons li a, .menu-toggle,
.changeLang, .header .sp_main_menu li.has_children > a::before { color: var(--ink) !important; }
.header .sp_main_menu li a:hover, .header .sp_main_menu li a:focus,
.header .site-logo.site-title, .header .sp_main_menu li .sub-menu li a:hover,
.hc-list > li > a i, .hc-list > li > a:hover, .social-icons li a:hover {
    color: var(--tsla-red) !important;
}
.main-btn, .subscription-form button { background: var(--tsla-red) !important; color: #fff !important; }
.main-btn2 { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; }
.counter-title, .counter-item .counter-title, .page-breadcrumb li a,
.blog-meta li i, .sp_site_title span, .footer-menu li a:hover, .social-icons li a:hover { color: var(--tsla-red) !important; }
.caption, .counter-item .caption, .text-secondary { color: var(--muted) !important; }
.sp_site_title { color: var(--ink) !important; }
.about-content ul li { color: var(--ink-soft) !important; }
.footer-section h2, .footer-section h3, .footer-section h6, .footer-section, .footer-top, .footer-bottom,
.footer-logo-portion, .footer-menu-portion {
    background: var(--ink) !important;
    color: #CBD5E1 !important;
}
.footer-logo-portion {
    padding: 36px 0 28px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.footer-menu-portion {
    padding: 18px 0 !important;
    border-top: none !important;
}
.footer-logo img {
    height: 42px !important;
    width: auto !important;
    max-width: 240px !important;
    filter: none !important;
}
.footer-section .social-links li a {
    color: #CBD5E1 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 8px !important;
}
.footer-section .social-links li a:hover {
    background: var(--tsla-red) !important;
    border-color: var(--tsla-red) !important;
    color: #fff !important;
}
.obsidian-banner { background: var(--white) !important; background-image: none !important; }

/* ==========================================================================
   Tesla Orbital Loading Animation (Preloader)
   ========================================================================== */
.preloader-holder {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.preloader-holder.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.preloader-holder::after {
    display: none !important;
}
.tsla-preloader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.preloader-holder .preloader {
    position: relative;
    width: 96px !important;
    height: 96px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 16px 40px -12px rgba(232, 33, 39, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.9);
}
.tsla-preloader-emblem {
    width: 38px;
    height: 34px;
    z-index: 2;
    animation: tslaEmblemPulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(232, 33, 39, 0.3));
}
.preloader-holder .preloader .preloader-spiner {
    position: absolute;
    inset: -4px;
    width: calc(100% + 8px) !important;
    height: calc(100% + 8px) !important;
    border-radius: 50%;
    border: 3px solid rgba(226, 232, 240, 0.65) !important;
    border-top-color: var(--tsla-red) !important;
    border-right-color: var(--tsla-red) !important;
    animation: spiner 1.05s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite !important;
}
.preloader-holder .preloader .preloader-spiner::after {
    content: "";
    position: absolute;
    bottom: 6px;
    right: 8px;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
    background: var(--tsla-red) !important;
    box-shadow: 0 0 10px 2px rgba(232, 33, 39, 0.65) !important;
}
.preloader-holder .preloader .preloader-spiner-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1.5px dashed rgba(232, 33, 39, 0.26);
    animation: tslaSpinReverse 3.2s linear infinite;
}
.tsla-preloader-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
@keyframes tslaEmblemPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.92); opacity: 0.78; }
}
@keyframes tslaSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* ==========================================================================
   Plan / how-it-works / faq / testimonial / newsletter light polish
   ========================================================================== */
.work-number { color: var(--tsla-red) !important; background: var(--tsla-red-soft) !important; border-radius: 18px; }
.text-platinum, .plan-name, .plan-status, .mbl-h { color: var(--ink) !important; }
.work-content .title { color: var(--ink) !important; }
.plan-price .text-gold, .plan-price h2 { color: var(--tsla-red) !important; }

/* dark form controls inside light sections (scoped — a blanket .text-white rule
   would wrongly darken white icons on the coloured dashboard tiles) */
.bg-dark, .form-control.bg-dark, .form-select.bg-dark, .modal-content.obsidian-card {
    background: var(--white) !important;
    background-image: none !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}
.modal-content .text-white, .plan-features .text-white, .plan-header .text-white { color: var(--ink) !important; }
.modal-header, .modal-footer { border-color: var(--line) !important; }
.modal-title { color: var(--ink) !important; }
.btn-close-white { filter: invert(0); }
.border-secondary { border-color: var(--line) !important; }

/* newsletter band */
.newsletter-section, .subscription-section { background: var(--surface) !important; }
.subscription-form input { background: #fff !important; color: var(--ink) !important; }
.subscription-form button { background: var(--tsla-red) !important; color: #fff !important; }

/* testimonial / faq / contact */
.testimonial-item .testimonial-client .name, .accordion-button { color: var(--ink) !important; background: var(--white) !important; }
.accordion-button:not(.collapsed) { color: var(--tsla-red) !important; }
.accordion-item { border-color: var(--line) !important; }
.faq-section .accordion-item { background: var(--white) !important; }
.contact-item .content a { color: var(--ink) !important; }

/* inputs across auth + dashboards stay light */
.site-card, .card-body, .auth-wrapper .form-control { background: #fff !important; color: var(--ink) !important; }

/* ==========================================================================
   User dashboard — light surfaces, ink text, red accents
   ========================================================================== */
.dashboard-body-part, .dashboard-section, .dashboard-main, #main {
    background: transparent !important;
    color: var(--ink) !important;
}
.dashboard-body-part .card, .dashboard-body-part .card-header, .dashboard-body-part .card-body,
.site-card, .account-wrapper, .card-header, .card-body {
    background: #fff !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}
.card-header { border-bottom: 1px solid var(--line) !important; }
.caption, .caption-title, .text-small, .text-muted { color: var(--muted) !important; }
.dashboard-body-part h1, .dashboard-body-part h2, .dashboard-body-part h3,
.dashboard-body-part h4, .dashboard-body-part h5, .dashboard-body-part h6,
.dashboard-body-part .title, .caption-title, .card-title { color: var(--ink) !important; }
.dashboard-body-part .table td, .dashboard-body-part .table th { color: var(--ink) !important; border-color: var(--line) !important; }
.list-group-item { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* balance card — Tesla red */
.user-account-number {
    background: linear-gradient(135deg, var(--tsla-red) 0%, #B0181F 100%) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 22px !important;
    position: relative;
}
.user-account-number .acc-number { color: #FFFFFF !important; font-family: var(--font-mono); font-weight: 800; }
.user-account-number .caption { color: rgba(255,255,255,.82) !important; }
.user-account-number i { color: rgba(255,255,255,.85) !important; }
.user-account-number .card-dot span { background: rgba(255,255,255,.55) !important; }

/* coloured stat tiles keep their gradient with white content */
.d-box-three .content p, .d-box-three .content h5, .d-box-three .content span,
.d-box-three .icon i, .d-box-three .text-white { color: #FFFFFF !important; }
.d-box-three .text-small { color: rgba(255,255,255,.85) !important; }

/* sidebar + user header */
.user-sidebar, .user-header, .user-dropdown .user-btn, .dropdown-menu {
    background: #fff !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}
.sidebar-menu li a { color: var(--ink) !important; background: transparent !important; }
.sidebar-menu li a:hover, .sidebar-menu li a.active, .user-sidebar .active > a { color: var(--tsla-red) !important; }
.dropdown-menu .dropdown-item { color: var(--ink) !important; }
.dropdown-menu .dropdown-item:hover { background: var(--surface) !important; color: var(--tsla-red) !important; }

/* ==========================================================================
   Tesla Vehicle Visuals, Hero Fleet Showcase & Interactive Showroom
   ========================================================================== */
.tsla-hero-fleet-showcase {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border: 1px solid rgba(232, 33, 39, 0.32);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    color: #fff;
    position: relative;
}
.tsla-hero-fleet-stage {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #090D16;
}
.tsla-hero-fleet-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    transition: opacity 0.28s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.tsla-hero-fleet-stage:hover img {
    transform: scale(1.03);
}
.tsla-hero-fleet-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.08) 45%, rgba(15, 23, 42, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 18px;
}
.tsla-hud-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #F8FAFC;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border-radius: 999px;
}
.tsla-hud-badge.red {
    background: rgba(232, 33, 39, 0.88);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.tsla-fleet-thumb-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 12px 14px;
    background: #0F172A;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tsla-fleet-thumb {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: #E2E8F0;
}
.tsla-fleet-thumb:hover,
.tsla-fleet-thumb.active {
    border-color: var(--tsla-red);
    background: rgba(232, 33, 39, 0.15);
    transform: translateY(-1px);
}
.tsla-fleet-thumb img {
    width: 100%;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 5px;
}
.tsla-fleet-thumb .t-name {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tsla-fleet-thumb .t-sub {
    font-size: 0.6rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Interactive Showroom Spotlight */
.tsla-showroom-spotlight {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.tsla-showroom-stage {
    position: relative;
    min-height: 390px;
    height: 100%;
    background: #0B1120;
    overflow: hidden;
}
.tsla-showroom-stage img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.28s ease, transform 0.6s ease;
}
.tsla-showroom-stage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.04) 45%, rgba(15, 23, 42, 0.90) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px;
}
.tsla-model-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tsla-model-pill {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.tsla-model-pill:hover,
.tsla-model-pill.active {
    background: var(--tsla-red);
    border-color: var(--tsla-red);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(232, 33, 39, 0.55);
}

/* Vehicle Lineup Cards with Studio Photography */
.tsla-vehicle-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
}
.tsla-vehicle-card:hover,
.tsla-vehicle-card.active-vehicle {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--tsla-red);
}
.tsla-vehicle-media {
    position: relative;
    height: 195px;
    overflow: hidden;
    background: #0F172A;
}
.tsla-vehicle-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tsla-vehicle-card:hover .tsla-vehicle-media img {
    transform: scale(1.06);
}
.tsla-vehicle-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, transparent 45%, rgba(15, 23, 42, 0.78) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
}

@media (max-width: 991.98px) {
    .tsla-fleet-thumb-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    .tsla-showroom-stage,
    .tsla-showroom-stage img {
        min-height: 290px;
    }
}
@media (max-width: 575.98px) {
    .tsla-hero-fleet-stage {
        height: 205px;
    }
    .tsla-fleet-thumb-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .tsla-showroom-stage,
    .tsla-showroom-stage img {
        min-height: 235px;
    }
    .tsla-vehicle-media {
        height: 175px;
    }
}
