/* ============================================
   LOJA CONSULTING - Premium Theme System
   Dark / Light with auto-detection
   ============================================ */

/* Google Fonts loaded via <link> in layout.php for better performance */

/* ---- Shared tokens ---- */
:root {
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-soft: rgba(16,185,129,.08);
    --accent-border: rgba(16,185,129,.2);
    --accent-glow: rgba(16,185,129,.12);
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---- Dark theme (default) ---- */
:root[data-theme="dark"] {
    --bg: #111318;
    --bg-deep: #0b0e14;
    --surface: #191c24;
    --surface-2: #1f2330;
    --surface-3: #272b38;
    --border: rgba(255,255,255,.06);
    --border-hover: rgba(255,255,255,.12);
    --text: #f0f0f0;
    --text-secondary: #e2e8f0;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --shadow: 0 24px 80px rgba(0,0,0,.35);
    --shadow-sm: 0 4px 24px rgba(0,0,0,.2);
    --header-bg: rgba(17,19,24,.92);
    --header-mobile-bg: rgba(17,19,24,.98);
    --hero-overlay-color: 17,19,24;
    --img-saturate: .35;
    --img-brightness: .45;
    --selection-color: #fff;
    --scrollbar-thumb: #272b38;
    --btn-primary-text: #000;
    --table-row-hover: rgba(255,255,255,.02);
    --glass-bg: rgba(25,28,36,.6);
    --glass-border: rgba(255,255,255,.06);
    --card-shine: none;
}

/* ---- Light theme ---- */
:root[data-theme="light"] {
    --bg: #f8fafc;
    --bg-deep: #f0f4f8;
    --surface: #ffffff;
    --surface-2: #f4f7fa;
    --surface-3: #e2e8f0;
    --border: rgba(15,23,42,.07);
    --border-hover: rgba(15,23,42,.14);
    --text: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #334155;
    --text-soft: #475569;
    --shadow: 0 24px 80px rgba(15,23,42,.07);
    --shadow-sm: 0 4px 24px rgba(15,23,42,.05);
    --header-bg: rgba(255,255,255,.82);
    --header-mobile-bg: rgba(255,255,255,.96);
    --hero-overlay-color: 15,23,42;
    --img-saturate: .45;
    --img-brightness: .4;
    --selection-color: #fff;
    --scrollbar-thumb: #cbd5e1;
    --btn-primary-text: #fff;
    --table-row-hover: rgba(0,0,0,.02);
    --accent-soft: rgba(16,185,129,.06);
    --accent-border: rgba(16,185,129,.2);
    --accent-glow: rgba(16,185,129,.12);
    --glass-bg: rgba(255,255,255,.6);
    --glass-border: rgba(255,255,255,.7);
    --card-shine: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.3) 50%, rgba(255,255,255,0) 100%);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-top: 0;
}

p { color: var(--text-soft); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: #34d399; }

img { max-width: 100%; height: auto; }

::selection {
    background: rgba(16,185,129,.3);
    color: var(--selection-color);
}

/* ---- Smooth theme transition on all color properties ---- */
body { transition: background var(--transition), color var(--transition); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
    transition: background var(--transition), border-color var(--transition);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .875rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 38px;
    width: auto;
    display: block;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-link {
    padding: .5rem 1rem;
    color: var(--text-soft) !important;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition), left var(--transition);
}
.nav-link {
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
    background: var(--accent-soft);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 20%;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
}
.lang-switch a {
    display: block;
    padding: .35rem .65rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-xs);
    transition: all var(--transition);
    text-decoration: none;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active-lang {
    background: var(--accent);
    color: var(--btn-primary-text);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: .45rem .65rem;
    cursor: pointer;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-mobile-bg);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        gap: .25rem;
    }
    .main-nav.open { display: flex; }
    .main-nav .nav-link { width: 100%; }
    .lang-switch { margin-left: 0; margin-top: .5rem; align-self: flex-start; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16,185,129,.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero with background image */
.hero-img {
    padding: 7rem 0 5rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-img::before { display: none; }

.hero-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    filter: saturate(var(--img-saturate)) brightness(var(--img-brightness));
    z-index: 0;
    transition: filter .5s ease;
}

/* SEO: Hero image as <img> tag instead of CSS background */
.hero-img-bg-pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: saturate(var(--img-saturate)) brightness(var(--img-brightness));
    z-index: 0;
    transition: filter .5s ease;
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(var(--hero-overlay-color),.4) 30%, rgba(var(--hero-overlay-color),.6) 70%, var(--bg) 100%),
        linear-gradient(90deg, rgba(var(--hero-overlay-color),.85) 0%, transparent 60%);
}

