/* ============================================================
   Benzin Khana — main.css
   Design system: petroleum / industrial minimal
   Arabic-first RTL layout
   v1.0.157
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* ── Brand green palette — professional monochromatic ── */
  --bk-fuel:       #1A5C38;    /* brand green — primary */
  --bk-fuel-mid:   #2E7D52;    /* medium green */
  --bk-fuel-light: #C8E6C0;    /* light green tint */
  --bk-fuel-faint: #E8F5E1;    /* very faint green background */
  --bk-ink:        #0D1F15;    /* near-black with green tint */
  --bk-steel:      #3D5A47;    /* dark muted green-grey */
  --bk-muted:      #5E7A68;    /* muted green-grey text */
  --bk-rule:       #B2D4BC;    /* light green rule/border */
  --bk-bg:         #F2F8F4;    /* near-white green-tinted bg */
  --bk-surface:    #FFFFFF;
  --bk-surface2:   #EAF4EC;    /* slightly green surface */

  --bk-green:      #1A5C38;    /* = brand green */
  --bk-green-bg:   #E8F5E1;
  --bk-amber:      #8B5E1A;    /* amber — kept for warnings, muted */
  --bk-amber-bg:   #FDF4E0;
  --bk-red:        #8B1A1A;    /* red — only for critical errors */
  --bk-red-bg:     #FDEAEA;
  /* Alert red — Session 100 fix: --bk-red above is deliberately muted for
     body text/errors, so it can't do the job of an unmissable "tap here to
     report" CTA. This is a separate, more saturated red used ONLY on the
     report buttons, so it reads as visually urgent without touching the
     muted palette used everywhere else. */
  --bk-alert-red:      #E02424;
  --bk-alert-red-glow: rgba(224,36,36,0.45);
  --bk-orange:     #7A3A0C;
  --bk-orange-bg:  #FDF0E4;
  --bk-gray-bg:    #EEF3EF;
  --bk-gray-text:  #5E7A68;

  --bk-gov:        #2D5A3E;    /* government — darker green */
  --bk-gov-bg:     #D4EAD9;
  --bk-hold:       #5A3A1A;    /* legal hold — dark olive */
  --bk-hold-bg:    #F0E8D4;

  --bk-sponsored:  #1A4A5C;    /* sponsored — deep teal-green */
  --bk-sponsored-bg: #D4E8EA;

  --font-body:    'Tajawal', 'Noto Sans Arabic', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    16px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 24px rgba(0,0,0,0.12);

  --transition:   0.18s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bk-bg);
  color: var(--bk-ink);
  line-height: 1.65;
  min-height: 100vh;
  direction: rtl;
  padding-top: 56px;
}

