.fuel-tabs,
.fuel-shell .tab-panel {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.split-grid {
    grid-template-columns: 1fr;
}

.fuel-guide-trigger {
    margin-top: 1rem;
}

.data-age-alert {
    margin: -0.15rem 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.2);
    color: #FDE68A;
    font-size: 0.8rem;
    line-height: 1.5;
}

.fuel-input-lg {
    min-height: 52px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
}

.fuel-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}

.quick-car-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.garage-mini-note {
    margin-top: 0.45rem;
}

.amount-unit-field {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(104px, 0.9fr);
    gap: 0.55rem;
    align-items: stretch;
}

.unit-select {
    text-align: center;
}

.map-legend-inline {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.fuel-search-copy {
    margin-top: 0;
}

.fuel-search-actions,
.manual-search-actions {
    align-items: stretch;
}

.fuel-search-actions > *,
.manual-search-actions > * {
    min-width: 0;
}

.fuel-inline-tools {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.map-summary-card {
    min-height: 92px;
}

.map-summary-card strong {
    overflow-wrap: anywhere;
}

input.fuel-input-lg[type="number"] {
    font-variant-numeric: tabular-nums;
}

#summary-fuel {
    overflow-wrap: anywhere;
    line-height: 1.15;
}

.sort-toolbar {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin: 1rem 0 0.35rem;
}

.sort-pill {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

.sort-pill.active {
    background: rgba(16, 185, 129, 0.14);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.24);
}

.toggle-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.toggle-chip input {
    width: 18px;
    height: 18px;
    accent-color: #10B981;
    margin: 0;
}

.toggle-chip span {
    line-height: 1.45;
}

.manual-search-stack {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.address-suggestions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.address-suggestion {
    width: 100%;
    text-align: left;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.address-suggestion:hover {
    transform: translateY(-1px);
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(15, 23, 42, 0.98);
}

.address-suggestion strong,
.address-suggestion span {
    display: block;
}

.address-suggestion strong {
    color: #fff;
    font-size: 0.86rem;
}

.address-suggestion em {
    display: inline-flex;
    align-items: center;
    margin-top: 0.45rem;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #6EE7B7;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 800;
}

.address-suggestion span {
    margin-top: 0.2rem;
    color: #94A3B8;
    font-size: 0.74rem;
    line-height: 1.45;
}

#stations-result-insight {
    margin-top: 0.35rem;
}

.fuel-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(10px);
    z-index: 1200;
}

.fuel-modal.open {
    display: flex;
}

.fuel-modal-card {
    width: min(100%, 680px);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 1.1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
}

.fuel-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.fuel-modal-kicker {
    color: #6EE7B7;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fuel-modal-head h3 {
    margin-top: 0.35rem;
}

.fuel-guide-intro {
    margin: 0.55rem 0 0;
    color: #CBD5E1;
    font-size: 0.84rem;
    line-height: 1.55;
}

.fuel-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.fuel-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.fuel-guide-block {
    display: grid;
    gap: 0.4rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fuel-guide-block strong {
    color: #fff;
}

.fuel-guide-block span {
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.55;
}

.station-card {
    display: grid;
    gap: 0.85rem;
    border-radius: 18px;
}

.station-card.stale-muted {
    opacity: 0.9;
    border-style: dashed;
}

.station-card.green {
    border-color: rgba(16, 185, 129, 0.28);
}

.station-card.yellow {
    border-color: rgba(250, 204, 21, 0.25);
}

.station-card.red {
    border-color: rgba(244, 63, 94, 0.28);
}

.station-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.best-badge {
    position: static;
    display: inline-flex;
    justify-self: flex-start;
    background: rgba(16, 185, 129, 0.14);
    color: #6EE7B7;
    padding: 0.28rem 0.6rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.s-address {
    font-size: 0.76rem;
    color: #94A3B8;
    margin-top: 0.2rem;
    line-height: 1.45;
}

.s-dist {
    margin-top: 0.3rem;
}

.s-price-wrap {
    margin-left: auto;
    text-align: right;
}

.station-meta-row,
.ocr-chip-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.station-chip,
.ocr-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
}

.ocr-chip {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.16);
    color: #D1FAE5;
}

.station-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.6rem;
    align-items: center;
}

.station-link {
    color: #6EE7B7;
    text-decoration: none;
    font-weight: 700;
}

.receipt-box {
    display: grid;
    gap: 0.9rem;
}

.receipt-preview {
    width: 100%;
    min-height: 180px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(2, 6, 23, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #64748B;
    text-align: center;
    padding: 1rem;
}

.receipt-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scan-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.scan-progress div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #10B981, #22D3EE);
    transition: width 0.2s ease;
}

.stats-mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.forecast-card {
    display: grid;
    gap: 0.8rem;
}