/* Centered hero variant (services, partner) */
.hero-img-center { min-height: 65vh; }
.hero-img-overlay-center {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(var(--hero-overlay-color),.35) 25%, rgba(var(--hero-overlay-color),.5) 75%, var(--bg) 100%),
        radial-gradient(ellipse at center, rgba(var(--hero-overlay-color),.55) 0%, rgba(var(--hero-overlay-color),.8) 100%);
}

.hero-img .hero-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}
.hero-stat-label {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .15rem;
}

@media (max-width: 768px) {
    .hero-img { min-height: 70vh; padding: 5rem 0 3rem; }
    .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
    .hero-stat-val { font-size: 1.2rem; }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding: .4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero h1 .accent { color: var(--accent); }

.hero-text {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
}
.hero-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(16,185,129,.15), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.stat-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}
.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}
.stat-label {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .25rem;
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding: 4rem 0 3rem; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    background: linear-gradient(135deg, #10b981, #0f766e);
    color: var(--btn-primary-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .95rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 8px 30px rgba(16,185,129,.2);
    text-decoration: none;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16,185,129,.3);
    color: var(--btn-primary-text);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .95rem;
    border: 1.5px solid var(--accent-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-outline-custom:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    background: var(--surface);
    color: var(--text-soft);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-hover);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--bg-deep);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
    display: grid;
    gap: 1.5rem;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 992px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), #06b6d4, transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover::after {
    opacity: 1;
    animation: shimmerLine 2s linear infinite;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: .75rem;
}
.feature-card p {
    font-size: .92rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   ECU / EXPERTISE SECTION
   ============================================ */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.expertise-list li:hover {
    border-color: var(--accent-border);
}
.expertise-list .check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.expertise-list strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}
.expertise-list span {
    font-size: .88rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .expertise-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ECU TAGS
   ============================================ */
.ecu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}
.ecu-tag {
    padding: .4rem .85rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-soft);
    font-family: var(--font-heading);
    transition: all var(--transition);
}
.ecu-tag:hover {
    border-color: var(--accent-border);
    color: var(--accent);
}

/* ============================================
   SIMULATOR
   ============================================ */
.simulator-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.simulator-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.simulator-panel h3 {
    font-size: 1.3rem;
    margin-bottom: .5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .4rem;
    font-family: var(--font-heading);
}

.form-input,
.form-select {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.perf-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--surface-2);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    display: none;
}
.perf-result.show { display: block; }
.perf-result .gain-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}
.perf-result .gain-label {
    font-size: .9rem;
    color: var(--text-muted);
    margin-top: .25rem;
}

.simulator-info {
    padding-top: 1rem;
}
.simulator-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.simulator-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.info-card-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.info-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 10px;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}
.info-card-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
    font-size: .95rem;
}
.info-card-item span {
    font-size: .85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .simulator-wrap { grid-template-columns: 1fr; }
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    position: relative;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

#resellerMap {
    width: 100%;
    min-height: 500px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.reseller-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-right: .5rem;
}
.reseller-list::-webkit-scrollbar { width: 4px; }
.reseller-list::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

.reseller-item {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}
.reseller-item:hover {
    border-color: var(--accent-border);
    background: var(--surface-2);
}
.reseller-item h4 {
    font-size: 1rem;
    margin: 0 0 .35rem;
}
.reseller-item .city {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.reseller-item .contact {
    font-size: .8rem;
    color: var(--text-soft);
}
.reseller-item .contact a {
    color: var(--accent);
}

.no-resellers {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-muted);
    font-size: .95rem;
}

