/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:       #0d0d0d;
  --bg2:      #141414;
  --bg3:      #1a1a1a;
  --border:   rgba(255,255,255,.07);
  --amber:    #BA7517;
  --amber-lt: #d4881a;
  --red:      #E24B4A;
  --green:    #639922;
  --muted:    #555;
  --text:     #e8e8e8;
  --text2:    #888;
  --radius:   12px;
  --radius-sm:8px;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 100px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) ;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

.tab {
  flex: 1;
  padding: 16px 0;
  background: none;
  border: none;
  color: #777;
  font: 600 .9rem 'DM Sans', sans-serif;
  cursor: pointer
}

.tab.active {
  color: var(--amber);
  box-shadow: inset 0 2px 0 var(--amber)
}

.view-earnings {
  padding: 16px 16px 0
}
/* ─── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 7px;
}
/* .logo span {
  color: #c9882a;
  font-size: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
  display: inline-block;
  width: 6px;
  height: 6px;
}
    */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
}
.logo-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-top: 2px;
}
/* ─── SCORE CARD ─────────────────────────────────────────────── */
.score-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--amber);
}
.meter {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.meter svg { width: 100%; height: 100%; }
.meter-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.meter-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
}
.meter-of { font-size: 11px; color: var(--text2); }
.score-right { flex: 1; min-width: 0; }

.session {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 6px;
  opacity: .85;
}
.grade {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--text);
}
.advice {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 8px;
}
.stamp { font-size: 10px; color: #888; }
.weather-src { font-size: 10px; color: #888; margin-top: 2px; }
.weather-src.live { color: #4caf50; }

/* ─── TIP OF THE DAY ─────────────────────────────────────────── */
.tip-strip {
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: rgba(186,117,23,.08);
  border: 1px solid rgba(186,117,23,.2);
  border-radius: var(--radius);
  font-size: 12px;
  color: #c9882a;
  line-height: 1.5;
}
.tip-strip strong { color: var(--amber); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 3px; }

/* ─── FACTORS ─────────────────────────────────────────────────── */
.factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 0;
}
.fc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.fc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.fc-name { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text2); }
.fc-icon { font-size: 14px; }
.fc-val { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fc-bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; margin-bottom: 5px; overflow: hidden; }
.fc-fill { height: 100%; border-radius: 2px; transition: width .8s ease; }
.fill-hot  { background: var(--red); }
.fill-warm { background: var(--amber); }
.fill-mid  { background: var(--green); }
.fill-cool { background: var(--muted); }
.fc-sub { font-size: 10px; color: var(--text2); }

/* ─── INSIGHT ─────────────────────────────────────────────────── */
/* .insight-strip {
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
} */

/*notif wrap*/
.notif-wrap { position: relative; }
.alert-config {
  display: none;
  position: absolute;
  top: calc(100% + 30px);
  right: 0;
  width: 200px;
  z-index: 60;
}
.alert-config.show { display: block; }
@media (hover: hover) and (pointer: fine) {
  .notif-wrap:hover .alert-config { display: block; }
}
.alert-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text2);
}
.alert-row input[type=range] { flex: 1; accent-color: var(--amber); }
.threshold-val { font-weight: 700; color: var(--amber); min-width: 20px; text-align: center; }

@keyframes fadeOut {
  to { opacity: 0; }
}

.notif-wrap {
  position: relative;
}

/* ─── CONTROLS ───────────────────────────────────────────────── */
.controls {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
}
.ctrl-btn {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 12px;
  padding: 9px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ctrl-btn:hover { background: var(--bg3); color: var(--text); }

/* ─── SECTION LABEL ─────────────────────────────────────────── */
.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 16px 16px 8px;
  font-weight: 600;
}

