/*
Theme Name: Mobiprin v3
Theme URI: https://mobiprin.com
Author: Primatree
Description: Modern phone specs & prices database theme
Version: 3.0.0
Text Domain: mobiprin
*/

/* ============================================================
   DESIGN TOKENS — from mobiprin design mockup v1
   ============================================================ */
:root {
  --mp-navy:      #0D1B2A;
  --mp-navy-2:    #1A2B6C;
  --mp-blue:      #1E8EFA;
  --mp-blue-hover:#0d72d6;
  --mp-red:       #EF3B47;
  --mp-success:   #22C55E;
  --mp-warning:   #F97316;
  --mp-danger:    #EF4444;

  /* Light theme */
  --bg:           #FAFAF9;
  --bg-2:         #FFFFFF;
  --bg-3:         #F4F5F7;
  --paper:        #FFFFFF;
  --ink:          #0D1B2A;
  --ink-2:        #1E293B;
  --muted:        #64748B;
  --muted-2:      #94A3B8;
  --line:         #E5E7EB;
  --line-strong:  #CBD5E1;
  --chip-bg:      #F1F5F9;
  --chip-ink:     #0F172A;
  --shadow-sm:    0 1px 2px rgba(15,23,42,.04),0 1px 1px rgba(15,23,42,.03);
  --shadow-md:    0 4px 10px rgba(15,23,42,.06),0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:    0 24px 48px -16px rgba(15,23,42,.18),0 8px 16px -8px rgba(15,23,42,.08);

  --font-sans:    'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-mono:    'JetBrains Mono',ui-monospace,"SF Mono",Menlo,monospace;

  --r-xs: 6px;  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-pill: 999px;
  --gutter: 24px;
  --maxw: 1320px;
  --nav-h: 64px;
}

[data-theme="dark"] {
  --bg:          #05070D;
  --bg-2:        #0B1220;
  --bg-3:        #0F172A;
  --paper:       #0D1B2A;
  --ink:         #F1F5F9;
  --ink-2:       #E2E8F0;
  --muted:       #94A3B8;
  --muted-2:     #64748B;
  --line:        rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --chip-bg:     rgba(255,255,255,.06);
  --chip-ink:    #F1F5F9;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
  --shadow-md:   0 4px 12px rgba(0,0,0,.4);
  --shadow-lg:   0 24px 48px -16px rgba(0,0,0,.6);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11","ss01","ss02";
  font-size: 15px;
  line-height: 1.55;
  transition: background .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.row         { display: flex; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack       { display: flex; flex-direction: column; }
.gap-4{gap:4px}.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}.gap-24{gap:24px}.gap-32{gap:32px}
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-family: var(--font-mono);
}
.h1 { font-size: clamp(32px,4vw,48px); font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(24px,2.6vw,34px); font-weight: 700; letter-spacing: -.025em; }
.h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.h4 { font-size: 16px; font-weight: 600; }
.muted { color: var(--muted); }
.lead  { font-size: 18px; color: var(--muted); line-height: 1.6; }
.mono  { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.mp-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.mp-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 24px;
}
.mp-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 19px; letter-spacing: -.04em; flex-shrink: 0;
}
.mp-logo-mark { display: inline-flex; align-items: center; gap: 2px; }
.mp-logo-mark .tag {
  background: var(--mp-blue); color: white;
  padding: 3px 8px 3px 6px; border-radius: 4px 8px 8px 4px;
  font-weight: 900; letter-spacing: -.04em; position: relative;
}
.mp-logo-mark .tag::before {
  content: ""; position: absolute; left: -1px; top: 50%;
  width: 5px; height: 5px; background: var(--bg); border-radius: 50%;
  transform: translate(-50%,-50%);
}
.mp-logo-mark .dot {
  width: 6px; height: 6px; background: var(--mp-red); border-radius: 50%;
  position: relative; top: -10px; margin-left: 1px;
}
.mp-nav {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.mp-nav a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 14px; color: var(--ink-2);
  transition: background .15s,color .15s;
}
.mp-nav a:hover   { background: var(--chip-bg); }
.mp-nav a.current { background: var(--ink); color: var(--bg); }
.mp-header-actions { display: flex; align-items: center; gap: 8px; }
.mp-search-trigger {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 12px; background: var(--chip-bg);
  border-radius: var(--r-pill); color: var(--muted); font-size: 13px;
  min-width: 180px; border: 1px solid transparent; transition: background .15s;
}
.mp-search-trigger:hover { background: color-mix(in oklab,var(--chip-bg) 70%,var(--ink) 4%); }
.mp-search-trigger kbd {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 2px 5px; border-radius: 4px;
}
.mp-theme-toggle {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chip-bg); transition: background .15s;
}
.mp-theme-toggle:hover { background: color-mix(in oklab,var(--chip-bg) 60%,var(--ink) 6%); }
.mp-lang {
  height: 36px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--chip-bg); display: inline-flex; align-items: center;
  gap: 6px; font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: background .15s;
}
.mp-lang:hover { background: color-mix(in oklab,var(--chip-bg) 70%,var(--ink) 4%); }
.mp-lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 160px; z-index: 200;
  display: none;
}
.mp-lang-wrapper { position: relative; }
.mp-lang-wrapper:hover .mp-lang-dropdown { display: block; }
.mp-lang-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px;
  color: var(--ink); transition: background .15s;
}
.mp-lang-dropdown a:hover { background: var(--chip-bg); }
.mp-lang-dropdown a.active { color: var(--mp-blue); font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  transition: transform .06s,background .15s,border-color .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mp-blue); color: #fff; }
.btn-primary:hover { background: var(--mp-blue-hover); color: #fff; }
.btn-dark  { background: var(--ink); color: var(--bg); }
.btn-dark:hover  { opacity: .85; }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--chip-bg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }

/* ============================================================
   CHIPS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--chip-bg); color: var(--chip-ink);
  font-size: 12px; font-weight: 500; border: 1px solid transparent;
}
.chip-outline  { background: transparent; border-color: var(--line-strong); }
.chip-blue     { background: color-mix(in oklab,var(--mp-blue) 12%,transparent); color: var(--mp-blue); }
.chip-success  { background: color-mix(in oklab,var(--mp-success) 14%,transparent); color: var(--mp-success); }
.chip-warning  { background: color-mix(in oklab,var(--mp-warning) 14%,transparent); color: var(--mp-warning); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .15s,transform .15s,box-shadow .15s;
}
.card-hover:hover {
  border-color: var(--line-strong); transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   PHONE CARD (grid card)
   ============================================================ */
.phone-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .18s ease; cursor: pointer; position: relative; overflow: hidden;
}
.phone-card:hover {
  border-color: var(--line-strong); transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.phone-card .pc-image {
  aspect-ratio: 1/1.1; background: var(--bg-3); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.phone-card .pc-image img {
  width: 75%; height: 85%; object-fit: contain;
}
.phone-card .pc-brand {
  font-size: 11px; color: var(--muted); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em;
}
.phone-card .pc-name {
  font-size: 15px; font-weight: 700; letter-spacing: -.015em;
  line-height: 1.2; color: var(--ink);
}
.phone-card .pc-price {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.phone-card .pc-specs {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 11px; color: var(--muted); font-family: var(--font-mono);
  border-top: 1px solid var(--line); padding-top: 10px;
}

/* ============================================================
   PHONE GRID
   ============================================================ */
.phone-grid {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 16px;
}
.phone-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
.phone-grid.cols-5 { grid-template-columns: repeat(5,1fr); }
@media (max-width:1200px) { .phone-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 900px) { .phone-grid,.phone-grid.cols-4,.phone-grid.cols-5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .phone-grid,.phone-grid.cols-4,.phone-grid.cols-5 { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   SCORE RING
   ============================================================ */
.score-ring {
  --size: 56px; --thick: 4px; --val: 80; --col: var(--mp-success);
  position: relative; width: var(--size); height: var(--size);
  display: inline-grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--col) calc(var(--val)*1%),
    color-mix(in oklab,var(--col) 18%,transparent) 0);
  flex-shrink: 0;
}
.score-ring::after {
  content: ""; position: absolute; inset: var(--thick);
  background: var(--paper); border-radius: 50%;
}
.score-ring .val {
  position: relative; z-index: 1; font-family: var(--font-mono);
  font-weight: 700; font-size: calc(var(--size)*.32);
  letter-spacing: -.04em; color: var(--ink);
}
.score-ring.s-warn { --col: var(--mp-warning); }
.score-ring.s-bad  { --col: var(--mp-danger); }
.score-ring.s-mid  { --col: var(--mp-blue); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; background: var(--mp-navy); color: #F1F5F9;
  border-radius: var(--r-lg); padding: 96px 32px 80px;
  overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 20%,color-mix(in oklab,var(--mp-blue) 35%,transparent),transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 90%,color-mix(in oklab,var(--mp-red) 18%,transparent),transparent 60%);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px; z-index: -1;
  mask-image: radial-gradient(ellipse at center,black 30%,transparent 75%);
}
.hero h1 {
  font-size: clamp(40px,6vw,84px); font-weight: 900;
  letter-spacing: -.045em; line-height: .95; max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg,#6FB2FF,#1E8EFA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 18px; color: rgba(241,245,249,.7); max-width: 60ch; line-height: 1.55; }
.hero-search {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill); display: flex; align-items: center;
  padding: 6px 6px 6px 22px; height: 64px;
  backdrop-filter: blur(8px); max-width: 720px;
}
.hero-search form { flex: 1; display: flex; align-items: center; gap: 12px; width: 100%; }
.hero-search input {
  flex: 1; background: transparent; border: none; outline: none;
  font: inherit; font-size: 17px; color: white; letter-spacing: -.01em;
}
.hero-search input::placeholder { color: rgba(255,255,255,.45); }
.hero-search .btn-primary { height: 52px; padding: 0 24px; }
.hero-quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero-quick .label {
  color: rgba(241,245,249,.5); font-size: 12px; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em; margin-right: 4px;
}
.hero-quick .qchip {
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  font-size: 13px; font-weight: 500; color: white;
  display: inline-flex; align-items: center; gap: 6px; transition: background .15s;
}
.hero-quick .qchip:hover { background: rgba(255,255,255,.14); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 48px; padding-top: 28px; gap: 24px;
}
.hero-stat .v { font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.hero-stat .l { font-size: 12px; color: rgba(241,245,249,.5); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); margin-top: 4px; }

/* ============================================================
   TIER TABS
   ============================================================ */
.tier-tabs {
  display: inline-flex; padding: 4px; background: var(--bg-3);
  border-radius: var(--r-pill); gap: 2px;
}
.tier-tabs button { height: 36px; padding: 0 18px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s; }
.tier-tabs button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(24px,2.4vw,30px); }
.section-head-link { color: var(--muted); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.section-head-link:hover { color: var(--ink); }

/* ============================================================
   BRANDS STRIP
   ============================================================ */
.brands-strip {
  background: var(--mp-navy); border-radius: var(--r-lg);
  padding: 48px 40px; position: relative; overflow: hidden;
}
.brands-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 12px; }
@media (max-width:900px) { .brands-grid { grid-template-columns: repeat(4,1fr); } }
.brand-tile {
  display: flex; align-items: center; justify-content: center;
  height: 80px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-sans); font-weight: 700;
  color: rgba(255,255,255,.7); font-size: 15px; letter-spacing: -.02em;
  transition: all .18s; text-decoration: none;
}
.brand-tile img { max-height: 32px; object-fit: contain; filter: brightness(0) invert(.7); transition: filter .18s; }
.brand-tile:hover {
  background: rgba(255,255,255,.08); color: white;
  border-color: var(--mp-blue);
  box-shadow: 0 0 0 4px color-mix(in oklab,var(--mp-blue) 25%,transparent);
}
.brand-tile:hover img { filter: brightness(0) invert(1); }

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
@media (max-width:900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; transition: all .15s;
}
.news-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.news-card .img {
  border-radius: var(--r-md); position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: linear-gradient(135deg,var(--mp-navy-2),var(--mp-navy));
}
.news-card.feature .img { aspect-ratio: 16/11; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .img .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.55); color: white; backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill);
}
.news-card .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.news-card .title { font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.news-card.feature .title { font-size: 26px; }
.news-card .excerpt { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   PHONE SPEC PAGE
   ============================================================ */
.phone-page-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
@media (max-width:1000px) { .phone-page-grid { grid-template-columns: 1fr; } }
.phone-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.phone-hero-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.phone-hero-card .img {
  aspect-ratio: 1/1; background: var(--bg-3); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.phone-hero-card .img img { width: 80%; height: 80%; object-fit: contain; }

/* Spec cards 2x2 */
.spec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec-card {
  border-radius: var(--r-md); padding: 16px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.spec-card .label { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec-card .val   { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-family: var(--font-mono); }
.spec-card .sub   { font-size: 12px; color: var(--muted); }
.spec-card.tinted-display { background: color-mix(in oklab,#8B5CF6 8%,var(--paper)); border-color: color-mix(in oklab,#8B5CF6 18%,var(--line)); }
.spec-card.tinted-camera  { background: color-mix(in oklab,#EC4899 8%,var(--paper)); border-color: color-mix(in oklab,#EC4899 18%,var(--line)); }
.spec-card.tinted-battery { background: color-mix(in oklab,#22C55E 8%,var(--paper)); border-color: color-mix(in oklab,#22C55E 18%,var(--line)); }
.spec-card.tinted-chip    { background: color-mix(in oklab,#1E8EFA 8%,var(--paper)); border-color: color-mix(in oklab,#1E8EFA 18%,var(--line)); }

/* Accordion */
.accordion-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s; }
.accordion-item + .accordion-item { margin-top: 8px; }
.accordion-item summary {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; letter-spacing: -.015em;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .ic {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chip-bg); color: var(--ink); font-size: 14px; flex-shrink: 0;
}
.accordion-item summary .caret { margin-left: auto; transition: transform .2s; color: var(--muted); font-size: 18px; }
.accordion-item[open] summary .caret { transform: rotate(180deg); }
.accordion-item[open] { border-color: var(--line-strong); }
.accordion-body { padding: 4px 22px 22px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-top: 1px solid var(--line); }
.spec-table tr:first-child { border-top: none; }
.spec-table th,.spec-table td { padding: 12px 0; text-align: left; vertical-align: top; font-size: 14px; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; padding-right: 24px; }
.spec-table td { font-family: var(--font-mono); font-weight: 500; }

/* Price region tabs */
.price-tabs { display: flex; gap: 2px; padding: 4px; background: var(--bg-3); border-radius: var(--r-pill); margin-bottom: 16px; width: fit-content; }
.price-tabs button { padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--muted); }
.price-tabs button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-row {
  display: grid; grid-template-columns: 28px 1fr auto;
  align-items: center; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.price-row:first-child { border-top: none; }
.price-row .flag {
  width: 28px; height: 20px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.price-row .flag img { width: 100%; height: 100%; object-fit: cover; }
.price-row .country { font-weight: 500; }
.price-row .price   { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* FAQ */
.faq-item summary {
  padding: 18px 0; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .a { padding: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ============================================================
   COMPARE PAGE
   ============================================================ */
.compare-hero {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px;
}
@media (max-width:800px) { .compare-hero { grid-template-columns: 1fr; } }
.compare-vs {
  font-family: var(--font-mono); font-weight: 800; font-size: 28px;
  align-self: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.compare-vs .vs { font-size: 48px; line-height: 1; color: var(--ink); }
.compare-side { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.compare-side .img-wrap {
  width: 100%; aspect-ratio: 1/1.05; background: var(--bg-3);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.compare-side .img-wrap img { width: 70%; height: 70%; object-fit: contain; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th,.compare-table td { padding: 16px; vertical-align: middle; font-size: 14px; }
.compare-table tr { border-top: 1px solid var(--line); }
.compare-table th { color: var(--muted); font-weight: 500; text-align: left; width: 200px; font-size: 13px; }
.compare-table td { font-family: var(--font-mono); }
.compare-table .winner { background: color-mix(in oklab,var(--mp-success) 10%,transparent); }
.compare-table .winner::after { content: " ✓"; color: var(--mp-success); font-weight: 700; }
.cmp-bar { height: 6px; border-radius: 999px; background: var(--bg-3); margin-top: 6px; overflow: hidden; }
.cmp-bar > span { display: block; height: 100%; background: var(--mp-blue); border-radius: 999px; transition: width .4s ease; }
.cmp-bar.win > span { background: var(--mp-success); }

/* ============================================================
   FINDER PAGE
   ============================================================ */
.finder-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
@media (max-width:900px) { .finder-grid { grid-template-columns: 1fr; } }
.filter-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; position: sticky; top: calc(var(--nav-h) + 24px);
}
.filter-group + .filter-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.filter-group h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; font-family: var(--font-mono); }
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 13px; cursor: pointer; transition: background .15s; }
.filter-opt:hover { background: var(--chip-bg); }
.filter-opt input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--mp-blue); }
.filter-opt .count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--bg-3); font: inherit; font-size: 13px;
  color: var(--ink); font-family: var(--font-mono);
}
.range-row input:focus { outline: 2px solid var(--mp-blue); border-color: var(--mp-blue); }

/* ============================================================
   BRAND ARCHIVE
   ============================================================ */
.brand-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px; transition: all .18s;
}
.brand-card:hover { border-color: var(--mp-blue); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.brand-card .logo-tile {
  width: 64px; height: 64px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; background: var(--bg-3);
  font-weight: 800; font-size: 22px; letter-spacing: -.04em; color: var(--ink); overflow: hidden;
}
.brand-card .logo-tile img { width: 80%; height: 80%; object-fit: contain; }
.brand-card .name  { font-weight: 700; font-size: 15px; }
.brand-card .count { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.brand-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
@media (max-width:1000px) { .brand-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 600px) { .brand-grid { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: inline-flex; gap: 4px; align-items: center; }
.pagination a,.pagination button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--ink); font-family: var(--font-mono);
  transition: background .15s; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center;
}
.pagination a:hover,.pagination button:hover { background: var(--chip-bg); }
.pagination .active,.pagination button.active { background: var(--ink); color: var(--bg); }
.pagination .dots { color: var(--muted); padding: 0 6px; }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); transition: all .18s; align-items: center;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--line-strong); }
.blog-card .b-img {
  aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; position: relative;
  background: linear-gradient(135deg,var(--mp-navy-2),var(--mp-navy));
}
.blog-card .b-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .b-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); font-family: var(--font-mono); flex-wrap: wrap; }
.blog-card .b-title  { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.blog-card .b-excerpt{ font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width:700px) { .blog-card { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.page-header .crumbs { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.page-header .crumbs a:hover { color: var(--ink); }
.page-header h1 { font-size: clamp(36px,5vw,56px); font-weight: 900; letter-spacing: -.035em; margin-top: 12px; }

/* ============================================================
   SORT BAR
   ============================================================ */
.sortbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sortbar .l { font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; }
.sort-btn { height: 32px; padding: 0 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); }
.sort-btn:hover  { background: var(--chip-bg); }
.sort-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.mp-footer {
  background: var(--mp-navy); color: rgba(255,255,255,.7);
  padding: 64px 0 32px; margin-top: 96px;
}
.mp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width:800px) { .mp-footer-grid { grid-template-columns: 1fr 1fr; } }
.mp-footer h5 { color: white; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-family: var(--font-mono); }
.mp-footer a { display: block; padding: 6px 0; font-size: 14px; transition: color .15s; color: rgba(255,255,255,.6); }
.mp-footer a:hover { color: white; }
.mp-footer .bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.4); font-family: var(--font-mono);
}

/* ============================================================
   RANK BADGE
   ============================================================ */
.rank-badge {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  border: 2px solid var(--paper);
}
.rank-badge.gold   { background: linear-gradient(135deg,#FFD700,#B8860B); color: #2A1A00; }
.rank-badge.silver { background: linear-gradient(135deg,#E5E7EB,#94A3B8); color: #1F2937; }
.rank-badge.bronze { background: linear-gradient(135deg,#D97757,#92400E); color: #1F2937; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mp-red); position: relative; }
.live-dot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--mp-red); opacity: .4; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform:scale(.7);opacity:.5; } 100% { transform:scale(1.6);opacity:0; } }

.skel { background: linear-gradient(90deg,var(--chip-bg) 0%,var(--bg-3) 50%,var(--chip-bg) 100%); background-size: 200% 100%; animation: skel 1.5s infinite; border-radius: var(--r-sm); }
@keyframes skel { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }

.empty-state { text-align: center; padding: 80px 32px; border: 2px dashed var(--line); border-radius: var(--r-lg); }
.empty-state .icon { width: 80px; height: 80px; border-radius: 50%; background: var(--chip-bg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 36px; }

::selection { background: color-mix(in oklab,var(--mp-blue) 60%,transparent); color: white; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.ad-slot { text-align: center; padding: 16px 0; }
.ad-slot-inline { margin: 32px 0; border-radius: var(--r-md); overflow: hidden; }

@media (max-width:800px) {
  .mp-nav { display: none; }
  .mp-search-trigger { min-width: auto; }
  .mp-search-trigger span { display: none; }
  .mp-search-trigger kbd { display: none; }
  .hero { padding: 64px 24px 56px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .brands-strip { padding: 32px 20px; }
}

/* ── Compatibility: icon-tag from price helper output ── */
.icon-tag::before { content: ""; }
.icon-tag {
  display: inline-block; width: 8px; height: 8px;
  background: var(--mp-blue); border-radius: 50%;
  margin-right: 4px; vertical-align: middle;
}
.pc-price .icon-tag { display: none; } /* hide in card — price text is enough */