@media (max-width: 992px) {
    .map-container {
        grid-template-columns: 1fr;
    }
    #resellerMap { min-height: 400px; }
    .reseller-list { max-height: 350px; }
}

/* Full-width map */
.reseller-map-full {
    width: 100%;
    min-height: 500px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
@media (max-width: 768px) {
    .reseller-map-full { min-height: 350px; }
}

/* Counter bar */
.section-compact { padding: 2rem 0; }

.reseller-counters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.reseller-counter-item { text-align: center; }
.reseller-counter-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}
.reseller-counter-label {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .2rem;
}
.reseller-counter-sep {
    width: 1px;
    height: 40px;
    background: var(--border);
}
@media (max-width: 576px) {
    .reseller-counters { gap: 1.25rem; flex-wrap: wrap; }
    .reseller-counter-sep { display: none; }
    .reseller-counter-val { font-size: 1.5rem; }
}

/* Filters */
.reseller-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: .45rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover {
    border-color: var(--accent-border);
    color: var(--text-soft);
}
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--btn-primary-text);
    font-weight: 600;
}
.filter-sep {
    font-size: .75rem;
    color: var(--text-muted);
    margin-left: .5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Reseller cards grid */
.reseller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.reseller-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.reseller-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(0,0,0,.2);
}
.reseller-card.hidden { display: none; }

.reseller-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}
.reseller-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.reseller-card-city {
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.reseller-card-contact {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .82rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}
.reseller-card-contact a { font-size: .82rem; }

.reseller-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: 1rem;
}

.reseller-card-locate {
    margin-top: auto;
    padding: .55rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.reseller-card-locate:hover {
    background: var(--accent);
    color: var(--btn-primary-text);
}

/* Home reseller preview */
.home-reseller-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.reseller-preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    transition: all var(--transition);
}
.reseller-preview-card:hover {
    border-color: var(--accent-border);
}
.reseller-preview-card h4 {
    font-size: 1rem;
    margin: 0 0 .35rem;
}
.reseller-preview-city {
    display: block;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .35rem;
}
.reseller-preview-contact {
    font-size: .8rem;
    color: var(--text-soft);
}
.reseller-preview-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Map popup overrides */
.leaflet-popup-content-wrapper {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow) !important;
    border: 1px solid var(--border) !important;
}
.leaflet-popup-tip { background: var(--surface) !important; }
.leaflet-popup-content { font-family: var(--font-body); font-size: .88rem; }
.leaflet-popup-content a { color: var(--accent); }

/* ============================================
   CTA / MAPPACK BANNER
   ============================================ */