.forecast-badge {
    display: inline-flex;
    justify-self: flex-start;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.forecast-badge.buy {
    background: rgba(16, 185, 129, 0.12);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.forecast-badge.wait {
    background: rgba(250, 204, 21, 0.12);
    color: #FDE68A;
    border: 1px solid rgba(250, 204, 21, 0.18);
}

.forecast-badge.neutral {
    background: rgba(34, 211, 238, 0.12);
    color: #A5F3FC;
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.forecast-headline {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    line-height: 1.05;
}

.forecast-reason {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.reward-card strong {
    color: #fff;
    display: block;
    margin-bottom: 0.3rem;
}

.reward-card span {
    color: #94A3B8;
    font-size: 0.8rem;
    line-height: 1.5;
}

.monthly-chart-grid {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    min-height: 190px;
    padding-top: 0.6rem;
}

.month-col {
    flex: 1;
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.month-bars {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    align-items: end;
    height: 120px;
}

.month-bar-wrap {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.month-bar {
    width: 100%;
    min-height: 6px;
    border-radius: 10px 10px 0 0;
    transition: height 0.35s ease;
}

.month-bar.eur {
    background: linear-gradient(180deg, #10B981, #059669);
}

.month-bar.km {
    background: linear-gradient(180deg, #22D3EE, #2563EB);
}

.month-label {
    font-size: 0.68rem;
    color: #94A3B8;
    font-weight: 800;
}

.month-meta {
    text-align: center;
    font-size: 0.66rem;
    color: #CBD5E1;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .map-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .amount-unit-field {
        grid-template-columns: 1fr;
    }

    .fuel-search-actions,
    .manual-search-actions {
        flex-direction: column;
    }

    .fuel-inline-tools {
        width: 100%;
    }

    .station-actions {
        grid-template-columns: 1fr;
    }

    .fuel-guide-grid {
        grid-template-columns: 1fr;
    }

    .toggle-chip {
        min-height: 0;
    }
}

@media (max-width: 540px) {
    .map-summary-card {
        min-height: 0;
    }

    .map-summary-card strong {
        font-size: 0.94rem;
    }

    .map-legend-inline {
        gap: 0.45rem;
    }

    .stats-mini {
        grid-template-columns: 1fr 1fr;
    }

    .monthly-chart-grid {
        overflow-x: auto;
        padding-bottom: 0.4rem;
    }

    .month-col {
        min-width: 72px;
    }
}

/* ═══ ENHANCED VISUAL EFFECTS ═══ */

@keyframes fuelSlideUp {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fuelGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.1), 0 20px 50px rgba(2, 6, 23, 0.2); }
    50% { box-shadow: 0 0 28px rgba(16, 185, 129, 0.18), 0 20px 50px rgba(2, 6, 23, 0.3); }
}
@keyframes fuelShimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes fuelBarGrow {
    from { height: 0%; }
    to { height: var(--bar-h, 0%); }
}

/* Station card animations */
.station-card {
    animation: fuelSlideUp .4s cubic-bezier(.22,.61,.36,1) both;
    transition: transform .25s cubic-bezier(.22,.61,.36,1), border-color .25s ease, box-shadow .35s ease;
}
.station-card:hover {
    transform: translateY(-3px);
}
.station-card.green:hover {
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.15), 0 20px 55px rgba(2, 6, 23, 0.3);
}
.station-card.yellow:hover {
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.12), 0 20px 55px rgba(2, 6, 23, 0.3);
}
.station-card.red:hover {
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.12), 0 20px 55px rgba(2, 6, 23, 0.3);
}

/* Search card glow */
.fc.highlight {
    animation: fuelGlow 5s ease-in-out infinite;
    transition: transform .2s ease;
}

/* Map container enhance */
#fuel-map {
    transition: box-shadow .3s ease;
}
#fuel-map:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.12), 0 26px 65px rgba(2, 6, 23, 0.35);
}

/* Button glow effects */
.btn-green {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-green:hover {
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.3), 0 8px 24px rgba(16, 185, 129, 0.15);
}
.btn-dark {
    transition: all 0.2s ease;
}
.btn-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}
.btn-soft:hover {
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

/* Fuel tabs hover */
.fuel-tab {
    transition: all .2s ease;
    position: relative;
}
.fuel-tab:hover {
    background: rgba(16, 185, 129, 0.06);
}
.fuel-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 30%;
    height: 3px;
    background: #10B981;
    border-radius: 3px 3px 0 0;
}

/* Sort pill pulse */
.sort-pill {
    transition: all .2s ease;
}
.sort-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}
.sort-pill.active {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

/* Hero mini cards entrance */
.hero-mini, .map-summary-card {
    animation: fuelSlideUp .4s cubic-bezier(.22,.61,.36,1) both;
    transition: transform .2s ease, box-shadow .3s ease;
}
.hero-mini:nth-child(1), .map-summary-card:nth-child(1) { animation-delay: .05s; }
.hero-mini:nth-child(2), .map-summary-card:nth-child(2) { animation-delay: .1s; }
.hero-mini:nth-child(3), .map-summary-card:nth-child(3) { animation-delay: .15s; }
.hero-mini:nth-child(4), .map-summary-card:nth-child(4) { animation-delay: .2s; }
.hero-mini:hover, .map-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.1), 0 20px 50px rgba(2, 6, 23, 0.25);
}

/* Stat box enhanced */
.stat-box {
    transition: transform .2s ease, box-shadow .3s ease;
}
.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
}

/* Legend chip hover */
.legend-chip {
    transition: all .2s ease;
}
.legend-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.04);
}

/* Forecast card animation */
.forecast-card {
    animation: fuelSlideUp .5s cubic-bezier(.22,.61,.36,1) both;
}
.forecast-headline {
    background: linear-gradient(135deg, #6EE7B7, #22D3EE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Expense row hover */
.exp-row {
    transition: background .2s ease;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 10px;
}
.exp-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Tip card entrance */
.tip-card {
    transition: transform .2s ease, box-shadow .3s ease;
}
.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.1);
}

/* Month bar animation */
.month-bar {
    animation: fuelBarGrow .6s cubic-bezier(.22,.61,.36,1) both;
}
.month-col:nth-child(1) .month-bar { animation-delay: .05s; }
.month-col:nth-child(2) .month-bar { animation-delay: .1s; }
.month-col:nth-child(3) .month-bar { animation-delay: .15s; }
.month-col:nth-child(4) .month-bar { animation-delay: .2s; }
.month-col:nth-child(5) .month-bar { animation-delay: .25s; }
.month-col:nth-child(6) .month-bar { animation-delay: .3s; }

/* Fuel hero shimmer */
.fuel-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.03) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: fuelShimmer 6s ease-in-out infinite;
    pointer-events: none;
}