body.ltr {
  direction: ltr;
}

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.1rem;  font-weight: 500; }
h4 { font-size: 1rem;    font-weight: 500; }
p  { margin-bottom: 0.75rem; }
a  { color: var(--bk-fuel-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────────── */
.bk-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 80px;
  min-height: 100vh;
}

.bk-page-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.page-content {
  padding: 16px;
}

/* ── Nav ──────────────────────────────────────────────────── */
.bk-nav {
  background: var(--bk-fuel);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 56px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
}
.nav-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-brand img {
  width: 48px;
  height: 48px;
  border-radius: 0;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.nav-language-btn {
  display:inline-flex;align-items:center;gap:6px;min-height:40px;
  padding:7px 11px;border-radius:12px;border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);color:#fff;font-size:.78rem;font-weight:800;
  text-decoration:none;white-space:nowrap;
}
.nav-language-btn:hover { background:rgba(255,255,255,.2);text-decoration:none; }

.nav-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.nav-notification-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:12px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.nav-notification-btn:hover{background:rgba(255,255,255,.2)}
.nav-notification-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.notification-badge{position:absolute;inset-block-start:-5px;inset-inline-end:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#b91c1c;color:#fff;border:2px solid var(--bk-fuel);font:800 .62rem/15px var(--font-body);text-align:center}
.notification-backdrop{display:none;position:fixed;inset:0;z-index:1390;border:0;background:rgba(0,0,0,.38);padding:0}.notification-backdrop.open{display:block}
.notification-panel{position:fixed;z-index:1400;inset-block:0;inset-inline-end:0;width:min(390px,92vw);height:100dvh;background:var(--bk-bg);box-shadow:0 0 30px rgba(0,0,0,.24);transform:translateX(105%);transition:transform .22s ease;display:flex;flex-direction:column;padding-top:max(10px,env(safe-area-inset-top));overflow:hidden}
html[dir="rtl"] .notification-panel{--bk-rtl-sign:1;transform:translateX(-105%)}
html[dir="ltr"] .notification-panel{--bk-rtl-sign:0;transform:translateX(105%)}
.notification-panel.open{transform:translateX(0)!important}
.notification-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px 10px;border-bottom:1px solid var(--bk-rule);background:#fff}.notification-panel-head h2{font-size:1.05rem;margin:0;color:var(--bk-ink)}.notification-panel-head p{font-size:.72rem;color:var(--bk-muted);margin:3px 0 0}.notification-close-btn{width:36px;height:36px;border:1px solid var(--bk-rule);border-radius:10px;background:#fff;color:var(--bk-steel);font-size:1.35rem;line-height:1;cursor:pointer;flex-shrink:0}
.notification-panel-actions{padding:9px 14px;border-bottom:1px solid var(--bk-rule);background:#fff;text-align:end}.notification-panel-actions button{border:0;background:none;color:var(--bk-fuel);font:800 .75rem var(--font-body);cursor:pointer;padding:5px}.notification-panel-actions button:disabled{opacity:.45;cursor:default}
.notification-list{overflow-y:auto;padding:11px;display:grid;gap:9px;overscroll-behavior:contain}.notification-empty{padding:30px 16px;text-align:center;color:var(--bk-muted);font-size:.8rem;line-height:1.6}
.notification-item{width:100%;border:1px solid var(--bk-rule);border-radius:12px;background:#fff;padding:12px;text-align:start;color:var(--bk-ink);font-family:var(--font-body);cursor:pointer;display:block;position:relative}.notification-item.unread{border-inline-start:4px solid var(--bk-fuel);background:var(--bk-fuel-faint)}.notification-item strong{display:block;font-size:.86rem;line-height:1.45;padding-inline-end:52px}.notification-item-body{display:block;font-size:.76rem;color:var(--bk-steel);line-height:1.55;margin-top:4px}.notification-item time{display:block;font-size:.65rem;color:var(--bk-muted);margin-top:7px}.notification-item-state{position:absolute;inset-block-start:10px;inset-inline-end:10px;font-size:.61rem;font-weight:800;color:var(--bk-fuel);background:#fff;border-radius:999px;padding:2px 6px}

@media(max-width:640px){
  body.notification-panel-open{overflow:hidden}
  .notification-panel{inset-inline:0;inset-block-start:auto;bottom:0;width:100%;height:62dvh;min-height:340px;max-height:70dvh;border-radius:20px 20px 0 0;transform:translateY(105%)!important;padding-top:0}
  .notification-panel.open{transform:translateY(0)!important}
  .notification-panel-head{padding-top:17px}.notification-panel-head::before{content:'';position:absolute;top:7px;left:50%;transform:translateX(-50%);width:44px;height:4px;border-radius:99px;background:var(--bk-rule)}
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-item {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* ── Second nav strip — pill navigation ──────────────────── */
.bk-subnav {
  background: var(--bk-surface);
  border-bottom: 1px solid var(--bk-rule);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  position: sticky;
  top: 56px;
  z-index: 199;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.subnav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 4px;
  min-height: 58px;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--bk-rule);
  background: var(--bk-surface);
  color: var(--bk-steel);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.15s;
  text-align: center;
  line-height: 1.3;
}
.subnav-pill:hover {
  border-color: var(--bk-fuel-light);
  background: var(--bk-fuel-faint);
  color: var(--bk-fuel);
}
.subnav-pill.active {
  background: var(--bk-fuel);
  color: #fff;
  border-color: var(--bk-fuel);
  box-shadow: 0 2px 10px rgba(26,92,56,0.22);
}
.subnav-pill svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.nav-lang {
  background: rgba(255,255,255,0.12);
  font-weight: 700;
}
/* ── Language toggle pills ────────────────────────────────── */
.lang-toggle {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.lang-pill {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}
.lang-pill.active {
  background: #fff;
  color: var(--bk-fuel);
  border-color: #fff;
  font-weight: 800;
}
.lang-pill:hover:not(.active) {
  background: rgba(255,255,255,0.20);
  color: #fff;
}

/* ── Hero / Search ────────────────────────────────────────── */
.bk-hero {
  background: linear-gradient(160deg, var(--bk-fuel) 0%, var(--bk-fuel-mid) 100%);
  padding: 20px 16px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.bk-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* ── Suggest button — below hero, above location bar ──────── */
.suggest-home-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 12px 8px;
  background: var(--bk-bg);
  border-bottom: 1px solid var(--bk-rule);
  position: relative;
  z-index: 5;
}
#btn-suggest-home-top, #btn-feedback-home-top, #btn-account-home-top {
  background: #fff;
  border: 1.5px solid var(--bk-fuel);
  color: var(--bk-fuel);
  border-radius: 22px;
  padding: 9px 22px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(26,92,56,0.10);
}
#btn-suggest-home-top:hover, #btn-feedback-home-top:hover, #btn-account-home-top:hover {
  background: var(--bk-fuel-faint);
}

.hero-title {
  font-size: 1.65rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.hero-sub {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero-location-btn {
  width:100%;min-height:52px;border:none;border-radius:14px;background:#fff;color:var(--bk-fuel);
  font-family:var(--font-body);font-size:1rem;font-weight:900;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.14);
}
.hero-location-btn:active { transform:scale(.99); }
.hero-or { text-align:center;font-size:.76rem;font-weight:700;opacity:.8;margin:8px 0 6px; }

.search-bar {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 5px 5px 5px 12px;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.search-input::placeholder { color: rgba(255,255,255,0.6); }

.search-btn {
  background: #fff;
  color: var(--bk-fuel);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity var(--transition);
}

.search-btn:hover { opacity: 0.9; }

/* ── Section heading ──────────────────────────────────────── */
.section-head {
  padding: 16px 16px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bk-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--bk-rule);
  margin-bottom: 0;
}

/* ── Station card ─────────────────────────────────────────── */
.station-card {
  background: var(--bk-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bk-rule);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.station-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-header { margin-bottom: 10px; }

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.station-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bk-ink);
  flex: 1;
}

.station-dist {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--bk-fuel-mid);
  font-weight: 500;
  white-space: nowrap;
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.city-name {
  font-size: 0.82rem;
  color: var(--bk-muted);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge { font-size:0.78rem; padding:6px 12px; border-radius:14px; font-weight:700;
}

.badge-private  { background: var(--bk-fuel-light); color: var(--bk-fuel); }
.badge-gov      { background: var(--bk-gov-bg);     color: var(--bk-gov); }
.badge-hold     { background: var(--bk-hold-bg);    color: var(--bk-hold); }

.open-badge { font-size:0.78rem; padding:6px 12px; border-radius:14px; font-weight:800;
}

.open-yes { background: var(--bk-green-bg); color: var(--bk-green); }
.open-no  { background: var(--bk-red-bg);   color: var(--bk-red); }

.queue-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.queue-long { background: var(--bk-red-bg);    color: var(--bk-red); }
.queue-short { background: var(--bk-green-bg); color: var(--bk-green); }
.queue-ok    { background: var(--bk-gray-bg);  color: var(--bk-gray-text); }

/* ── Liveness notices ─────────────────────────────────────── */
.liveness-notice {
  font-size: 0.78rem;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-inline-start: 3px solid;
  /* default = amber: claimed station, no update today */
  background: var(--bk-amber-bg);
  color: var(--bk-amber);
  border-inline-start-color: var(--bk-amber);
}

/* User-added / unclaimed / unconfirmed — neutral blue-teal informational */
.liveness-unverified {
  background: var(--bk-sponsored-bg);
  color: var(--bk-sponsored);
  border-inline-start-color: var(--bk-sponsored);
}

/* Government station — green informational */
.liveness-gov {
  background: var(--bk-gov-bg);
  color: var(--bk-gov);
  border-inline-start-color: var(--bk-gov);
}

/* ── Promoted station card accent ───────────────────────────── */
.station-card.is-promoted {
  border-inline-start: 4px solid #c8950a;
  background: #fffdf0;
}

.promoted-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #7a5800;
  background: #fff3c4;
  border: 1px solid #e8c84a;
  border-radius: 20px;
  padding: 2px 9px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

/* ── Fuel list ────────────────────────────────────────────── */
.fuel-list { margin-bottom: 10px; }

.fuel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--bk-rule);
  gap: 8px;
}

.fuel-row:last-child { border-bottom: none; }

.fuel-name { font-size:0.98rem; font-weight:700;
  color: var(--bk-ink);
  flex: 1;
}

.fuel-empty {
  font-size: 0.82rem;
  color: var(--bk-muted);
  padding: 8px 0;
  text-align: center;
}

/* ── Availability badges ──────────────────────────────────── */
.avail-badge { font-size:0.86rem; padding:10px 14px; border-radius:16px; font-weight:800;
  text-align: center;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.avail-time {
  font-size: 0.70rem;
  opacity: 0.75;
  font-family: var(--font-mono);
  display: block;
}

.avail-confirmed  { background: var(--bk-green-bg);  color: var(--bk-green); }
.avail-reported   { background: var(--bk-amber-bg);  color: var(--bk-amber); }
.avail-unverified { background: var(--bk-gray-bg);   color: var(--bk-gray-text); }
.avail-conflict   { background: var(--bk-orange-bg); color: var(--bk-orange); }
.avail-none       { background: var(--bk-red-bg);    color: var(--bk-red); }
.avail-nodata     { background: var(--bk-gray-bg);   color: var(--bk-gray-text); font-style: italic; }

.conf-high  { border: 1px solid rgba(26,122,74,0.3); }
.conf-med   { border: 1px solid rgba(180,83,9,0.3); }
.conf-low   { border: 1px dashed rgba(100,116,139,0.4); }
.conf-none  { border: 1px dashed rgba(100,116,139,0.25); }

/* ── Services row ─────────────────────────────────────────── */
.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.svc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  font-size: 0.78rem;
  padding: 7px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(232,245,233,0.95), rgba(241,248,242,0.95));
  color: var(--bk-fuel);
  border: 1px solid rgba(26,122,74,0.12);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15,76,47,0.04);
}

.svc-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-roadside .svc-icon { width: 20px; height: 20px; }

/* ── Silence rule note ────────────────────────────────────── */
.silence-rule-note {
  font-size: 0.70rem;
  color: var(--bk-muted);
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: var(--bk-surface2);
  border: 1px dashed var(--bk-rule);
}

/* ── Card footer ──────────────────────────────────────────── */
.card-footer-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

/* Report button (card list variant) — Session 100 round 2: was a muted
   outline button that blended into the page (feedback: not visible
   enough for an unfamiliar/low-literacy user). Now filled vivid red with a
   glow, same treatment as the full .btn-report on the station detail page,
   just sized for a compact card footer. No pulse animation here since many
   of these can be on screen at once in a results list — a moving glow on
   every card would be distracting, not helpful. */
.btn-report-small {
  background: var(--bk-alert-red);
  border: 1px solid var(--bk-alert-red);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 0 6px var(--bk-alert-red-glow);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity var(--transition);
}

.btn-report-small:hover {
  opacity: 0.85;
}

/* ── Report page ──────────────────────────────────────────── */
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.report-btn {
  padding: 16px 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--bk-rule);
  background: var(--bk-surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.3;
}

.report-btn.type-available  { border-color: var(--bk-green);  color: var(--bk-green); }
.report-btn.type-not-avail  { border-color: var(--bk-red);    color: var(--bk-red); }
.report-btn.type-long-queue { border-color: var(--bk-orange); color: var(--bk-orange); }
.report-btn.type-short-queue{ border-color: var(--bk-amber);  color: var(--bk-amber); }
.report-btn.type-open       { border-color: var(--bk-green);  color: var(--bk-green); }
.report-btn.type-closed     { border-color: var(--bk-red);    color: var(--bk-red); }

.report-btn.selected,
.report-btn:hover {
  color: #fff;
}

.report-btn.type-available.selected,
.report-btn.type-available:hover  { background: var(--bk-green); }
.report-btn.type-not-avail.selected,
.report-btn.type-not-avail:hover  { background: var(--bk-red); }
.report-btn.type-long-queue.selected,
.report-btn.type-long-queue:hover { background: var(--bk-orange); }
.report-btn.type-short-queue.selected,
.report-btn.type-short-queue:hover{ background: var(--bk-amber); }
.report-btn.type-open.selected,
.report-btn.type-open:hover       { background: var(--bk-green); }
.report-btn.type-closed.selected,
.report-btn.type-closed:hover     { background: var(--bk-red); }

/* [S24 device-review fix, G3.L-C2] — the two lifecycle controls
   (#lifecycle-toggle-btn, and each button in #lifecycle-reason-grid) use
   plain .report-btn with none of the type-* classes above. The generic
   `.report-btn.selected, .report-btn:hover { color:#fff }` rule still
   applies to them, but with no matching type-*.selected/:hover background
   rule to pair with it — the result was white text on the unchanged light
   surface background, i.e. invisible text on both hover and selection.
   Scoped fix below: hover feedback is desktop-only (no sticky-hover
   invisibility on touch), the selected state is a real, persistent
   background+color pair (not hover-dependent), and focus-visible gets its
   own outline for keyboard users. */
#lifecycle-toggle-btn,
#lifecycle-reason-grid .report-btn {
  color: var(--bk-fuel);
}
#lifecycle-toggle-btn.selected,
#lifecycle-reason-grid .report-btn.selected {
  background: var(--bk-fuel);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  #lifecycle-toggle-btn:hover,
  #lifecycle-reason-grid .report-btn:hover {
    background: var(--bk-surface2);
    color: var(--bk-fuel);
  }
  #lifecycle-toggle-btn.selected:hover,
  #lifecycle-reason-grid .report-btn.selected:hover {
    background: var(--bk-fuel);
    color: #fff;
  }
}
#lifecycle-toggle-btn:focus-visible,
#lifecycle-reason-grid .report-btn:focus-visible {
  outline: 2px solid var(--bk-fuel);
  outline-offset: 2px;
}

