/* ===== THEME ===== */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --ad-navy: #0f172a;
    --ad-navy-light: #1e293b;
    --ad-slate: #64748b;
    --ad-slate-light: #94a3b8;
    --ad-surface: #f8fafc;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper > main {
    flex: 1;
}

a, .btn-link {
    color: #2563eb;
}

.btn-primary {
    --bs-btn-bg: #2563eb;
    --bs-btn-border-color: #2563eb;
    --bs-btn-hover-bg: #1d4ed8;
    --bs-btn-hover-border-color: #1d4ed8;
    --bs-btn-active-bg: #1e40af;
    --bs-btn-active-border-color: #1e40af;
    --bs-btn-disabled-bg: #2563eb;
    --bs-btn-disabled-border-color: #2563eb;
}

.bg-primary {
    background-color: #2563eb !important;
}

.text-primary {
    color: #2563eb !important;
}

.border-primary {
    border-color: #2563eb !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #60a5fa;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* ===== FORM VALIDATION ===== */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* ===== ERROR BOUNDARY ===== */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ===== FORM COMPONENTS ===== */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== STEPPER ===== */
.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.line {
    height: 2px;
    width: 100%;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    z-index: -1;
    background-color: #b6b6b7;
}

/* ===== COLLAPSIBLE CARDS ===== */
.collapse-toggle {
    cursor: pointer;
    user-select: none;
}

.collapse-toggle .collapse-chevron {
    transition: transform 0.3s ease;
}

.collapse-toggle[aria-expanded="true"] .collapse-chevron {
    transform: rotate(180deg);
}

/* ===== SIGNATURE FIELD ===== */
.signature-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
}

.border-dashed {
    border-style: dashed !important;
}

/* ==========================================================================
   HOME PAGE
   ========================================================================== */

/* ===== NAVBAR ===== */
.navbar-site {
    background: var(--ad-navy);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1100; /* above Leaflet controls (max ~1000) */
}

.navbar-site .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.navbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.navbar-link i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s;
}
.navbar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}
.navbar-link:hover i { color: white; }
.navbar-link-cta {
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.navbar-link-cta:hover {
    background: white;
    color: var(--ad-navy);
}
.navbar-link-cta:hover i { color: var(--ad-navy); }

.navbar-menu-btn {
    font-size: 1.6rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
}
.navbar-menu-btn:hover,
.navbar-menu-btn:focus {
    background: rgba(255, 255, 255, 0.08);
    color: white !important;
}

/* Site offcanvas (right-side drawer) */
.offcanvas-backdrop { z-index: 1200 !important; }
.site-offcanvas {
    background: var(--ad-navy);
    color: white;
    width: 320px !important;
    max-width: 85vw;
    z-index: 1210 !important; /* above sticky navbar (1100) */
}
.site-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
}
.site-offcanvas .offcanvas-title { color: white; }
.site-offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(2);
    opacity: 0.8;
}
.site-offcanvas .offcanvas-body { padding: 1rem; }
.site-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav-list li { margin-bottom: 4px; }
.site-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.site-nav-link i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s;
}
.site-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}
.site-nav-link:hover i { color: var(--bs-primary); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(165deg, #070b14 0%, var(--ad-navy) 40%, #0c1b33 100%);
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.min-vh-hero {
    min-height: 60vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse at 35% 50%, black 15%, transparent 65%);
    mask-image: radial-gradient(ellipse at 35% 50%, black 15%, transparent 65%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-orb--1 {
    width: 550px;
    height: 550px;
    top: -10%;
    right: 5%;
    background: rgba(37, 99, 235, 0.12);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--2 {
    width: 350px;
    height: 350px;
    bottom: -5%;
    left: -5%;
    background: rgba(99, 102, 241, 0.08);
    animation: orbFloat 10s ease-in-out 2s infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -20px); }
}

.hero-col {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-heading {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--ad-slate-light);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    padding: 0.9rem 2.25rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.btn-hero:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.4);
}

.btn-hero i {
    transition: transform 0.3s ease;
}

.btn-hero:hover i {
    transform: translateX(3px);
}

.hero-visual {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-car {
    display: block;
    width: 100%;
    max-width: 480px;
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

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

/* ===== HOW IT WORKS ===== */
.how-section {
    padding: 6rem 0;
    background: var(--ad-surface);
    position: relative;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--ad-navy);
    letter-spacing: -0.03em;
}

.steps-row {
    position: relative;
}

.steps-line {
    display: none;
}

.step {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
    border-color: rgba(37, 99, 235, 0.2);
}

.step-num {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--bs-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.step-icon {
    font-size: 2.25rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.step-title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ad-navy);
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.step-text {
    color: var(--ad-slate);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== HOW-TO PAGE ===== */
.howto-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ===== HOW-TO STEPS ===== */
.howto-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--ad-border);
}

.howto-step:last-child {
    border-bottom: none;
}

.howto-step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-family: 'Archivo', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
}

.howto-step-title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ad-heading);
    margin-bottom: 0.35rem;
}