/* ─── ZONES ──────────────────────────────────────────────────── */
.zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px;
}
.zc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.zc:active { background: var(--bg3); }
.zc-nav {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .15s;
}
.zc:hover .zc-nav { opacity: 1; }
.zc-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.zc-score { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.pip { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.zc-why { font-size: 10px; color: var(--text2); line-height: 1.4; margin-bottom: 4px; }
.zc-trend { font-size: 10px; font-weight: 600; }
.zc-maps { font-size: 10px; color: var(--amber); margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--border); }

/* ─── HISTORY ────────────────────────────────────────────────── */
.history-section { padding: 0 16px; }
.history-chart-wrap {
  position: relative;
  height: 100px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
#history-chart { width: 100%; height: 100%; }
.history-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 12px;
}
.history-row-left { display: flex; align-items: center; gap: 7px; color: var(--text2); }
.history-row-right { font-weight: 700; font-size: 13px; }
.h-pip { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ─── EARNINGS LOG ───────────────────────────────────────────── */
.earnings-fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(186,117,23,.4);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform .15s;
  font-family: 'DM Sans', sans-serif;
}
.earnings-fab:active { transform: scale(.96); }

.earnings-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
}
.earnings-sheet.open { display: flex; }
.earnings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}
.earnings-panel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 20px 16px 32px;
  z-index: 1;
  animation: slideUp .25s ease;
  padding: 0 16px;
}
/*addition*/
#acct-sheet .earnings-panel {
  padding: 0 12px;
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.earnings-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.earnings-title {
  font-family: 'DM sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.earnings-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.e-stat {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.e-stat-val { font-size: 16px; font-weight: 700; color: var(--amber); font-family: 'DM sans', sans-serif; }
.e-stat-label { font-size: 10px; color: var(--text2); margin-top: 2px; }
.earnings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.earnings-form input, .earnings-form select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.earnings-form input:focus, .earnings-form select:focus { border-color: var(--amber); }
.earnings-log-btn {
  width: 100%;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 16px;
}
.fares-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.fare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.fare-row-left { color: var(--text2); }
.fare-row-right { font-weight: 700; color: var(--amber); }
.fare-row-del { color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 14px; }

/* ─── AI BOX ─────────────────────────────────────────────────── */
.ai-box {
  margin: 12px 16px 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border-left: 3px solid var(--amber);
}
.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(186,117,23,.05);
}
.ai-head-title {
  font-size: 12px; font-weight: 600; color: var(--text2);
  color: var(--amber);  }
.ai-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--amber);
  border: 1px solid rgba(186,117,23,.3);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ai-body { padding: 14px; }
.ai-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 12px;
  min-height: 42px;
}
.ai-text:empty {
  display: none;
}
.ai-btns { display: flex; gap: 8px; }
.ai-btn {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 12px;
  padding: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .15s;
}
.ai-btn.prime {
  background: var(--amber);
  border-color: var(--amber);
  color: #000;
  font-weight: 700;
}
.ai-btn.prime:disabled { opacity: .6; cursor: not-allowed; }

/* ─── NOTIF BTN ──────────────────────────────────────────────── */
.notif-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text2);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.notif-btn.on { border-color: var(--amber); color: var(--amber); }

/* ─── SPINNER ────────────────────────────────────────────────── */
.spin {
  display: inline-block;
  width: 10px; height: 10px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #222;
  color: var(--text);
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}
/* ─── GOAL STRIP ─────────────────────────────────────────────── */
.goal-strip {
  margin: 10px 16px 0;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.goal-strip-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 6px;
}
.goal-strip-track {
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.goal-strip-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--amber);
  transition: width .6s ease, background .4s ease;
}
.goal-strip-bar-fill.complete {
  background: var(--green);
}