.product-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 16px;
}

.product-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--bk-rule);
  background: var(--bk-surface);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}

.product-chip.selected {
  background: var(--bk-fuel);
  border-color: var(--bk-fuel);
  color: #fff;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--bk-fuel);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  width: 100%;
  transition: opacity var(--transition);
}

.btn-primary:hover { opacity: 0.92; }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

/* Report button — deliberately distinct from btn-primary (Session 100): red,
   not brand green, so it visually reads as "something's wrong here, tap to
   flag it" rather than blending in with every other action on the page.
   Round 2: switched to --bk-alert-red (more saturated than --bk-red) and
   added a slow pulsing glow so it's unmissable even to someone who isn't
   reading the label — a single instance per page, so the motion doesn't
   pile up the way it would in a scrolling list. */
.btn-report {
  background: var(--bk-alert-red);
  color: #fff;
  border: 2px solid var(--bk-alert-red);
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity var(--transition);
  animation: bk-report-glow 2.2s ease-in-out infinite;
}
.btn-report:hover { opacity: 0.9; }

@keyframes bk-report-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--bk-alert-red-glow); }
  50%      { box-shadow: 0 0 0 9px rgba(224,36,36,0); }
}
.btn-report-hint {
  font-size: 0.82rem;
  color: var(--bk-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

.btn-secondary {
  background: transparent;
  color: var(--bk-fuel);
  border: 2px solid var(--bk-fuel);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--bk-fuel);
  color: #fff;
}

/* ── Ticker ───────────────────────────────────────────────── */
.ticker-bar {
  background: var(--bk-fuel);
  color: #fff;
  font-size: 0.82rem;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  height: 36px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1099;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(26,92,56,0.18);
}

.ticker-label {
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: none;
  border-radius: 999px;
  margin: 4px;
  padding: 0 14px;
  font-size: 0.70rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
}

.ticker-label.sponsored { background: rgba(0,0,0,0.3); }

.ticker-bar[dir="rtl"] {
  flex-direction: row-reverse;
}

.ticker-bar[dir="rtl"] .ticker-label {
  letter-spacing: 0;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 0;
  transition: opacity 0.12s ease;
  direction: ltr;
  contain: content;
}


/* Continuous broadcast-style ticker: one seamless strip: ad 1 | ad 2 | ad 3 */
.ticker-marquee {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  direction: ltr;
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}


.ticker-marquee-ltr {
  animation: ticker-move-left-to-right var(--ticker-duration, 12s) linear infinite;
}


.ticker-marquee-rtl {
  animation: ticker-move-right-to-left var(--ticker-duration, 12s) linear infinite;
}


.ticker-set {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  padding-inline-end: 2.25rem;
}

.ticker-item {
  display: inline-block;
  unicode-bidi: isolate;
}

.ticker-item[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.ticker-separator {
  display: inline-block;
  opacity: 0.82;
  padding: 0 0.9rem;
  unicode-bidi: isolate;
}

@keyframes ticker-move-right-to-left {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); }
}

@keyframes ticker-move-left-to-right {
  0%   { transform: translate3d(-50%,0,0); }
  100% { transform: translate3d(0,0,0); }
}

.ticker-bar:hover .ticker-marquee,
.ticker-track:hover .ticker-marquee { animation-play-state: paused; }

.ticker-disclaimer {
  font-size: 0.62rem;
  opacity: 0.75;
  white-space: nowrap;
  padding: 0 10px;
  display: flex;
  align-items: center;
}

/* ── Ad banner ────────────────────────────────────────────── */
.ad-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bk-surface);
  border-top: 2px solid var(--bk-rule);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  max-height: 42vh;
  transform: translateY(calc(100% - 52px));
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.ad-banner.expanded {
  transform: translateY(0);
}
.ad-banner-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  cursor: pointer;
  background: var(--bk-surface);
  border-bottom: 1px solid var(--bk-rule);
  user-select: none;
}
.ad-handle-pill {
  width: 36px;
  height: 4px;
  background: var(--bk-rule);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
}
.ad-handle-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bk-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ad-handle-close {
  font-size: 1.1rem;
  color: var(--bk-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
/* Body padding so content doesn't hide behind fixed ad */
body.ticker-visible {
  padding-bottom: 36px;
}
body.ad-visible {
  padding-bottom: 56px;
}
.ad-image-frame {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bk-fuel) 0%, var(--bk-fuel-mid) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ad-image-frame img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ad-image-placeholder {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}
.ad-watermark {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.ad-body-section {
  padding: 10px 14px 12px;
}

.ad-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.ad-type-badge {
  font-size: 0.65rem;
  background: var(--bk-sponsored-bg);
  color: var(--bk-sponsored);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.ad-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bk-ink);
  margin-bottom: 2px;
}

.ad-body {
  font-size: 0.82rem;
  color: var(--bk-steel);
}

.ad-disclaimer {
  font-size: 0.65rem;
  color: var(--bk-muted);
  margin-top: 6px;
  font-style: italic;
}

.ad-open-btn {
  margin-top: 8px;
  background: var(--bk-fuel);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-body);
}


/* Desktop banner-image fix: keep mobile behavior unchanged, but show the full ad artwork on wide screens. */
.ad-content-scroll {
  overflow-y: auto;
  max-height: calc(42vh - 52px);
}

@media (min-width: 900px) {
  .ad-banner {
    max-height: min(70vh, 720px);
  }

  .ad-content-scroll {
    max-height: calc(min(70vh, 720px) - 52px);
  }

  .ad-image-frame {
    height: 400px;
    max-height: calc(min(70vh, 720px) - 96px);
    background: transparent;
    justify-content: flex-end;
  }

  [dir="ltr"] .ad-image-frame {
    justify-content: flex-start;
  }

  .ad-image-frame img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
  }

  [dir="ltr"] .ad-image-frame img {
    object-position: left center;
  }
}