.howto-step-text {
    color: var(--ad-slate);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== FEATURES ===== */
.feat-section {
    padding: 6rem 0;
    background: #fff;
}

.feat {
    padding: 2.5rem 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
}

.feat:hover::before {
    transform: scaleX(1);
}

.feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--bs-primary);
    border-radius: 0.75rem;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feat:hover .feat-icon {
    background: var(--bs-primary);
    color: #fff;
}

.feat-title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ad-navy);
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.feat-text {
    color: var(--ad-slate);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== CTA ===== */
.bottom-cta {
    background: linear-gradient(165deg, var(--ad-navy) 0%, #0c1b33 100%);
    padding: 6rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bottom-cta-orb {
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.bottom-cta-heading {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    position: relative;
}

.bottom-cta-desc {
    color: var(--ad-slate-light);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    position: relative;
}

.btn-hero--light {
    background: #fff;
    color: var(--ad-navy);
}

.btn-hero--light:hover {
    background: #f1f5f9;
    color: var(--ad-navy);
    box-shadow: 0 12px 36px rgba(255, 255, 255, 0.15);
}

/* ===== SERVICE DESCRIPTION ===== */
.service-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-top: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
}

.service-section .section-heading {
    margin-bottom: 1.5rem;
}

.service-desc {
    font-size: 1.1rem;
    color: var(--ad-slate);
    line-height: 1.8;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 4rem 0;
    background: var(--ad-surface);
}

.faq-section .accordion-item {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
}

.faq-section .accordion-button {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ad-navy);
    background: transparent;
    padding: 1.25rem 0;
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background: transparent;
}

.faq-section .accordion-body {
    padding: 0 0 1.25rem;
    font-size: 1rem;
    color: var(--ad-slate);
    line-height: 1.7;
}

.faq-section .accordion-body a {
    color: var(--bs-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-section .accordion-body a:hover {
    color: #1d4ed8;
}

/* ===== FOOTER ===== */
.footer-site {
    background: #080d19;
    color: #fff;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand {
    font-size: 1.15rem;
}

.footer-link {
    color: var(--ad-slate-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

/* ===== HOME PAGE RESPONSIVE ===== */
@media (min-width: 768px) {
    .steps-line {
        display: block;
        position: absolute;
        top: 58px;
        left: 20%;
        right: 20%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #cbd5e1 15%, #cbd5e1 85%, transparent);
        z-index: 0;
    }
}

@media (max-width: 991px) {
    .hero-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .min-vh-hero {
        min-height: auto;
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .bottom-cta-heading {
        font-size: 1.75rem;
    }

    .how-section,
    .feat-section,
    .bottom-cta {
        padding: 4rem 0;
    }
}

/* ==========================================================================
   CONTRACT TEMPLATE / LANDING PAGE
   ========================================================================== */

.download-template-card {
    text-align: center;
}

.guide-content h2 {
    font-size: 1.35rem;
}

.guide-content p,
.guide-content li {
    color: var(--ad-slate);
    font-size: 0.95rem;
    line-height: 1.75;
}

.guide-content ul,
.guide-content ol {
    padding-left: 1.25rem;
}

.guide-content li {
    margin-bottom: 0.4rem;
}

.guide-content a {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* ==========================================================================
   CONTRACT PAGE
   ========================================================================== */

.contract-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

.contract-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contract-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ad-navy);
    letter-spacing: -0.02em;
}

/* ===== SECTION CARD ===== */
.section-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #fff;
    transition: all 0.25s ease;
}

.section-card-active {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.section-card-completed {
    border-color: #bbf7d0;
}

/* ===== SECTION HEADER ===== */
.section-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.15s ease;
}

.section-header.collapse-toggle:hover {
    filter: brightness(0.97);
}

.section-header-disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.section-header-active {
    background: #fff;
    color: var(--ad-navy);
}

.section-header-completed {
    background: #f0fdf4;
    color: #15803d;
}

/* ===== SECTION NUMBER BADGE ===== */
.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.section-header-disabled .section-number {
    background: #e2e8f0;
    color: #94a3b8;
}

.section-header-active .section-number {
    background: #2563eb;
    color: #fff;
}

.section-header-completed .section-number {
    background: #22c55e;
    color: #fff;
}

/* ===== SECTION EDIT BUTTON ===== */
.section-edit-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.85rem;
    border-radius: 2rem;
    border: 1px solid #bbf7d0;
    background: transparent;
    color: #15803d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.section-edit-btn:hover {
    background: #dcfce7;
}

/* ===== SECTION BODY ===== */
.section-body {
    padding: 1.5rem 1.5rem 1rem;
}

.section-body .form-label {
    font-weight: 500;
    color: var(--ad-navy);
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.section-body .form-control,
.section-body .form-select {
    border-radius: 0.5rem;
    border-color: #cbd5e1;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
}

.section-body .form-control:focus,
.section-body .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.section-body .alert-danger {
    border-radius: 0.65rem;
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.9rem;
}

/* ===== SECTION FOOTER ===== */
.section-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.btn-section-next {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-section-next:hover:not(:disabled) {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-section-next:disabled {
    background: #94a3b8;
    color: #fff;
    cursor: not-allowed;
}

/* ===== BUYER METHOD CARDS ===== */
.method-card {
    border: 2px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    background: #fff;
}

.method-card:hover {
    border-color: #93c5fd;
    background: #fafbff;
}

.method-card-selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.method-card-icon {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.method-card-selected .method-card-icon {
    color: #2563eb;
}

.method-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ad-navy);
    margin-bottom: 0.5rem;
}

.method-card p {
    font-size: 0.85rem;
    color: var(--ad-slate);
    margin-bottom: 0.75rem;
}

/* ===== STATUS PAGES ===== */
.status-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 5rem 1rem;
    text-align: center;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.status-icon-success {
    color: #22c55e;
}

.status-icon-danger {
    color: #ef4444;
}

.status-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ad-navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.status-text {
    color: var(--ad-slate);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ===== DOWNLOAD PAGE ===== */
.download-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
    margin-bottom: 1.5rem;
}

.download-card-header {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 700;
    color: var(--ad-navy);
}

.download-card-body {
    padding: 1.5rem;
}

/* ===== DEMO PAGE ===== */
.demo-subtitle {
    color: var(--ad-slate);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* Force all collapse sections open in demo page */
.demo-page .collapse {
    display: block;
    height: auto !important;
}

/* Hide edit buttons in demo */
.demo-page .section-edit-btn {
    display: none;
}

/* Neutral headers instead of green in demo */
.demo-page .section-header-completed {
    background: #f8fafc;
    color: var(--ad-navy);
}

.demo-page .section-header-completed .section-number {
    background: var(--bs-primary);
    color: #fff;
}

/* Pre-select only "this device" method card in demo */
.demo-page .col-md-6:first-child .method-card {
    border-color: var(--bs-primary);
    background: #eff6ff;
}

.demo-page .col-md-6:last-child .method-card {
    border-color: #e2e8f0;
    background: #fff;
    opacity: 0.7;
}

/* intro.js tooltip styling */
.demo-tooltip {
    position: fixed !important;
    inset: auto auto 2rem 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 2rem) !important;
    max-width: 720px !important;
    margin: 0 !important;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 0;
    z-index: 10000002;
}

.demo-tooltip .introjs-arrow {
    display: none !important;
}

.demo-tooltip .introjs-tooltip-header {
    padding: 1.25rem 1.5rem 0;
    border-bottom: none;
}

.demo-tooltip .introjs-tooltip-title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ad-navy);
}

.demo-tooltip .introjs-tooltiptext {
    color: var(--ad-slate);
    line-height: 1.7;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem 1rem;
}

.demo-tooltip .introjs-tooltipbuttons {
    border-top: 1px solid #f1f5f9;
    padding: 0.85rem 1.5rem;
}

.demo-tooltip .introjs-bullets {
    padding: 0.5rem 0 0;
}

.demo-tooltip .introjs-bullets ul li a {
    width: 8px;
    height: 8px;
}

.demo-tooltip .introjs-bullets ul li a.active {
    background: var(--bs-primary);
    width: 20px;
    border-radius: 4px;
}

.demo-tooltip .introjs-skipbutton {
    font-size: 1.25rem;
    color: var(--ad-slate);
    padding: 0.25rem 0.5rem;
}

.introjs-button {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    text-shadow: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.introjs-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.introjs-nextbutton,
.introjs-donebutton {
    background: var(--bs-primary);
    color: #fff;
    border: 1px solid var(--bs-primary);
}

.introjs-nextbutton:hover,
.introjs-donebutton:hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.introjs-prevbutton {
    background: #fff;
    color: var(--ad-navy);
    border: 1px solid #e2e8f0;
}

.introjs-prevbutton:hover {
    background: #f8fafc;
    color: var(--ad-navy);
    border-color: #cbd5e1;
}

.introjs-helperLayer {
    border-radius: 0.85rem;
    box-shadow: 0 0 0 5000px rgba(15, 23, 42, 0.6);
}

.introjs-tooltipReferenceLayer {
    z-index: 10000001;
}

/* Mobile: full-width bottom sheet */
@media (max-width: 768px) {
    .introjs-tooltip.demo-tooltip {
        inset: auto 0 0 0 !important;
        transform: none !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 1rem 1rem 0 0;
        margin: 0 !important;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    }

    .introjs-tooltip.demo-tooltip .introjs-tooltipbuttons {
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .introjs-tooltip.demo-tooltip .introjs-tooltiptext {
        padding: 1rem;
        max-height: 40vh;
        overflow-y: auto;
    }

    .introjs-tooltip.demo-tooltip .introjs-tooltip-header {
        padding: 1rem 1rem 0;
    }
}

.demo-download-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 0.85rem;
    margin-top: 0.5rem;
}

.demo-download-icon {
    font-size: 3.5rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.demo-download-title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ad-navy);
    margin-bottom: 0.75rem;
}

.demo-download-desc {
    color: var(--ad-slate);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 2rem;
}

.demo-start-real {
    margin-top: 1.25rem;
}


.btn-hero--outline {
    background: transparent;
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.btn-hero--outline:hover {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.3);
}

/* ===== CONTRACT PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .contract-page {
        padding: 1.5rem 0.75rem 3rem;
    }

    .contract-page-title {
        font-size: 1.4rem;
    }

    .section-body {
        padding: 1.25rem 1rem 0.75rem;
    }

    .section-footer {
        padding: 0.85rem 1rem;
    }

    .status-page {
        padding: 3rem 1rem;
    }
}

/* ==========================================
   FUEL PRICES — Dashboard, Map, Stations, Cheapest, Companies
   ========================================== */

:root {
    --fc-bg: #f8fafc;
    --fc-card: #ffffff;
    --fc-border: #e2e8f0;
    --fc-border-strong: #cbd5e1;
    --fc-text: #0f172a;
    --fc-muted: #64748b;
    --fc-muted-light: #94a3b8;
    --fc-hover: #f1f5f9;
}

.fuel-mono {
    font-family: 'JetBrains Mono', 'DM Mono', 'SF Mono', monospace;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ===== SUB-NAV HEADER ===== */
.fuel-header {
    background: white;
    border-bottom: 1px solid var(--fc-border);
    padding: 1rem 0 0;
}
.fuel-header-title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ad-navy);
}
.fuel-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.fuel-tabs::-webkit-scrollbar { display: none; }
.fuel-tab {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fc-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    margin-bottom: -1px;
}
.fuel-tab:hover { color: var(--ad-navy); }
.fuel-tab.active {
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
    font-weight: 600;
}

/* ===== LAYOUT ===== */
.fc-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 28px;
}
.fc-content-row {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.fc-muted { color: var(--fc-muted); }
.fc-date-line {
    font-size: 12px;
    color: var(--fc-muted);
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== STAT CARDS ===== */
.fc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.fc-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 200px;
    min-width: 0;
    transition: all 0.3s ease;
    text-align: center;
}
.fc-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
    border-color: rgba(37, 99, 235, 0.2);
}
.fc-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--bs-primary) !important;
}
.fc-stat-icon i {
    display: block;
    line-height: 1;
}
.fc-stat-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.fc-stat-body {
    min-width: 0;
    flex: 1;
}
.fc-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ad-slate);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.fc-stat-value {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ad-navy);
    margin-top: 4px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.fc-stat-sub {
    font-size: 0.8rem;
    color: var(--ad-slate);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 4px;
}

