:root {
    --orange: #f97316;
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --orange-600: #ea580c;
    --orange-50: #fff7ed;
    --grad: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);

    --ink: #111827;
    --gray-700: #374151;
    --muted: #6b7280;
    --gray-400: #9ca3af;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { max-width: 80rem; margin: 0 auto; padding: 0 16px; width: 100%; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
/* Hlavní obsah potřebuje svislé mezery, ať se nelepí na nav a footer */
main.container { padding-top: 24px; padding-bottom: 56px; }
/* Banner „ověř si e-mail" */
.verify-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg,#fff7ed,#fff1f2); border: 1px solid #fed7aa; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.vb-text { flex: 1; min-width: 220px; font-size: .9rem; color: #9a3412; display: inline-flex; align-items: center; gap: 8px; }
.vb-btn { background: #f97316; color: #fff; border: none; border-radius: 9px; padding: 8px 14px; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: inherit; white-space: nowrap; }
.vb-btn:hover { background: #ea580c; }
/* Inline SVG ikony (Lucide) — škálují s textem, dědí barvu */

/* Nav (Palivko) — posouvá se s obsahem (není přilepená) */
.nav {
    position: relative;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}
.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 640px) { .nav-inner { padding: 0 24px; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 32px; } }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { opacity: .85; }
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: rotate(3deg);
    transition: transform .3s;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, .3);
}
.brand:hover .brand-logo { transform: rotate(0); }
.brand-logo svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }

.brand-name { font-weight: 800; font-size: 1.25rem; }
.brand-name .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.brand-name .tld { color: #4b5563; font-weight: 300; }
.brand-beta {
    align-self: flex-start;
    margin-left: -6px;
    margin-top: 1px;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--grad);
    padding: 1px 6px;
    border-radius: 999px;
    line-height: 1.4;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all .15s;
}
.nav-links a:hover { color: var(--ink); background: #f3f4f6; }

/* Dropdown "Více" */
.more-menu { position: relative; }
.more-menu summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu summary:hover { color: var(--ink); background: #f3f4f6; }
.more-caret { font-size: .7rem; transition: transform .2s; }
.more-menu[open] .more-caret { transform: rotate(180deg); }
.more-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -8px rgba(0,0,0,.2); padding: 8px; z-index: 1200; display: flex; flex-direction: column; }
.more-panel a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; color: var(--gray-700); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.more-panel a:hover { background: var(--orange-50); color: var(--orange-600); }
.more-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ===== Mobilní navigace: spodní tab bar + drawer (skryté na desktopu) ===== */
.bottom-nav, .md-overlay, .md-drawer { display: none; }
.md-drawer {
    flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0;
    width: 84%; max-width: 340px; background: #fff; z-index: 1700;
    transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
    box-shadow: -10px 0 40px rgba(0,0,0,.22); overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}
.md-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.md-title { font-weight: 900; font-size: 1.05rem; color: var(--ink); }
.md-close { cursor: pointer; color: var(--gray-500); display: inline-flex; padding: 6px; margin: -6px; }
.md-close .ic { width: 22px; height: 22px; }
.md-links { display: flex; flex-direction: column; padding: 10px; gap: 1px; }
.md-links a, .md-logout { display: flex; align-items: center; gap: 11px; padding: 12px 12px; border-radius: 11px; color: var(--gray-700); font-weight: 600; font-size: .98rem; text-decoration: none; background: none; border: 0; width: 100%; cursor: pointer; }
.md-links a:active, .md-links a:hover { background: var(--orange-50); color: var(--orange-600); }
.md-links .ic { width: 20px; height: 20px; flex-shrink: 0; color: var(--gray-400); }
.md-links a:hover .ic, .md-links a:active .ic { color: var(--orange-600); }
.md-cta { background: linear-gradient(135deg, var(--orange-600), #f43f5e) !important; color: #fff !important; justify-content: center; }
.md-cta .ic { color: #fff !important; }
.md-logout-form { width: 100%; }
.md-logout { color: #be123c; }
.md-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.md-lang { display: flex; gap: 6px; padding: 4px 8px 8px; }
.md-lang a { flex: 1; justify-content: center; padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; font-weight: 700; color: var(--gray-600); text-decoration: none; display: flex; align-items: center; gap: 5px; }
.md-lang a.on { border-color: var(--orange-600); color: var(--orange-600); background: var(--orange-50); }

@media (max-width: 760px) {
    /* Skryj desktop horizontální odkazy, nech jen brand + login/registrace/avatar */
    .nav-links .nav-main, .more-menu { display: none; }
    .nav-links { gap: 6px; }

    /* Detail stanice: informace a mapa pod sebe (ne zmáčknuté vedle sebe), mapa plná šířka.
       !important kvůli source-order: základní .info-grid {1fr 1fr} je v CSS níž a bez něj by vyhrál. */

    /* Spodní tab bar */
    .bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
        background: #fff; border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px -8px rgba(0,0,0,.14);
        /* Vlastní GPU vrstva — brání poskakování fixní lišty při scrollu na mobilu
           (prohlížeč ji nepřekresluje s lagem, drží pevně u spodního okraje). */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
    }
    .bottom-nav a, .bottom-nav .bn-more {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 7px 2px 5px; text-decoration: none; color: var(--gray-500);
        font-size: .65rem; font-weight: 700; cursor: pointer; background: none; border: 0;
        min-height: 52px; -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav a.is-active { color: var(--orange-600); }
    .bottom-nav a.is-active .ic { stroke-width: 2.5; }

    /* obsah nad spodní lištu (aby ji nezakrýval footer/obsah) */
    body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
    .site-footer { margin-bottom: 8px; }

    /* Drawer aktivace */
    .md-drawer { display: flex; }
    .md-toggle:checked ~ .md-drawer { transform: translateX(0); }
    .md-overlay { display: block; position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 1600; opacity: 0; pointer-events: none; transition: opacity .26s; }
    .md-toggle:checked ~ .md-overlay { opacity: 1; pointer-events: auto; }
    body:has(.md-toggle:checked) { overflow: hidden; }
}

/* ===== Globální mobilní polish ===== */
@media (max-width: 760px) {
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
    body { overflow-x: hidden; }
    /* iOS nezoomuje při focusu, když má input >=16px */
    input, textarea { font-size: 16px; }
    /* lepší tap targety pro tlačítka/odkazy v akcích */
    .btn, .nav-cta, button[type="submit"] { min-height: 44px; }
}

/* ===== Tabulka stanic → karty na mobilu ===== */
@media (max-width: 760px) {
    .stations td.st-city { color: var(--gray-500); font-size: .82rem; margin: 0 0 11px; padding-left: 46px; }
    .stations td.st-city::before { content: ""; }
    /* ceny jako řádky "palivo → cena" (jasně čitelné na telefonu) */
    .stations td.price.price-empty { display: none; }
    .stations td.price .price-tag { font-size: 1.15rem; font-weight: 800; padding: 0; background: none !important; white-space: nowrap; }
    .stations td.price .price-tag::after { content: " " attr(data-unit); font-size: .72rem; font-weight: 600; color: var(--gray-400); }
    /* st-name-cell zarovnani v karte */
    .st-name-cell { align-items: center; }
}

/* Hero */

.btn {
    display: inline-block;
    background: var(--grad);
    color: #fff;
    padding: 11px 20px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px -2px rgba(244, 63, 94, .35);
    transition: box-shadow .2s, transform .1s;
}
.btn:hover { box-shadow: 0 8px 20px -4px rgba(244, 63, 94, .45); }
.btn:active { transform: translateY(1px); }

/* ===== Welcome landing (guest homepage) ===== */
.grad-text { background: linear-gradient(90deg, #f97316, #f43f5e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.welcome-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 44px 0 40px; }
.wh-title { font-size: 3.1rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.wh-sub { font-size: 1.1rem; color: var(--muted); max-width: 28rem; margin: 16px 0 0; line-height: 1.6; }
.wh-checks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wh-checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--gray-700); }
.wh-check { width: 24px; height: 24px; border-radius: 50%; background: #ffedd5; color: var(--orange-600); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; flex-shrink: 0; }

.wh-account { margin-top: 24px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 24px; }
.wh-account h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.wh-account-sub { color: #9a3412; font-weight: 700; margin: 2px 0 0; }
.wh-cta { display: flex; gap: 12px; margin-top: 20px; }
.wh-cta .btn-block { flex: 1; }
.btn-secondary { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 14px; font-weight: 700; background: #f3f4f6; color: var(--gray-700); text-decoration: none; transition: background .15s; }
.btn-secondary:hover { background: #e5e7eb; }
.wh-account-note { color: #4b5563; font-size: .85rem; margin: 12px 0 0; }
.wh-prices-link { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; }
.wh-prices-link:hover { color: var(--orange-600); }

.wh-right { display: flex; flex-direction: column; gap: 20px; }
.savings-card { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.12); padding: 28px; position: relative; overflow: hidden; }
.sc-eyebrow { font-size: .72rem; font-weight: 800; color: var(--orange-500); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.sc-amount { font-size: 3.8rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg,#10b981,#14b8a6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-variant-numeric: tabular-nums; }
.sc-cur { font-size: 1.3rem; -webkit-text-fill-color: var(--gray-400); color: var(--gray-400); font-weight: 700; }
.sc-fuel-label { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); margin: 14px 0 7px; }
.sc-fuel { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--gray-700); font: inherit; margin-bottom: 16px; }
.sc-unavailable { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 0; }
.sc-unavailable a { color: var(--orange-600); font-weight: 700; }
.sc-sub { color: var(--muted); margin: 6px 0 20px; }
.sc-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.sc-range { width: 100%; accent-color: var(--orange); cursor: pointer; }
.sc-scale { display: flex; justify-content: space-between; font-size: .68rem; color: #4b5563; margin: 6px 0 16px; }
.sc-year { padding-top: 16px; border-top: 1px solid var(--line); color: #4b5563; }
.sc-year strong { color: #047857; }

.social-card { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 24px; }
.social-title { font-weight: 800; margin: 0; }
.avatars { display: flex; margin: 16px 0; }
.av { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 0 0 4px #fff; }
.av + .av { margin-left: -12px; }
.av-plus { background: #fff7ed; color: var(--orange-600); }
.social-sub { color: var(--muted); margin: 0; display: flex; align-items: center; gap: 8px; }

.how-sec { padding: 44px 0; border-top: 1px solid var(--line); }
.how-title { text-align: center; font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; margin: 0 0 36px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 64rem; margin: 0 auto; }
.step { text-align: center; }
.step-ico { width: 76px; height: 76px; margin: 0 auto; border-radius: 20px; background: #fff; border: 1px solid #ffedd5; box-shadow: 0 4px 12px -4px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.step-h { margin-top: 16px; font-weight: 800; }
.step-n { color: var(--orange-400); font-size: 1.4rem; font-weight: 900; margin-right: 4px; }
.step-d { color: var(--muted); margin: 6px auto 0; max-width: 16rem; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 56rem; margin: 0 auto; padding: 32px 0 48px; border-top: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-ico { width: 44px; height: 44px; border-radius: 50%; background: #ecfdf5; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.trust-t { font-weight: 800; margin: 0; line-height: 1.2; }
.trust-d { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.2; }

/* ===== /ceny (rich list) ===== */
.cs-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .5; }
.cs-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -8px rgba(0,0,0,.2); overflow: hidden; }
.cs-results a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #f1f5f9; }
.cs-results a:last-child { border-bottom: 0; }
.cs-results a:hover { background: var(--orange-50); }
.cc-count { font-size: .72rem; font-weight: 800; color: var(--gray-400); }
.fo-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.fo-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.fo-label { font-size: .76rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.fo-avg { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.fo-unit { font-size: .8rem; color: var(--gray-400); font-weight: 600; }
.fo-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fo-min { color: #059669; }
.fo-max { color: #ef4444; }
.fo-count { margin-left: auto; color: var(--gray-400); }

/* Aktivní karta paliva (vybrané palivo) */
.fo-card { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s, transform .1s; }
.fo-card:hover { box-shadow: 0 8px 18px -8px rgba(0,0,0,.15); }
.fo-card.active { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(249,115,22,.35); }

/* End-of-list patka (jako Palivko) */
.le-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid #fed7aa; border-radius: 999px; padding: 6px 14px; font-size: .72rem; font-weight: 800; color: var(--orange-600); text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 1px 3px rgba(0,0,0,.05); margin-bottom: 12px; }
.le-count { font-size: .9rem; font-weight: 700; color: var(--gray-700); margin-bottom: 14px; }
.le-count strong { color: var(--ink); }
.le-page { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; margin-top: 2px; }
.le-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 24rem; margin: 0 auto; }
.le-nav a, .le-nav span { display: inline-flex; align-items: center; justify-content: center; padding: 12px 8px; border-radius: 12px; font-weight: 800; font-size: .9rem; text-decoration: none; }
.le-prev { background: #fff; border: 2px solid var(--line); color: var(--gray-700); }
.le-prev:hover { border-color: var(--orange); color: var(--orange-600); }
.le-next { background: var(--grad); color: #fff; box-shadow: 0 4px 12px -2px rgba(244,63,94,.35); }
.le-next:hover { opacity: .92; }
.le-nav .disabled { opacity: .35; cursor: not-allowed; }
.le-nav span.le-next.disabled { background: #d1d5db; box-shadow: none; }

/* ===== Značky (brand comparison) ===== */

/* ===== Predikce ===== */
.pred-card.trend-rising { background: #fef2f2; border-color: #fecaca; }
.pred-card.trend-falling { background: #f0fdf4; border-color: #bbf7d0; }
.pred-card.trend-stable { background: #f8fafc; border-color: var(--line); }
.trend-rising .pred-arrow { background: linear-gradient(135deg,#f87171,#ef4444); }
.trend-falling .pred-arrow { background: linear-gradient(135deg,#34d399,#10b981); }
.trend-stable .pred-arrow { background: linear-gradient(135deg,#cbd5e1,#94a3b8); }
.trend-rising .pred-badge { color: #b91c1c; } .trend-falling .pred-badge { color: #15803d; } .trend-stable .pred-badge { color: var(--gray-700); }
.trend-rising .pred-pct { color: #ef4444; } .trend-falling .pred-pct { color: #10b981; } .trend-stable .pred-pct { color: var(--muted); }
.trend-rising .pred-reco { color: #991b1b; } .trend-falling .pred-reco { color: #166534; } .trend-stable .pred-reco { color: var(--gray-700); }

/* ===== Kvalita ===== */

/* ===== Trasa ===== */
/* Našeptávač adres */
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px -14px rgba(0,0,0,.35); max-height: 280px; overflow-y: auto; }
.ac-item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid #f4f4f6; padding: 10px 14px; font-size: .85rem; line-height: 1.3; color: var(--ink); cursor: pointer; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: #fff7ed; color: #9a3412; }

/* ===== Okolí ===== */
.nl-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s; }
.nl-card:hover { border-color: var(--orange); box-shadow: 0 8px 18px -8px rgba(0,0,0,.12); }
.nl-dist { flex-shrink: 0; width: 70px; text-align: center; font-weight: 900; color: var(--orange-600); font-variant-numeric: tabular-nums; }
.nl-main { flex: 1; min-width: 0; }
.nl-brand { display: inline-block; color: #fff; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 5px; margin-bottom: 3px; }
.nl-name { font-weight: 700; }
.nl-addr { font-size: .82rem; color: var(--muted); }
.nl-price { flex-shrink: 0; font-size: 1.4rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.nl-unit { font-size: .78rem; color: var(--gray-400); font-weight: 700; }
.nl-none { color: var(--gray-300); }
.nl-error { color: #b91c1c; font-weight: 600; }

/* ===== Mapa ===== */
#map { height: 72vh; min-height: 420px; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.05); z-index: 0; }

/* Cards grid */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card h2 { margin: 0 0 14px; font-size: 1.1rem; font-weight: 700; }

/* Tables */
/* Sticky hlavička — zůstává nahoře při scrollování seznamu (nesmí být přerušená overflow:hidden) */

.name { font-weight: 600; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; text-align: left; color: var(--ink); }

.muted { color: var(--muted); }

/* Page head + filter */

/* Footer */
.site-footer { margin-top: auto; padding: 40px 0 28px; background: var(--card); border-top: 1px solid var(--line); font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 24rem; }
.footer-brand-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-fuel { width: 24px; height: 24px; color: var(--orange); }
.footer-brand-name { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.footer-operator { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.footer-head { font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.footer-mail { color: #9a3412; text-decoration: underline; margin-top: 4px; display: inline-block; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: #4b5563; font-size: .8rem; }

/* Nav: uživatel / auth */
.nav-cta { background: var(--grad); color: #fff !important; }
.nav-cta:hover { background: var(--grad); opacity: .9; }
.nav-user { padding: 4px !important; }
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad); color: #fff; font-weight: 700; font-size: .72rem;
    box-shadow: 0 2px 6px -1px rgba(244,63,94,.35);
}
.lang-switch .fi { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
/* Jazykový dropdown (sdílené pro web i admin). */
.lang-dd { position: relative; display: inline-block; }
.lang-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; font-size: .86rem; font-weight: 600; color: inherit; white-space: nowrap; }
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary:hover { background: rgba(0,0,0,.06); }
.lang-dd .lang-caret { font-size: .7em; opacity: .7; transition: transform .15s; }
.lang-dd[open] > summary .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 120px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 5px; z-index: 200; display: flex; flex-direction: column; gap: 2px; }
.lang-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: .88rem; font-weight: 600; text-decoration: none; color: #1f2937; }
.lang-menu a:hover { background: #f3f4f6; }
.lang-menu a.on { background: #fff7ed; color: #ea580c; }
.lang-dd .fi, .lang-menu .fi { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
/* Self-hostované vlajky (dříve flags.css — sloučeno sem, o jeden render-blocking request míň). */
.fi { display: inline-block; width: 1.33em; height: 1em; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 2px; vertical-align: -0.1em; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.fi-cz { background-image: url(/static/flags/cz.svg); }
.fi-sk { background-image: url(/static/flags/sk.svg); }
.fi-gb { background-image: url(/static/flags/gb.svg); }
.fi-pl { background-image: url(/static/flags/pl.svg); }
.fi-de { background-image: url(/static/flags/de.svg); }
.fi-nl { background-image: url(/static/flags/nl.svg); }
.fi-at { background-image: url(/static/flags/at.svg); }
.fi-ch { background-image: url(/static/flags/ch.svg); }
.fi-be { background-image: url(/static/flags/be.svg); }
.fi-lu { background-image: url(/static/flags/lu.svg); }
/* Přepínač jazyka v admin/partner topbaru — zarovnán doprava, před odkaz Web / jméno uživatele. */
.pl-statcard-foot .fi { width: 18px; height: 13px; border-radius: 2px; vertical-align: -1px; }

.logout-form { display: inline; margin: 0; }
.nav-logout {
    background: none; border: 0; cursor: pointer; color: var(--muted);
    font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 8px;
    font-family: inherit; transition: all .15s;
}
.nav-logout:hover { color: #dc2626; background: #fef2f2; }

/* Auth karty + formuláře */

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form input, .form textarea {
    padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); background: #fff;
}
.form textarea { line-height: 1.5; resize: vertical; min-height: 88px; }
.form input:focus, .form textarea:focus {
    outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.btn-block { width: 100%; text-align: center; margin-top: 6px; }

.form-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: .9rem; margin: 16px 0; }
.form-ok { background: #f0fdf4; color: #15803d; padding: 10px 14px; border-radius: 10px; font-size: .9rem; margin: 16px 0; }
.small { font-size: .82rem; }

/* ===== Detail stanice (autentický Palivko vzhled) ===== */
.card { margin: 0 0 18px; }

/* Breadcrumb */

/* Hero */

/* Vybavení (amenity) */

/* Galerie fotek */

/* Rychlé akce */
.qa-btn {
    display: inline-flex; align-items: center; gap: 6px; background: var(--card);
    border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px;
    font-weight: 700; font-size: .88rem; color: var(--gray-700); text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: all .15s;
}
.qa-btn:hover { border-color: var(--orange); color: var(--orange-600); }

/* Cenové karty */
.fc-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.fc-label { font-size: .76rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.fc-value { font-size: 2.6rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fc-unit { font-size: .8rem; color: var(--gray-400); font-weight: 600; margin-top: 4px; }
.fc-approx { font-size: .72rem; color: var(--gray-400); margin-top: 2px; font-style: italic; opacity: .85; }
.fc-source { font-size: .72rem; color: var(--gray-400); margin-top: 10px; }
.fc-src-tag { color: var(--orange-600); font-weight: 700; }

/* Historie */
/* Čárový graf vývoje ceny */

/* Rychlé akce — 4 dlaždice jako originál */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa-grid .qa-btn { justify-content: center; }
.qa-fav { margin: 0; }
.qa-fav .qa-btn { width: 100%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-family: inherit; }
.qa-off { opacity: .45; cursor: default; }
label.qa-btn { cursor: pointer; }

/* OCR cenovky */

/* Informace + mapa mřížka */

/* Nahlásit uzavření */

/* Operátorský banner */

/* Hlášení ceny (collapsible) */
.block { display: block; }
.price-input { position: relative; max-width: 220px; }
.price-input input { width: 100%; padding: 12px 50px 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 1.1rem; font-weight: 700; font-family: inherit; }
.price-input input:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }

/* Neověřené ceny */

/* Info rows */

/* Okolí */

/* Recenze */

/* ===== Gamifikace ===== */
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }

/* Žebříček */
.lb-card { padding: 0; overflow: hidden; }
.leaderboard { width: 100%; border-collapse: collapse; }
.leaderboard th { text-align: left; background: #f9fafb; padding: 12px 16px; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.leaderboard td { padding: 12px 16px; border-top: 1px solid var(--line); }
.leaderboard .price { color: var(--orange-600); }
.lb-rank { font-weight: 800; font-size: 1.05rem; width: 56px; }
.lb-top { background: linear-gradient(90deg, #fffbeb, transparent); }
.lb-top .lb-rank { font-size: 1.3rem; }

/* Odměny */

/* Profil — odměny */

/* Oblíbené srdíčko v hero */

/* Alerty */

/* Partner portál */

/* Admin */

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
    .nav-links { gap: 2px; }
    .nav-links a, .nav-logout { padding: 8px 8px; font-size: .85rem; }
    .brand-name { font-size: 1.1rem; }
    /* Široká tabulka stanic → horizontální scroll bez rozbití layoutu */
    /* Tabulka stanic → karty (viz blok níže pro detailní styly) */
    /* Detail */
    .fc-value { font-size: 2.1rem; }
    .qa-grid { grid-template-columns: repeat(2, 1fr); }
    .qa-grid .qa-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .qa-btn { padding: 11px 12px; font-size: .85rem; justify-content: center; text-align: center; }
    .qa-btn svg { flex: 0 0 auto; }
    /* Welcome landing */
    .welcome-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 0 24px; }
    .wh-left, .wh-right, .savings-card, .welcome-hero > * { min-width: 0; }
    .wh-title { font-size: 2.3rem; }
    .wh-cta { flex-direction: column; }
    .sc-amount { font-size: 3rem; }
    .how-title { font-size: 1.7rem; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .trust-strip { grid-template-columns: 1fr; gap: 16px; }
    /* /ceny */
    /* Značky */
    /* Okolí */
    .nl-dist { width: 56px; font-size: .85rem; }
    .nl-price { font-size: 1.15rem; }
    /* Trasa */
    /* Kvalita */
}

/* ════════ Partnerský program (landing) ════════ */
.pl { margin: -8px 0 -24px; }

/* Buttons */

/* Hero */
@keyframes pl-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Brand wall */

/* Problem cards */

/* Benefits */

/* Split (portal + api) */

/* Mock portal */
.pl-mock-chrome span.md-r, .md-y, .md-g { width: 10px; height: 10px; border-radius: 50%; }
.md-r { background: #f87171; } .md-y { background: #fbbf24; } .md-g { background: #4ade80; }

/* API (dark) */

/* Comparison table */

/* How it works */

/* Pricing */

/* FAQ */

/* Trust + final */

/* ════════ Partnerský portál (Fáze 4) ════════ */

/* Fotky — správa */

/* Hromadné ceny */

/* Analytika */

/* Firma / nastavení / API */

/* Tým */

/* Recenze (partner) */

/* Podpora */

/* ════════ Komunita (Fáze 1) ════════ */
/* Návrhy stanic */

/* Nahlášení uzavření */

/* Právní stránky */

/* Changelog */
.changelog { display: flex; flex-direction: column; gap: 20px; }

/* Mobilní aplikace */

/* Admin moderace fotek */
/* Moderace fotek — filtry + badge + info (à la palivko.cz) */
.pf-tab { padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--gray-600); font-size: .85rem; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pf-tab span { font-size: .72rem; opacity: .7; }
.pf-tab:hover { border-color: var(--orange-300, #fdba74); }
.pf-tab.on { background: var(--orange-600); color: #fff; border-color: var(--orange-600); }
.pf-tab.on span { opacity: .85; }
/* Statický status pill do tabulky (mod-photo-badge je position:absolute pro overlay na fotce) */

/* ===== Zpětná vazba (veřejný formulář + admin) ===== */
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 4px 0 16px; font-size: 1.6rem; line-height: 1; }
.fb-stars input { position: absolute; opacity: 0; }
.fb-stars label { color: var(--gray-300); cursor: pointer; transition: color .12s; }
.fb-stars label:hover, .fb-stars label:hover ~ label, .fb-stars input:checked ~ label { color: #f59e0b; }
/* Cena v tabulce moderace hlášení — zarovnaná vlevo pod hlavičku (ne text-align:right) */
/* Banner oficiálních týdenních průměrů (ČSÚ / Slovstat) na /ceny */
/* Banner oficiálních týdenních průměrů (ČSÚ CZ + Slovstat SK) — 2 země vedle sebe */
/* Inline úprava trust/bodů v admin uživatelích */

/* Cookie lišta */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; background: #111827; color: #e5e7eb; box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.cookie-bar-inner { max-width: 72rem; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 240px; font-size: .88rem; line-height: 1.5; }
.cookie-text a { color: #fbbf24; }
.cookie-opts { display: flex; gap: 14px; font-size: .85rem; }
.cookie-opts label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-accept { background: var(--grad); color: #fff; border: none; }

/* Footer odkazy (Fáze 1) */
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a, .footer-linkbtn { color: var(--muted); text-decoration: none; font-size: .88rem; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.footer-links a:hover, .footer-linkbtn:hover { color: var(--orange-600); }
.footer-ver { color: #4b5563; text-decoration: none; }
.footer-ver:hover { color: var(--orange-600); }

/* ════════ Admin shell (sidebar layout jako palivko.cz) ════════ */
.admin-side-nav a.is-active { background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(244,63,94,.08)); color: var(--orange-600); border-left: 3px solid var(--orange); padding-left: 17px; }

/* Admin nastavení — sekce do karet */
/* Masonry mřížka karet — dlaždice se skládají do sloupců podle výšky. */

/* Banner odpočtu plánované údržby */
.maint-banner { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; font-size: .9rem; color: #fff; background: linear-gradient(90deg, #b45309, #f97316); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.maint-banner strong { font-weight: 800; }
.maint-banner .mb-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: mbpulse 1.4s infinite; }
@keyframes mbpulse { 0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.6);} 70%{ box-shadow: 0 0 0 7px rgba(255,255,255,0);} 100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0);} }

/* Údržbová stránka */
/* Kontrast (WCAG AA) na údržbové stránce: ztmavený jazykový přepínač + aktivní stav. */

/* Admin dashboard */

/* Admin dashboard — vylepšený */

/* Admin — kontakty/scrapery/affiliate */

/* Admin stub */

/* Admin responsivně */
@media (max-width: 860px) {
    /* Tabulky: nelámat do šířky (drobné sloupce), místo toho vodorovný scroll v kartě. */
    .lb-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Hero/nadpisy na mobilu menší. */
    /* KPI/quick dlaždice ať nejsou moc široké. */
}

/* Personalizovaný dashboard */
.dc-label { min-width: 90px; color: var(--muted); font-size: .9rem; }

/* Toasty */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { padding: 12px 16px; border-radius: 12px; font-size: .9rem; font-weight: 600; color: #fff; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); animation: toast-in .25s ease; }
.toast-ok { background: linear-gradient(135deg,#10b981,#14b8a6); }
.toast-err { background: linear-gradient(135deg,#ef4444,#dc2626); }
.toast.hide { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* Banner nové verze */
/* Update banner — countdown karta (design dle palivko.cz) */
.upd-card {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(150%);
    z-index: 2600; width: calc(100% - 2rem); max-width: 380px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.6); border-radius: 24px;
    box-shadow: 0 20px 60px -15px rgba(249,115,22,.45);
    overflow: hidden; opacity: 0;
    transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .35s;
}
.upd-card.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.upd-card[hidden] { display: none !important; }
@media (min-width: 640px) {
    .upd-card { left: auto; right: 16px; transform: translateX(0) translateY(150%); }
    .upd-card.show { transform: translateX(0) translateY(0); }
}
@media (max-width: 760px) {
    .upd-card { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
.upd-accent { height: 4px; background: linear-gradient(90deg, #f97316, #f43f5e 50%, #ec4899); }
.upd-main { display: flex; align-items: center; gap: 16px; padding: 16px; }
.upd-ring { position: relative; flex: 0 0 auto; width: 48px; height: 48px; }
.upd-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.upd-ring-bg { stroke: rgba(249,115,22,.15); stroke-width: 3; fill: none; }
.upd-ring-fg { stroke: url(#updGrad); stroke-width: 3; fill: none; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.upd-ring-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; animation: upd-pulse 2s ease-in-out infinite; }
.upd-ring-icon.spin { animation: upd-spin 1s linear infinite; }
@keyframes upd-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes upd-spin { to { transform: rotate(360deg); } }
.upd-text { flex: 1 1 auto; min-width: 0; }
.upd-title-row { display: flex; align-items: baseline; gap: 8px; }
.upd-title { font-weight: 800; color: #111827; font-size: 1rem; line-height: 1.2; }
.upd-count { font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: var(--orange-600); font-size: .85rem; font-variant-numeric: tabular-nums; }
.upd-sub { font-size: .78rem; color: var(--gray-500); margin-top: 2px; }
.upd-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.upd-btn { flex: 1 1 0; border: none; cursor: pointer; font-family: inherit; font-size: .88rem; padding: 10px 16px; border-radius: 12px; font-weight: 700; transition: transform .12s, background .15s; }
.upd-btn:disabled { opacity: .5; cursor: not-allowed; }
.upd-defer { background: var(--gray-100); color: var(--gray-700); }
.upd-defer:hover:not(:disabled) { background: #e5e7eb; }
.upd-now { color: #fff; font-weight: 800; background: linear-gradient(90deg, #f97316, #f43f5e); box-shadow: 0 8px 20px -6px rgba(249,115,22,.5); }
.upd-now:hover:not(:disabled) { transform: scale(1.02); }
.upd-now:active:not(:disabled) { transform: scale(.98); }
.upd-progress { height: 2px; background: var(--gray-100); overflow: hidden; }
.upd-progress-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #f97316, #f43f5e); transition: width 1s linear; }

/* Nabídka instalace PWA */
.install-prompt {
    position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 2600;
    display: flex; align-items: center; gap: 12px;
    background: #fff; color: var(--ink);
    padding: 12px 14px; border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 18px 44px -12px rgba(17,24,39,.42);
    max-width: 460px; margin: 0 auto;
    transform: translateY(140%); opacity: 0;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.install-prompt.show { transform: translateY(0); opacity: 1; }
.install-prompt[hidden] { display: none !important; }
.install-prompt .ip-icon {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; color: #fff; background: var(--grad);
}
.install-prompt .ip-icon svg { width: 22px; height: 22px; }
.install-prompt .ip-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-prompt .ip-text strong { font-size: .96rem; font-weight: 800; line-height: 1.2; }
.install-prompt .ip-text small { font-size: .78rem; color: var(--gray-400); line-height: 1.3; }
.install-prompt .ip-btn {
    flex: 0 0 auto; background: var(--grad); color: #fff; border: none;
    padding: 10px 16px; border-radius: 999px; font-weight: 800; cursor: pointer;
    font-family: inherit; font-size: .9rem; white-space: nowrap;
}
.install-prompt .ip-btn[hidden] { display: none; }
.install-prompt .ip-close {
    flex: 0 0 auto; background: none; border: none; cursor: pointer;
    color: var(--gray-400); padding: 4px; display: grid; place-items: center;
}
.install-prompt .ip-close svg { width: 18px; height: 18px; }
/* Nad spodní navigací na mobilu */
@media (max-width: 760px) {
    .install-prompt { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

/* Logo značky v seznamu */
.st-name-cell { display: flex; align-items: center; gap: 10px; }

/* Barevné odlišení cen ve výpisu (nejlevnější zeleně → nejdražší červeně) */
.price-tag { display: inline-block; font-weight: 700; padding: 2px 8px; border-radius: 7px; }
.price-cheapest { color: #15803d; background: #f0fdf4; }
.price-cheap { color: #16a34a; }
.price-pricey { color: #ea580c; }
.price-expensive { color: #dc2626; background: #fef2f2; }

/* „Oficiální" označení partnerských stanic ve výpisu */

/* ============ Žebříček (leaderboard) ============ */
.lb-page { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.lb-hero { padding-top: 8px; }
.lb-kicker { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #fed7aa; color: #ea580c; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 5px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.lb-h1 { font-size: clamp(2rem,5vw,3.4rem); font-weight: 900; letter-spacing: -.02em; margin: 14px 0 8px; line-height: 1.05; }
.lb-lead { font-size: 1.1rem; color: var(--muted); max-width: 600px; }
.lb-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.lb-kpi { background: #fff; border: 1px solid #f1f1f3; border-radius: 18px; padding: 18px; text-align: center; }
.lb-kpi-accent { background: linear-gradient(135deg,#fff7ed,#fff1f2); border-color: #fed7aa; }
.lb-kpi-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.lb-kpi-value { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.lb-podium { background: linear-gradient(135deg,#f97316,#f43f5e,#dc2626); border-radius: 26px; padding: 26px; color: #fff; box-shadow: 0 24px 50px -24px rgba(249,115,22,.5); }
.lb-podium-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-bottom: 18px; }
.lb-podium-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; align-items: end; }
.lb-pod { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 16px; text-align: center; }
.lb-pod-1 { order: 2; background: rgba(255,255,255,.16); border: 2px solid rgba(253,224,71,.6); transform: translateY(-12px); box-shadow: 0 0 0 4px rgba(253,224,71,.2); }
.lb-pod-2 { order: 1; }
.lb-pod-3 { order: 3; }
.lb-pod-medal { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.lb-pod-avatar { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 16px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem; }
.lb-pod-1 .lb-pod-avatar { background: linear-gradient(135deg,#fde047,#fbbf24); color: #7c2d12; width: 60px; height: 60px; }
.lb-pod-name { font-weight: 900; font-size: 1rem; }
.lb-pod-sub { font-size: .78rem; opacity: .8; }
.lb-pod-points { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; margin-top: 6px; }
.lb-pod-first { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fef08a; margin-top: 4px; }
.lb-me { background: #fff; border: 1px solid #f1f1f3; border-radius: 22px; overflow: hidden; padding: 20px; }
.lb-me-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lb-me-avatar { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg,#fb923c,#f43f5e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.4rem; }
.lb-me-nick { font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.lb-me-edit { color: #cbd5e1; text-decoration: none; font-size: .9rem; }
.lb-me-edit:hover { color: #f97316; }
.lb-me-role { font-size: .8rem; color: var(--muted); }
.lb-me-stats { display: flex; gap: 22px; margin-left: auto; }
.lb-me-num { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; text-align: center; }
.lb-me-lbl { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; }
.lb-me-next { margin-top: 16px; padding: 14px 16px; background: linear-gradient(90deg,#fff7ed,#fff1f2); border: 1px solid #fed7aa; border-radius: 16px; font-size: .92rem; }
.lb-me-next a { color: #ea580c; font-weight: 700; text-decoration: none; }
.lb-me-nonick { text-align: center; padding: 10px; }
.lb-me-nonick-emoji { font-size: 2.4rem; }
.lb-me-nonick-title { font-weight: 800; font-size: 1.05rem; margin: 4px 0; }
.lb-anon { background: linear-gradient(135deg,#f97316,#f43f5e); border-radius: 22px; padding: 28px; text-align: center; color: #fff; }
.lb-anon-emoji { font-size: 2.6rem; }
.lb-anon h3 { font-size: 1.5rem; font-weight: 900; margin: 6px 0; }
.lb-rest { padding: 0; overflow: hidden; }
.lb-rest-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f1f1f3; }
.lb-rest-head h3 { font-size: 1.05rem; font-weight: 800; }
.lb-rank-chip { display: inline-flex; width: 34px; height: 34px; border-radius: 11px; background: #f3f4f6; color: #6b7280; align-items: center; justify-content: center; font-weight: 900; font-size: .82rem; font-variant-numeric: tabular-nums; }
.lb-rest-avatar { display: inline-flex; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg,#e5e7eb,#d1d5db); color: #4b5563; align-items: center; justify-content: center; font-weight: 900; font-size: .8rem; margin-right: 8px; vertical-align: middle; }
.lb-rest-nick { font-weight: 700; }
.lb-title-chip { font-size: .65rem; font-weight: 800; color: #7c3aed; background: #f5f3ff; padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.lb-you { font-size: .62rem; font-weight: 800; color: #ea580c; background: #ffedd5; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.lb-row-me { background: #fff7ed; }
.lb-how { padding: 22px; }
.lb-how h3 { font-size: 1.15rem; font-weight: 800; }
.lb-act-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 12px; margin-top: 16px; }
.lb-act { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #f1f1f3; border-radius: 16px; padding: 14px; }
.lb-act-emoji { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.lb-act-label { font-weight: 800; font-size: .92rem; }
.lb-act-desc { font-size: .8rem; color: var(--muted); margin: 2px 0 4px; }
.lb-act-pts { font-size: .78rem; font-weight: 900; color: #ea580c; }
.lb-act.act-emerald .lb-act-emoji { background: #d1fae5; }
.lb-act.act-sky .lb-act-emoji { background: #e0f2fe; }
.lb-act.act-purple .lb-act-emoji { background: #f3e8ff; }
.lb-act.act-amber .lb-act-emoji { background: #fef3c7; }
.lb-act.act-rose .lb-act-emoji { background: #ffe4e6; }
.lb-act.act-green .lb-act-emoji { background: #dcfce7; }
.lb-cta-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px; }
.lb-cta { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #f1f1f3; border-radius: 16px; padding: 16px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.lb-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0,0,0,.2); }
.lb-cta-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.lb-cta-t { font-weight: 800; }
.lb-cta-d { font-size: .8rem; color: var(--muted); }

/* ============ Obchod (rewards) ============ */
.btn-block { display: block; width: 100%; text-align: center; }

/* ============ Partnerský claim (multi-select stanic) ============ */

/* ============ Partnerský návod ============ */

/* ============ Admin kontakty ============ */

/* ============ Admin kampaně ============ */
.camp-pill-on { background: #d1fae5; color: #047857; }
/* Obrázky kampaně v adminu — galerie */
.btn-sm { padding: 7px 12px; font-size: .82rem; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* Editor úvodní stránky */

/* Čerstvost cen na detailu stanice */

/* Oznamovací blok na úvodní stránce */
.home-announce { background: linear-gradient(135deg,#fff7ed,#ffe4e6); border: 1px solid #fed7aa; color: #9a3412; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; text-align: center; }

/* ============ Admin nároky (claims) ============ */

/* Sklik filtr období */

/* Editor otevírací doby */

/* Editor vlastních paliv */
.fc-bar-custom { background: linear-gradient(90deg,#8b5cf6,#ec4899) !important; }
.fuel-card-custom .fc-value { color: #7c3aed; }

/* Palivový semafor „Tankovat, nebo počkat?" */
.semafor-sec { max-width: 1000px; margin: 8px auto 0; padding: 0 16px; }
.semafor-title { font-size: clamp(1.4rem,3.5vw,2rem); font-weight: 900; display: flex; align-items: center; gap: 10px; }
.semafor-sub { color: var(--muted); margin: 4px 0 18px; max-width: 640px; }
.semafor-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; }
.semafor-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.semafor-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(0,0,0,.3); }
.semafor-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.sem-rising::before { background: linear-gradient(90deg,#10b981,#22c55e); }
.sem-falling::before { background: linear-gradient(90deg,#ef4444,#f97316); }
.sem-stable::before { background: linear-gradient(90deg,#f59e0b,#eab308); }
.sem-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.sem-fuel { font-weight: 800; font-size: 1.05rem; }
.sem-change { font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sem-rising .sem-change { color: #dc2626; }
.sem-falling .sem-change { color: #16a34a; }
.sem-stable .sem-change { color: var(--muted); }
.sem-light { display: inline-flex; flex-direction: column; gap: 6px; background: #1f2937; padding: 8px; border-radius: 999px; margin: 4px 0; }
.sem-dot { width: 18px; height: 18px; border-radius: 50%; background: #374151; transition: box-shadow .2s; }
.sem-rising .sem-dot-g { background: #22c55e; box-shadow: 0 0 12px 2px rgba(34,197,94,.8); }
.sem-falling .sem-dot-r { background: #ef4444; box-shadow: 0 0 12px 2px rgba(239,68,68,.8); }
.sem-stable .sem-dot-y { background: #eab308; box-shadow: 0 0 12px 2px rgba(234,179,8,.8); }
.sem-verdict { font-size: 1.3rem; font-weight: 900; }
.sem-rising .sem-verdict { color: #16a34a; }
.sem-falling .sem-verdict { color: #dc2626; }
.sem-stable .sem-verdict { color: #ca8a04; }
.sem-avg { font-size: .88rem; color: var(--muted); }
.sem-avg strong { color: var(--ink); }
.sem-tip { font-size: .82rem; color: var(--muted); min-height: 2.4em; }
.sem-link { font-size: .8rem; font-weight: 700; color: var(--orange-600); }
.sem-year { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.sem-year .ic { width: .9em; height: .9em; }

/* Nejlevnější v ČR */
.cheap-sec { max-width: 1000px; margin: 28px auto 0; padding: 0 16px; }
.cheap-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px; }
.cheap-col { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.cheap-col-head { font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cheap-row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 10px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #f3f4f6; }
.cheap-row:last-child { border-bottom: none; }
.cheap-row:hover { background: #fff7ed; }
.cheap-rank { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: #f3f4f6; color: #6b7280; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .82rem; }
.cheap-rank-1 { background: linear-gradient(135deg,#fde047,#f59e0b); color: #7c2d12; }
.cheap-rank-2 { background: #e5e7eb; color: #374151; }
.cheap-rank-3 { background: #fed7aa; color: #9a3412; }
.cheap-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cheap-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cheap-price { font-weight: 900; color: #15803d; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Sdílení úspory */
.sc-share { margin-top: 12px; width: 100%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; padding: 9px 14px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: inherit; font-size: .9rem; }
.sc-share:hover { background: rgba(255,255,255,.28); }

/* Série hlášení */

/* Kalkulačka zajížďky */

/* Vlídná registrace */

/* Nahrání / focení fotky */

/* Jednotný vzhled dropdownů (native select vypadá v každém prohlížeči jinak) */

/* Jednotný vzhled textarey (i mimo .form — recenze, podpora, komentáře) */
textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: #fff;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
}
textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
textarea::placeholder { color: #9ca3af; }

/* API dokumentace */
/* Přepiš vlastní padding u selectů, které ho měly natvrdo, ať se nepřekrývá se šipkou */

@media (max-width: 640px) {
    .lb-me-stats { width: 100%; margin-left: 0; justify-content: space-around; }
    .lb-podium-grid { gap: 8px; }
    .lb-pod { padding: 10px; }
    .lb-pod-1 { transform: none; }
}

/* Bonus za registraci */

/* Campaign banner */
/* Kampaňová karta (hero) na hlavní stránce */

/* Chart.js box */

/* 2FA */

/* Footer partner button */
.footer-partner-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 800; padding: 8px 14px; border-radius: 10px; text-decoration: none; margin-top: 12px; transition: box-shadow .15s, transform .15s; }
.footer-partner-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(249,115,22,.5); }

/* ===== Garáž ===== */

/* Garáž — foto, barva, editace */

/* Přepínač paliva nad grafem trendu */
.trend-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.trend-tab { border: 1px solid var(--line); background: #fff; color: var(--gray-700); font-family: inherit; font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.trend-tab:hover { border-color: var(--orange); color: var(--orange-600); }
.trend-tab.on { background: var(--grad); color: #fff; border-color: transparent; }

/* Premium odznak na tlačítku focení cenovky */
.qa-prem { display: inline-block; margin-left: 6px; font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 1px 6px; border-radius: 999px; vertical-align: middle; }

/* Plánovač trasy — mezizastávky */

/* Palivo, které stanice už nenabízí (konsensus / staleness) */
.fuel-card.fc-gone { opacity: .55; filter: grayscale(.7); position: relative; }
.fuel-card.fc-gone .fc-value { text-decoration: line-through; }
.fc-gone-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; background: #e5e7eb; border-radius: 999px; padding: 2px 8px; display: inline-block; margin-top: 4px; }

/* ===== Live tracker mapa (Fáze 2) ===== */
/* SOS (Fáze 2) */
/* Kniha jízd (premium) */
/* Analytika nákladů */
/* Věrnostní karty + rodina */
/* Premium feature grid */
.pf-item { display: flex; gap: 12px; align-items: flex-start; }
.pf-item .ic { flex-shrink: 0; width: 26px; height: 26px; color: var(--orange-600); margin-top: 2px; }
.pf-item strong { display: block; font-size: .95rem; }
.pf-item span { font-size: .82rem; color: #4b5563; line-height: 1.4; }


/* =====================================================================
   Přeneseno z generovaného public.css do zdroje (2026-08-13).

   Tyhle bloky byly omylem zapsané rovnou do `public.css`, což je VÝSTUP
   PurgeCSS, ne zdroj. Důsledky: `home.css` (homepage) je nikdy nedostala,
   takže výzva k hodnocení byla na úvodní stránce neviditelná — a jakékoli
   přegenerování by je smazalo úplně, tedy rozbilo i mapu a Premium.

   Zdroj je `style.css`. Do `public.css`/`home.css`/… se nikdy needituje,
   generují se přes `node deploy/run_purge.mjs`.
   ===================================================================== */

/* Full-bleed app-shell layout pro /mapa (boční panel + mapa přes celou zbylou
   výšku obrazovky, ne mapa jako "karta" v centrovaném sloupci) — vylamuje se
   ven z .container přes záporné okraje. Výšku dopočítává JS v map.html. */
#map { width: 100%; height: 100%; z-index: 0; }
@media (max-width: 760px) {
  /* Karta s počtem a cenová legenda jsou velké svislé bloky — do vodorovné
     zalamované lišty na mobilu se nevejdou rozumně (gradient bar se smrskne
     na nulovou šířku), radši je skrýt a nechat mapě co nejvíc místa. */
}
/* Premium feature grid */
.pf-item { display: flex; gap: 12px; align-items: flex-start; }
.pf-item .ic { flex-shrink: 0; width: 26px; height: 26px; color: var(--orange-600); margin-top: 2px; }
.pf-item strong { display: block; font-size: .95rem; }
.pf-item span { font-size: .82rem; color: #4b5563; line-height: 1.4; }
/* Prompt na zpětnou vazbu (idle/exit-intent, viz base.html) */
.fb-prompt {
    position: fixed; left: 16px; bottom: 16px; z-index: 1400;
    background: #fff; border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.2);
    padding: 16px; width: 260px; max-width: calc(100vw - 32px);
    font-family: Inter, sans-serif;
}
.fb-close {
    position: absolute; top: 4px; right: 8px; background: none; border: 0;
    font-size: 20px; line-height: 1; color: #9ca3af; cursor: pointer; padding: 4px;
}
.fb-q { margin: 0 0 10px; font-weight: 700; font-size: .88rem; color: var(--ink, #111827); padding-right: 16px; }
.fb-stars { display: flex; gap: 4px; }
.fb-star { background: none; border: 0; font-size: 26px; line-height: 1; color: #e5e7eb; cursor: pointer; padding: 2px; }
.fb-star:hover, .fb-star.on { color: #f59e0b; }
.fb-textarea {
    width: 100%; min-height: 60px; border: 1px solid var(--line, #e5e7eb); border-radius: 8px;
    padding: 8px; font: inherit; font-size: .84rem; resize: vertical; margin-bottom: 8px; box-sizing: border-box;
}
.fb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fb-send {
    width: 100%; background: linear-gradient(135deg, #f97316, #f43f5e); color: #fff; border: 0;
    border-radius: 8px; padding: 9px; font-weight: 700; font-size: .84rem; cursor: pointer;
}
.fb-thanks { margin-bottom: 4px; }

/* ===== Premium ===== */


@media (max-width: 760px) {

    /* Prompt na zpětnou vazbu (viz base.html) — vlevo dole, nad spodní lištou,
       ať se nepere se Sentry widgetem (ten je posunutý vpravo dole, viz výše). */
    .fb-prompt { bottom: calc(56px + env(safe-area-inset-bottom) + 12px); }
}

/* Právní odkazy pod registračním formulářem (podmínky + ochrana údajů). */

/* Vysvětlení bonusového bodování na /odmeny — proč se za hlášení dává různě. */