.cta-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(16,185,129,.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner h2 {
    font-size: 1.8rem;
    margin-bottom: .75rem;
    position: relative;
}
.cta-banner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2rem;
    position: relative;
}
.cta-banner .btn-primary-custom { position: relative; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.footer-brand img { height: 32px; }
.footer-brand span {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}
.footer-desc {
    font-size: .88rem;
    color: var(--text-muted);
    max-width: 300px;
}
.footer-col h4 {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-soft);
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
    color: var(--text-muted);
    font-size: .88rem;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-copy {
    font-size: .82rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-header h1 {
    font-size: 1.5rem;
    margin: 0;
}
.admin-header p {
    color: var(--text-muted);
    font-size: .9rem;
    margin: .25rem 0 0;
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.admin-stat h3 {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0;
}
.admin-stat .count {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table thead {
    background: var(--surface-2);
}
.admin-table th {
    padding: .85rem 1rem;
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: .85rem 1rem;
    font-size: .9rem;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border);
}
.admin-table tbody tr:hover {
    background: var(--table-row-hover);
}
.admin-table a { color: var(--accent); }

.btn-danger-sm {
    padding: .35rem .85rem;
    background: transparent;
    border: 1px solid rgba(239,68,68,.25);
    color: var(--danger);
    font-size: .8rem;
    font-weight: 600;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
}
.btn-danger-sm:hover {
    background: rgba(239,68,68,.1);
}

.admin-tag {
    display: inline-block;
    padding: .15rem .5rem;
    margin: .1rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-size: .7rem;
    color: var(--accent);
    font-weight: 600;
}
.admin-tag-muted {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-muted);
}

.checkbox-tag {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    padding: .4rem .85rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .82rem;
    color: var(--text-soft);
    transition: all var(--transition);
}
.checkbox-tag:hover {
    border-color: var(--accent-border);
}
.checkbox-tag input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.badge-status {
    display: inline-block;
    padding: .3rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

/* Admin login */
.login-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}
.login-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.login-error {
    padding: .85rem 1rem;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-xs);
    color: var(--danger);
    font-size: .88rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.fade-up-d1 { transition-delay: .1s; }
.fade-up-d2 { transition-delay: .2s; }
.fade-up-d3 { transition-delay: .3s; }
.fade-up-d4 { transition-delay: .4s; }
.fade-up-d5 { transition-delay: .5s; }
.fade-up-d6 { transition-delay: .6s; }

/* ============================================
   UTILITIES
   ============================================ */
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.mt-section { margin-top: 5rem; }
.mb-section { margin-bottom: 5rem; }

/* Custom Leaflet marker */
.custom-marker {
    background: none !important;
    border: none !important;
}
.custom-marker svg {
    filter: drop-shadow(0 4px 8px rgba(16,185,129,.3));
}

/* ============================================
   HERO VARIANTS
   ============================================ */
.hero-sm { padding: 5rem 0 4rem; }
.hero-sm .hero-container { text-align: center; }
.hero-center {
    max-width: 800px;
    margin: 0 auto;
}
.hero-center .hero-text { text-align: center; }
.hero-center .hero-actions { justify-content: center; }

/* ============================================
   PLATFORM LINKS (home)
   ============================================ */
.platform-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.platform-card:hover {
    border-color: var(--accent-border);
    transform: translateX(6px);
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.platform-card:hover .platform-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.platform-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.platform-body {
    flex: 1;
    min-width: 0;
}
.platform-body h3 {
    font-size: 1.05rem;
    margin: 0 0 .25rem;
    color: var(--text);
}
.platform-body p {
    font-size: .88rem;
    color: var(--text-muted);
    margin: 0;
}

.platform-arrow {
    font-size: 1.3rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all var(--transition);
}

@media (max-width: 576px) {
    .platform-card { padding: 1.25rem; gap: 1rem; }
    .platform-icon { width: 42px; height: 42px; font-size: 1.1rem; }
}

/* ============================================
   FILE SERVICE SECTION
   ============================================ */
.fileservice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .fileservice-grid { grid-template-columns: 1fr; }
}

.fileservice-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fs-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.fs-step:hover { border-color: var(--accent-border); }

.fs-step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
}

.fs-step strong {
    display: block;
    color: var(--text);
    margin-bottom: 2px;
    font-size: .95rem;
}
.fs-step span {
    font-size: .85rem;
    color: var(--text-muted);
}

.fileservice-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.fileservice-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(16,185,129,.15), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.fileservice-card h3 {
    font-size: 1.3rem;
    margin-bottom: .75rem;
}
.fileservice-card p {
    font-size: .92rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ============================================
   SECTION VISUAL (inline images)
   ============================================ */
.section-visual {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}
.section-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
    pointer-events: none;
}
.section-alt .section-visual::after {
    background: linear-gradient(180deg, transparent 50%, var(--bg-deep) 100%);
}
.section-img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    filter: saturate(var(--img-saturate)) brightness(calc(var(--img-brightness) + .25));
    transition: filter .6s ease;
}
.section-visual:hover .section-img {
    filter: saturate(calc(var(--img-saturate) + .15)) brightness(calc(var(--img-brightness) + .3));
}
@media (max-width: 768px) {
    .section-img { height: 220px; }
}