/* ── Prices table ─────────────────────────────────────────── */
.prices-section {
  margin: 16px;
  background: var(--bk-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bk-rule);
}

.prices-product-head {
  background: var(--bk-fuel);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--bk-rule);
  font-size: 0.88rem;
}

.price-row:last-child { border-bottom: none; }
.price-row:nth-child(even) { background: var(--bk-surface2); }

.price-category { color: var(--bk-steel); }

.price-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--bk-fuel);
}

.prices-meta {
  padding: 14px 16px;
  font-size: 0.78rem;
  color: var(--bk-muted);
  text-align: center;
  border-top: 1px solid var(--bk-rule);
}

.prices-disclaimer {
  margin: 0 16px 16px;
  padding: 10px 14px;
  background: var(--bk-amber-bg);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--bk-amber);
  border-inline-start: 3px solid var(--bk-amber);
}

/* ── Paywall ──────────────────────────────────────────────── */
.paywall-card {
  margin: 24px 16px;
  padding: 24px 20px;
  background: var(--bk-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--bk-fuel-mid);
  text-align: center;
}

.paywall-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.paywall-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bk-fuel);
  font-family: var(--font-mono);
  margin: 12px 0;
}

.paywall-dev-note {
  font-size: 0.75rem;
  color: var(--bk-muted);
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--bk-surface2);
  border-radius: var(--radius-sm);
}

/* ── Admin / SuperAdmin ───────────────────────────────────── */
.dashboard-section {
  margin: 12px 16px;
  background: var(--bk-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bk-rule);
  overflow: hidden;
}

.dashboard-section-head {
  background: var(--bk-fuel-faint);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bk-fuel);
  border-bottom: 1px solid var(--bk-fuel-light);
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bk-rule);
  font-size: 0.88rem;
}

.dashboard-row:last-child { border-bottom: none; }
.dashboard-row-label { color: var(--bk-steel); font-size: 0.82rem; }
.dashboard-row-value { font-weight: 500; }

.pending-badge {
  background: var(--bk-amber-bg);
  color: var(--bk-amber);
  font-size: 0.70rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.approved-badge {
  background: var(--bk-green-bg);
  color: var(--bk-green);
  font-size: 0.70rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.rejected-badge {
  background: var(--bk-red-bg);
  color: var(--bk-red);
  font-size: 0.70rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.hold-badge {
  background: var(--bk-gov-bg);
  color: var(--bk-gov);
  font-size: 0.70rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.action-row {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.btn-approve, .btn-reject, .btn-hold {
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.80rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity var(--transition);
}

.btn-approve { background: var(--bk-green);  color: #fff; }
.btn-reject  { background: var(--bk-red);    color: #fff; }
.btn-hold    { background: var(--bk-gov);    color: #fff; }

.btn-approve:hover, .btn-reject:hover, .btn-hold:hover { opacity: 0.85; }

/* ── Availability toggle ──────────────────────────────────── */
.avail-update-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.avail-update-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bk-rule);
}

.avail-update-row:last-child { border-bottom: none; }

.avail-update-name {
  font-size: 0.88rem;
  font-weight: 500;
  flex: 1;
}

.avail-toggle-group {
  display: flex;
  gap: 5px;
}

.avail-btn {
  border: 1.5px solid var(--bk-rule);
  background: transparent;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}

.avail-btn.yes.active  { background: var(--bk-green);  border-color: var(--bk-green);  color: #fff; }
.avail-btn.no.active   { background: var(--bk-red);    border-color: var(--bk-red);    color: #fff; }
.avail-btn.unk.active  { background: var(--bk-gray-text); border-color: var(--bk-gray-text); color: #fff; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bk-rule);
}

.form-label {
  display: block;
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--bk-steel);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--bk-rule);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: var(--font-body);
  background: var(--bk-surface);
  color: var(--bk-ink);
  transition: border-color var(--transition);
  direction: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--bk-fuel-mid);
  box-shadow: 0 0 0 3px var(--bk-fuel-faint);
}

.form-textarea { min-height: 80px; resize: vertical; }

/* ── Info boxes ───────────────────────────────────────────── */
.info-box {
  margin: 12px 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  border-inline-start: 3px solid;
}

.info-box.info         { background: var(--bk-fuel-faint);   color: var(--bk-fuel);       border-color: var(--bk-fuel-mid); }
.info-box.warn         { background: var(--bk-amber-bg);     color: var(--bk-amber);      border-color: var(--bk-amber); }
.info-box.error        { background: var(--bk-red-bg);       color: var(--bk-red);        border-color: var(--bk-red); }
.info-box.gov          { background: var(--bk-gov-bg);       color: var(--bk-gov);        border-color: var(--bk-gov); }
.info-box.unconfirmed  { background: var(--bk-sponsored-bg); color: var(--bk-sponsored);  border-color: var(--bk-sponsored); }

/* ── Legal pages ──────────────────────────────────────────── */
.legal-section {
  margin: 16px;
  background: var(--bk-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bk-rule);
}

.legal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bk-rule);
  font-size: 0.90rem;
}

.legal-item:last-child { border-bottom: none; }

.legal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bk-fuel-mid);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── Safety page ──────────────────────────────────────────── */
.safety-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bk-rule);
  font-size: 0.95rem;
  font-weight: 500;
}

.safety-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Kurdish draft banner ─────────────────────────────────── */
.ku-draft-banner {
  background: var(--bk-amber-bg);
  color: var(--bk-amber);
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid var(--bk-amber);
  word-break: break-word;
  white-space: normal;
  line-height: 1.5;
}

/* ── Cache notice ─────────────────────────────────────────── */
.cache-notice {
  background: var(--bk-amber-bg);
  color: var(--bk-amber);
  font-size: 0.72rem;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(180,83,9,0.2);
}

/* ── Footer ───────────────────────────────────────────────── */
.bk-footer {
  background: var(--bk-ink);
  color: rgba(255,255,255,0.65);
  padding: 20px 16px;
  margin-top: 24px;
  font-size: 0.75rem;
  text-align: center;
}

.footer-disclaimer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.75);
}

.footer-dev {
  font-size: 0.70rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.footer-version {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
}

/* ── Map page ─────────────────────────────────────────────── */
#map-container {
  width: 100%;
  height: calc(100vh - 52px - 48px);
  min-height: 400px;
  position: relative;
}

#leaflet-map {
  width: 100%;
  height: 100%;
}

.map-toolbar {
  background: var(--bk-surface);
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--bk-rule);
}