/* ─── NEXT WINDOW ────────────────────────────────────────────── */
.next-window {
  margin: 10px 16px 0;
  padding: 12px 14px;
  background: rgba(186,117,23,.07);
  border: 1px solid rgba(186,117,23,.18);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.next-window-label-top {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 2px;
}
.next-window-name {
  font-size: 14px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}
.next-window-right { text-align: right; }
.next-window-time {
  font-size: 18px;
  font-weight: 800;
  font-family:'DM Sans', sans-serif;
  color: var(--amber);
}
.next-window-score { font-size: 11px; color: var(--text2); }

/* ─── ZONE FAV / CUSTOM ──────────────────────────────────────── */
.zc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.zc-fav {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.zc-fav.on { color: var(--amber); }
.zc-custom {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── PANEL INTERNALS ────────────────────────────────────────── */
.panel-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  margin: 14px 0 6px;
}
.fuel-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.fuel-btn:active { background: #222; }
.goal-bar-track {
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.goal-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--amber);
  transition: width .6s ease;
}
.goal-bar-label { font-size: 10px; color: var(--text2); }
.empty-msg { font-size: 12px; color: var(--muted); text-align: center; padding: 12px; }

.theme-btn {
  background: var(--amber);
  color: rgb(14, 0, 0);
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .02em;
  transition: opacity .15s;
  white-space: nowrap;

}

/* ─── PRO BUTTON ─────────────────────────────────────────────── */
/* .pro-btn {
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .02em;
  transition: opacity .15s;
  white-space: nowrap;
}
.pro-btn:active { opacity: .8; } */

/* ─── SURGE STRIP ── */
.surge-strip {
  margin: 10px 16px 0;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .4s ease;
}
.surge-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.surge-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.surge-level {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.surge-right {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  text-align: right;
  max-width: 55%;
}
.surge-signals {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}


.login-box {
  width: 100%;
  max-width: 380px;
}
.login-logo {
  font-family: 'DM sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--text);
}
.login-logo span { color: var(--amber); }
.login-title {
  font-family: 'DM sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text);
}
.login-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 28px;
}
.login-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.login-phone-row {
  display: flex;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.login-prefix {
  padding: 12px 12px;
  font-size: 14px;
  color: var(--text2);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.login-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.login-phone-row .login-input {
  border: none;
  border-radius: 0;
  flex: 1;
}
.login-input:focus { border-color: var(--amber); }
.login-btn {
  width: 100%;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
  margin-bottom: 12px;
  transition: opacity .15s;
}
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-resend {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  margin-bottom: 12px;
}
.login-resend:hover {
  color: var(--text2);
  color: white;
}
.login-error {
  font-size: 12px;
  color: var(--red);
  min-height: 18px;
  margin-bottom: 8px;
}
.login-footer {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-top: 24px;
}
@media (min-width: 960px) {
  .top-row {
    grid-template-columns: 1fr 280px;
    align-items: start;
    gap: 10px;
  }

  .score-card {
    min-height: unset;
    height: 100%;
  }

  .top-row-right {
    margin-top: 0;
    gap: 10px;
  }

  .goal-strip {
    margin-top: 0;
  }

  .next-window {
    margin-top: 0;
  }
  .goal-strip {
    align-items: start;
  }
    }

/* ─── TOP ZONE HINT ───*/
.top-zone-hint {
  margin-top: 8px;
  padding: 7px 10px;
  background: rgba(186,117,23,.12);
  border: 1px solid rgba(186,117,23,.25);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-zone-hint::after { content: 'Go'; font-size: 10px; opacity: .7; }

/* ─── ACCOUNT BTN ────────────────────────────────────────────── */
.acct-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text2);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.acct-btn.signed-in {
  border-color: var(--amber);
  color: var(--amber);
  font-weight: 700;
  font-size: 13px;
}

/* ─── ACCOUNT EMAIL ──────────────────────────────────────────── */
.acct-email {
  font-size: 13px;
  color: var(--text2);
  padding: 10px 12px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  word-break: break-all;
}

#login-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-top: 8px;
  padding: 16px 0 calc(88px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border, rgba(255, 255, 255, .08));
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-muted, #888);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 8px 4px;
  transition: color 0.2s;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent, #BA7517);
}
#app-version {
  flex: 0 0 100%;
  text-align: center;
}

/*osm, leaflet > mobile responsive*/
#zones-map-wrap {
  display: block;
  gap: .75rem;
}

#zones-map-wrap #zones {
  flex: 1;
  min-width: 0;
}

