@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS (single source of truth) ── */
:root {
  /* Backgrounds — warm neutrals */
  --bg:        #F7F7F5;
  --surface:   #FFFFFF;
  --surface2:  #F7F7F5;
  --border:    #E8E6DF;
  --border2:   #D3D1C7;

  /* Sidebar */
  --navy:        #201F1C;

  /* Brand — teal */
  --accent:      #0F6E56;
  --accent-mid:  #085041;
  --accent-dim:  #E1F5EE;
  --accent-glow: rgba(15, 110, 86, 0.20);

  /* Semantic */
  --red:       #C0392B;
  --red-dim:   #FCEBEB;
  --amber:     #A35C07;
  --amber-dim: #FAEEDA;
  --green:     #0F6E56;
  --green-dim: #E1F5EE;
  --blue:      #1D6FAB;
  --blue-dim:  rgba(29, 111, 171, 0.08);

  /* Text — warm grays */
  --text:   #2C2C2A;
  --text2:  #5F5E5A;
  --muted:  #5F5E5A;
  --muted2: #B4B2A9;

  /* Misc */
  --radius:    10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(44,44,42,0.06), 0 1px 2px rgba(44,44,42,0.04);
  --shadow:    0 4px 12px rgba(44,44,42,0.07), 0 1px 3px rgba(44,44,42,0.04);
  --shadow-md: 0 8px 24px rgba(44,44,42,0.09), 0 2px 6px rgba(44,44,42,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.app { display: flex; flex-direction: column; min-height: 100vh; }

/* ── TOP NAV ── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 62px;
  gap: 0;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
  padding: 0;
  border: none;
  user-select: none;
  margin-right: 40px;
  flex-shrink: 0;
}
.logo-hidden {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--navy);
}
.logo-rate {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--accent);
}

/* Nav links */
.topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  transition: all 0.15s;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { color: var(--accent); font-weight: 600; }

/* Nav auth */
.topnav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Sidebar-related stubs (kept for diary/history page use) */
.sidebar-section { display: none; }
.sidebar-label { display: none; }

/* Diary list */
.diary-list { display: flex; flex-direction: column; gap: 4px; padding: 0 10px; margin-top: 2px; }
.diary-entry {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.diary-entry:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.diary-entry.active { background: rgba(15,110,86,0.15); border-color: rgba(15,110,86,0.35); }
.diary-entry.active .de-corridor { color: var(--accent); }

.de-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.de-corridor { font-weight: 700; font-size: 12px; color: rgba(255,255,255,0.85); letter-spacing: -0.01em; }
.de-severity { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.de-severity.good { background: var(--green); }
.de-severity.ok   { background: var(--amber); }
.de-severity.bad  { background: var(--red); }

.de-amounts { font-size: 11.5px; color: rgba(255,255,255,0.4); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.de-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.de-markup { font-size: 11px; font-weight: 600; }
.de-markup.good { color: var(--green); }
.de-markup.ok   { color: var(--amber); }
.de-markup.bad  { color: var(--red); }
.de-type {
  font-size: 10.5px;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 500;
}
.de-date { font-size: 10.5px; color: rgba(255,255,255,0.3); margin-left: auto; font-variant-numeric: tabular-nums; }
.de-note {
  font-size: 10.5px;
  color: rgba(255,255,255,0.3);
  margin-top: 5px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.de-delete { position: absolute; top: 8px; right: 8px; background: none; border: none; color: rgba(255,255,255,0.25); cursor: pointer; font-size: 12px; opacity: 0; transition: opacity 0.15s; padding: 2px 4px; border-radius: 4px; }
.diary-entry:hover .de-delete { opacity: 1; }
.de-delete:hover { color: var(--red); background: var(--red-dim); }

/* Diary stats */
.diary-stats {
  margin: 0 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 7px; }
.stat-row:last-child { margin-bottom: 0; }
.stat-label { color: rgba(255,255,255,0.4); }
.stat-val { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.85); }

/* ── MAIN CONTENT ── */
.main {
  padding: 40px 24px 80px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.page-header { margin-bottom: 28px; }
.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.1;
}
.page-title span { color: var(--accent); }
.page-sub { font-size: 13px; color: var(--muted); }

/* ── ENTRY FORM ── */
.entry-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.form-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.form-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-tag {
  font-size: 10.5px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(15,110,86,0.2);
  border-radius: 5px;
  padding: 2px 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── SCAN SECTION ── */
.scan-section {
  border-bottom: 1px solid var(--border);
}
.scan-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.scan-toggle:hover { background: var(--surface2); color: var(--accent); }
.scan-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--muted2);
  transition: transform 0.2s;
  display: inline-block;
}
.scan-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.scan-body.scan-body-open { max-height: 200px; }
.scan-zone {
  margin: 0 20px 14px;
  border: 2px dashed var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 70px;
  display: flex;
  align-items: center;
}
.scan-zone:hover, .scan-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.scan-zone-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  width: 100%;
}
.scan-hint { font-size: 13px; font-weight: 600; color: var(--text); }
.scan-sub  { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.scan-link {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.scan-sub kbd {
  background: var(--border);
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  color: var(--text);
}

.form-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.f { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 110px; }
.f label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.f input, .f select, .f textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
}
.f input:focus, .f select:focus, .f textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.f input::placeholder { color: var(--muted2); font-weight: 400; }
.f textarea { resize: vertical; min-height: 60px; font-size: 13px; line-height: 1.55; }
.f select { cursor: pointer; }

.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-mid);
  box-shadow: 0 4px 14px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text2);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.sidebar .btn-ghost { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); }
.sidebar .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(15,110,86,0.12); }
.form-hint { font-size: 12px; color: var(--muted); }