.map-filter-btn {
  border: 1.5px solid var(--bk-rule);
  background: var(--bk-surface);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.map-filter-btn.active {
  background: var(--bk-fuel);
  border-color: var(--bk-fuel);
  color: #fff;
}

/* ── Login ────────────────────────────────────────────────── */
.login-card {
  margin: 40px 20px;
  background: var(--bk-surface);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bk-rule);
  text-align: center;
}

.login-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bk-fuel);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--bk-muted);
  margin-bottom: 28px;
}

/* ── Classification selector ──────────────────────────────── */
.classify-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
}

.classify-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--bk-rule);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.88rem;
}

.classify-option.private  { border-color: var(--bk-fuel-light); }
.classify-option.gov      { border-color: var(--bk-gov-bg); }
.classify-option.hold     { border-color: var(--bk-hold-bg); }

.classify-option.selected.private { background: var(--bk-fuel-faint); border-color: var(--bk-fuel); }
.classify-option.selected.gov     { background: var(--bk-gov-bg);     border-color: var(--bk-gov); }
.classify-option.selected.hold    { background: var(--bk-hold-bg);    border-color: var(--bk-hold); }

/* ── Success toast ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bk-ink);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  z-index: 9000;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.toast.show { opacity: 1; }

/* ── Share App ────────────────────────────────────────────── */
.share-shell {
  width: min(100% - 24px, 720px);
  margin: 18px auto 32px;
}
.share-hero {
  overflow: hidden;
  border: 1px solid rgba(26,92,56,.14);
  border-radius: 24px;
  background: radial-gradient(circle at 18% 8%, rgba(174,221,178,.48), transparent 30%), linear-gradient(160deg, #f8fcf7 0%, #eef8ef 100%);
  box-shadow: 0 14px 40px rgba(14,60,38,.12);
  padding: clamp(18px, 5vw, 34px);
  text-align: center;
}
.share-eyebrow { color: var(--bk-fuel); font-size: .78rem; font-weight: 900; letter-spacing: .04em; margin-bottom: 6px; }
.share-title { margin: 0; color: var(--bk-ink); font-size: clamp(1.45rem, 5vw, 2rem); }
.share-subtitle { margin: 8px auto 20px; max-width: 34rem; color: var(--bk-muted); line-height: 1.65; }
.share-qr-frame {
  width: min(76vw, 290px);
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(26,92,56,.15);
  box-shadow: 0 8px 24px rgba(14,60,38,.10);
}
.share-qr-frame img { display: block; width: 100%; height: auto; }
.share-scan-copy { margin: 0 0 18px; color: var(--bk-steel); font-weight: 800; }
.share-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--bk-rule);
}
.share-url {
  min-width: 0;
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
  padding: 11px 8px;
  color: var(--bk-ink);
  font-family: var(--font-mono);
  font-size: .82rem;
  text-align: start;
}
.share-copy-btn, .share-native-btn {
  min-height: 48px;
  border-radius: 13px;
  border: 0;
  font: 800 .92rem var(--font-body);
  cursor: pointer;
}
.share-copy-btn { padding: 0 16px; color: var(--bk-fuel); background: var(--bk-fuel-faint); }
.share-native-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0f6b43, var(--bk-fuel));
  box-shadow: 0 7px 18px rgba(26,92,56,.22);
}
.share-copy-btn:focus-visible, .share-native-btn:focus-visible { outline: 3px solid rgba(15,107,67,.28); outline-offset: 2px; }
.share-community {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  background: var(--bk-surface);
  border: 1px solid var(--bk-rule);
}
.share-community h2 { margin: 0 0 5px; color: var(--bk-ink); font-size: 1.12rem; }
.share-community-note { margin: 0 0 14px; color: var(--bk-muted); font-size: .78rem; line-height: 1.55; }
.share-counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.share-counter { min-width: 0; padding: 16px 10px; border-radius: 15px; text-align: center; background: var(--bk-fuel-faint); }
.share-counter strong { display: block; color: var(--bk-fuel); font: 900 clamp(1.35rem, 6vw, 1.9rem) var(--font-mono); }
.share-counter span { display: block; margin-top: 4px; color: var(--bk-steel); font-size: .78rem; font-weight: 800; }
.share-counter.is-unavailable strong { color: var(--bk-muted); }
.share-counter-status { margin-top: 10px; min-height: 1.25em; color: var(--bk-muted); font-size: .72rem; text-align: center; }
@media (max-width: 430px) {
  .share-shell { width: min(100% - 16px, 720px); margin-top: 10px; }
  .share-hero { border-radius: 18px; padding-inline: 14px; }
  .share-url-row { grid-template-columns: 1fr; }
  .share-copy-btn { width: 100%; }
}

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--bk-rule);
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--bk-fuel-mid);
  padding: 4px;
  display: flex;
  align-items: center;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 380px) {
  .nav-item { font-size: 0.72rem; padding: 5px 6px; }
  .hero-title { font-size: 1.25rem; }
  .station-name { font-size: 0.95rem; }
  .report-grid { grid-template-columns: 1fr; }
}

/* ── LTR overrides ────────────────────────────────────────── */
body.ltr .info-box,
body.ltr .liveness-notice,
body.ltr .prices-disclaimer {
  border-inline-start: none;
  border-left: 3px solid;
}

body.ltr .info-box.info   { border-left-color: var(--bk-fuel-mid); }
body.ltr .info-box.warn   { border-left-color: var(--bk-amber); }
body.ltr .info-box.error  { border-left-color: var(--bk-red); }
body.ltr .liveness-notice { border-left-color: var(--bk-amber); }
body.ltr .liveness-gov    { border-left-color: var(--bk-gov); }