.fc-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fc-text);
    margin-bottom: 14px;
}

/* ===== RANGE BARS ===== */
.fc-range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}
.fc-range-card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    padding: 18px 22px;
}
.fc-range-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.fc-range-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fc-text);
}
.fc-range-badge {
    font-size: 10px;
    color: var(--fc-muted);
    background: var(--fc-bg);
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 500;
}
.fc-range-price {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.fc-range-track {
    position: relative;
    height: 7px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--fuel-color) 10%, transparent);
}
.fc-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--fuel-color) 40%, transparent),
        var(--fuel-color));
}
.fc-range-dot {
    position: absolute;
    top: -5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--fuel-color);
    border: 3px solid var(--fc-card);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fuel-color) 30%, transparent);
    transform: translateX(-50%);
}
.fc-range-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 11px;
    color: var(--fc-muted);
}

/* ===== FILTER BAR ===== */
.fc-filter-bar {
    background: white;
    border-bottom: 1px solid var(--fc-border);
}
.fc-filter-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}
.fc-filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fc-muted);
    font-size: 13px;
}
.fc-filter-search input {
    width: 100%;
    background: var(--fc-card);
    color: var(--fc-text);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    padding: 9px 14px 9px 34px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.15s;
}
.fc-filter-search input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.fc-filter-select {
    background: var(--fc-card);
    color: var(--fc-text);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    min-width: 160px;
}
.fc-filter-select:focus { border-color: var(--bs-primary); }
.fc-filter-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--fc-muted);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== TABLES ===== */
.fc-table-card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    overflow: hidden;
}
.fc-table {
    --fuel-cols: 1;
    display: flex;
    flex-direction: column;
}
.fc-thead,
.fc-tr {
    display: grid;
    grid-template-columns: 2fr 1.2fr repeat(var(--fuel-cols), 1fr);
    gap: 8px;
    align-items: center;
    padding: 12px 18px;
}
.fc-table-companies .fc-thead,
.fc-table-companies .fc-tr {
    grid-template-columns: 2fr 0.6fr repeat(var(--fuel-cols), 1fr);
}
.fc-thead {
    border-bottom: 2px solid var(--fc-border);
    background: #fafbfc;
}
.fc-thead > div {
    font-size: 11px;
    font-weight: 700;
    color: var(--fc-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fc-th-fuel {
    text-align: right;
    cursor: pointer;
    user-select: none;
}
.fc-th-fuel:hover { opacity: 0.8; }
.fc-th-sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.12s;
}
.fc-th-sortable:hover { color: var(--ad-navy) !important; }
.fc-th-sortable.asc,
.fc-th-sortable.desc {
    color: var(--bs-primary);
}
.fc-tbody {
    max-height: 560px;
    overflow-y: auto;
}
.fc-tr {
    border-bottom: 1px solid var(--fc-border);
    font-size: 13px;
    transition: background 0.12s;
}
.fc-tr:hover { background: var(--fc-hover); }
.fc-tr:last-child { border-bottom: none; }

.fc-td-station { min-width: 0; }
.fc-station-name {
    font-weight: 600;
    color: var(--fc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-station-address {
    font-size: 11px;
    color: var(--fc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.fc-td-muni {
    font-size: 12px;
    color: var(--fc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-td-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    color: var(--ad-navy);
}
.fc-price-value {
    min-width: 48px;
    text-align: right;
}
.fc-price-empty {
    color: var(--fc-muted-light);
}
.fe-delta {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}
.fe-delta-up {
    color: #ffffff;
    background: #ef4444;
}
.fe-delta-down {
    color: #ffffff;
    background: #22c55e;
}
/* Stat card delta row */
.fc-stat-delta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--fc-border);
    width: 100%;
}
.fc-stat-delta-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--fc-muted);
    letter-spacing: 0.06em;
}
/* Stat card delta pill */
.fe-delta-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    vertical-align: middle;
    letter-spacing: 0;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}
.fe-delta-pill.fe-delta-up {
    color: #ffffff;
    background: #ef4444;
}
.fe-delta-pill.fe-delta-down {
    color: #ffffff;
    background: #22c55e;
}
.fc-td-company {
    font-weight: 600;
    color: var(--fc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.fc-company-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fc-td-count {
    text-align: center;
    font-size: 12px;
    color: var(--fc-muted);
    font-family: 'JetBrains Mono', monospace;
}
.fc-table-footer {
    padding: 14px;
    text-align: center;
    color: var(--fc-muted);
    font-size: 13px;
    border-top: 1px solid var(--fc-border);
    background: #fafbfc;
}

/* ===== CHEAPEST CARDS ===== */
.fc-cheapest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.fc-cheapest-card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    overflow: hidden;
}
.fc-cheapest-head {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--fc-border);
    background: #fafbfc;
}
.fc-cheapest-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fc-text);
}
.fc-cheapest-row {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--fc-border);
}
.fc-cheapest-row:last-child { border-bottom: none; }
.fc-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.fc-cheapest-info {
    flex: 1;
    min-width: 0;
}
.fc-cheapest-company {
    font-size: 13px;
    font-weight: 600;
    color: var(--fc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-cheapest-location {
    font-size: 11px;
    color: var(--fc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.fc-cheapest-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ===== MAP ===== */
.fc-map-toolbar,
.fc-legend-bar {
    background: white;
    border-bottom: 1px solid var(--fc-border);
}
.fc-map-label {
    font-size: 12px;
    color: var(--fc-muted);
    font-weight: 500;
}
.fc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fc-pill {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--fc-border);
    background: white;
    color: var(--fc-muted);
    transition: all 0.15s;
    white-space: nowrap;
}
.fc-pill:hover { border-color: var(--fc-border-strong); }
.fc-pill.active { font-weight: 700; }
.fc-date-right {
    margin-left: auto;
    font-size: 12px;
    color: var(--fc-muted);
    font-family: 'JetBrains Mono', monospace;
}
.fc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--fc-muted);
}
.fc-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fc-map-container {
    width: 100%;
    height: calc(100vh - 260px);
    min-height: 420px;
}
.fc-map-help {
    text-align: center;
    font-size: 11px;
    color: var(--fc-muted);
    padding: 10px;
    background: white;
    border-top: 1px solid var(--fc-border);
}

/* Leaflet custom marker & popup */
.fm-icon-wrap { background: transparent !important; border: none !important; }
.fm-marker {
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.fm-marker-active {
    width: 40px;
    height: 40px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.fm-marker-faded {
    width: 18px;
    height: 18px;
    opacity: 0.45;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.fm-marker-selected .fm-marker {
    animation: fm-pulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 6px 18px rgba(0, 0, 0, 0.35);
    transform: scale(1.15);
    border-width: 3px;
    z-index: 1000;
}
@keyframes fm-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 6px 18px rgba(0, 0, 0, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.18), 0 6px 18px rgba(0, 0, 0, 0.35); }
}
.fm-popup { font-family: 'Inter', sans-serif; min-width: 200px; }
.fm-popup-company {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}
.fm-popup-addr {
    color: var(--fc-muted);
    font-size: 11px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.fm-popup-prices {
    border-top: 1px solid var(--fc-border);
    padding-top: 8px;
}
.fm-popup-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
}
.fm-popup-row b {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    color: var(--fc-text);
}
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid var(--fc-border) !important;
}
.leaflet-popup-content { margin: 14px 16px !important; }

/* Marker cluster styling — match site theme */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: rgba(37, 99, 235, 0.15) !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: var(--bs-primary) !important;
    color: white !important;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .fc-content { padding: 16px 14px; }
    .fc-content-row { padding: 12px 14px; }
    .fc-stat { flex: 1 1 140px; padding: 16px 12px 14px; gap: 8px; }
    .fc-stat-value { font-size: 18px; }
    .fc-stat-icon { width: 42px; height: 42px; font-size: 20px; }
    .fc-range-grid { grid-template-columns: 1fr; }
    .fc-thead, .fc-tr {
        grid-template-columns: 1.5fr 1fr repeat(var(--fuel-cols), minmax(60px, 1fr));
        font-size: 12px;
        padding: 10px 12px;
    }
    /* Stack price and delta vertically so pills don't overflow narrow columns */
    .fc-td-price {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
    .fc-price-value { min-width: 0; }
    .fe-delta { font-size: 8px; padding: 0 4px; }
    .fc-map-container { height: calc(100vh - 300px); min-height: 360px; }
}

/* ===== FUEL EXPLORER (unified page) ===== */

/* Compact stats section — first section below filter bar, doubles as the page header */
.fe-stats-section {
    padding: 2.25rem 0 2.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-bottom: 1px solid #dbeafe;
}
.fe-page-head {
    text-align: center;
    margin-bottom: 1.75rem;
}
.fe-page-title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--ad-navy);
    letter-spacing: -0.02em;
    margin: 0;
}
.fe-page-sub {
    font-size: 0.85rem;
    color: var(--ad-slate);
    margin: 6px 0 0;
}
.fe-content-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.fe-source-link {
    color: var(--fc-muted);
    text-decoration: underline;
    text-decoration-color: var(--fc-border-strong);
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.fe-source-link:hover {
    color: var(--bs-primary);
    text-decoration-color: var(--bs-primary);
}

/* Compact dropdown filter bar */
.fe-filterbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    position: sticky;
    top: 58px; /* sits below the sticky navbar */
    z-index: 1090; /* above Leaflet controls, just below navbar */
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.fe-filterbar-inner {
    padding: 0 28px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
/* Bootstrap dropdown overrides for filter pills */
.fe-dd { flex-shrink: 0; }
.fe-dd-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: white !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 99px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    color: var(--fc-text) !important;
    min-width: 140px;
    max-width: 220px;
    text-align: left !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.fe-dd-btn:hover {
    border-color: var(--fc-border-strong) !important;
}
.fe-dd-btn:focus,
.fe-dd-btn.show {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}
.fe-dd-btn::after {
    margin-left: auto;
    color: var(--fc-muted);
}

.fe-dd-menu {
    min-width: 220px;
    max-width: 320px;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--fc-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
    padding: 6px !important;
    margin-top: 6px !important;
}
.fe-dd-menu .dropdown-item {
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--fc-text);
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.fe-dd-menu .dropdown-item:hover { background: var(--fc-hover); }
.fe-dd-menu .dropdown-item.active,
.fe-dd-menu .dropdown-item:active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--bs-primary);
    font-weight: 600;
}