/* ============================================
   SERVICE BLOCKS
   ============================================ */
.service-block {
    max-width: 100%;
}
.service-content h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}
.service-content p {
    font-size: .95rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.service-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .service-split { grid-template-columns: 1fr; }
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .65rem;
    font-size: .9rem;
    color: var(--text-soft);
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   STAGE CARDS
   ============================================ */
.service-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .service-stages { grid-template-columns: 1fr; }
}

.stage-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stage-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,.2);
}
.stage-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #06b6d4, var(--accent));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity var(--transition);
}
.stage-card:hover::after {
    opacity: 1;
    animation: shimmerLine 2s linear infinite;
}

.stage-num {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

.stage-card h3 {
    font-size: 1.15rem;
    margin-bottom: .75rem;
}
.stage-card p {
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.stage-gain {
    display: inline-block;
    padding: .4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent);
}

/* ============================================
   STEPS (Partner process)
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .steps-grid { grid-template-columns: 1fr; }
}

.step-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}
.step-item:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: .75rem;
    opacity: .6;
}

.step-item h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
}
.step-item p {
    font-size: .88rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 576px) {
    .form-row { grid-template-columns: 1fr; }
}

.success-msg {
    padding: 1rem 1.5rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: .95rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ============================================
   VEHICLE SIMULATOR
   ============================================ */
.sim-layout {
    max-width: 900px;
    margin: 0 auto;
}

.sim-selects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .sim-selects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .sim-selects { grid-template-columns: 1fr; }
}
.sim-select-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .35rem;
}

.sim-results {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    animation: simFadeIn .4s ease;
}
@keyframes simFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.sim-vehicle-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.sim-vehicle-header h2 {
    font-size: 1.5rem;
    margin: 0 0 .5rem;
}
.sim-vehicle-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.sim-fuel-badge {
    padding: .25rem .7rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sim-fuel-badge.diesel {
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,.25);
}
.sim-fuel-badge.petrol {
    background: rgba(245,158,11,.12);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,.25);
}
.sim-orig-power {
    font-family: var(--font-heading);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-soft);
}

.sim-stage-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
}
.sim-stage-tab {
    padding: .55rem 1.25rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.sim-stage-tab:hover { border-color: var(--accent-border); color: var(--text-soft); }
.sim-stage-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--btn-primary-text);
}

.sim-gauges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 576px) {
    .sim-gauges { grid-template-columns: 1fr; }
}