/* ── Superadmin pin lock overlay ──────────────────────────── */
.pin-overlay {
  position: fixed;
  inset: 0;
  background: var(--bk-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pin-card {
  background: var(--bk-surface);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bk-rule);
  text-align: center;
}

.pin-input {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  padding: 12px;
  border: 2px solid var(--bk-rule);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  margin: 16px 0;
}

.pin-error {
  color: var(--bk-red);
  font-size: 0.82rem;
  margin-top: -8px;
  margin-bottom: 8px;
}

/* ── External navigation buttons (Phase 6) ───────────────── */
.nav-btns-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.btn-nav-ext {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 10px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--bk-rule);
  background: var(--bk-surface);
  color: var(--bk-fuel);
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
}
.btn-nav-ext:hover { background: var(--bk-fuel-faint); border-color: var(--bk-fuel-light); }
.btn-nav-ext.gmaps  { border-color: #2E7D52; color: #2E7D52; flex-basis: calc(50% - 4px); min-height: 50px; font-weight: 800; }
.btn-nav-ext.waze   { border-color: #1A5C7A; color: #1A5C7A; flex-basis: calc(50% - 4px); min-height: 50px; font-weight: 800; }
.btn-nav-ext.gmaps img, .btn-nav-ext.waze img { width:24px !important;height:24px !important; }
.btn-nav-ext.coords { border-color: var(--bk-rule); color: var(--bk-steel); flex-basis: 100%; }
.nav-disclaimer {
  padding: 0 16px 10px;
  font-size: 0.80rem;
  color: var(--bk-muted);
  text-align: center;
  line-height: 1.5;
}

/* Main v1.0.176 — truthful unknown-location state and station-detail
   readability floor. These rules are intentionally narrow. */
.location-bar {
  display:none;align-items:center;justify-content:space-between;gap:12px;
  padding:8px 16px;background:var(--bk-fuel-faint);border-bottom:1px solid var(--bk-rule);
  color:var(--bk-muted);
}
.location-state-copy { min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.35; }
.location-state-copy strong { color:var(--bk-ink);font-size:.86rem; }
.location-state-copy > span { font-size:.80rem; }
.unknown-location-state { margin:14px 16px 20px;padding:22px 18px;text-align:center;background:var(--bk-surface);border:1px solid var(--bk-rule);border-radius:16px; }
.unknown-location-icon { font-size:1.8rem;line-height:1;margin-bottom:9px; }
.unknown-location-title { color:var(--bk-ink);font-size:1rem;font-weight:900;margin-bottom:6px; }
.unknown-location-help { color:var(--bk-muted);font-size:.88rem;line-height:1.65;max-width:520px;margin:0 auto; }
.unknown-location-state button { margin-top:14px;min-height:44px;padding:9px 18px;border:0;border-radius:12px;background:var(--bk-fuel);color:#fff;font-family:var(--font-body);font-size:.88rem;font-weight:800;cursor:pointer; }
.station-detail-page .avail-badge { font-size:.84rem; }
.station-detail-page .avail-time { font-size:.78rem;line-height:1.4; }
.station-important-secondary { font-size:.88rem;line-height:1.55;opacity:.9;margin-bottom:10px; }
.station-community-info { font-size:.86rem;line-height:1.5; }
.station-silence-note { padding:8px 16px;font-size:.82rem;line-height:1.5;color:var(--bk-muted);border-top:1px solid var(--bk-rule);font-style:italic; }
.station-product-hint { font-size:.80rem;line-height:1.45;color:var(--bk-muted); }
.station-product-status { font-style:italic;text-align:center; }
.station-detail-page .owner-mini-badge { font-size:.74rem; }

@media (max-width: 380px) {
  .location-bar { align-items:flex-start;padding-inline:12px; }
  .location-state-copy > span { font-size:.76rem; }
  .location-bar #btn-update-loc { flex-shrink:0;padding-inline:10px !important; }
}

/* ── Payment page ─────────────────────────────────────────── */
.payment-card {
  background: var(--bk-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--bk-rule);
  margin: 16px;
  overflow: hidden;
}
.payment-tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.payment-tier-btn {
  padding: 12px 6px;
  border-radius: var(--radius-md);
  border: 2px solid var(--bk-rule);
  background: var(--bk-surface);
  color: var(--bk-steel);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.payment-tier-btn.selected {
  border-color: var(--bk-fuel);
  background: var(--bk-fuel-faint);
  color: var(--bk-fuel);
}
.payment-receiver-box {
  background: var(--bk-fuel-faint);
  border: 1.5px solid var(--bk-fuel-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 12px 0;
  text-align: center;
}
.payment-number-masked {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bk-fuel);
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin: 6px 0;
}
.payment-number-full {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--bk-fuel);
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  margin: 6px 0;
  display: none;
}
.btn-reveal {
  background: var(--bk-fuel);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 8px;
}
.btn-copy-number {
  background: var(--bk-surface);
  color: var(--bk-fuel);
  border: 1.5px solid var(--bk-fuel-light);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 6px;
  display: none;
}
.payment-warning {
  font-size: 0.72rem;
  color: var(--bk-amber);
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
}
.upload-receipt-zone {
  border: 2px dashed var(--bk-rule);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  color: var(--bk-muted);
  cursor: pointer;
  margin: 12px 0;
  transition: border-color var(--transition), background var(--transition);
}
.upload-receipt-zone:hover,
.upload-receipt-zone.has-file {
  border-color: var(--bk-fuel-mid);
  background: var(--bk-fuel-faint);
  color: var(--bk-fuel);
}


/* v1.0.69 — Desktop ad side panel: shrink the desktop banner to the real image width,
   keep Arabic/Kurdish docked right and English docked left, and show ad details under the image.
   Mobile stays unchanged. */
@media (min-width: 900px) {
  .ad-banner {
    left: auto;
    right: 0;
    width: fit-content;
    max-width: min(920px, 100vw);
    background: transparent;
    border-top: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    max-height: min(82vh, 860px);
  }

  .ad-banner.ad-lang-en {
    left: 0;
    right: auto;
  }

  .ad-banner.ad-lang-ar,
  .ad-banner.ad-lang-ku {
    right: 0;
    left: auto;
  }

  .ad-banner-handle {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--bk-rule);
    border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  }

  .ad-content-scroll {
    width: fit-content;
    max-width: min(920px, 100vw);
    background: transparent;
    overflow: visible;
    max-height: calc(min(82vh, 860px) - 52px);
  }

  .ad-image-frame {
    width: fit-content;
    max-width: min(920px, 100vw);
    height: auto;
    max-height: calc(min(82vh, 860px) - 150px);
    background: transparent !important;
    display: block;
    overflow: visible;
  }

  .ad-image-frame img {
    width: auto;
    max-width: min(920px, 100vw);
    height: auto;
    max-height: calc(min(82vh, 860px) - 150px);
    object-fit: contain;
    object-position: right top;
    display: block;
  }

  .ad-banner.ad-lang-en .ad-image-frame img {
    object-position: left top;
  }

  .ad-body-section {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.97);
    border: 1px solid var(--bk-rule);
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }

  body.ad-visible {
    padding-bottom: 56px;
  }
}

/* ── WhatsApp contact pill (legal modal + pending screen) ── */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(37, 211, 102, .35);
}
.wa-btn:active { transform: scale(.97); }

/* ── Inline ad card (car service — injected every 5 stations) ── */
.inline-ad-wrap {
  margin: 0 0 2px 0;
  padding: 0 0 2px 0;
  border-top: 1px solid var(--bk-rule);
  border-bottom: 1px solid var(--bk-rule);
}

.inline-ad-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bk-surface);
  border-right: 3px solid var(--bk-fuel);
  cursor: default;
}

.inline-ad-img {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 350 / 200;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  cursor: zoom-in;
  background: var(--bk-bg);
}

.inline-ad-body {
  flex: 1;
  min-width: 0;
}

.inline-ad-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.inline-ad-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--bk-fuel);
  background: rgba(26,92,56,0.08);
  border: 1px solid rgba(26,92,56,0.2);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.inline-ad-svc {
  font-size: 0.65rem;
  color: var(--bk-muted);
  white-space: nowrap;
}

.inline-ad-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bk-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-ad-text {
  font-size: 0.78rem;
  color: var(--bk-muted);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inline-ad-loc {
  font-size: 0.72rem;
  color: var(--bk-muted);
  margin-bottom: 5px;
}

.inline-ad-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.inline-ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.inline-ad-call {
  background: var(--bk-fuel);
  color: #fff;
}

.inline-ad-wa {
  background: #25D366;
  color: #fff;
}

/* ── Ad image lightbox (full-size viewer) ───────────────────── */
.bk-img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.bk-img-lightbox-fig {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  line-height: 0;
}
.bk-img-lightbox-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}
.bk-img-lightbox-close:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.24);
}
.bk-img-lightbox-fig img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

/* ── Ticker maintenance speed override ──────────────────────── */
.ticker-maintenance {
  animation-duration: 12s;
  animation-iteration-count: 1;
}

/* ── Navigation provider buttons ────────────────────────────── */
.bk-nav-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.bk-nav-btn{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;
  border-radius:10px;border:1.5px solid var(--bk-rule);background:var(--bk-surface);
  color:var(--bk-ink);font-size:0.82rem;font-weight:700;text-decoration:none;
  font-family:inherit;cursor:pointer;transition:background 0.12s,border-color 0.12s;
  white-space:nowrap;flex:1;min-width:0;justify-content:center}
.bk-nav-btn:hover{border-color:var(--bk-fuel);background:var(--bk-fuel-faint)}
.bk-nav-btn img{width:20px;height:20px;object-fit:contain;flex-shrink:0;display:block}
.bk-nav-disclaimer{font-size:0.68rem;color:var(--bk-muted);margin-top:6px;
  line-height:1.4;padding:0 2px}

