:root {
  --navy: #1f3a5f;
  --navy-700: #16293f;
  --blue: #2e75b6;
  --blue-soft: #eef4fa;
  --blue-line: #d5e8f0;
  --coral: #ff6b4a;
  --coral-dark: #e8552f;
  --green: #18a558;
  --amber: #e7a13a;
  --red: #d9534f;
  --ink: #16222e;
  --muted: #6b7c8f;
  --line: #e3eaf1;
  --bg: #f5f8fb;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16, 34, 52, 0.06), 0 8px 24px rgba(16, 34, 52, 0.06);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: var(--blue); }
a.btn, a.oauth-btn { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ----------------------------- buttons ----------------------------- */
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-danger:hover { border-color: var(--red); color: var(--red); }

/* ----------------------------- login ------------------------------- */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.login-hero {
  background: radial-gradient(120% 120% at 0% 0%, #284b76 0%, var(--navy) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.login-hero .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.login-hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.5px; }
.login-hero .tagline { font-size: 19px; color: #cfe0f0; max-width: 460px; }
.vp-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; max-width: 460px; }
.vp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #e4eefa; }
.hero-visual { position: relative; margin-top: 16px; max-width: 380px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); background: linear-gradient(135deg, #2e75b6, #1f3a5f); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: #fff; font-weight: 800; font-size: 13px; padding: 9px 13px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); }
.hb-deal { top: 14px; left: 14px; color: var(--green); }
.hb-decision { bottom: 14px; right: 14px; color: var(--coral-dark); }
.vp-list .dot {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255, 107, 74, 0.18); color: var(--coral);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 56px 60px; }
.login-card { max-width: 380px; width: 100%; margin: 0 auto; }
.login-card h2 { font-size: 24px; margin: 0 0 6px; }
.login-card .sub { color: var(--muted); margin: 0 0 26px; }
.oauth-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 13px 16px; border-radius: 11px; border: 1.5px solid var(--line);
  background: #fff; font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--ink);
  transition: all 0.15s ease;
}
.oauth-btn:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.oauth-btn .logo { width: 22px; height: 22px; flex: none; }
.trust-note {
  margin-top: 22px; padding: 14px 16px; background: var(--blue-soft);
  border: 1px solid var(--blue-line); border-radius: 11px; font-size: 13px; color: #355a7d;
  display: flex; gap: 10px; align-items: flex-start;
}
.trust-note svg { flex: none; margin-top: 1px; }

/* ----------------------------- app shell --------------------------- */
.topbar {
  background: var(--navy); color: #fff; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; height: 60px;
  position: sticky; top: 0; z-index: 40;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab {
  background: transparent; border: none; color: #b9cde2; padding: 8px 14px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
}
.tab:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tab.active { background: rgba(255,255,255,0.14); color: #fff; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 13px; color: #b9cde2; display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 24px; }

/* ----------------------------- summary ----------------------------- */
.summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow); }
.stat .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.stat .value { font-size: 20px; font-weight: 700; margin-top: 2px; color: var(--navy); }
.stat .value.coral { color: var(--coral); }
.stat .value.green { color: var(--green); }
.stat.clickable { cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease; }
.stat.clickable:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 4px 8px rgba(16,34,52,0.08), 0 12px 28px rgba(16,34,52,0.1); }

/* ----------------------------- concierge --------------------------- */
.concierge-panel {
  background: linear-gradient(135deg, var(--blue-soft), #ffffff 65%);
  border: 1.5px solid var(--blue-line); border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.cp-title { font-weight: 800; font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.concierge { display: flex; gap: 12px; margin-bottom: 0; align-items: stretch; }
.concierge-field { position: relative; flex: 1; }
.concierge input, .concierge-field input {
  width: 100%; padding: 17px 20px; border-radius: 12px; border: 1.5px solid var(--blue-line);
  font-size: 17px; background: #fff;
}
.concierge input:focus { outline: none; border-color: var(--blue); }
.concierge .btn-primary { padding: 0 28px; font-size: 16px; white-space: nowrap; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.section-head h3 { margin: 0; font-size: 17px; }
.section-head .muted { color: var(--muted); font-size: 13px; }

/* ----------------------------- deal banner ------------------------- */
.confirm-banner {
  background: linear-gradient(90deg, #fff3ef, #fff);
  border: 1.5px solid var(--coral); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.confirm-banner .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,107,74,0.6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,107,74,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,74,0); } }
.confirm-banner .body { flex: 1; font-size: 14px; }
.confirm-banner .body b { color: var(--navy); }
.confirm-banner .acts { display: flex; gap: 8px; }

/* ----------------------------- watch grid -------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; position: relative; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(16,34,52,0.08), 0 16px 36px rgba(16,34,52,0.1); }
.card .top { display: flex; gap: 12px; align-items: flex-start; }
.card .emoji { width: 46px; height: 46px; border-radius: 11px; background: var(--blue-soft); display: grid; place-items: center; font-size: 24px; flex: none; }
.card .title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.card .cat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.score-badge { flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; color: #fff; text-align: center; }
.score-badge .n { font-size: 19px; font-weight: 800; line-height: 1; }
.score-badge .v { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; margin-top: 2px; }

.price-row { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.price-now { font-size: 24px; font-weight: 800; color: var(--navy); }
.price-was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-tag { font-size: 12px; padding: 2px 8px; border-radius: 20px; font-weight: 700; }
.tag-green { background: #e7f6ee; color: var(--green); }
.tag-amber { background: #fbf1de; color: #9a6713; }
.tag-fake { background: #fdeceb; color: var(--red); }
.retailer-line { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.spark { width: 100%; height: 44px; display: block; }

.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.chip { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600; background: var(--blue-soft); color: #355a7d; }
.chip.auto { background: #efe9fb; color: #6b46c1; }
.status-pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.st-watching { background: var(--blue-soft); color: var(--blue); }
.st-deal_ready { background: #fff0eb; color: var(--coral-dark); }
.st-purchased { background: #e7f6ee; color: var(--green); }
.st-paused { background: #eef0f2; color: var(--muted); }

/* ----------------------------- activity ---------------------------- */
.feed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feed-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 15px; }
.fi-deal { background: #fff0eb; } .fi-agent { background: #efe9fb; } .fi-purchase { background: #e7f6ee; } .fi-system { background: var(--blue-soft); }
.feed-item .msg { font-size: 14px; }
.feed-item .time { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ----------------------------- modal ------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(16,34,52,0.45); display: grid; place-items: center; z-index: 60; padding: 24px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head .emoji { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 26px; flex: none; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; position: sticky; bottom: 0; background: #fff; }

.trust-panel { background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.trust-grid .t { text-align: center; }
.trust-grid .t .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.trust-grid .t .val { font-size: 17px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.verdict-row { display: flex; align-items: center; gap: 12px; }
.verdict-big { font-size: 22px; font-weight: 800; }
.verdict-BUY { color: var(--green); } .verdict-WAIT { color: var(--amber); }

.linechart { width: 100%; height: 180px; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; }

.offers-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.offers-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.offers-table .r-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.r-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.best-flag { font-size: 10px; font-weight: 700; color: var(--green); background: #e7f6ee; padding: 2px 6px; border-radius: 6px; }
.oos { color: var(--red); font-size: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.retailer-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rp { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 20px; font-size: 13px; font-weight: 600; user-select: none; }
.rp.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.rp .agentic-dot { font-size: 10px; }

.toggle { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; width: 44px; height: 24px; }
.switch input { display: none; }
.slider { position: absolute; inset: 0; background: #cdd6df; border-radius: 20px; transition: 0.2s; }
.slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--coral); }
.switch input:checked + .slider:before { transform: translateX(20px); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 40px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); z-index: 80; opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

.settings-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; max-width: 640px; }
.settings-card h3 { margin: 0 0 4px; }
.settings-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.conn-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.conn-row:last-child { border-bottom: none; }
.conn-row .ok { margin-left: auto; color: var(--green); font-weight: 600; font-size: 13px; }

/* ---- stats grid scales to 6 ---- */
.summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---- notification bell + panel ---- */
.notif-wrap { position: relative; }
.bell { position: relative; background: rgba(255,255,255,0.08); border: none; color: #fff; width: 38px; height: 38px; border-radius: 10px; font-size: 17px; line-height: 1; }
.bell:hover { background: rgba(255,255,255,0.16); }
.bell-dot { position: absolute; top: -4px; right: -4px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--navy); }
.notif-panel { position: absolute; top: 46px; right: 0; width: 340px; max-width: 92vw; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(16,34,52,0.28); z-index: 70; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.notif-enable { width: 100%; border: none; background: var(--blue-soft); color: #2e5d86; font-weight: 600; font-size: 13px; padding: 10px; cursor: pointer; border-bottom: 1px solid var(--blue-line); }
.notif-enable:hover { background: #e3eefa; }
.notif-list { max-height: 380px; overflow: auto; }
.notif-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: #f4f9fe; }
.ni-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-soft); display: grid; place-items: center; flex: none; font-size: 14px; }
.ni-body { min-width: 0; color: var(--ink); }
.ni-title { font-size: 13px; font-weight: 700; }
.ni-text { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.ni-time { font-size: 11px; color: #9aa7b4; margin-top: 3px; }

/* ---- VP4 surveillance + VP3 protection ---- */
.surv-chip { font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 700; background: #f3eafe; color: #7a3ec0; }
.surv-panel { padding: 14px; border-radius: 12px; border: 1px solid #e4d3f7; background: #f7f0fe; margin-top: 14px; }
.surv-panel .h { font-weight: 800; font-size: 14px; color: #6b2fb0; display: flex; align-items: center; gap: 8px; }
.surv-panel p { margin: 8px 0 0; font-size: 13px; color: #5a4374; line-height: 1.5; }
.protect-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); margin-bottom: 10px; }
.protect-card .emoji { width: 40px; height: 40px; border-radius: 10px; background: #e7f6ee; display: grid; place-items: center; font-size: 20px; flex: none; }
.protect-card .grow { flex: 1; min-width: 0; }
.protect-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.pb-active { background: var(--blue-soft); color: var(--blue); }
.pb-filed { background: #fbf1de; color: #9a6713; }
.pb-refunded { background: #e7f6ee; color: var(--green); }

/* ---- product photo (fills the emoji slot, falls back to emoji on error) ---- */
.card .emoji, .modal-head .emoji { overflow: hidden; }
.prod-photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* ---- favourite star ---- */
.fav { border: none; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; color: #c7d0da; padding: 2px 4px; flex: none; transition: transform 0.1s, color 0.15s; }
.fav:hover { transform: scale(1.15); color: var(--amber); }
.fav.on { color: #f5b301; }

/* ---- external retailer link ---- */
.ext-link { color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ext-link:hover { text-decoration: underline; }

/* ---- user menu (avatar dropdown) ---- */
.user-menu { position: relative; }
.who { display: flex; align-items: center; gap: 8px; background: transparent; border: none; color: #b9cde2; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.who:hover { background: rgba(255,255,255,0.08); color: #fff; }
.who .caret { font-size: 10px; opacity: 0.8; }
.user-dropdown { position: absolute; top: 46px; right: 0; width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(16,34,52,0.28); z-index: 70; overflow: hidden; }
.user-dropdown[hidden] { display: none; }
.ud-head { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ud-item { display: block; width: 100%; text-align: left; padding: 11px 14px; background: #fff; border: none; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.ud-item:last-child { border-bottom: none; color: var(--red); }
.ud-item:hover { background: var(--blue-soft); }

/* ---- concierge autocomplete ---- */
.concierge-field { position: relative; flex: 1; }
.sugg { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(16,34,52,0.16); z-index: 30; overflow: hidden; }
.sugg-item { padding: 11px 14px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--line); color: var(--ink); }
.sugg-item:last-child { border-bottom: none; }
.sugg-item:hover { background: var(--blue-soft); color: var(--blue); }

/* ---- concierge URL summary ---- */
.url-summary { background: #f3f0fe; border: 1px solid #e0d4f7; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.url-summary .us-head { font-weight: 800; font-size: 13px; color: #6b2fb0; }
.url-summary p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #4a3a66; }

/* ---- profile ---- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.avatar-lg { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--coral)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }

/* ---- product rating stars ---- */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars .st { color: #d6dee7; font-size: 12px; line-height: 1; }
.stars .st.on { color: #f5b301; }
.cat-rating { margin-top: 4px; font-size: 11px; }
.cat-rating .stars .st { font-size: 11px; }

/* ---- buy-now/later advice ---- */
.advice { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); margin-top: 4px; }
.advice .big { font-weight: 800; font-size: 15px; }
.advice p { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.advice-buy { background: #eef9f1; border-color: #bfe6cf; }
.advice-buy .big { color: #117a40; }
.advice-wait { background: #fdf6e7; border-color: #f0dcae; }
.advice-wait .big { color: #9a6713; }
.advice-alt { background: #eef4fb; border-color: var(--blue-line); }
.advice-alt .big { color: #2e5d86; }

/* ---- comparison table ---- */
.cmp-table { margin-top: 12px; }
.cmp-table th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; text-align: left; padding: 6px; border-bottom: 1px solid var(--line); }
.cmp-table td { padding: 10px 6px; font-size: 13px; }
.cmp-self td { background: #f3faf6; }
.cmp-you { font-size: 10px; font-weight: 700; color: var(--green); background: #e7f6ee; padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.cmp-best { display: inline-block; font-size: 10px; font-weight: 700; color: #2e5d86; background: var(--blue-soft); padding: 1px 6px; border-radius: 6px; margin-top: 4px; }
.vbar { height: 7px; border-radius: 6px; background: #e7edf3; overflow: hidden; min-width: 70px; }
.vbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 6px; }

/* ---- feature differences matrix ---- */
.feat-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.feat-table { margin-top: 10px; min-width: 460px; }
.feat-table th { font-size: 11px; color: var(--navy); font-weight: 700; text-align: center; padding: 8px 10px; border-bottom: 2px solid var(--line); vertical-align: bottom; line-height: 1.3; }
.feat-table th:first-child { text-align: left; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.feat-table td { padding: 9px 10px; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); color: var(--ink); }
.feat-label { text-align: left !important; color: var(--muted) !important; font-weight: 600; white-space: nowrap; }
.feat-best { background: #eef9f1; color: #117a40 !important; font-weight: 700; }
.feat-tick { color: var(--green); font-weight: 800; }

/* ---- key-differences summary ---- */
.diff-summary { background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 12px; padding: 12px 16px; margin-top: 10px; }
.diff-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.diff-summary li { font-size: 13px; color: var(--ink); }
.diff-summary li.muted { color: var(--muted); }
.diff-up { color: #117a40; }
.diff-up b, .diff-down b { color: var(--ink); }
.diff-down { color: #a13a31; }
.ds-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--blue-line); font-size: 12.5px; color: #355a7d; }

@media (max-width: 880px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  /* keep all tabs reachable: let the bar scroll, trim chrome */
  .topbar { gap: 8px; padding: 0 12px; height: 54px; }
  .topbar .brand .brand-word { display: none; }
  .topbar .who span:last-child { display: none; }
  .tabs { margin-left: 0; flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 8px 11px; white-space: nowrap; flex: none; }
  .concierge { flex-wrap: wrap; }
  .concierge input { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .modal-head { padding: 16px; }
  .modal-body { padding: 16px; }
  .confirm-banner { flex-wrap: wrap; }
}