#map-view {
  flex: 1;
  min-height: 400px;
}

@media (max-width: 500px) {
  #zones-map-wrap {
    display: block;
    position: relative;
    height: 100svh;
  }

  #map-view {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    min-height: unset;
  }
}
#nav-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
}

#nav-panel.hidden {
  display: none;
}

#nav-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #111;
}

#nav-dest {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nav-header button {
  background: none;
  border: none;
  color: #BA7517;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

#nav-map {
  flex: 1;
}

#nav-footer {
  background: #111;
  padding: 12px 14px;
  border-top: 1px solid #222;
}

#nav-dist {
  color: #BA7517;
  font-size: 12px;
  margin-bottom: 4px;
}

#nav-instruction {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

#nav-panel.map-only #nav-header,
#nav-panel.map-only #nav-footer {
  display: none;
}
#fuel-strip {
  padding: 10px 0;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 10px;
  display: none;
}

.fuel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fuel-toggle {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #888;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  cursor: pointer;
}

.fuel-toggle.on {
  background: #BA7517;
  border-color: #BA7517;
  color: #fff;
}

.fuel-price {
  color: #ccc;
  font-size: 14px;
  font-weight: 600;
}

.fuel-sep {
  color: #333;
}

.fuel-cost {
  color: #BA7517;
  font-weight: 600;
  font-size: 14px;
}

.fuel-rate {
  color: #888;
  font-size: 11px;
  cursor: pointer;
  margin-left: 4px;
}

.fuel-rate:hover {
  color: #888;
}

.fuel-valid {
  color: #444;
  font-size: 10px;
  margin-top: 4px;
}
/*profile*/
.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #1a1a1a
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #BA7517;
  color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0
}

.profile-meta {
  flex: 1;
  min-width: 0
}

.profile-username {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.profile-email {
  font-size: 12px;
  color: #777;
  margin-top: 2px
}

.profile-since {
  font-size: 11px;
  color: #888;
  margin-top: 2px
}

.plan-badge {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  background: #1a1a1a;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0
}

.plan-badge.pro {
  background: #BA7517;
  color: #0d0d0d;
  font-weight: 700
}

.stats-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px
}

.stat-card {
  flex: 1;
  background: #111;
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center
}

.stat-val {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #BA7517
}

.stat-lbl {
  display: block;
  font-size: 10px;
  color: #888;
  margin-top: 3px
}

.profile-form {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-form label {
  font-size: 12px;
  color: #777;
  margin-top: 8px
}

.opt {
  color: #888;
  font-size: 11px
}

.profile-form input,
.profile-form select {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  color: #eee;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none
}

.btn-amber {
  background: #BA7517;
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%
}

.btn-amber:disabled {
  opacity: .55;
  cursor: default
}

.profile-actions {
  padding: 0 16px 32px
}

.btn-outline-danger {
  width: 100%;
  background: none;
  border: 1px solid #8b2020;
  color: #c0392b;
  border-radius: 8px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer
}
.sheet-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px
}

.sheet-close-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1
}
#pfUsername[readonly],
#pfCarModel[readonly] {
  opacity: 0.45;
  cursor: pointer;
}

#pfFuelType,
#pfCompany {
  transition: opacity 0.2s;
}

.signout-confirm {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.signout-confirm button {
  background: none;
  border: 1px solid #444;
  border-radius: 6px;
  color: #f5c842;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted, #888);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent, #BA7517);
}
#saveProfileBtn,
#cancelProfileBtn {
  display: none;
}

/*revised pro*/
.btn-go-pro {
  width: 100%;
  background: none;
  border: 1px solid #BA7517;
  color: #BA7517;
  border-radius: 8px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
}

.pro-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pro-overlay.active {
  display: flex;
}

.pro-modal {
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  display: block;
}

.pro-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer
}

.pro-modal-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 4px;
  color: #fff
}

.pro-modal-price {
  color: #BA7517;
  font-size: 13px;
  margin-bottom: 20px
}

