
:root {
  /* Core surfaces */
  --bg:    #07070e;
  --surf:  #0e0e18;
  --card:  #111119;
  --card2: #16161f;
  --bdr:   #1e1e2e;
  --bdr2:  #282838;

  /* Brand */
  --gold:  #c8a84b;
  --gold2: #e4c870;
  --gd:    rgba(200,168,75,.13);
  --gd2:   rgba(200,168,75,.06);

  /* Accents */
  --teal:  #2dd4bf; --td: rgba(45,212,191,.11);
  --green: #34d399; --gn: rgba(52,211,153,.11);
  --red:   #f87171; --rd: rgba(248,113,113,.11);
  --amb:   #fbbf24; --am: rgba(251,191,36,.11);
  --blue:  #60a5fa; --bl: rgba(96,165,250,.11);
  --purp:  #a78bfa; --pr: rgba(167,139,250,.11);
  --pink:  #f472b6; --pk: rgba(244,114,182,.11);

  /* Text */
  --t1: #eeedf5;
  --t2: #8a8aa8;
  --t3: #c0c0d8;

  /* Nav */
  --nav: #050509;
  --nav-bdr: #181828;

  /* Radii */
  --r6:6px; --r8:8px; --r10:10px; --r12:12px; --r14:14px;
}

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
html { height: 100%; background: var(--bg); }
body {
  height: 100%; background: var(--bg); color: var(--t1); overflow: hidden;
  font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.4;
}
#app {
  height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  max-width: 430px; margin: 0 auto; position: relative;
}
@media(min-width:430px){
  #app { box-shadow: 0 0 80px rgba(0,0,0,.95); border-left: 1px solid var(--bdr); border-right: 1px solid var(--bdr); }
}

/* ── SCROLL ─────────────────────────────────────────────────────── */
.scr { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.scr::-webkit-scrollbar { display: none; }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  background: var(--nav); border-top: 1px solid var(--nav-bdr);
  display: flex; flex-shrink: 0; padding-top: 6px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 4px 0 2px; cursor: pointer; border: none;
  background: none; position: relative; transition: opacity .1s;
}
.nav-btn:active { opacity: .5; }
.nav-icon { font-size: 20px; line-height: 1.2; transition: transform .15s; }
.nav-lbl { font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; transition: color .15s; }
.nav-btn.on .nav-icon { transform: scale(1.1); }
.nav-btn.on .nav-lbl { color: var(--gold); font-weight: 800; }
.nav-btn:not(.on) .nav-lbl { color: var(--t3); }
.nav-btn:not(.on) .nav-icon { opacity: .3; }
.nav-bar { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--gold); border-radius: 0 0 2px 2px; }