/* Search input inside dropdown */
.fe-dd-menu-searchable { padding-top: 0 !important; }
.fe-dd-search {
    position: sticky;
    top: 0;
    background: white;
    padding: 6px 6px 8px;
    border-bottom: 1px solid var(--fc-border);
    margin: 0 -6px 6px;
    z-index: 1;
}
.fe-dd-search input {
    border-radius: 8px;
    font-size: 13px;
    border-color: var(--fc-border);
}
.fe-dd-search input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fe-clear-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--fc-muted);
    text-decoration: none;
    padding: 7px 10px;
    transition: color 0.15s;
}
.fe-clear-link:hover { color: var(--ad-navy); }
.fe-clear-link i { font-size: 14px; }

/* Sections */
.fe-section { margin-top: 32px; }
.fe-section-head {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fe-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ad-navy);
    margin: 0;
}

/* Cheapest list (single fuel) */
.fe-cheapest-list {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    overflow: hidden;
}
.fe-cheap-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--fc-border);
}
.fe-cheap-row:last-child { border-bottom: none; }
.fe-cheap-row-compact { padding: 10px 16px; }
.fe-cheap-clickable {
    cursor: pointer;
    transition: background 0.12s;
}
.fe-cheap-clickable:hover {
    background: var(--fc-hover);
}
.fe-cheap-info { flex: 1; min-width: 0; }
.fe-cheap-company {
    font-size: 13px;
    font-weight: 600;
    color: var(--fc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fe-cheap-location {
    font-size: 11px;
    color: var(--fc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.fe-cheap-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Cheapest grid (multi-fuel) */
.fe-cheap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.fe-cheap-card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    overflow: hidden;
}
.fe-cheap-card-head {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--fc-border);
    background: #fafbfc;
}
.fe-cheap-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-text);
}