.sim-gauge-block { }
.sim-gauge-label {
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.sim-bar-wrap {
    height: 48px;
    position: relative;
    background: var(--surface-2);
    border-radius: var(--radius-xs);
    overflow: hidden;
    margin-bottom: .75rem;
}
.sim-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: var(--radius-xs);
    transition: width .8s cubic-bezier(.4,0,.2,1);
}
.sim-bar-orig {
    background: var(--surface-3);
    z-index: 1;
    height: 48%;
    top: 0;
}
.sim-bar-tuned {
    background: linear-gradient(90deg, #0f766e, #10b981);
    z-index: 0;
    height: 48%;
    top: 52%;
    box-shadow: 0 0 20px rgba(16,185,129,.2);
}

.sim-gauge-values {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.sim-val-orig {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}
.sim-val-orig small, .sim-val-tuned small {
    font-size: .75rem;
    font-weight: 400;
}
.sim-val-arrow {
    color: var(--text-muted);
    font-size: .9rem;
}
.sim-val-tuned {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}
.sim-val-gain {
    margin-left: auto;
    padding: .3rem .75rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    color: var(--accent);
}

.sim-cta {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.sim-cta p {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 1rem;
}

/* ============================================
   RESELLER BADGES
   ============================================ */
.reseller-badge-dyno {
    display: inline-block;
    padding: .15rem .5rem;
    margin-left: .35rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    color: var(--accent);
    vertical-align: middle;
}
.reseller-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .5rem;
}
.reseller-spec-tag {
    display: inline-block;
    padding: .15rem .5rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    color: var(--text);
}
.theme-toggle:hover {
    border-color: var(--accent-border);
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(16,185,129,.15);
}
.theme-toggle:active {
    transform: scale(.95);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ============================================
   FOCUS VISIBLE (Accessibility)
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}
.btn-primary-custom:focus-visible,
.btn-outline-custom:focus-visible,
.btn-ghost:focus-visible {
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.nav-link:focus-visible {
    outline-offset: 0;
}
.form-input:focus-visible,
.form-select:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ============================================
   LIGHT THEME - PREMIUM OVERRIDES
   ============================================ */

/* -- Hero: dark overlay for readability -- */
:root[data-theme="light"] .hero-img-overlay {
    background:
        linear-gradient(180deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.5) 30%, rgba(15,23,42,.6) 70%, var(--bg) 100%),
        linear-gradient(90deg, rgba(15,23,42,.8) 0%, transparent 65%);
}
:root[data-theme="light"] .hero-img-overlay-center {
    background:
        linear-gradient(180deg, rgba(15,23,42,.6) 0%, rgba(15,23,42,.45) 25%, rgba(15,23,42,.55) 75%, var(--bg) 100%),
        radial-gradient(ellipse at center, rgba(15,23,42,.5) 0%, rgba(15,23,42,.7) 100%);
}
:root[data-theme="light"] .hero-img h1,
:root[data-theme="light"] .hero-img .hero-eyebrow,
:root[data-theme="light"] .hero-img .hero-text,
:root[data-theme="light"] .hero-img .hero-stat-val,
:root[data-theme="light"] .hero-img .hero-stat-label {
    color: #f1f5f9;
}
:root[data-theme="light"] .hero-img .hero-text {
    color: #cbd5e1;
}
:root[data-theme="light"] .hero-img .hero-stat-label {
    color: #94a3b8;
}
:root[data-theme="light"] .hero-img h1 .accent {
    color: #34d399;
}
:root[data-theme="light"] .hero-img .hero-eyebrow {
    background: rgba(16,185,129,.15);
    border-color: rgba(16,185,129,.3);
    color: #34d399;
}
:root[data-theme="light"] .hero-img .hero-stats {
    border-color: rgba(255,255,255,.12);
}
:root[data-theme="light"] .hero-img .btn-outline-custom {
    color: #34d399;
    border-color: rgba(52,211,153,.35);
}
:root[data-theme="light"] .hero-img .btn-outline-custom:hover {
    background: rgba(52,211,153,.1);
    border-color: #34d399;
}

/* -- Header: frosted glass -- */
:root[data-theme="light"] .site-header {
    background: rgba(255,255,255,.72);
    border-bottom-color: rgba(15,23,42,.06);
    box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 32px rgba(15,23,42,.03);
}

/* -- Cards: glass + subtle shine -- */
:root[data-theme="light"] .feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-color: var(--glass-border);
    box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 32px rgba(15,23,42,.03);
}
:root[data-theme="light"] .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-shine);
    border-radius: inherit;
    opacity: .4;
    pointer-events: none;
    z-index: 0;
}
:root[data-theme="light"] .feature-card:hover {
    box-shadow: 0 8px 32px rgba(15,23,42,.06), 0 20px 60px rgba(16,185,129,.06);
    border-color: rgba(16,185,129,.2);
}

:root[data-theme="light"] .stage-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-color: var(--glass-border);
    box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 32px rgba(15,23,42,.03);
}
:root[data-theme="light"] .stage-card:hover {
    box-shadow: 0 8px 32px rgba(15,23,42,.06), 0 20px 60px rgba(16,185,129,.06);
}

:root[data-theme="light"] .reseller-card {
    box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.03);
}
:root[data-theme="light"] .reseller-card:hover {
    box-shadow: 0 8px 32px rgba(15,23,42,.06), 0 20px 50px rgba(16,185,129,.05);
}