/* ── MARGIN REVEAL ── */
.margin-reveal {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: none;
}
.margin-reveal.show { display: block; }

.reveal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rstat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.rstat .rs-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.rstat .rs-val { font-family: 'DM Mono', monospace; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.rstat .rs-val.red   { color: var(--red); }
.rstat .rs-val.green { color: var(--green); }
.rstat .rs-val.amber { color: var(--amber); }
.rstat .rs-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

.bar-wrap { margin-bottom: 14px; }
.bar-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.bar-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.bar-ticks { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted2); margin-top: 4px; font-variant-numeric: tabular-nums; }

.verdict { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; line-height: 1.65; border: 1.5px solid; }
.verdict.good { background: var(--green-dim); border-color: rgba(22,163,74,0.25); }
.verdict.ok   { background: var(--amber-dim); border-color: rgba(217,119,6,0.25); }
.verdict.bad  { background: var(--red-dim);   border-color: rgba(220,38,38,0.25); }
.verdict-head { font-weight: 700; font-size: 13.5px; margin-bottom: 5px; letter-spacing: -0.01em; }
.verdict-head.good { color: var(--green); }
.verdict-head.ok   { color: var(--amber); }
.verdict-head.bad  { color: var(--red); }
.verdict strong { color: var(--text); font-weight: 700; }

/* ── COMPARISON CARDS ── */
.comparison-wrap { margin-top: 24px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.cards { display: flex; flex-direction: column; gap: 8px; }
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: cardUp 0.2s ease both;
}
@keyframes cardUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.card:nth-child(1){animation-delay:.03s} .card:nth-child(2){animation-delay:.06s}
.card:nth-child(3){animation-delay:.09s} .card:nth-child(4){animation-delay:.12s}
.card:nth-child(5){animation-delay:.15s} .card:nth-child(6){animation-delay:.18s}