/* ── P-04 Offline Banner ─────────────────────────────────────── */
/* Banner sits at the very bottom, BELOW the ticker (z-index:1).        */
/* When visible, banner sits above ticker. Ticker stays fixed at bottom:0 */
#bk-offline-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 20px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
/* Hidden — slid off screen */
#bk-offline-banner.bk-ob-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
/* Offline state — dark, persistent */
#bk-offline-banner.bk-ob-visible {
  transform: translateY(0);
  opacity: 1;
  background: #0D1F15;
  color: #C8E6C9;
}
/* Online restored — bright green, 10s then hides */
#bk-offline-banner.bk-ob-online {
  transform: translateY(0);
  opacity: 1;
  background: #1A5C38;
  color: #fff;
}
#bk-offline-spinner {
  font-size: 0.84rem;
  letter-spacing: 2px;
  display: inline-block;
  margin-inline-start: 6px;
}
/* Banner slots between ticker and ad card — ticker stays at bottom:0 */
/* Banner sits just above the ticker (bottom = ticker height = 36px)     */
#bk-offline-banner {
  bottom: 36px !important; /* always above ticker */
}
/* When ticker not visible, banner drops to bottom:0 */
body:not(.ticker-visible) #bk-offline-banner {
  bottom: 0 !important;
}
/* Banner visible — add banner height (44px) + 160px breathing room */
body.bk-ob-active:not(.ticker-visible):not(.ad-visible) {
  padding-bottom: 204px;  /* 44px banner + 160px extra */
}
body.bk-ob-active.ticker-visible:not(.ad-visible) {
  padding-bottom: 240px;  /* 36px ticker + 44px banner + 160px extra */
}
body.bk-ob-active.ad-visible {
  padding-bottom: 260px;  /* 56px ad + 44px banner + 160px extra */
}


/* v1.0.108 — Ad banner viewport/ticker safety fix.
   Cause: the ticker is fixed at bottom:0 and has a higher z-index than the fixed ad card.
   Therefore the lower part of the expanded ad body was hidden behind the ticker.
   Desktop also had overflow:visible, so large artwork could push the details outside the viewport. */
:root {
  --bk-ticker-h: 36px;
  --bk-ad-handle-h: 52px;
}

/* Keep the news ticker fixed at bottom:0, but dock the ad card above it. */
body.ticker-visible .ad-banner {
  bottom: var(--bk-ticker-h);
}

body.ad-visible.ticker-visible {
  padding-bottom: calc(var(--bk-ticker-h) + 56px);
}

.ad-content-scroll {
  overscroll-behavior: contain;
}

@media (min-width: 900px) {
  .ad-banner {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  body.ticker-visible .ad-banner {
    max-height: calc(100vh - var(--bk-ticker-h) - 24px);
    max-height: calc(100dvh - var(--bk-ticker-h) - 24px);
  }

  .ad-content-scroll {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - var(--bk-ad-handle-h) - 24px) !important;
    max-height: calc(100dvh - var(--bk-ad-handle-h) - 24px) !important;
    scrollbar-gutter: stable;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  body.ticker-visible .ad-content-scroll {
    max-height: calc(100vh - var(--bk-ad-handle-h) - var(--bk-ticker-h) - 24px) !important;
    max-height: calc(100dvh - var(--bk-ad-handle-h) - var(--bk-ticker-h) - 24px) !important;
  }

  /* Preserve the full artwork with object-fit: contain, but cap height so the title, body, CTA,
     and disclaimer are visible instead of being pushed below the viewport. */
  .ad-image-frame,
  .ad-image-frame img {
    max-height: 400px !important;
    max-height: min(400px, calc(100vh - 260px)) !important;
    max-height: min(400px, calc(100dvh - 260px)) !important;
  }

  body.ticker-visible .ad-image-frame,
  body.ticker-visible .ad-image-frame img {
    max-height: 400px !important;
    max-height: min(400px, calc(100vh - 296px)) !important;
    max-height: min(400px, calc(100dvh - 296px)) !important;
  }

  .ad-body-section {
    max-height: none;
  }

  .ad-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
  }
}

/* v1.0.108 — Bottom-stack discipline for offline footer + ticker + ad banner.
   Required order from bottom upward:
   1) offline reconnect footer
   2) news ticker
   3) expandable banner ad
   No floating overlay: every visible fixed layer gets matching body padding. */
:root {
  --bk-offline-h: 44px;
  --bk-ticker-h: 36px;
  --bk-ad-handle-h: 52px;
}

/* Offline reconnect bar is the real bottom footer. */
#bk-offline-banner {
  bottom: 0 !important;
  z-index: 1101;
  height: var(--bk-offline-h);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.18);
}

/* News ticker docks above the offline footer when reconnect state is active. */
body.bk-ob-active .ticker-bar {
  bottom: var(--bk-offline-h) !important;
}

/* Banner ad docks above whichever bottom layers are visible. */
body:not(.bk-ob-active):not(.ticker-visible) .ad-banner {
  bottom: 0 !important;
}
body:not(.bk-ob-active).ticker-visible .ad-banner {
  bottom: var(--bk-ticker-h) !important;
}
body.bk-ob-active:not(.ticker-visible) .ad-banner {
  bottom: var(--bk-offline-h) !important;
}
body.bk-ob-active.ticker-visible .ad-banner {
  bottom: calc(var(--bk-offline-h) + var(--bk-ticker-h)) !important;
}

/* Replace the old oversized offline padding. Padding now equals the actual stack height. */
body:not(.bk-ob-active).ticker-visible:not(.ad-visible) {
  padding-bottom: var(--bk-ticker-h) !important;
}
body:not(.bk-ob-active).ad-visible:not(.ticker-visible) {
  padding-bottom: var(--bk-ad-handle-h) !important;
}
body:not(.bk-ob-active).ad-visible.ticker-visible {
  padding-bottom: calc(var(--bk-ticker-h) + var(--bk-ad-handle-h)) !important;
}
body.bk-ob-active:not(.ticker-visible):not(.ad-visible) {
  padding-bottom: var(--bk-offline-h) !important;
}
body.bk-ob-active.ticker-visible:not(.ad-visible) {
  padding-bottom: calc(var(--bk-offline-h) + var(--bk-ticker-h)) !important;
}
body.bk-ob-active.ad-visible:not(.ticker-visible) {
  padding-bottom: calc(var(--bk-offline-h) + var(--bk-ad-handle-h)) !important;
}
body.bk-ob-active.ad-visible.ticker-visible {
  padding-bottom: calc(var(--bk-offline-h) + var(--bk-ticker-h) + var(--bk-ad-handle-h)) !important;
}

/* Keep expanded desktop ad inside the remaining viewport after the fixed footer/ticker stack. */
@media (min-width: 900px) {
  body.bk-ob-active .ad-banner {
    max-height: calc(100vh - var(--bk-offline-h) - 24px) !important;
    max-height: calc(100dvh - var(--bk-offline-h) - 24px) !important;
  }
  body.bk-ob-active.ticker-visible .ad-banner {
    max-height: calc(100vh - var(--bk-offline-h) - var(--bk-ticker-h) - 24px) !important;
    max-height: calc(100dvh - var(--bk-offline-h) - var(--bk-ticker-h) - 24px) !important;
  }
  body.bk-ob-active .ad-content-scroll {
    max-height: calc(100vh - var(--bk-ad-handle-h) - var(--bk-offline-h) - 24px) !important;
    max-height: calc(100dvh - var(--bk-ad-handle-h) - var(--bk-offline-h) - 24px) !important;
  }
  body.bk-ob-active.ticker-visible .ad-content-scroll {
    max-height: calc(100vh - var(--bk-ad-handle-h) - var(--bk-offline-h) - var(--bk-ticker-h) - 24px) !important;
    max-height: calc(100dvh - var(--bk-ad-handle-h) - var(--bk-offline-h) - var(--bk-ticker-h) - 24px) !important;
  }
  body.bk-ob-active .ad-image-frame,
  body.bk-ob-active .ad-image-frame img {
    max-height: 360px !important;
    max-height: min(360px, calc(100vh - 304px)) !important;
    max-height: min(360px, calc(100dvh - 304px)) !important;
  }
  body.bk-ob-active.ticker-visible .ad-image-frame,
  body.bk-ob-active.ticker-visible .ad-image-frame img {
    max-height: 360px !important;
    max-height: min(360px, calc(100vh - 340px)) !important;
    max-height: min(360px, calc(100dvh - 340px)) !important;
  }
}