:root[data-theme="light"] .platform-card {
    border-color: var(--glass-border);
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
:root[data-theme="light"] .platform-card:hover {
    box-shadow: 0 8px 32px rgba(15,23,42,.05), 0 16px 48px rgba(16,185,129,.04);
}

/* -- Hero card & fileservice: gradient border -- */
:root[data-theme="light"] .hero-card {
    box-shadow: 0 8px 40px rgba(15,23,42,.06);
}
:root[data-theme="light"] .hero-card::before,
:root[data-theme="light"] .fileservice-card::before {
    background: linear-gradient(135deg, rgba(16,185,129,.25), rgba(6,182,212,.1) 50%, transparent 80%);
}

/* -- CTA banner: subtle accent glow -- */
:root[data-theme="light"] .cta-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
    border-color: rgba(16,185,129,.12);
    box-shadow: 0 4px 24px rgba(16,185,129,.04);
}
:root[data-theme="light"] .cta-banner::before {
    background: radial-gradient(ellipse, rgba(16,185,129,.08) 0%, transparent 70%);
}

/* -- Section alt: warm gradient instead of flat grey -- */
:root[data-theme="light"] .section-alt {
    background: linear-gradient(180deg, #f0f4f8 0%, #e8f0f8 100%);
}

/* -- Forms & panels -- */
:root[data-theme="light"] .contact-form,
:root[data-theme="light"] .login-card,
:root[data-theme="light"] .sim-results {
    box-shadow: 0 4px 24px rgba(15,23,42,.04), 0 16px 56px rgba(15,23,42,.03);
    border-color: rgba(15,23,42,.06);
}
:root[data-theme="light"] .form-input,
:root[data-theme="light"] .form-select {
    background: #f8fafc;
    border-color: rgba(15,23,42,.1);
}
:root[data-theme="light"] .form-input:focus,
:root[data-theme="light"] .form-select:focus {
    background: #fff;
}

/* -- Expertise / info cards -- */
:root[data-theme="light"] .expertise-list li,
:root[data-theme="light"] .info-card-item,
:root[data-theme="light"] .fs-step {
    border-color: rgba(15,23,42,.06);
    box-shadow: 0 1px 3px rgba(15,23,42,.03);
}
:root[data-theme="light"] .expertise-list li:hover,
:root[data-theme="light"] .info-card-item:hover,
:root[data-theme="light"] .fs-step:hover {
    box-shadow: 0 4px 16px rgba(16,185,129,.06);
}

/* -- Buttons -- */
:root[data-theme="light"] .btn-primary-custom {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16,185,129,.2), 0 8px 32px rgba(16,185,129,.1);
}
:root[data-theme="light"] .btn-primary-custom:hover {
    box-shadow: 0 8px 24px rgba(16,185,129,.25), 0 16px 48px rgba(16,185,129,.15);
}
:root[data-theme="light"] .btn-outline-custom {
    border-color: rgba(16,185,129,.3);
}