.card.best  { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.card.yours { border-color: var(--border2); }
.card.yours.good { border-color: rgba(22,163,74,0.4); }
.card.yours.bad  { border-color: rgba(220,38,38,0.3); }

.card-body { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 16px; padding: 14px 18px; }
.cn { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 2px; letter-spacing: -0.01em; }
.cm { font-size: 12px; color: var(--muted); }
.spd { display: flex; gap: 3px; margin-top: 5px; }
.sd { width: 5px; height: 5px; border-radius: 50%; background: var(--border2); }
.sd.on    { background: var(--accent); }
.sd.red-on { background: var(--red); }
.sd.grn-on { background: var(--green); }

.bge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
}
.bge.best   { background: var(--accent); color: #fff; }
.bge.fast   { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(37,99,235,0.2); }
.bge.have   { background: var(--green-dim); color: var(--green); border: 1px solid rgba(22,163,74,0.25); }
.bge.yours  { background: var(--red-dim); color: var(--red); border: 1px solid rgba(220,38,38,0.2); }
.bge.yoursg { background: var(--green-dim); color: var(--green); border: 1px solid rgba(22,163,74,0.25); }

.cr { text-align: right; }
.cr .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.cr .l { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.recv-v { font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 500; }
.recv-v.bc { color: var(--accent); }
.recv-v.rc { color: var(--red); }
.recv-v.gc { color: var(--green); }
.diff-tag { font-weight: 700; font-size: 11px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.diff-tag.pos { color: var(--green); }
.diff-tag.neg { color: var(--red); }
.diff-tag.neu { color: var(--green); }

.card-strip {
  border-top: 1px solid var(--border);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  background: var(--surface2);
}
.strip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.strip-dot.g    { background: var(--green); }
.strip-dot.a    { background: var(--amber); }
.strip-dot.r    { background: var(--red); }
.strip-dot.grey { background: var(--muted2); }
.strip-text { flex: 1; color: var(--muted); }
.strip-steps { display: flex; gap: 4px; align-items: center; flex: 2; flex-wrap: wrap; }
.step {
  font-size: 10.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}
.step.done { border-color: rgba(15,110,86,0.3); color: var(--accent); background: var(--accent-dim); }
.step.warn { border-color: rgba(217,119,6,0.3); color: var(--amber); background: var(--amber-dim); }
.sarrow { color: var(--muted2); font-size: 11px; }
.strip-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid rgba(15,110,86,0.3);
  border-radius: 6px;
  padding: 4px 10px;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.strip-link:hover { background: var(--accent-dim); border-color: var(--accent); }
.strip-link.al { color: var(--amber); border-color: rgba(217,119,6,0.3); }
.strip-link.al:hover { background: var(--amber-dim); border-color: var(--amber); }

/* ── HISTORY PAGE ── */
.history-table-wrap { overflow-x: auto; margin-bottom: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}
th:not(:first-child) { text-align: right; }
td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
td:not(:first-child) { text-align: right; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }
.tc-corridor { font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; }
.tc-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tc-markup { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.tc-markup.good { color: var(--green); }
.tc-markup.ok   { color: var(--amber); }
.tc-markup.bad  { color: var(--red); }
.sev-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.sev-dot.good { background: var(--green); }
.sev-dot.ok   { background: var(--amber); }
.sev-dot.bad  { background: var(--red); }
.tc-missed { font-weight: 700; font-size: 13px; color: var(--red); font-variant-numeric: tabular-nums; }
.tc-missed.good { color: var(--green); }

/* ── INSIGHTS CARDS ── */
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin-bottom: 24px; }
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.ic-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ic-val { font-family: 'DM Mono', monospace; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.ic-val.red   { color: var(--red); }
.ic-val.green { color: var(--green); }
.ic-val.amber { color: var(--amber); }
.ic-sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 52px 24px; color: var(--muted); }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-title { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty-sub { font-size: 13px; }

/* ── CORRIDOR PILLS ── */
.corridor-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cpill {
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.cpill:hover { border-color: var(--border2); color: var(--text2); }
.cpill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── HAVE ACCOUNT PILLS ── */
.have-row { display: flex; flex-wrap: wrap; gap: 6px; }
.hpill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s;
  user-select: none;
  font-family: 'Inter', sans-serif;
  color: var(--text2);
}
.hpill input { display: none; }
.hpill.checked { background: var(--accent-dim); border-color: rgba(15,110,86,0.35); color: var(--accent); font-weight: 600; }
.hdot { width: 5px; height: 5px; border-radius: 50%; background: var(--border2); flex-shrink: 0; }
.hpill.checked .hdot { background: var(--accent); }

/* ── DISCLAIMER ── */
.disclaimer {
  font-size: 11px;
  color: var(--muted2);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 12px;
}

/* ── AMOUNT INPUT (Compare page) ── */
.compare-amount-input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  padding: 9px 14px;
  outline: none;
  width: 150px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.compare-amount-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ── GATE (teaser lock) ── */
.gate-wrap { position: relative; }
.gate-blur-zone { display: flex; flex-direction: column; gap: 8px; }
.gate-overlay {
  position: absolute;
  inset: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(244,245,247,0) 0%, rgba(244,245,247,0.85) 28%, rgba(244,245,247,1) 50%);
  border-radius: var(--radius);
  z-index: 10;
}
.gate-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 440px;
  width: 100%;
  margin-top: 80px;
}
.gate-icon { font-size: 32px; margin-bottom: 10px; }
.gate-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 8px; }
.gate-sub { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.gate-perks { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gate-perk { font-size: 11.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 4px 10px; font-weight: 500; }

/* ── SIGNUP MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.modal-visible { opacity: 1; }
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08);
  position: relative;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}
.modal-backdrop.modal-visible .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--muted2);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: 800; letter-spacing: -0.025em; color: var(--text); text-align: center; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; margin-bottom: 22px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.modal-divider { text-align: center; font-size: 12px; color: var(--muted2); margin: 6px 0 18px; position: relative; }
.modal-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.modal-divider span { background: var(--surface); padding: 0 10px; position: relative; }
.modal-perks { display: flex; flex-direction: column; gap: 8px; }
.modal-perk { font-size: 12.5px; color: var(--text2); display: flex; align-items: flex-start; gap: 8px; text-align: left; }
.modal-tabs { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 3px; margin-bottom: 20px; }
.modal-tab { flex: 1; padding: 8px; font-size: 13px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; background: none; color: var(--muted); transition: all 0.15s; font-family: inherit; }
.modal-tab.active { background: var(--accent); color: #fff; }

/* ── PROFILE MODAL ── */
.profile-modal {
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 32px;
}
.pm-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}
.pm-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted2);
  padding: 5px 12px;
  border-radius: 99px;
  transition: all 0.2s;
}
.pm-step.active { color: var(--accent); background: var(--accent-dim); }
.pm-step-line { flex: 1; height: 1px; background: var(--border); }
.pm-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 6px; }
.pm-subtitle { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
/* Search input */
.pm-search-wrap { position: relative; margin-bottom: 6px; }
.pm-search {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--surface2);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.pm-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--surface); }

