/* ==============================================
   Ev Charging Page Styles
   Extracted from inline <style> in index.php
   ============================================== */

/* ============================================================
   EV CHARGING COSTS — STYLES
   ============================================================ */
.ec-evc {
    --evc-bg: #ffffff;
    --evc-surface: #f8fafc;
    --evc-surface-hover: #f1f5f9;
    --evc-border: #e2e8f0;
    --evc-text: #1e293b;
    --evc-text-dim: #64748b;
    --evc-accent: #0284c7;
    --evc-accent-glow: rgba(2,132,199,0.15);
    --evc-green: #059669;
    --evc-orange: #ea580c;
    --evc-red: #dc2626;
    --evc-purple: #7c3aed;
    --evc-radius: 12px;
    --evc-radius-sm: 8px;
    --evc-font: var(--body-font);
    --evc-heading: var(--heading-font);
}
html, body { margin: 0; padding: 0; }
#page-container { margin: 0; padding: 0; }
.ec-footer-scene { margin: 0; padding: 0; line-height: 0; }

/* mini hero bar */
.ec-mini-hero {
    background: var(--ec-accent);
    padding: 56px 48px;
}
.ec-mini-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.ec-mini-hero-left { display: flex; flex-direction: column; gap: 8px; }
.ec-mini-hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.ec-mini-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
}
.ec-mini-hero-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.ec-mini-toggle {
    display: inline-flex;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 5px;
}
.ec-mini-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 11px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,0.5);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.ec-mini-toggle-btn i { font-size: 1.2rem; }
.ec-mini-toggle-btn.is-active {
    background: #fff;
    color: var(--ec-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ec-mini-toggle-btn:not(.is-active):hover { color: rgba(255,255,255,0.8); }
.ec-mini-search {
    display: flex;
    background: #fff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.ec-mini-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
}
.ec-mini-search-input i { color: #9CA3AF; font-size: 1.5rem; }
.ec-mini-search-input input {
    border: none; outline: none; background: transparent;
    font-size: 1.4rem; font-family: inherit; color: #0A2540;
    width: 210px; padding: 18px 0; font-weight: 500;
}
.ec-mini-search-input input::placeholder { color: #D1D5DB; }
.ec-mini-search-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 36px;
    background: #0A2540; color: #fff;
    font-size: 1.15rem; font-weight: 700; font-family: inherit;
    border: none; border-radius: 12px; cursor: pointer;
    white-space: nowrap; transition: background 0.15s;
}
.ec-mini-search-btn:hover { background: #163355; }
.ec-mini-search-btn i { font-size: 1rem; }
@media (max-width: 768px) {
    .ec-mini-hero { padding: 32px 20px; }
    .ec-mini-hero-inner {
        flex-direction: column; align-items: stretch;
        gap: 20px; text-align: center;
    }
    .ec-mini-hero-right { flex-direction: column; gap: 14px; }
    .ec-mini-toggle { align-self: center; }
    .ec-mini-hero-title { font-size: 1.5rem; }
    .ec-mini-search-input input { width: 100%; flex: 1; }
}
.ec-evc {
    font-family: var(--evc-font);
    background: var(--evc-bg);
    color: var(--evc-text);
    min-height: 100vh;
    overflow-x: hidden;
}
.ec-evc a { color: var(--evc-accent); text-decoration: none; }
.ec-evc a:hover { text-decoration: underline; }

/* Breadcrumb */
.ec-evc-breadcrumb { padding: 16px 24px; font-size: 13px; color: var(--evc-text-dim); max-width: 1280px; margin: 0 auto; }
.ec-evc-breadcrumb a { color: var(--evc-text-dim); }
.ec-evc-breadcrumb a:hover { color: var(--evc-accent); }

/* Hero */
.ec-evc-hero { text-align: center; padding: 48px 24px 32px; max-width: 1280px; margin: 0 auto; position: relative; }
.ec-evc-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(5,150,105,0.06) 0%, transparent 70%); pointer-events: none; }
.ec-evc-hero h1 { font-family: var(--evc-heading); font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--evc-text); margin: 0 0 12px; letter-spacing: -0.5px; line-height: 1.15; }
.ec-evc-hero h1 span { background: linear-gradient(135deg, #059669, #0284c7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ec-evc-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.18); color: var(--evc-green); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.ec-evc-hero-intro { max-width: 860px; margin: 12px auto 0; font-size: 16px; line-height: 1.7; color: var(--evc-text-dim); text-align: center; }

/* Stats row */
.ec-evc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto 48px; padding: 0 24px; }
.ec-evc-stat { background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); padding: 24px 20px; text-align: center; }
.ec-evc-stat-value { font-family: var(--evc-heading); font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--evc-text); line-height: 1.1; margin-bottom: 4px; white-space: nowrap; }
.ec-evc-stat-label { font-size: 13px; color: var(--evc-text-dim); }