/* -- Tags, badges -- */
:root[data-theme="light"] .ecu-tag {
    background: #fff;
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
:root[data-theme="light"] .ecu-tag:hover {
    box-shadow: 0 2px 8px rgba(16,185,129,.1);
}

/* -- Map & misc -- */
:root[data-theme="light"] .leaflet-popup-content-wrapper {
    background: #fff !important;
    color: #0f172a !important;
    border-color: rgba(0,0,0,.08) !important;
    box-shadow: 0 8px 32px rgba(15,23,42,.1) !important;
}
:root[data-theme="light"] .leaflet-popup-tip {
    background: #fff !important;
}
:root[data-theme="light"] .custom-marker svg path {
    fill: #059669;
}

/* -- Logo -- */
:root[data-theme="light"] .brand-logo {
    filter: brightness(0) saturate(100%);
}
:root[data-theme="light"] .site-footer .brand-logo,
:root[data-theme="light"] .footer-brand img {
    filter: brightness(0) saturate(100%);
}

/* -- Footer: elegant dark -- */
:root[data-theme="light"] .site-footer {
    background: #0f172a;
    border-top-color: rgba(255,255,255,.05);
}
:root[data-theme="light"] .site-footer,
:root[data-theme="light"] .site-footer h4,
:root[data-theme="light"] .footer-brand span {
    color: #f1f5f9;
}
:root[data-theme="light"] .footer-desc,
:root[data-theme="light"] .footer-col a,
:root[data-theme="light"] .footer-copy {
    color: #94a3b8;
}
:root[data-theme="light"] .footer-col a:hover {
    color: #34d399;
}
:root[data-theme="light"] .site-footer .brand-logo,
:root[data-theme="light"] .footer-brand img {
    filter: brightness(1) saturate(100%);
}
:root[data-theme="light"] .footer-bottom {
    border-top-color: rgba(255,255,255,.08);
}

/* -- Sim bars -- */
:root[data-theme="light"] .sim-bar-tuned {
    box-shadow: 0 0 20px rgba(16,185,129,.15);
}
:root[data-theme="light"] .sim-bar-orig {
    background: #e2e8f0;
}

/* -- Links -- */
:root[data-theme="light"] a:hover {
    color: #059669;
}

/* -- Counters bar -- */
:root[data-theme="light"] .reseller-counters {
    background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 32px rgba(15,23,42,.03);
}

/* -- Admin in light -- */
:root[data-theme="light"] .admin-table thead {
    background: #f8fafc;
}

/* -- Section visual images: vivid, no washed overlay -- */
:root[data-theme="light"] .section-img {
    filter: saturate(.85) brightness(.85);
}
:root[data-theme="light"] .section-visual:hover .section-img {
    filter: saturate(1) brightness(.9);
}
:root[data-theme="light"] .section-visual::after {
    background: linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}
:root[data-theme="light"] .section-alt .section-visual::after {
    background: linear-gradient(180deg, transparent 70%, #f0f4f8 100%);
}

/* ============================================
   PREMIUM EFFECTS (both themes)
   ============================================ */

@keyframes shimmerLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Subtle glow pulse on hero stat values */
.hero-stat-val {
    animation: subtleGlow 3s ease-in-out infinite alternate;
}
@keyframes subtleGlow {
    0% { text-shadow: 0 0 8px rgba(16,185,129,0); }
    100% { text-shadow: 0 0 16px rgba(16,185,129,.25); }
}

/* Platform card arrow bounce on hover */
.platform-card:hover .platform-arrow {
    animation: arrowBounce 1s ease-in-out infinite;
}
@keyframes arrowBounce {
    0%, 100% { transform: translateX(4px); }
    50% { transform: translateX(8px); }
}

/* Theme toggle rotation animation */
.theme-toggle:hover svg {
    animation: toggleSpin .5s ease;
}
@keyframes toggleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

/* Smooth transitions when switching theme */
body,
.site-header,
.site-footer,
.feature-card,
.hero-card,
.stage-card,
.reseller-card,
.platform-card,
.cta-banner,
.fs-step,
.fileservice-card,
.contact-form,
.login-card,
.admin-card,
.sim-results,
.reseller-item,
.info-card-item,
.expertise-list li,
.section-alt,
.form-input,
.form-select,
.reseller-counters {
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
    font-size: .85rem;
}
.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0;
    padding: 0;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
    content: '/';
    margin: 0 .5rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ============================================
   LEGAL & PRIVACY PAGES
   ============================================ */
.legal-content {
    max-width: 800px;
}
.legal-block {
    margin-bottom: 2.5rem;
}
.legal-block h2 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
    color: var(--text);
}
.legal-block p {
    color: var(--text-secondary);
    line-height: 1.7;
}
.legal-block a {
    color: var(--accent);
    text-decoration: underline;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item:hover {
    border-color: var(--border-hover);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: none;
    cursor: pointer;
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    gap: 1rem;
}
.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.faq-item.open .faq-question::after {
    content: '-';
}
.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    background: var(--surface);
}
.faq-item.open .faq-answer {
    display: block;
}

/* ============================================
   STRUCTURED DATA (JSON-LD injected in layout)
   ============================================ */