.pro-lock-badge {
  background: var(--accent, #BA7517);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}
.alerts-pro-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
  color: var(--text-muted, #888);
  font-size: 0.85rem;
}
.alerts-pro-badge {
  background: var(--accent, #BA7517);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}
/* fuliza */
.danger-zone {
  margin-top: 1.5rem;
  border-top: 1px solid #1f1f1f;
  padding-top: 1rem;
}
.danger-toggle {
  background: none;
  border: none;
  color: #888;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
}
.danger-toggle:hover { color: #BA7517;}

#danger-content {
  display: none;
  margin-top: 1rem;
  font-family: 'DM Sans', sans-serif;
}
.danger-warning {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.75rem;
}
.btn-danger {
  width: 100%;
  padding: .75rem;
  background: none;
  border: 1px solid #BA7517;
  color: #BA7517;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif
}
.btn-danger:hover { background: #1a1100;}

/*revised notifiication(profile)*/
.notif-profile-card {
  background: #111;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 4px
}

.notif-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-profile-label {
  font-size: 13px;
  color: #777
}

.notif-toggle-btn {
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid #333;
  background: none;
  color: #666;
  font-size: 13px;
  cursor: pointer
}

.notif-toggle-btn.active {
  background: #BA7517;
  border-color: #BA7517;
  color: #0d0d0d;
  font-weight: 700;
}

.threshold-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  max-width: 100%;
}

.threshold-pills::-webkit-scrollbar {
  display: none;
}

.threshold-pill {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  background: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
}

.threshold-pill.active {
  border-color: #BA7517;
  color: #BA7517;
}

.notif-count {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #BA7517;
}

.shift-select {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  color: #eee;
  padding: 8px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  flex: 1;
  -webkit-appearance: none;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.shift-select:focus {
  opacity: 1;
}

.btn-edit-profile {
  width: 100%;
  background: none;
  border: 1px solid #2a2a2a;
  color: #888;
  border-radius: 8px;
  padding: 11px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px
}

.btn-save-alerts {
  padding: 4px 12px;
  border-radius: 5px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  background: #BA7517;
  color: #0d0d0d;
  font-weight: 700;
  margin-top: 10px;
}
/* a whole 4king div!!!! */
.save-configuration {
  align-items: center;
  align-self: center;
}
.pro-cta {
  font-weight: 700;
  background: #BA7517;
  border: 4px;
  border-color: #BA7517;
  width: 100%;
  border: 1px solid #BA7517;
  color: black;
  border-radius: 8px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
}
/* ndio hio */
.rain-banner {
  background: #1a1200;
  border-left: 3px solid #BA7517;
  color: #f5c842;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* placement */
.fc-epra-inline {
  float: left;
  font-size: 0.75rem;
  color: #BA7517;
}

.fc-epra-inline select {
  background: #1a1200;
  color: #f5c842;
  border: none;
  font-size: 0.75rem;
}

.fc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #f5c842;
}

.fc-price-prompt {
  font-size: 0.78rem;
  color: #BA7517;
  white-space: nowrap;
}

.fc-price-prompt button {
  background: none;
  border: none;
  color: #f5c842;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 2px;
}
/* debloating profile */
.acct-sec {
  margin-top: 22px
}

.acct-h {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin: 0 0 10px;
  font-weight: 600
}

.acct-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.acct-details {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px
}

.acct-details summary {
  cursor: pointer;
  font-size: .9rem
}

.acct-details .profile-form {
  margin-top: 12px
}

.acct-link {
  display: block;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .65);
  font-size: .85rem;
  padding: 10px 0;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px
}

.acct-foot {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 8px
}

#acct-sheet .earnings-backdrop,
#acct-sheet .earnings-handle {
  display: none
}

#acct-sheet .earnings-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  animation: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 48px;
}

#acct-sheet .sheet-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0;
  padding: 8px 0;
  justify-content: flex-start;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
#acct-sheet .sheet-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 14px 0 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-ui, 8px);
  color: var(--text);
  font: 600 13px 'DM Sans', sans-serif;
  letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, color .15s, transform .1s;
}

#acct-sheet .sheet-close-btn:hover {
  border-color: var(--amber);
  color: var(--amber)
}