/* Sections */
.ec-evc-section { max-width: 1280px; margin: 0 auto; padding: 0 24px 56px; }
/* ec-section-header / ec-section-num inherited from ec-base.css */
.ec-evc-section-desc { font-size: 15px; color: var(--evc-text-dim); margin: 0 0 24px; line-height: 1.6; }

/* Map */
.ec-evc-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ec-evc-toggle { display: inline-flex; background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius-sm); overflow: hidden; }
.ec-evc-toggle button { padding: 8px 18px; font-size: 13px; font-weight: 600; border: none; background: transparent; color: var(--evc-text-dim); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.ec-evc-toggle button.active { background: var(--evc-accent); color: #fff; }
.ec-evc-toggle button:hover:not(.active) { background: var(--evc-surface-hover); }
.ec-evc-zoom-controls { display: flex; gap: 6px; }
.ec-evc-zoom-btn { width: 32px; height: 32px; border-radius: var(--evc-radius-sm); border: 1px solid var(--evc-border); background: var(--evc-surface); color: var(--evc-text); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.ec-evc-zoom-btn:hover { background: var(--evc-surface-hover); }
.ec-evc-map-wrap { position: relative; background: #f0f9ff; border-radius: var(--evc-radius); border: 1px solid var(--evc-border); overflow: hidden; aspect-ratio: 975/610; }
.ec-evc-map-wrap svg { width: 100%; height: 100%; }
.ec-evc-map-wrap svg .state { cursor: pointer; stroke: #fff; stroke-width: 1; transition: opacity 0.15s; }
.ec-evc-map-wrap svg .state:hover { opacity: 0.85; stroke-width: 2; }
.ec-evc-map-wrap svg .state.active { stroke: var(--evc-text); stroke-width: 2.5; }
.ec-evc-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--evc-surface); }
.ec-evc-spinner { width: 32px; height: 32px; border: 3px solid var(--evc-border); border-top-color: var(--evc-accent); border-radius: 50%; animation: evcSpin 0.8s linear infinite; }
@keyframes evcSpin { to { transform: rotate(360deg); } }
.ec-evc-legend { position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-radius: var(--evc-radius-sm); padding: 12px 16px; border: 1px solid var(--evc-border); z-index: 5; }
.ec-evc-legend-title { font-size: 11px; font-weight: 700; color: var(--evc-text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.ec-evc-legend-bar { width: 180px; height: 10px; border-radius: 5px; margin-bottom: 4px; }
.ec-evc-legend-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--evc-text-dim); font-weight: 600; }

/* State detail panel */
.ec-evc-panel { position: absolute; top: 16px; right: 16px; width: 300px; background: #fff; border-radius: var(--evc-radius); box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid var(--evc-border); padding: 24px; z-index: 10; display: none; }
.ec-evc-panel.open { display: block; }
.ec-evc-panel-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--evc-surface); color: var(--evc-text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ec-evc-panel-close:hover { background: var(--evc-surface-hover); }
.ec-evc-panel-title { font-family: var(--evc-heading); font-size: 20px; font-weight: 800; color: var(--evc-text); margin: 0 0 16px; }
.ec-evc-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ec-evc-panel-item { background: var(--evc-surface); border-radius: var(--evc-radius-sm); padding: 12px; }
.ec-evc-panel-item-label { font-size: 11px; color: var(--evc-text-dim); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.ec-evc-panel-item-value { font-family: var(--evc-heading); font-size: 18px; font-weight: 800; color: var(--evc-text); }
.ec-evc-panel-savings { background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.15); border-radius: var(--evc-radius-sm); padding: 14px; text-align: center; margin-bottom: 12px; }
.ec-evc-panel-savings-label { font-size: 11px; color: var(--evc-green); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.ec-evc-panel-savings-value { font-family: var(--evc-heading); font-size: 28px; font-weight: 800; color: var(--evc-green); }
.ec-evc-panel-cta { display: block; text-align: center; padding: 10px; background: var(--evc-accent); color: #fff !important; border-radius: var(--evc-radius-sm); font-size: 13px; font-weight: 700; text-decoration: none !important; transition: opacity 0.15s; }
.ec-evc-panel-cta:hover { opacity: 0.9; text-decoration: none !important; }

/* Calculator */
.ec-evc-calc { background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.ec-evc-calc-inputs { display: flex; flex-direction: column; gap: 20px; }
.ec-evc-calc-field { position: relative; }
.ec-evc-calc-field label { display: block; font-size: 14px; font-weight: 700; color: var(--evc-text); margin-bottom: 6px; }
.ec-evc-calc-field .ec-calc-input-wrap { position: relative; }
.ec-evc-calc-field .ec-calc-input-wrap .ec-calc-unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; color: var(--evc-text-dim); pointer-events: none; }
.ec-evc-calc-field input, .ec-evc-calc-field select { width: 100%; padding: 16px 18px; border: 1.5px solid var(--evc-border); border-radius: var(--evc-radius); font-size: 20px; font-weight: 600; font-family: var(--evc-font); color: var(--evc-text); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; height: 60px; }
.ec-evc-calc-field select { padding-right: 40px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.ec-evc-calc-field input:focus, .ec-evc-calc-field select:focus { outline: none; border-color: var(--evc-accent); box-shadow: 0 0 0 4px var(--evc-accent-glow); }
.ec-evc-calc-field input:hover, .ec-evc-calc-field select:hover { border-color: #94a3b8; }
.ec-evc-calc-field input[type=number]::-webkit-inner-spin-button,
.ec-evc-calc-field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ec-evc-calc-field input[type=number] { -moz-appearance: textfield; }
.ec-evc-calc-field small { font-size: 13px; color: var(--evc-text-dim); margin-top: 6px; display: block; line-height: 1.5; }
.ec-evc-calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ec-evc-calc-result { background: #fff; border: 1px solid var(--evc-border); border-radius: var(--evc-radius-sm); padding: 20px 16px; text-align: center; }
.ec-evc-calc-result-value { font-family: var(--evc-heading); font-size: 28px; font-weight: 800; color: var(--evc-accent); line-height: 1.1; margin-bottom: 6px; }
.ec-evc-calc-result-label { font-size: 12px; color: var(--evc-text-dim); line-height: 1.4; }
.ec-evc-calc-result.savings { grid-column: 1 / -1; background: rgba(5,150,105,0.06); border-color: rgba(5,150,105,0.15); }
.ec-evc-calc-result.savings .ec-evc-calc-result-value { color: var(--evc-green); font-size: 34px; }

/* Bar charts */
.ec-evc-bars-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ec-evc-bars-col h3 { font-family: var(--evc-heading); font-size: 16px; font-weight: 800; color: var(--evc-text); margin: 0 0 16px; }
.ec-evc-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ec-evc-bar-rank { font-size: 12px; font-weight: 700; color: var(--evc-text-dim); width: 20px; text-align: right; flex-shrink: 0; }
.ec-evc-bar-name { font-size: 13px; font-weight: 600; color: var(--evc-text); width: 100px; flex-shrink: 0; }
.ec-evc-bar-track { flex: 1; height: 24px; background: var(--evc-surface); border-radius: 6px; overflow: hidden; position: relative; }
.ec-evc-bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; transition: width 0.6s ease; }
.ec-evc-bar-val { font-size: 12px; font-weight: 700; color: var(--evc-text-dim); width: 55px; text-align: right; flex-shrink: 0; }

/* Comparison cards */
.ec-evc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ec-evc-compare-card { background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); padding: 28px; }
.ec-evc-compare-card h3 { font-family: var(--evc-heading); font-size: 18px; font-weight: 800; color: var(--evc-text); margin: 0 0 6px; }
.ec-evc-compare-card .subtitle { font-size: 13px; color: var(--evc-text-dim); margin: 0 0 20px; }
.ec-evc-compare-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--evc-border); }
.ec-evc-compare-row:last-child { border-bottom: none; }
.ec-evc-compare-label { font-size: 14px; color: var(--evc-text-dim); }
.ec-evc-compare-val { font-family: var(--evc-heading); font-size: 16px; font-weight: 700; color: var(--evc-text); }
.ec-evc-compare-val.green { color: var(--evc-green); }
.ec-evc-compare-val.red { color: var(--evc-red); }

/* Highlight stat cards — light green-bordered */
.ec-evc-stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.ec-evc-stat-card { background: #fff; border: 2px solid #d1fae5; border-radius: var(--evc-radius); padding: 32px 20px; text-align: center; }
.ec-evc-stat-card:nth-child(1) .ec-evc-stat-card-value { color: #059669; }
.ec-evc-stat-card:nth-child(2) .ec-evc-stat-card-value { color: #0284c7; }
.ec-evc-stat-card:nth-child(3) .ec-evc-stat-card-value { color: #d97706; }
.ec-evc-stat-card:nth-child(4) .ec-evc-stat-card-value { color: #059669; }
.ec-evc-stat-card-value { font-family: var(--evc-heading); font-size: 42px; font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.ec-evc-stat-card-label { font-size: 15px; color: var(--evc-text-dim); line-height: 1.55; }

/* Charging tiers — visual bar comparison */
.ec-evc-tiers { display: flex; flex-direction: column; gap: 0; max-width: 800px; }
.ec-evc-tier-row { display: grid; grid-template-columns: 160px 1fr 100px; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--evc-border); }
.ec-evc-tier-row:last-child { border-bottom: none; }
.ec-evc-tier-label { display: flex; flex-direction: column; gap: 2px; }
.ec-evc-tier-label h4 { font-family: var(--evc-heading); font-size: 15px; font-weight: 800; color: var(--evc-text); margin: 0; }
.ec-evc-tier-label span { font-size: 12px; color: var(--evc-text-dim); line-height: 1.4; }
.ec-evc-tier-bar-wrap { position: relative; height: 40px; background: var(--evc-surface); border-radius: 8px; overflow: hidden; }
.ec-evc-tier-bar { height: 100%; border-radius: 8px; display: flex; align-items: center; padding-left: 14px; font-size: 14px; font-weight: 800; color: #fff; min-width: 60px; }
.ec-evc-tier-row:nth-child(1) .ec-evc-tier-bar { background: linear-gradient(90deg, #059669, #34d399); }
.ec-evc-tier-row:nth-child(2) .ec-evc-tier-bar { background: linear-gradient(90deg, #d97706, #fbbf24); }
.ec-evc-tier-row:nth-child(3) .ec-evc-tier-bar { background: linear-gradient(90deg, #dc2626, #f87171); }
.ec-evc-tier-price { font-family: var(--evc-heading); font-size: 22px; font-weight: 800; color: var(--evc-text); text-align: right; }
.ec-evc-tier-price small { display: block; font-size: 11px; font-weight: 600; color: var(--evc-text-dim); }
.ec-evc-tier-note { font-size: 13px; color: var(--evc-text-dim); margin-top: 12px; text-align: center; max-width: 800px; }
@media (max-width: 600px) {
    .ec-evc-tier-row { grid-template-columns: 1fr 80px; }
    .ec-evc-tier-label { grid-column: 1 / -1; }
    .ec-evc-tier-bar-wrap { grid-column: 1; }
}

/* Rates impact */
.ec-evc-rates-box { background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); padding: 32px; }
.ec-evc-rates-box p { font-size: 16px; line-height: 1.8; color: var(--evc-text-dim); margin: 0 0 14px; }
.ec-evc-rates-box p:last-child { margin-bottom: 0; }
.ec-evc-rates-box strong { color: var(--evc-text); font-weight: 700; }
.ec-evc-rates-box a { color: var(--evc-accent); }

/* FAQs */
.ec-evc .ec-faq { margin: 32px 0; }
.ec-evc .ec-faq details { border-bottom: 1px solid var(--ec-border); }
.ec-evc .ec-faq details:first-child { border-top: 1px solid var(--ec-border); }
.ec-evc .ec-faq details:last-child { border-bottom: none; }
.ec-evc .ec-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-size: 1.125rem; font-weight: 600; color: #1f1f1f; cursor: pointer; list-style: none; transition: color 0.2s ease; font-family: var(--evc-font); }
.ec-evc .ec-faq summary::-webkit-details-marker { display: none; }
.ec-evc .ec-faq summary::marker { display: none; content: ''; }
.ec-evc .ec-faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--ec-text-muted); flex-shrink: 0; width: 28px; text-align: center; transition: color 0.2s ease; }
.ec-evc .ec-faq summary:hover { color: #047857; }
.ec-evc .ec-faq details[open] summary { color: #047857; }
.ec-evc .ec-faq details[open] summary::after { content: '\2212'; color: #047857; }
.ec-evc .ec-faq .ec-faq-answer { padding: 0 4px 24px; font-size: 1rem; line-height: 1.8; color: var(--ec-text-secondary); font-family: var(--evc-font); }
.ec-evc .ec-faq .ec-faq-answer p { margin: 0 0 12px; }
.ec-evc .ec-faq .ec-faq-answer p:last-child { margin-bottom: 0; }

/* Personalized summary sentence */
.ec-evc-calc-summary { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--evc-radius); padding: 20px 24px; margin-bottom: 20px; font-size: 17px; line-height: 1.7; color: var(--evc-text); text-align: center; }
.ec-evc-calc-summary strong { color: var(--evc-green); }
.ec-evc-calc-summary .gas-cost { color: var(--evc-orange); font-weight: 700; }

/* Fuel race bars */
.ec-evc-fuelrace { display: flex; flex-direction: column; gap: 20px; max-width: 700px; }
.ec-evc-fuelrace-row { display: flex; align-items: center; gap: 16px; }
.ec-evc-fuelrace-label { width: 60px; font-size: 14px; font-weight: 700; color: var(--evc-text); flex-shrink: 0; }
.ec-evc-fuelrace-track { flex: 1; height: 48px; background: var(--evc-surface); border-radius: 10px; overflow: hidden; position: relative; }
.ec-evc-fuelrace-fill { height: 100%; border-radius: 10px; display: flex; align-items: center; padding: 0 16px; font-size: 15px; font-weight: 800; color: #fff; transition: width 1.2s cubic-bezier(0.25,1,0.5,1); width: 0; }
.ec-evc-fuelrace-fill.ev { background: linear-gradient(90deg, #059669, #34d399); }
.ec-evc-fuelrace-fill.gas { background: linear-gradient(90deg, #ea580c, #fb923c); }
.ec-evc-fuelrace-val { font-family: var(--evc-heading); font-size: 18px; font-weight: 800; color: var(--evc-text); width: 90px; text-align: right; flex-shrink: 0; }
.ec-evc-fuelrace-caption { font-size: 13px; color: var(--evc-text-dim); text-align: center; margin-top: 8px; }

/* Road trips */
.ec-evc-trips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ec-evc-trip { background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); padding: 24px; }
.ec-evc-trip-route { font-family: var(--evc-heading); font-size: 16px; font-weight: 800; color: var(--evc-text); margin: 0 0 4px; }
.ec-evc-trip-distance { font-size: 12px; color: var(--evc-text-dim); margin-bottom: 16px; }
.ec-evc-trip-costs { display: flex; justify-content: space-between; gap: 12px; }
.ec-evc-trip-cost { flex: 1; text-align: center; padding: 12px 8px; border-radius: var(--evc-radius-sm); }
.ec-evc-trip-cost.ev { background: #f0fdf4; }
.ec-evc-trip-cost.gas { background: #fff7ed; }
.ec-evc-trip-cost-val { font-family: var(--evc-heading); font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.ec-evc-trip-cost.ev .ec-evc-trip-cost-val { color: var(--evc-green); }
.ec-evc-trip-cost.gas .ec-evc-trip-cost-val { color: var(--evc-orange); }
.ec-evc-trip-cost-label { font-size: 11px; color: var(--evc-text-dim); text-transform: uppercase; font-weight: 600; }
.ec-evc-trip-savings { margin-top: 12px; text-align: center; font-size: 13px; color: var(--evc-green); font-weight: 700; }
@media (max-width: 768px) { .ec-evc-trips { grid-template-columns: 1fr; } }

/* Sources */
.ec-evc-sources { max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 64px;
    border-top: 1px solid var(--evc-border);
    padding-top: 32px;}
.ec-evc-sources h3 { font-family: var(--evc-heading); font-size: 16px; font-weight: 700; color: var(--evc-text); margin: 0 0 8px; }
.ec-evc-sources p { font-size: 12px; color: var(--evc-text-dim); line-height: 1.7; }


/* Custom rate toggle */
.ec-evc-custom-rate { margin-top: 8px; }
.ec-evc-custom-rate-toggle { font-size: 13px; color: var(--evc-accent); font-weight: 600; }
.ec-evc-custom-rate-field { margin-top: 10px; }
.ec-evc-custom-rate-field .ec-calc-input-wrap { margin-bottom: 6px; }

/* Calculator CTA */
.ec-evc-calc-cta { margin-top: 16px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: var(--evc-radius); padding: 20px; text-align: center; }
.ec-evc-calc-cta p { font-size: 14px; color: var(--evc-text-dim); margin: 0 0 12px; line-height: 1.5; }
.ec-evc-calc-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--evc-accent); color: #fff !important; border-radius: var(--evc-radius-sm); font-size: 15px; font-weight: 700; text-decoration: none !important; transition: opacity 0.15s; }
.ec-evc-calc-cta-btn:hover { opacity: 0.9; text-decoration: none !important; }
.ec-evc-calc-cta-btn i { font-size: 14px; }

/* Sortable table */
.ec-evc-table-section { max-width: 1280px; margin: 0 auto; padding: 0 24px 56px; }
.ec-evc-table-heading { font-family: var(--evc-heading); font-size: 20px; font-weight: 800; color: var(--evc-text); margin: 0 0 8px; }
.ec-evc-table-controls { margin-bottom: 16px; }
.ec-evc-table-search { width: 100%; max-width: 320px; padding: 10px 16px; border: 1.5px solid var(--evc-border); border-radius: var(--evc-radius-sm); font-size: 14px; font-family: var(--evc-font); color: var(--evc-text); background: #fff; transition: border-color 0.15s; }
.ec-evc-table-search:focus { outline: none; border-color: var(--evc-accent); box-shadow: 0 0 0 3px var(--evc-accent-glow); }
.ec-evc-table-search::placeholder { color: #94a3b8; }
.ec-evc-table-wrap { overflow-x: auto; border: 1px solid var(--evc-border); border-radius: var(--evc-radius); }
.ec-evc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ec-evc-table thead { position: sticky; top: 0; z-index: 2; }
.ec-evc-table th {
    background: var(--evc-surface); padding: 12px 16px; text-align: left; font-size: 12px;
    font-weight: 700; color: var(--evc-text-dim); text-transform: uppercase; letter-spacing: 0.4px;
    border-bottom: 2px solid var(--evc-border); cursor: pointer; white-space: nowrap; user-select: none;
    transition: color 0.15s;
}
.ec-evc-table th:hover { color: var(--evc-accent); }
.ec-evc-table th::after { content: ''; display: inline-block; width: 0; margin-left: 6px; }
.ec-evc-table th.sort-asc::after { content: '\25B2'; font-size: 9px; color: var(--evc-accent); }
.ec-evc-table th.sort-desc::after { content: '\25BC'; font-size: 9px; color: var(--evc-accent); }
.ec-evc-table td { padding: 10px 16px; border-bottom: 1px solid var(--evc-border); color: var(--evc-text); }
.ec-evc-table tbody tr:last-child td { border-bottom: none; }
.ec-evc-table tbody tr:hover { background: var(--evc-surface-hover); }
.ec-evc-table td:first-child { color: var(--evc-text-dim); font-size: 12px; font-weight: 600; width: 40px; }
.ec-evc-table-savings { color: var(--evc-green) !important; font-weight: 700; }
.ec-evc-table-dereg { display: inline-block; font-size: 10px; font-weight: 700; color: var(--evc-accent); background: rgba(2,132,199,0.08); padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.3px; }

/* Charger cost section */
.ec-evc-charger-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ec-evc-charger-card { background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); padding: 28px 24px; position: relative; }
.ec-evc-charger-card.featured { border-color: var(--evc-green); border-width: 2px; }
.ec-evc-charger-card-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--evc-green); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 14px; border-radius: 12px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
.ec-evc-charger-card-header { font-family: var(--evc-heading); font-size: 16px; font-weight: 800; color: var(--evc-text); margin-bottom: 8px; }
.ec-evc-charger-card-price { font-family: var(--evc-heading); font-size: 28px; font-weight: 800; color: var(--evc-green); margin-bottom: 4px; }
.ec-evc-charger-card-sub { font-size: 13px; color: var(--evc-text-dim); margin-bottom: 16px; }
.ec-evc-charger-card-list { list-style: none; padding: 0; margin: 0; }
.ec-evc-charger-card-list li { padding: 8px 0; border-top: 1px solid var(--evc-border); font-size: 14px; color: var(--evc-text-dim); line-height: 1.5; }
.ec-evc-charger-card-list li:first-child { border-top: none; }
.ec-evc-charger-card-list li strong { color: var(--evc-text); font-weight: 600; }
.ec-evc-charger-card-list.details li { padding: 10px 0; }

/* Bill impact section */
.ec-evc-bill-compare { display: flex; align-items: stretch; gap: 24px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.ec-evc-bill-col { flex: 1; min-width: 260px; max-width: 380px; background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); overflow: hidden; }
.ec-evc-bill-col-header { padding: 14px 20px; font-family: var(--evc-heading); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }
.ec-evc-bill-col-header.before { background: #fff7ed; color: var(--evc-orange); }
.ec-evc-bill-col-header.after { background: #f0fdf4; color: var(--evc-green); }
.ec-evc-bill-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--evc-border); }
.ec-evc-bill-row:last-child { border-bottom: none; }
.ec-evc-bill-row.total { background: rgba(0,0,0,0.02); }
.ec-evc-bill-row-label { font-size: 14px; color: var(--evc-text-dim); }
.ec-evc-bill-row.total .ec-evc-bill-row-label { font-weight: 700; color: var(--evc-text); }
.ec-evc-bill-row-val { font-family: var(--evc-heading); font-size: 18px; font-weight: 800; color: var(--evc-text); }
.ec-evc-bill-row-val.orange { color: var(--evc-orange); }
.ec-evc-bill-row-val.green { color: var(--evc-green); }
.ec-evc-bill-arrow { display: flex; align-items: center; font-size: 28px; color: var(--evc-text-dim); font-weight: 300; }
.ec-evc-bill-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 800px; margin: 0 auto 16px; }
.ec-evc-bill-bottom-stat { background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); padding: 20px; text-align: center; }
.ec-evc-bill-bottom-stat.highlight { border-color: var(--evc-green); border-width: 2px; background: rgba(5,150,105,0.04); }
.ec-evc-bill-bottom-val { font-family: var(--evc-heading); font-size: 24px; font-weight: 800; color: var(--evc-text); margin-bottom: 4px; }
.ec-evc-bill-bottom-stat.highlight .ec-evc-bill-bottom-val { color: var(--evc-green); }
.ec-evc-bill-bottom-label { font-size: 13px; color: var(--evc-text-dim); }

/* Incentives section */
.ec-evc-incentives { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ec-evc-incentive { background: var(--evc-surface); border: 1px solid var(--evc-border); border-radius: var(--evc-radius); padding: 28px 24px; }
.ec-evc-incentive-amount { font-family: var(--evc-heading); font-size: 28px; font-weight: 800; color: var(--evc-green); margin-bottom: 4px; }
.ec-evc-incentive-name { font-family: var(--evc-heading); font-size: 16px; font-weight: 700; color: var(--evc-text); margin-bottom: 12px; }
.ec-evc-incentive-desc { font-size: 14px; color: var(--evc-text-dim); line-height: 1.7; margin: 0; }

/* Mobile sticky bar */
.ec-evc-mobile-sticky {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: #0A2540; transform: translateY(100%); transition: transform 0.3s ease;
}
.ec-evc-mobile-sticky.visible { transform: translateY(0); }
.ec-evc-mobile-sticky-inner { display: flex; justify-content: space-around; padding: 12px 16px; max-width: 480px; margin: 0 auto; }
.ec-evc-mobile-sticky-item { text-align: center; }
.ec-evc-mobile-sticky-val { display: block; font-family: var(--evc-heading); font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2; }
.ec-evc-mobile-sticky-item.ev .ec-evc-mobile-sticky-val { color: #34d399; }
.ec-evc-mobile-sticky-item.gas .ec-evc-mobile-sticky-val { color: #fb923c; }
.ec-evc-mobile-sticky-item.save .ec-evc-mobile-sticky-val { color: #fff; }
.ec-evc-mobile-sticky-label { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

/* Responsive */
@media (max-width: 768px) {
    .ec-evc-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ec-evc-calc { grid-template-columns: 1fr; }
    .ec-evc-bars-wrap { grid-template-columns: 1fr; }
    .ec-evc-compare { grid-template-columns: 1fr; }
    .ec-evc-stat-cards { grid-template-columns: 1fr 1fr; }
    .ec-evc-tiers { grid-template-columns: 1fr; }
    .ec-evc-panel { position: relative; top: auto; right: auto; width: 100%; margin-top: 16px; box-shadow: none; }
    .ec-evc-mobile-sticky { display: block; }
    .ec-evc-charger-grid { grid-template-columns: 1fr; }
    .ec-evc-bill-arrow { display: none; }
    .ec-evc-bill-compare { flex-direction: column; align-items: stretch; }
    .ec-evc-bill-col { max-width: none; }
    .ec-evc-bill-bottom { grid-template-columns: 1fr; }
    .ec-evc-incentives { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ec-evc-stats { grid-template-columns: 1fr 1fr; }
    .ec-evc-stat { padding: 16px 12px; }
    .ec-evc-calc-results { grid-template-columns: 1fr; }
    .ec-evc-stat-cards { grid-template-columns: 1fr; }
    .ec-evc-panel-grid { grid-template-columns: 1fr; }
}
