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

:root {
  --ink:        #1A1A1A;
  --ink-muted:  #6B6B6B;
  --ink-faint:  #AAAAAA;
  --surface:    #FFFFFF;
  --surface-2:  #F5F5F5;
  --surface-3:  #EBEBEB;
  --border:     #E0E0E0;
  --border-2:   #D0D0D0;
  --accent:     #00C07A;
  --accent-dark:#008B57;
  --green:      #1DB954;
  --green-lt:   #E8F9EE;
  --amber:      #F5A623;
  --amber-lt:   #FEF5E7;
  --red:        #E74C3C;
  --red-lt:     #FDEDEC;
  --font:       'DM Sans', sans-serif;
  --display:    'DM Serif Display', serif;
  --r-sm:       6px;
  --r-md:       10px;
  --r-lg:       16px;
  --r-pill:     100px;
}

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ─── TOP NAV ──────────────────────────────────────────────────────────── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  font-style: italic;
}
.logo em { font-style: normal; color: var(--ink); }

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

.country-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  letter-spacing: 0.04em;
}
.country-pill svg { width:14px; height:14px; }

.signup-btn {
  background: var(--ink);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}
.signup-btn:hover { background: #333; }

/* ─── SUB NAV (black bar) ───────────────────────────────────────────────── */
.sub-nav {
  background: var(--ink);
  padding: 0 28px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.sub-nav-special {
  display: flex;
  align-items: center;
  gap: 7px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.sub-nav-star {
  width: 16px;
  height: 16px;
  fill: white;
}

.sub-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.sub-nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}
.sub-nav-links a:hover { color: white; }

/* ─── HERO / SEARCH AREA ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 32px 28px 28px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  background: var(--surface);
  min-height: 180px;
}

.hero-left { flex: 1; }

/* search row */
.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: stretch;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.search-box:focus-within { border-color: var(--ink); }

.search-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-faint);
}
.search-box input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  flex: 1;
}
.search-box input::placeholder { color: var(--ink-faint); }

.filter-btn {
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }

/* 2×2 suggestion grid */
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.suggestion-pill {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-pill:hover { border-color: var(--border-2); background: var(--surface-3); color: var(--ink); }

/* hero right — phone stack illustration */
.hero-right {
  position: relative;
  width: 240px;
  height: 150px;
  flex-shrink: 0;
}

.phone-stack {
  position: absolute;
  right: 0;
  top: -10px;
  width: 220px;
  height: 170px;
}

/* SVG phone cards as a stacked fan */
.phone-card {
  position: absolute;
  width: 72px;
  height: 128px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  bottom: 0;
}

.phone-card:nth-child(1) { background: linear-gradient(145deg,#FF6B35,#FF9A3C); left: -8px;   transform: rotate(-25deg); z-index:1; }
.phone-card:nth-child(2) { background: linear-gradient(145deg,#C62A88,#FF6E6C); left: 28px;  transform: rotate(-12deg); z-index:2; }
.phone-card:nth-child(3) { background: linear-gradient(145deg,#1E3A5F,#2E86AB); left: 58px;  transform: rotate(-5deg);  z-index:3; }
.phone-card:nth-child(4) { background: linear-gradient(145deg,#2E7D32,#66BB6A); left: 88px;  transform: rotate(2deg);   z-index:4; }
.phone-card:nth-child(5) { background: linear-gradient(145deg,#1A1A1A,#555);    left: 118px; transform: rotate(10deg);  z-index:5; }
.phone-card:nth-child(6) { background: linear-gradient(145deg,#E8A838,#F7C873); left: 148px; top: 10px; transform: rotate(18deg);  z-index:6; }

/* camera dot on each phone */
.phone-card::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
}

/* ─── BODY LAYOUT ───────────────────────────────────────────────────────── */
.body-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 140px);
  border-top: 1px solid var(--border);
}

/* ─── SIDEBAR ───────────────────────────────────────────────────────────── */
.sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  background: var(--surface);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.filter-input {
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
  height: 42px;
}
.filter-input:focus { border-color: var(--ink); }
.filter-input::placeholder { color: var(--ink-faint); }

/* star rating filter */
.star-filter {
  display: flex;
  gap: 4px;
  align-items: center;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  background: var(--surface);
  cursor: pointer;
  height: 42px;
}
.star { font-size: 16px; color: var(--border-2); cursor: pointer; transition: color 0.1s; }
.star.filled { color: var(--amber); }
.star:hover, .star:hover ~ .star { color: var(--border-2); }
.star-filter:hover .star { color: var(--amber); }

/* price range */
.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.price-range-inputs input {
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 9px 10px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}
.price-range-inputs input:focus { border-color: var(--ink); }
.price-range-inputs input::placeholder { color: var(--ink-faint); }

/* ─── MAIN CONTENT ──────────────────────────────────────────────────────── */
.main-content {
  background: var(--surface);
  padding: 0;
}

/* sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 100px;
  z-index: 10;
}

.sort-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.sort-label em {
  font-style: normal;
  color: var(--ink-muted);
  font-weight: 400;
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-2);
  cursor: pointer;
}

/* device list */
.device-list {
  display: flex;
  flex-direction: column;
}

.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  gap: 32px;
  cursor: pointer;
  transition: background 0.12s;
}
.device-row:hover { background: var(--surface-2); }

.device-row-left {
  flex: 1;
  min-width: 0;
}

.device-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
}

/* ─── SPEC PILLS (list rows) ─────────────────────────────────────── */
.spec-pills {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex-shrink: 0;
  width: 340px;
}

.spec-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.spec-pill-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
  width: 64px;
}

.spec-pill-val {
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.device-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 780px) {
  .body-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .spec-pills { width: 100%; }
}

/* ─── PAGE HERO (phones/laptops pages) ──────────────────────────────────── */
.page-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 480px;
}

/* ─── TIMING FILTER CHECKBOXES ──────────────────────────────────────────── */
.timing-filter, .usecase-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timing-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.timing-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.tcheck-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── CLEAR BUTTON ──────────────────────────────────────────────────────── */
.clear-btn {
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  background: transparent;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  margin-top: 8px;
  transition: border-color 0.15s, color 0.15s;
}
.clear-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ─── LAPTOP STACK ILLUSTRATION ─────────────────────────────────────────── */
.laptop-stack {
  position: absolute;
  right: 0;
  top: 10px;
  width: 220px;
  height: 150px;
}

.laptop-card {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  bottom: 0;
}

/* screen part */
.laptop-card::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 30%;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}

/* hinge line */
.laptop-card::before {
  content: '';
  position: absolute;
  bottom: 28%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0,0,0,0.2);
}

.laptop-card:nth-child(1) { background: linear-gradient(135deg,#1A1A1A,#444); width:160px; height:110px; left:0px;   transform:rotate(-14deg); z-index:1; }
.laptop-card:nth-child(2) { background: linear-gradient(135deg,#2E7D32,#66BB6A); width:155px; height:106px; left:20px;  transform:rotate(-5deg);  z-index:2; }
.laptop-card:nth-child(3) { background: linear-gradient(135deg,#1E3A5F,#2E86AB); width:158px; height:108px; left:42px;  transform:rotate(4deg);   z-index:3; }
.laptop-card:nth-child(4) { background: linear-gradient(135deg,#C62A88,#FF6E6C); width:153px; height:104px; left:62px;  transform:rotate(13deg);  z-index:4; }

/* ─── DEVICE ROW BRAND ───────────────────────────────────────────────────── */
.device-row-brand {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

/* ─── NAV ACTIVE STATE ────────────────────────────────────────────────────── */
.sub-nav-links a.nav-active { color: white; }
.logo { text-decoration: none; }

/* ─── DEVICE ROW BRAND LABEL ─────────────────────────────────────────────── */
.device-row-brand {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

/* ─── SORT DROPDOWN AS SELECT ────────────────────────────────────────────── */
.sort-dropdown {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

/* ─── CHIP FILTER GROUP ──────────────────────────────────────────────────── */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  background: var(--surface);
  transition: all 0.12s;
  user-select: none;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }

/* ─── DEVICE CHIP TAG ────────────────────────────────────────────────────── */
.device-chip {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface-3);
  color: var(--ink-muted);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}

/* ─── LAPTOP STACK ILLUSTRATION ──────────────────────────────────────────── */
.laptop-stack {
  position: absolute;
  right: 0;
  top: 10px;
  width: 220px;
  height: 140px;
}
.laptop-card {
  position: absolute;
  width: 110px;
  height: 74px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  bottom: 0;
}
.laptop-card::after {
  content:'';
  position:absolute;
  bottom:-10px;
  left:50%;
  transform:translateX(-50%);
  width:130%;
  height:10px;
  background:inherit;
  filter:brightness(0.7);
  border-radius:0 0 4px 4px;
}
.laptop-card:nth-child(1){background:linear-gradient(135deg,#1A1A1A,#444); left:0;   transform:rotate(-14deg); z-index:1;}
.laptop-card:nth-child(2){background:linear-gradient(135deg,#1E3A5F,#2E86AB); left:22px; transform:rotate(-7deg);  z-index:2;}
.laptop-card:nth-child(3){background:linear-gradient(135deg,#2E7D32,#66BB6A); left:50px; transform:rotate(0deg);   z-index:3;}
.laptop-card:nth-child(4){background:linear-gradient(135deg,#C62A88,#FF6E6C); left:78px; transform:rotate(7deg);   z-index:4;}
.laptop-card:nth-child(5){background:linear-gradient(135deg,#E8A838,#F7C873); left:106px;transform:rotate(14deg);  z-index:5;}

/* ─── PAGE HERO (non-index pages) ────────────────────────────────────────── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 28px 36px;
}
.page-hero-inner { max-width: 640px; }
.page-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  background: var(--green-lt);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  margin-bottom: 14px;
}
.page-hero-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--ink);
}
.page-hero-sub {
  font-size: 15px;
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.6;
}
.timing-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ─── PAGE BODY ──────────────────────────────────────────────────────────── */
.page-body {
  padding: 24px 28px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── TIMING FILTER STRIP ────────────────────────────────────────────────── */
.timing-filter-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ─── TIMING GROUPS & CARDS ──────────────────────────────────────────────── */
.timing-grid { display: flex; flex-direction: column; gap: 32px; }
.timing-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.timing-group-count {
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
}
.timing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.timing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: box-shadow 0.15s;
}
.timing-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.timing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.timing-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
}
.timing-card-reason {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.timing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.timing-card-price { font-size: 15px; font-weight: 700; color: var(--ink); }
.timing-card-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.timing-card-link:hover { color: var(--ink); }

/* ─── RESALE TABLE ───────────────────────────────────────────────────────── */
.resale-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.resale-table {
  width: 100%;
  border-collapse: collapse;
}
.resale-table thead {
  background: var(--surface-2);
  border-bottom: 1.5px solid var(--border);
}
.resale-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  text-align: left;
}
.resale-row td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.resale-row:last-child td { border-bottom: none; }
.resale-row:hover td { background: var(--surface-2); }
.resale-good { color: var(--accent-dark); }
.resale-ok   { color: var(--amber); }
.resale-poor { color: var(--red); }

/* ─── COMPARE PAGE ───────────────────────────────────────────────────────── */
.compare-picker-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.compare-picker-slot { flex: 1; min-width: 200px; }
.picker-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.picker-input { width: 100%; }
.compare-vs {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  padding-top: 36px;
  align-self: flex-start;
}
.compare-hint {
  text-align: center;
  padding: 48px 24px;
  font-size: 14px;
  color: var(--ink-faint);
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.compare-full-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-full-table thead { background: var(--surface-2); border-bottom: 1.5px solid var(--border); }
.compare-full-table th {
  padding: 16px;
  text-align: center;
  font-size: 13px;
}
.compare-th-name { font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: -0.1px; }
.compare-th-price { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.compare-full-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
}
.compare-full-table tr:last-child td { border-bottom: none; }
.compare-full-table tr:hover td { background: var(--surface-2); }
.compare-row-label {
  text-align: left !important;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--surface-2);
}
.compare-best { color: var(--accent-dark); font-weight: 700; }
.winner-pip { color: var(--amber); font-size: 11px; }

/* ─── AUTH / SIGN UP PAGE ────────────────────────────────────────────────── */
.auth-layout {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--surface-2);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
}
.auth-logo {
  font-family: var(--display);
  font-size: 28px;
  font-style: italic;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--ink);
}
.auth-title {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.auth-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 24px; }
.auth-perks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.perk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--r-md);
}
.perk-icon { font-size: 20px; flex-shrink: 0; }
.perk strong { font-size: 13px; display: block; margin-bottom: 2px; }
.perk p { font-size: 12px; color: var(--ink-muted); margin: 0; }
.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content:'';
  position:absolute;
  top:50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-fields { display: flex; flex-direction: column; gap: 14px; }
.auth-field-group { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.auth-input {
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--ink); }
.auth-input::placeholder { color: var(--ink-faint); }
.auth-submit {
  width: 100%;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 13px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.auth-submit:hover { background: #333; }
.auth-login { text-align: center; font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.auth-login a { color: var(--ink); font-weight: 600; text-decoration: none; }
.auth-login a:hover { text-decoration: underline; }

/* ─── COMPARE MISMATCH BANNER ────────────────────────────────── */
.compare-mismatch-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--amber-lt);
  border: 1px solid var(--amber);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 13px;
  color: #7a5500;
  margin-bottom: 20px;
  line-height: 1.5;
}
.compare-mismatch-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--amber);
}

/* ─── COMPARE DIFF BADGE ─────────────────────────────────────── */
.diff-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--green-lt);
  border-radius: 100px;
  padding: 2px 8px;
  margin-left: 6px;
  letter-spacing: 0.02em;
}
/* ─── SIDEBAR LINKS (homepage) ───────────────────────────────────── */
.sidebar-link {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.12s, color 0.12s;
  margin-bottom: 4px;
}
.sidebar-link:hover { background: var(--surface-2); color: var(--ink); }

/* ─── RANK BADGES (#1 #2 #3) ────────────────────────────────────── */
.rank-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--r-pill);
  padding: 2px 7px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.rank-1 { background: #FFF3CD; color: #856404; }
.rank-2 { background: #F0F0F0; color: #555; }
.rank-3 { background: #FDE8D8; color: #7B3F00; }

/* ─── VIEWS BADGE ────────────────────────────────────────────────── */
.device-clicks {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ─── DEVICE DETAIL PAGE ─────────────────────────────────────────── */
.device-back-bar {
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.12s;
}
.back-btn:hover { color: var(--ink); }

.device-page { max-width: 760px; margin: 0 auto; padding: 40px 28px 120px; }
.device-page-loading { padding: 48px 28px; color: var(--ink-faint); font-size: 14px; }

.device-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.device-detail-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.device-detail-name {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}
.device-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.device-meta-pill {
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--ink-muted);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}
.device-detail-price-block {
  text-align: right;
  flex-shrink: 0;
}
.device-detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}


.device-detail-specs-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.device-spec-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.device-spec-row:last-child { border-bottom: none; }

.device-spec-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  flex-shrink: 0;
  width: 110px;
}

.device-spec-val {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

/* ─── FLOATING COMPARE BUTTON ────────────────────────────────────── */
.compare-fab {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}
.compare-fab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.compare-fab-btn:hover { background: #333; transform: translateY(-2px); }
/* ─── RELEASE DATE RANGE ─────────────────────────────────────────── */
.release-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.release-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.release-range-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  width: 32px;
  flex-shrink: 0;
}

.release-input {
  flex: 1;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 9px 10px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}
.release-input::-webkit-outer-spin-button,
.release-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.release-input:focus { border-color: var(--ink); }
.release-input::placeholder { color: var(--ink-faint); }

/* ─── APPLY BUTTON ───────────────────────────────────────────────── */
.apply-btn {
  width: 100%;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 11px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.apply-btn:hover { background: #333; }

/* ─── LIKE BUTTON ────────────────────────────────────────────────── */
.device-row-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.like-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: var(--border-2);
  transition: color 0.15s, transform 0.15s;
  border-radius: 50%;
}

.like-btn svg {
  width: 16px;
  height: 16px;
  transition: fill 0.15s;
}

.like-btn:hover {
  color: var(--red);
  transform: scale(1.15);
}

.like-btn.liked {
  color: var(--red);
}

/* ─── DEVICE DETAIL LIKE BUTTON ──────────────────────────────────── */
.device-detail-name-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.like-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.like-btn-detail svg {
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  transition: color 0.15s, fill 0.15s;
  flex-shrink: 0;
}

.like-btn-detail:hover {
  border-color: var(--red);
  color: var(--red);
}
.like-btn-detail:hover svg { color: var(--red); }

.like-btn-detail.liked {
  border-color: var(--red);
  background: var(--red-lt);
  color: var(--red);
}
.like-btn-detail.liked svg { color: var(--red); }