#acct-sheet .sheet-close-btn:active {
  transform: scale(.96)
}

#acct-sheet .sheet-close-btn svg {
  flex-shrink: 0
}

#acct-sheet .profile-header,
#acct-sheet .stats-row {
  padding-left: 0;
  padding-right: 0
}

#acct-sheet .acct-sec .profile-form {
  padding: 0
}

body:has(#acct-sheet.open) {
  overflow: hidden
}

:root {
  --r-ui: 8px
}

.notif-toggle-btn,
.threshold-pill,
.btn-save-alerts,
.fuel-toggle,
.plan-badge,
.pro-lock-badge,
.alerts-pro-badge {
  border-radius: var(--r-ui)
}

.btn-save-alerts {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
}

.notif-toggle-btn,
.threshold-pill {
  min-height: 34px
}

.profile-form input,
.profile-form select,
.shift-select,
.acct-details,
.notif-profile-card {
  border-radius: var(--r-ui)
}
.thr-row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px
}

#thresholdPills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  flex: 1;
  min-width: 0;
  grid-template-columns: repeat(5, 1fr);
}

#thresholdPills .threshold-pill {
  width: 100%;
  min-height: 40px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.notif-profile-card .notif-profile-row+.notif-profile-row {
  margin-top: 14px
}
/* seo */
.model-note {
  font-size: 12px;
  line-height: 1.4;
  opacity: .6;
  margin-top: 6px
}
.footer-note {
  flex: 0 0 100%;
  text-align: center;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12px;
  line-height: 1.4;
  opacity: .6;
}
.pin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  min-height: 38px;
  padding: 6px 10px;
  background: transparent;
  color: #9a9a9a;
  border: 1px solid #333;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  /* text-align: center; */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pin-btn:active {
  opacity: .7;
}

.pin-btn.on {
  justify-content: space-between;
  background: #2a1f0c;
  border-color: #6b4812;
  color: #d9a050;
}
.pin-x {
  font-size: 11px;
  font-weight: 400;
  color: #8a7a5a;
}

.zc:has(.pin-btn.on) {
  border-color: #6b4812;
}
.pin-strip {
  flex: 0 0 100%;
  box-sizing: border-box;
  margin: 8px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #1c1608;
  border: 1px solid #5a3d12;
  color: #d9a050;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3
}

.pin-strip[hidden] {
  display: none
}

.pin-strip.warn {
  background: #2a1c08;
  border-color: #BA7517;
  color: #f0b255}

.pin-strip[hidden] {
  display: none;
}

.pin-strip.warn {
  background: #2a1c08;
  border-color: #BA7517;
  color: #f0b255;
}

/* tap targets */

.zc-fav {
  min-width: 36px;
  min-height: 36px;
  margin: -8px -8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fare-row-del {
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.login-resend,
.danger-toggle {
  display: inline-block;
  padding: 10px 8px;
}

.fuel-toggle {
  min-height: 34px;
}

.pro-modal-close {
  min-width: 40px;
  min-height: 40px;
  top: 8px;
  right: 8px;
}

.fares-list {
  gap: 8px;
}
@media (max-width: 400px) {
  .day-label {
    display: none;
  }
}
.notif-btn,
.acct-btn,
.theme-btn {
  position: relative;
  min-height: 28px;
  padding: 4px 10px;
}

.notif-btn::after,
.acct-btn::after,
.theme-btn::after {
  content: '';
  position: absolute;
  inset: -6px -4px;
}
/*  */
#view-fuel .profile-form {
  gap: 14px;
}

#view-fuel input,
#view-fuel select {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

#view-fuel .acct-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#view-fuel .btn-amber {
  padding: 16px;
  font-size: 1rem;
}

#view-fuel .fc-result {
  font-size: 1.05rem;
  padding: 14px 0;
}

.fare-row-del.armed {
  background: #E24B4A;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