/* ── CARDS ───────────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--bdr); border-radius: var(--r12); overflow: hidden; }
.p12 { padding: 12px; } .p14 { padding: 14px; } .p16 { padding: 16px; }

/* ── DEAL CARD ───────────────────────────────────────────────────── */
.deal-card {
  display: flex; border-radius: var(--r12); overflow: hidden;
  cursor: pointer; margin-bottom: 7px; background: var(--card);
  border: 1px solid var(--bdr); transition: border-color .1s;
  position: relative;
}
.deal-card:active { opacity: .85; }
.deal-card-bar { width: 4px; flex-shrink: 0; }
.deal-card-body { flex: 1; min-width: 0; padding: 11px 12px 10px 11px; }
.deal-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.deal-card-verdict { display: inline-flex; align-items: center; border-radius: 4px; padding: 2px 7px; font-size: 8.5px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; flex-shrink: 0; }
.deal-card-arv { font-size: 12px; font-weight: 800; color: var(--gold); flex-shrink: 0; font-family: 'DM Mono', monospace; }
.deal-card-addr { font-size: 14.5px; font-weight: 800; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; line-height: 1.2; }
.deal-card-loc { font-size: 11px; color: var(--t2); margin-bottom: 9px; }
.deal-card-nums { display: flex; gap: 12px; margin-bottom: 8px; }
.deal-num { display: flex; flex-direction: column; }
.deal-num-lbl { font-size: 7.5px; color: var(--t3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.deal-num-val { font-size: 13px; font-weight: 800; font-family: 'DM Mono', monospace; line-height: 1; }
.deal-card-foot { display: flex; align-items: center; justify-content: space-between; }
.deal-card-status { font-size: 10px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.deal-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.stage-pill { background: var(--pr); border: 1px solid rgba(167,139,250,.3); border-radius: 4px; padding: 2px 7px; font-size: 8px; font-weight: 800; color: var(--purp); letter-spacing: .4px; text-transform: uppercase; cursor: pointer; }

/* ── BADGES ──────────────────────────────────────────────────────── */
.bdg { display: inline-flex; align-items: center; border-radius: 4px; padding: 2px 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.live-pill { background: var(--gn); border: 1px solid rgba(52,211,153,.3); color: var(--green); font-size: 8px; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; border-radius: 10px; padding: 2px 7px; white-space: nowrap; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse 2s infinite; }

/* ── SCORE RING ──────────────────────────────────────────────────── */
.ring { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ring-num { font-size: 13px; font-weight: 900; line-height: 1; font-family: 'DM Mono', monospace; }
.ring-lbl { font-size: 5.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; margin-top: 1px; }

/* ── FILTERS ─────────────────────────────────────────────────────── */
.filters { display: flex; gap: 5px; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.pill {
  padding: 5px 12px; border-radius: 20px; border: 1px solid var(--bdr);
  background: transparent; color: var(--t2); font-size: 11px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: 'DM Sans', sans-serif;
  transition: all .15s; flex-shrink: 0;
}
.pill.on { border-color: rgba(200,168,75,.5); background: var(--gd); color: var(--gold); font-weight: 700; }
.pill.on-p { border-color: rgba(167,139,250,.4); background: var(--pr); color: var(--purp); }
.pill.on-t { border-color: rgba(45,212,191,.4); background: var(--td); color: var(--teal); }
.pill.on-g { border-color: rgba(52,211,153,.4); background: var(--gn); color: var(--green); }
.pill.on-r { border-color: rgba(248,113,113,.4); background: var(--rd); color: var(--red); }

/* ── INPUTS ──────────────────────────────────────────────────────── */
input, select, textarea {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r8);
  color: var(--t1); font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 11px 13px; width: 100%; outline: none; transition: border-color .15s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--t3); }
select option { background: var(--card); }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-radius: var(--r10); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  transition: opacity .12s, transform .1s; padding: 12px 16px; font-size: 13.5px;
}
.btn:active { transform: scale(.95); opacity: .8; }
.btn-gold  { background: var(--gold); color: #07070e; font-weight: 900; }
.btn-green { background: var(--green); color: #07070e; font-weight: 900; }
.btn-surf  { background: var(--surf); border: 1px solid var(--bdr); color: var(--t2); }
.btn-red   { background: var(--rd); border: 1px solid rgba(248,113,113,.35); color: var(--red); font-weight: 700; }

/* ── INFO ROW ────────────────────────────────────────────────────── */
.ir { display: flex; justify-content: space-between; align-items: flex-start; padding: 9px 13px; border-top: 1px solid var(--bdr); gap: 8px; }
.ir-l { font-size: 11px; color: var(--t3); flex: 1; padding-top: 1px; line-height: 1.4; }
.ir-v { font-size: 12px; font-weight: 600; color: var(--t1); flex: 2; text-align: right; word-break: break-word; line-height: 1.4; }

/* ── SECTION TITLE ───────────────────────────────────────────────── */
.stitle {
  font-size: 9px; font-weight: 900; color: var(--gold); letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 9px;
}
.stitle2 { font-size: 9px; font-weight: 700; color: var(--t3); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }

/* ── HSCROLL ─────────────────────────────────────────────────────── */
.hscr { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.hscr::-webkit-scrollbar { display: none; }

/* ── MODAL ───────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 300; display: flex; flex-direction: column; justify-content: flex-end; max-width: 430px; left: 50%; transform: translateX(-50%); }
.modal-sheet { background: var(--surf); border-radius: 20px 20px 0 0; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; }
.modal-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--bdr2); margin: 10px auto 0; }

/* ── CHECKLIST ───────────────────────────────────────────────────── */
.chk-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 13px; border-top: 1px solid var(--bdr); cursor: pointer; }
.chk-box { width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid var(--bdr2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .12s; margin-top: 2px; font-size: 10px; font-weight: 900; }
.chk-box.done { background: var(--green); border-color: var(--green); color: #07070e; }
.chk-lbl { font-size: 12px; color: var(--t2); flex: 1; line-height: 1.5; }
.chk-lbl.done { color: var(--t3); text-decoration: line-through; }
.pbar { height: 3px; background: var(--bdr); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.pbar-fill { height: 100%; border-radius: 2px; transition: width .35s ease; }

/* ── INSTALL BANNER ──────────────────────────────────────────────── */
.install-banner { background: linear-gradient(135deg,var(--gd),var(--td)); border: 1px solid rgba(200,168,75,.25); border-radius: var(--r12); padding: 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0 14px 10px; }
.install-banner:active { opacity: .8; }

/* ── SAFE AREAS ──────────────────────────────────────────────────── */
.pt-safe { padding-top: max(16px, env(safe-area-inset-top)); }

/* ── ANIMATIONS ──────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }
@keyframes pulse    { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes shimmer  { from{background-position:200% 0} to{background-position:-200% 0} }
.fade-up  { animation: fadeUp .2s ease forwards; }
.fade-in  { animation: fadeUp .2s ease forwards; }
.pulsing  { animation: pulse 1.5s infinite; }

/* v11 polish */
.gold-d { background: var(--gold-d); }
.screen-hdr { padding: 14px 14px 10px; padding-top: max(14px, env(safe-area-inset-top)); }
.scr-title { font-family: Syne, sans-serif; font-size: 22px; font-weight: 900; color: var(--t1); }
.scr-sub { font-size: 10px; color: var(--t3); margin-top: 2px; }
/* Tighter cards on small screens */
@media (max-width: 360px) {
  .deals-num { font-size: 13px !important; }
}
/* Better scrollable pill rows */
.filters { padding-bottom: 6px; }
/* Card hover effect on desktop */
@media (hover: hover) {
  [data-action="detail"]:hover { opacity: .88; }
}