/* Chips */
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; margin-bottom: 10px; align-items: flex-start; }
.pm-chips-empty { font-size: 12px; color: var(--muted2); padding: 6px 0; }
.pm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  padding: 4px 10px 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
}
.pm-chip-loyalty { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); padding: 3px 8px 3px 12px; }
.pm-chip-region { font-size: 10px; opacity: 0.75; font-weight: 500; }
.pm-chip-remove { background: none; border: none; color: inherit; cursor: pointer; font-size: 12px; opacity: 0.7; padding: 0 0 0 2px; line-height: 1; font-family: inherit; }
.pm-chip-remove:hover { opacity: 1; }
.pm-chip-tier { font-size: 11.5px; font-weight: 500; color: var(--accent); background: none; border: 1px solid rgba(15,110,86,0.25); border-radius: 4px; padding: 2px 6px; font-family: inherit; cursor: pointer; outline: none; }

/* Results list */
.pm-results { max-height: 220px; overflow-y: auto; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 4px; }
.pm-result-group { padding: 0; }
.pm-result-region { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 4px; background: var(--surface2); border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.pm-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  user-select: none;
}
.pm-result-row:last-child { border-bottom: none; }
.pm-result-row:hover { background: var(--surface2); }
.pm-result-row.selected { background: var(--accent-dim); }
.pm-result-name { font-size: 13px; font-weight: 500; color: var(--text); }
.pm-result-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--muted2);
  flex-shrink: 0;
  transition: all 0.15s;
}
.pm-result-check.checked { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pm-no-results { padding: 16px 14px; font-size: 13px; color: var(--muted2); }

/* Profile modal actions */
.pm-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.pm-skip { font-size: 13px; color: var(--muted2); cursor: pointer; }
.pm-skip:hover { color: var(--text2); }
.pm-back { font-size: 13px; font-weight: 500; color: var(--text2); background: none; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 16px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.pm-back:hover { border-color: var(--border2); color: var(--text); }

/* ── ADMIN PAGE ── */
.admin-page { max-width: 920px; }
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-title { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 4px; }
.admin-subtitle { font-size: 13px; color: var(--muted); }
.admin-refresh {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.admin-refresh:hover { border-color: var(--accent); color: var(--accent); }
.admin-loading { color: var(--muted); font-size: 14px; padding: 40px 0; }
.admin-alert {
  background: var(--amber-dim);
  border: 1.5px solid rgba(163,92,7,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 20px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.astat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.astat-val { font-family: 'DM Mono', monospace; font-size: 28px; font-weight: 500; letter-spacing: -0.025em; color: var(--text); line-height: 1; margin-bottom: 6px; }
.astat-label { font-size: 11.5px; color: var(--muted); }
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.admin-panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.admin-empty { font-size: 13px; color: var(--muted2); padding: 8px 0; }

/* Signups chart */
.admin-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
  padding-top: 4px;
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  cursor: default;
}
.chart-bar {
  width: 100%;
  background: var(--border2);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: background 0.15s;
}
.chart-bar-wrap:hover .chart-bar { opacity: 0.8; }
.chart-label { font-size: 9px; font-weight: 700; color: var(--accent); min-height: 12px; }
.chart-day { font-size: 9px; color: var(--muted2); font-variant-numeric: tabular-nums; }

/* Top corridors */
.admin-corridor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}
.admin-corridor-row:last-child { margin-bottom: 0; }
.acr-rank { font-size: 11px; color: var(--muted2); width: 14px; text-align: right; flex-shrink: 0; }
.acr-name { font-weight: 700; font-size: 13px; width: 72px; flex-shrink: 0; letter-spacing: 0.02em; }
.acr-bar-wrap { flex: 1; height: 6px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.acr-bar { height: 100%; background: var(--accent); border-radius: 99px; }
.acr-count { font-size: 12px; color: var(--muted); width: 20px; text-align: right; flex-shrink: 0; }

/* Signups table */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: none;
  white-space: nowrap;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.at-email { font-weight: 500; color: var(--text); }
.at-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.at-num { font-family: 'DM Mono', monospace; text-align: center !important; }
.at-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface2); color: var(--muted2); border: 1px solid var(--border); }
.at-badge.at-active { background: var(--green-dim); color: var(--green); border-color: rgba(15,110,86,0.2); }

/* Feature flags */
.admin-flags { display: flex; flex-direction: column; gap: 10px; }
.flag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.flag-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.flag-desc { font-size: 12px; color: var(--muted); }
.flag-status { font-size: 12px; font-weight: 600; white-space: nowrap; }
.flag-status.live     { color: var(--green); }
.flag-status.admin    { color: var(--blue); }
.flag-status.building { color: var(--amber); }

/* SQL modal */
.admin-sql {
  background: #1a1a1a;
  color: #e8e8e4;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

/* Nav admin item */
.nav-admin { color: var(--blue) !important; }
.nav-admin:hover { background: var(--blue-dim) !important; }
.nav-admin.active { color: var(--blue) !important; }

/* ── TRAVEL CARDS PAGE ── */
.cards-page { max-width: 860px; }

.cards-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cards-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 4px;
}
.cards-subtitle { font-size: 13.5px; color: var(--muted); }
.cards-destination {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
}
.dest-flag { font-size: 20px; }
.dest-name { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

/* Wallet picker */
.wallet-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.wallet-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.section-label { font-size: 13px; font-weight: 700; color: var(--text); }
.section-hint { font-size: 12px; color: var(--muted2); }
.wallet-group { margin-bottom: 14px; }
.wallet-group:last-child { margin-bottom: 0; }
.wallet-group-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.wallet-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wallet-pill {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  user-select: none;
}
.wallet-pill:hover { border-color: var(--border2); color: var(--text); }
.wallet-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Results rows */
.results-header-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.cards-best-message {
  background: var(--green-dim);
  border: 1.5px solid rgba(15,110,86,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  margin-top: 8px;
}

/* Alt card */
.card-alt { background: var(--surface); }
.ci-saving {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
}
.ci-apply {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid rgba(15,110,86,0.3);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: all 0.15s;
  background: var(--accent-dim);
}
.ci-apply:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Calculator */
.cards-calculator {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.calc-row { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 10px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.calc-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.calc-ccy {
  padding: 9px 10px 9px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface2);
  border-right: 1px solid var(--border);
  letter-spacing: 0.04em;
}
.calc-input {
  border: none;
  outline: none;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: var(--text);
  padding: 9px 12px;
  background: transparent;
  width: 160px;
  -webkit-appearance: none;
}
.calc-approx { display: flex; flex-direction: column; gap: 6px; }
.calc-nzd {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-bottom: 2px;
}
.calc-hint { font-size: 12px; color: var(--muted2); }

/* Card grid */
.cards-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.card-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.card-item:hover { box-shadow: var(--shadow); }

/* Verdict left-border accent */
.verdict-best  { border-left: 3px solid var(--green); }
.verdict-great { border-left: 3px solid #2196a3; }
.verdict-ok    { border-left: 3px solid var(--amber); }
.verdict-avoid { border-left: 3px solid var(--red); }

.ci-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.ci-name-wrap {}
.ci-name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.ci-type { font-size: 12px; color: var(--muted); margin-top: 2px; }

.ci-verdict {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 99px;
}
.ci-verdict.verdict-best  { background: var(--green-dim); color: var(--green); }
.ci-verdict.verdict-great { background: rgba(33,150,163,0.1); color: #1a8a99; }
.ci-verdict.verdict-ok    { background: var(--amber-dim); color: var(--amber); }
.ci-verdict.verdict-avoid { background: var(--red-dim); color: var(--red); }

.ci-cost {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ci-cost-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ci-cost-value { font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500; color: var(--text); text-align: right; }
.cost-free { color: var(--green); font-weight: 700; }
.cost-nzd { font-size: 12px; color: var(--muted); margin-left: 6px; }
.cost-na { font-size: 12px; color: var(--muted2); font-family: 'Inter', sans-serif; font-weight: 400; }

.ci-details { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.ci-detail { display: flex; gap: 10px; font-size: 12.5px; }
.ci-detail-k { color: var(--muted); min-width: 72px; flex-shrink: 0; }
.ci-detail-v { color: var(--text2); }

.ci-proscons { display: flex; flex-wrap: wrap; gap: 5px; }
.ci-pro {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-dim);
  border-radius: 4px;
  padding: 3px 8px;
}
.ci-con {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* Tips */
.cards-tips { margin-top: 4px; }
.tips-heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 14px;
}
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tip-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.tip-icon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.tip-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 5px; letter-spacing: -0.01em; }
.tip-text { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── PROFILE BAR ── */
.profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text2);
  box-shadow: var(--shadow-sm);
}
.profile-bar-guest { border-color: var(--border); }
.profile-bar-empty { border-color: var(--amber); background: var(--amber-dim); }
.profile-bar-set   { border-color: var(--accent-dim); }
.pb-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pb-cards  { font-weight: 500; color: var(--text); }
.pb-loyalty { color: var(--text2); }
.pb-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.pb-btn:hover { background: var(--surface2); }
.pb-btn-edit { border-color: var(--accent); color: var(--accent); }
.pb-btn-edit:hover { background: var(--accent-dim); }

/* ── PLAYBOOK SECTION ── */
.playbook-section { margin-bottom: 28px; }
.playbook-heading {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 14px;
}
.playbook-dest {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 20px;
  padding: 2px 10px;
  vertical-align: middle;
}

/* ── DOUBLE-DIP BANNER ── */
.doubledip-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fffbea 0%, #fff8e0 100%);
  border: 1.5px solid #f0c040;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(240,192,64,0.12);
}
.dd-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.dd-body { flex: 1; min-width: 0; }
.dd-title { font-size: 13.5px; font-weight: 700; color: #7a5200; margin-bottom: 5px; }
.dd-desc  { font-size: 12.5px; color: #7a5200; line-height: 1.6; margin-bottom: 8px; }
.dd-link  {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.dd-link:hover { text-decoration: underline; }

/* ── PLATFORMS GRID ── */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.platform-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.platform-card:hover { box-shadow: var(--shadow); }
.platform-highlighted {
  border-color: var(--accent);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-dim) 100%);
}

/* Platform card internals */
.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pc-name-wrap { display: flex; align-items: center; gap: 8px; }
.pc-icon { font-size: 18px; line-height: 1; }
.pc-name { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

.pc-ccy {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.ccy-hkd { background: #e8f4ff; color: #1155aa; }
.ccy-usd { background: #e8fff2; color: #0a6a3a; }

.pc-card-row, .pc-earn-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pc-label { font-size: 11.5px; color: var(--muted2); font-weight: 500; flex-shrink: 0; }
.pc-value { font-size: 13px; font-weight: 600; color: var(--text); }
.pc-card-name { color: var(--accent); }
.pc-earn { font-size: 12.5px; font-weight: 500; color: var(--text2); }

.pc-fx {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.pc-fx-free { background: var(--green-dim); color: var(--green); }
.pc-fx-cost { background: var(--amber-dim); color: var(--amber); }

.pc-doubledip-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #7a5200;
  background: #fff3cc;
  border-radius: 20px;
  padding: 3px 10px;
  align-self: flex-start;
}
.pc-tip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.pc-link {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 2px;
}
.pc-link:hover { text-decoration: underline; }

/* ── COMPARE SECTION ── */
.compare-section { margin-bottom: 28px; }
.compare-heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
}
.compare-table {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: var(--surface2); }
.ct-best { background: var(--accent-dim); }
.ct-best:hover { background: var(--accent-dim); }
.ct-left  { flex: 1; min-width: 0; }
.ct-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ct-name  { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ct-type  { font-size: 11.5px; color: var(--muted2); margin-top: 2px; }
.ct-loyalty { font-size: 11.5px; color: var(--accent); margin-top: 2px; }
.ct-fee  { font-size: 13px; font-weight: 600; color: var(--text); }
.ct-cost { font-size: 12px; color: var(--muted); }
.ct-free { color: var(--green); font-weight: 600; }
.ct-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 2px 9px;
}

/* ── NO PROFILE STATE ── */
.cards-no-profile {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius);
}
.cnp-icon  { font-size: 40px; margin-bottom: 14px; }
.cnp-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.015em; }
.cnp-sub   { font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 380px; margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .main { padding: 20px 16px 60px; }
  .card-body { grid-template-columns: 1fr auto; }
  .col-fee, .col-rate { display: none; }
  .strip-steps { display: none; }
  .insights { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: 1fr; }
  .calc-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cards-header { flex-direction: column; gap: 12px; }
  .ci-cost { flex-direction: column; align-items: flex-start; gap: 4px; }
  .platforms-grid { grid-template-columns: 1fr; }
  .profile-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pb-btn { align-self: stretch; text-align: center; }
  .doubledip-banner { flex-direction: column; gap: 10px; }
  .ct-row { flex-wrap: wrap; }
}