/* Cross-promo CTA */
.fe-cta {
    margin-top: 32px;
    background: linear-gradient(135deg, var(--ad-navy) 0%, #1e2c4a 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: white;
    overflow: hidden;
    position: relative;
}
.fe-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.fe-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.fe-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.fe-cta-text { flex: 1; min-width: 0; }
.fe-cta-title {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    color: white;
}
.fe-cta-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}
.fe-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 99px;
    background: white;
    color: var(--ad-navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}
.fe-cta-btn:hover {
    color: var(--ad-navy);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.fe-cta-btn i { font-size: 14px; }

@media (max-width: 768px) {
    .fe-cta { padding: 20px 18px; }
    .fe-cta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .fe-cta-icon { display: none; }
    .fe-cta-title { font-size: 17px; }
    .fe-cta-desc { font-size: 13px; }
    .fe-cta-btn { width: 100%; justify-content: center; }
}

/* Map */
.fe-map {
    width: 100%;
    height: 480px;
    border-radius: 14px;
    border: 1px solid var(--fc-border);
    overflow: hidden;
}

@media (max-width: 768px) {
    .fe-header { padding: 16px 0 12px; }
    .fe-title { font-size: 20px; }
    .fe-subtitle { font-size: 12px; }
    .fe-content-row { padding: 0 14px; }
    .fe-filterbar-inner { padding: 8px 14px; gap: 6px; }
    .fe-dd { flex: 1 1 calc(50% - 3px); min-width: 0; }
    .fe-dd-btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        font-size: 13px !important;
        padding: 8px 14px !important;
    }
    .fe-dd-menu {
        max-width: calc(100vw - 28px);
    }
    .fe-dd-menu .dropdown-item {
        padding: 11px 14px;
        font-size: 15px;
    }
    .fe-clear-link { flex: 1 1 100%; justify-content: center; }
    .fe-map { height: 380px; }
}