/* ============================================================
   v1.0.157 — Zero-experience public UI pass
   Same product features; lower visual competition and larger tap targets.
   ============================================================ */
.fuel-filter-zone { padding:14px 12px 10px;background:var(--bk-surface);border-bottom:1px solid var(--bk-rule); }
.fuel-filter-question { font-size:1rem;font-weight:900;color:var(--bk-ink);margin-bottom:9px;text-align:center; }
.product-filter-bar { display:grid;grid-template-columns:repeat(2,1fr);gap:8px; }
.fuel-filter-btn { min-height:50px;border:1.5px solid var(--bk-rule);background:var(--bk-surface);color:var(--bk-steel);border-radius:13px;padding:8px 9px;font-size:.82rem;font-weight:800;cursor:pointer;font-family:inherit;text-align:center;display:flex;align-items:center;justify-content:center;gap:7px;line-height:1.2; }
.fuel-filter-btn:last-child { grid-column:1 / -1; }
.fuel-filter-btn.active { background:var(--bk-fuel);color:#fff;border-color:var(--bk-fuel);box-shadow:0 2px 8px rgba(26,92,56,.2); }
.fuel-filter-icon { font-size:1rem;line-height:1; }

.section-head { font-size:.92rem;font-weight:900;text-transform:none;letter-spacing:0;padding-top:14px;color:var(--bk-ink);background:var(--bk-bg); }
.station-card { margin:10px 12px;padding:14px;border-radius:16px; }
.station-name { font-size:1.08rem;font-weight:900; }
.station-dist { font-size:.9rem;font-weight:800;color:var(--bk-fuel); }
.fuel-row { min-height:44px; }
.fuel-name { font-size:.88rem;font-weight:800; }
.avail-badge { font-size:.74rem;font-weight:900;line-height:1.2; }
.services-row { margin-top:8px; }
.svc-tag { min-height:32px;font-size:.72rem;padding:6px 9px; }
/* Session 102: navigation is a deliberate two-choice control. Google Maps and Waze
   must have equal visual weight; neither is hidden as a tiny secondary link. */
.card-route-label { display:flex;align-items:center;gap:6px;margin-top:12px;margin-bottom:7px;font-size:.76rem;font-weight:900;color:var(--bk-steel); }
.card-route-grid { display:grid;grid-template-columns:1fr 1fr;gap:9px; }
.card-map-btn { min-height:50px;border-radius:12px;padding:9px 8px;font-size:.84rem;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;text-align:center;background:var(--bk-surface);box-shadow:0 1px 5px rgba(18,38,28,.08); }
.card-map-btn.gmaps { border:1.5px solid #2E7D52;color:#245f41; }
.card-map-btn.waze { border:1.5px solid #1A5C7A;color:#174f69; }
.card-map-btn img { width:26px;height:26px;object-fit:contain;flex-shrink:0; }
.card-map-btn:hover { background:var(--bk-fuel-faint);text-decoration:none; }
.card-action-grid { display:grid;grid-template-columns:1fr;gap:9px;margin-top:9px; }
.btn-report-small { min-height:48px;border-radius:12px;padding:10px 8px;font-size:.88rem;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px;text-align:center;width:100%;box-shadow:0 2px 8px rgba(224,36,36,.28); }
.card-more-row { display:flex;align-items:center;justify-content:center;gap:10px;margin-top:7px;font-size:.7rem;color:var(--bk-muted);text-align:center; }
.suggest-home-bottom { border-top:1px solid var(--bk-rule);border-bottom:none;background:transparent; }
.search-secondary-action { padding:10px 16px 20px;text-align:center; }
.secondary-action-btn { min-height:44px;background:var(--bk-surface);border:1.5px solid var(--bk-rule);color:var(--bk-fuel);border-radius:12px;padding:9px 16px;font-size:.82rem;font-weight:800;cursor:pointer;font-family:var(--font-body); }

.report-station-summary { margin:12px 16px 8px;padding:14px 16px;background:var(--bk-fuel-faint);border-radius:14px;border:1px solid var(--bk-fuel-light);font-size:1rem; }
.report-help { margin:0 16px 12px;padding:10px 12px;border-radius:12px;background:#fff;color:var(--bk-steel);border:1px solid var(--bk-rule);font-size:.86rem;font-weight:700;text-align:center; }
.report-or { display:flex;align-items:center;gap:10px;margin:4px 16px 10px;color:var(--bk-muted);font-size:.82rem;font-weight:800; }
.report-or::before,.report-or::after { content:'';flex:1;height:1px;background:var(--bk-rule); }
.report-grid { gap:10px;padding:12px 16px 16px; }
.report-btn { min-height:72px;padding:12px 8px;border-radius:14px;font-size:.95rem;font-weight:900;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px; }
.report-btn-icon { font-size:1.35rem;line-height:1; }
.product-selector { display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px 16px 16px; }
.product-chip { min-height:58px;border-radius:13px;padding:9px 8px;font-size:.82rem;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px;text-align:center;line-height:1.2; }
.product-chip:last-child:nth-child(odd) { grid-column:1 / -1; }
.product-chip-icon { font-size:1.05rem; }
#station-submit-area,#submit-area { padding:8px 16px 18px !important; }
#station-submit-btn,#submit-btn { min-height:52px;font-size:1rem;font-weight:900;border-radius:14px; }
.station-fuel-head { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.owner-mini-badge { font-size:.68rem;font-weight:800;color:var(--bk-fuel);background:var(--bk-fuel-faint);border:1px solid var(--bk-fuel-light);border-radius:999px;padding:3px 8px; }

@media (max-width: 380px) {
  .nav-brand span { display:none; }
  .bk-subnav { gap:4px;padding-inline:6px; }
  .subnav-pill { font-size:.68rem;padding-inline:2px; }
  .card-route-grid { gap:6px; }
  .card-map-btn { font-size:.78rem;padding-inline:5px; }
}

/* ============================================================
   v1.0.157 — public-beta clarity pass
   Stronger station-card boundary + explicit detail affordance.
   ============================================================ */
:root { --bk-card-border: #78A98A; }
.station-card {
  border: 1.5px solid var(--bk-card-border);
  box-shadow: 0 2px 8px rgba(26,92,56,.10);
}
.station-card:hover {
  border-color: var(--bk-fuel-mid);
  box-shadow: 0 4px 12px rgba(26,92,56,.14);
}
.btn-report-small {
  min-height: 58px;
  padding: 8px 12px;
  line-height: 1.15;
}
.report-cta-flag { font-size:1.15rem; flex-shrink:0; }
.report-cta-copy { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px; }
.report-cta-copy strong { font-size:.91rem;font-weight:900; }
.report-cta-copy small { font-size:.68rem;font-weight:700;opacity:.94; }
.card-more-row {
  min-height: 42px;
  margin-top: 9px;
  padding: 8px 12px;
  border: 1px solid var(--bk-rule);
  border-radius: 11px;
  background: var(--bk-fuel-faint);
  color: var(--bk-fuel);
  font-size: .82rem;
  font-weight: 900;
}
.card-more-icon { font-size:1rem;line-height:1; }
.card-more-row:hover { text-decoration:none;background:#DDEFE2;border-color:var(--bk-card-border); }
