/* ============================================================
   NayaPakistan — Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@600;700;800&family=Noto+Nastaliq+Urdu:wght@400;600;700&display=swap');

:root {
  --green: #046a38;          /* Pakistan green */
  --green-bright: #00a86b;
  --green-soft: #e6f5ee;
  --gold: #d4a017;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .08), 0 16px 48px rgba(15, 23, 42, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --ticker-bg: var(--ink);
}
[data-theme="dark"] {
  --green: #10b981;
  --green-bright: #34d399;
  --green-soft: rgba(16, 185, 129, .12);
  --gold: #eab308;
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --line: #1e293b;
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #1a2332;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .5), 0 16px 48px rgba(0, 0, 0, .45);
  --ticker-bg: #050810;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
  overflow-x: hidden;
  min-width: 320px;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
/* Never let long strings (URLs, unbroken words) push the layout wider than the screen */
.article-body, .article-body p, .prose, .prose p, .card-body, .pkg-body, .qspec, .rate-row, .trend-item {
  overflow-wrap: break-word; word-wrap: break-word;
}
code { word-break: break-all; }

/* ---------- Urdu / RTL support ---------- */
html[lang="ur"] body,
html[data-lang="ur"] body {
  font-family: 'Noto Nastaliq Urdu', 'Inter', system-ui, sans-serif;
  line-height: 2;
}
html[data-lang="ur"] .logo-text,
html[data-lang="ur"] .section-title,
html[data-lang="ur"] .card-title,
html[data-lang="ur"] .article-title,
html[data-lang="ur"] .page-hero h1,
html[data-lang="ur"] .product-title,
html[data-lang="ur"] .widget-title {
  font-family: 'Noto Nastaliq Urdu', 'Sora', sans-serif;
  line-height: 1.8;
}
/* Right-to-left: flip section-title accent bar, sidebar shadow, ticker direction */
html[dir="rtl"] .section-title::before { margin-right: 0; margin-left: 12px; }
html[dir="rtl"] .snav.active { box-shadow: inset -3px 0 0 var(--green-bright); }

/* ---------- Dashboard: today breakdowns ---------- */
.today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dash-h { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.abar { margin-bottom: 11px; }
.abar:last-child { margin-bottom: 0; }
.abar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 4px; }
.abar-top span { font-weight: 600; }
.abar-top b { color: var(--muted); font-weight: 700; white-space: nowrap; }
.abar-track { height: 8px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.abar-fill { height: 100%; border-radius: 5px; transition: width .4s ease; }

/* ---------- Floating messages ----------
   Fixed to the viewport so an error is readable wherever you are on a long
   page — testing an AI key at the bottom of Settings should not require
   scrolling to the top to find out what happened. */
#toast-host {
  position: fixed; z-index: 9999; inset-block-end: 20px; inset-inline-end: 20px;
  display: flex; flex-direction: column; gap: 10px;
  width: min(440px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.55;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); border: 1px solid;
  animation: toast-in .22s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast-out { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.toast-ok  { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.toast-err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.toast-ic  { flex: 0 0 auto; font-size: 15px; line-height: 1.3; }
.toast-text { flex: 1; word-break: break-word; }
.toast-x {
  flex: 0 0 auto; border: 0; background: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: inherit; opacity: .55; padding: 0 2px;
}
.toast-x:hover { opacity: 1; }
@media (max-width: 560px) {
  #toast-host { inset-inline: 12px; inset-block-end: 12px; width: auto; }
}

/* ---------- Competitor Radar controls ---------- */
.rd-input {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600;
}
.rd-check { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.rd-check input { width: 15px; height: 15px; cursor: pointer; }
.rd-selbar { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 560px) {
  .rd-input { font-size: 12.5px; padding: 6px 8px; }
  .rd-check { font-size: 12.5px; }
}

/* ---------- Fuel prices page ---------- */
.fuel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 22px 0 30px; }
.fuel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.fc-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.fc-price { font-family: var(--font-head); font-size: 27px; font-weight: 800; color: var(--green-bright); margin: 6px 0 4px; }
.fc-meta { font-size: 12.5px; font-weight: 600; }
.fc-meta .up { color: #dc2626; } .fc-meta .down { color: #16a34a; }

.chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.fchart { width: 100%; height: auto; min-width: 520px; display: block; }
.fgrid { stroke: var(--line); stroke-width: 1; }
.fzero { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.flabel { font-size: 11px; fill: var(--muted); }
.chart-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.chart-key i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.fspark { width: 150px; height: 38px; }

.month-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.mc-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.mc-head h3 { font-family: var(--font-head); font-size: 19px; margin: 0; flex: 0 0 auto; }
.mc-net { margin-inline-start: auto; font-weight: 800; font-size: 15px; }
.mc-net.up { color: #dc2626; } .mc-net.down { color: #16a34a; }
.mc-net small { font-weight: 600; opacity: .75; }
.mc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mc-stats div { background: var(--surface-2); border-radius: 8px; padding: 9px 11px; font-size: 14px; font-weight: 700; }
.mc-stats b { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
@media (max-width: 560px) {
  .fc-price { font-size: 23px; }
  .mc-net { margin-inline-start: 0; }
}

/* ---------- Persistent inline notices ----------
   Distinct from `.msg`, which is a transient flash kept hidden until a
   .ok/.err modifier is added. These are always visible. */
.note { padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.55; margin-bottom: 10px; }
.note-warn { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.note-err  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.note-ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---------- Settings sub-tabs ---------- */
.set-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.set-tab {
  padding: 10px 16px; border: 0; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.set-tab:hover { color: var(--ink); }
.set-tab.active { color: var(--ink); border-bottom-color: var(--green-bright); }
/* Scoped by #view-settings so these beat the later `.card { display: block }`
   rule — a plain `.set-pane` selector loses on source order alone. */
#view-settings .set-pane { display: none; max-width: 760px; }
#view-settings .set-pane.active { display: block; }
@media (max-width: 560px) { .set-tab { padding: 9px 11px; font-size: 12.5px; } }

/* ---------- Editor formatting toolbar ---------- */
.fmt-bar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 6px 8px; margin-bottom: -1px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}
.fmt-btn {
  min-width: 32px; padding: 5px 9px; font-size: 13px; font-weight: 700;
  line-height: 1.2; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.fmt-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.fmt-btn:active { transform: translateY(1px); }
.fmt-hint { font-size: 11.5px; color: var(--muted); margin-inline-start: auto; padding-inline-end: 4px; }
.fmt-bar + textarea { border-radius: 0 0 8px 8px; }
@media (max-width: 560px) { .fmt-hint { display: none; } }
html[dir="rtl"] .breadcrumb { text-align: right; }
/* Urdu is a cursive, connected script — a drop cap rips the first letter out of
   its ligature and looks broken. Disable it entirely in Urdu and use a subtle
   larger lead paragraph instead, which is the normal Urdu-press convention. */
html[data-lang="ur"] .article-body p:first-of-type::first-letter,
html[dir="rtl"] .article-body p:first-of-type::first-letter {
  float: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  color: inherit;
  -webkit-text-stroke: 0;
}
html[data-lang="ur"] .article-body p:first-of-type {
  font-size: 1.06em;
  font-weight: 600;
  color: var(--ink);
}
html[dir="rtl"] .pc-card.good li::before,
html[dir="rtl"] .pc-card.bad li::before { left: auto; right: 0; }
html[dir="rtl"] .pc-card li { padding: 7px 26px 7px 0; }
html[dir="rtl"] .card-meta .sep { display: inline; }
/* Emojis stay LTR so 🇵🇰 doesn't get reversed */
html[dir="rtl"] .badge, html[dir="rtl"] .stat-card .n,
html[dir="rtl"] .rate-row .r-value, html[dir="rtl"] .price-tag { direction: ltr; unicode-bidi: embed; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
[data-theme="dark"] .topbar { background: #052e1c; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar .date { opacity: .9; white-space: nowrap; }
.topbar-links { display: flex; gap: 18px; overflow: hidden; }
.topbar-links a { opacity: .85; white-space: nowrap; transition: opacity .2s; }
.topbar-links a:hover { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 100%);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(4, 106, 56, .35);
}
.logo-text { font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.logo-text .naya { color: var(--green-bright); }
.logo-sub { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.search-box { position: relative; }
.search-box input {
  width: 300px; padding: 11px 42px 11px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface-2); color: var(--ink);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .2s, width .3s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--green-bright); box-shadow: 0 0 0 4px var(--green-soft); }
.search-box .search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; display: none; max-height: 420px; overflow-y: auto;
}
.search-results.open { display: block; }
.search-results a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--surface-2); }
.search-results .sr-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.search-results .sr-empty { padding: 16px; color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 22px; border-radius: 999px; border: none;
  font-size: 14px; font-weight: 700; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-bright)); color: #fff; box-shadow: 0 4px 14px rgba(4, 106, 56, .3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(4, 106, 56, .4); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface-2); color: var(--ink); display: grid; place-items: center;
  font-size: 17px; transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--green-soft); transform: translateY(-1px); }
/* Language switch: short label ("ENG" / "اردو") sized to fit the round button */
.lang-btn {
  font-weight: 800; font-size: 12px; letter-spacing: .3px; line-height: 1;
  padding: 0; overflow: hidden; white-space: nowrap;
}
html[data-lang="ur"] .lang-btn { font-family: var(--font); font-size: 11.5px; }

/* ---------- Nav ---------- */
.main-nav {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
/* Wrap to a second line on desktop so NO category is ever clipped, however many
   channels exist (Jobs, Education, Health…). Mobile switches to swipe-scroll below. */
.nav-inner { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; row-gap: 0; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  border-bottom: 3px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s;
}
.nav-inner a:hover, .nav-inner a.active { color: var(--green-bright); border-bottom-color: var(--green-bright); }
.nav-inner a.nav-hot { color: var(--gold); }
.nav-inner .n-ico { font-size: 15px; line-height: 1; }

/* ---------- Row-1 grouped dropdowns (Technology ▾, National ▾ …) ---------- */
.nav-group { position: relative; display: inline-flex; }
.nav-caret { font-size: 10px; margin-left: 1px; opacity: .65; }
.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 12px 12px; box-shadow: 0 16px 36px rgba(0,0,0,.16);
  padding: 6px; display: none; flex-direction: column; z-index: 60;
}
.nav-group:hover > .nav-drop, .nav-group.open > .nav-drop { display: flex; }
.nav-drop a {
  padding: 9px 12px; border-bottom: none !important; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.nav-drop a:hover { background: color-mix(in srgb, var(--green-bright) 12%, transparent); color: var(--green-bright); }
[dir="rtl"] .nav-drop { left: auto; right: 0; }

/* Row 1 = news categories (primary). Row 2 = prices & tools (secondary, quieter).
   Two rows so more categories (Jobs, Finance…) can be added without crowding. */
.nav-row-1 a { font-weight: 700; }
.nav-row-2 { border-top: 1px solid var(--line); }
.nav-row-2 a { padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.nav-row-2 a:hover, .nav-row-2 a.active { color: var(--green-bright); }
.nav-row-2 .n-ico { font-size: 14px; }

/* ---------- Breaking ticker ---------- */
.ticker { background: var(--ticker-bg); color: #fff; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; height: 42px; }
.ticker-label {
  background: #dc2626; padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0;
}
.ticker-label .dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-items { display: flex; gap: 48px; white-space: nowrap; animation: ticker 45s linear infinite; padding-left: 24px; width: max-content; }
.ticker-track:hover .ticker-items { animation-play-state: paused; }
.ticker-items a { font-size: 13.5px; opacity: .9; display: inline-flex; align-items: center; gap: 10px; }
.ticker-items a:hover { opacity: 1; text-decoration: underline; }
.ticker-items a::before { content: "●"; color: var(--green-bright); font-size: 9px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }

.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s; position: relative; display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-cover { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.card-cover .cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .cover-art { transform: scale(1.05); }
.card-overlay .card-cover { aspect-ratio: auto; position: absolute; inset: 0; }
.card-overlay { min-height: 240px; display: flex; align-items: flex-end; }
.card-overlay .card-body { position: relative; z-index: 2; padding: 22px; width: 100%; background: linear-gradient(transparent, rgba(2, 6, 23, .88) 55%); color: #fff; }
.card-overlay .card-title { color: #fff; }
.card-overlay .card-meta { color: rgba(255,255,255,.75); }
.hero-main.card-overlay { min-height: 460px; }
.hero-main .card-title { font-size: 28px; line-height: 1.25; }
.hero-side .card-overlay { min-height: 0; }
.hero-side .card-title { font-size: 17px; }

.card-body { padding: 18px 20px; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.4; letter-spacing: -.2px; margin: 8px 0 8px; }
.card-title a:hover, a.card:hover .card-title { color: var(--green-bright); }
.card-excerpt { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 12px; font-weight: 500; }
.card-meta .sep { opacity: .5; }

.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: #fff; background: var(--green);
}

/* ---------- Sections ---------- */
.section { padding: 36px 0 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -.4px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 5px; height: 26px; border-radius: 3px; background: var(--accent, var(--green-bright)); }
.see-all { font-size: 13.5px; font-weight: 700; color: var(--green-bright); display: inline-flex; align-items: center; gap: 6px; }
.see-all:hover { gap: 10px; }
.see-all { transition: gap .2s; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Horizontal list card */
.list-card { display: flex; gap: 16px; padding: 14px; align-items: stretch; }
.list-card .card-cover { width: 150px; flex-shrink: 0; aspect-ratio: 4/3; border-radius: var(--radius-sm); }
.list-card .card-body { padding: 2px 4px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-card .card-title { font-size: 15.5px; margin-top: 6px; }

/* ---------- Layout: main + sidebar ---------- */
/* NOTE: only set vertical padding here. Using the `padding` shorthand would
   override .container's horizontal padding (this class is used together with
   .container and is defined later), which made article text touch the screen
   edge on phones. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-top: 32px; padding-bottom: 32px; }
/* minmax(0,…) lets the main column shrink below its content's natural width so
   nothing overflows the screen on phones (otherwise cards get clipped at the edge). */
.layout > main { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 70px; }

.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.widget-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.widget-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.widget-body { padding: 8px 18px 14px; }
.widget .updated { font-size: 11px; color: var(--muted); }

.rate-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.rate-row:last-child { border-bottom: none; }
.rate-row .r-label { font-weight: 600; }
.rate-row .r-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.rate-row .up { color: #dc2626; font-size: 11.5px; font-weight: 700; }
.rate-row .down { color: var(--green-bright); font-size: 11.5px; font-weight: 700; }

.trend-item { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.trend-item:last-child { border-bottom: none; }
.trend-num { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--line); -webkit-text-stroke: 1px var(--muted); color: transparent; line-height: 1; flex-shrink: 0; }
.trend-item a { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.trend-item a:hover { color: var(--green-bright); }

.newsletter { background: linear-gradient(135deg, var(--green) 0%, #063e24 100%); color: #fff; border: none; }
.newsletter .widget-body { padding: 22px; }
.newsletter h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 6px; }
.newsletter p { font-size: 13px; opacity: .85; margin-bottom: 14px; }
.newsletter input {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: none; outline: none;
  font-size: 14px; margin-bottom: 10px; font-family: inherit;
}
.newsletter .btn { width: 100%; background: var(--gold); color: #1a1a1a; box-shadow: none; }

/* ---------- Category chips row ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2);
  transition: all .2s; cursor: pointer;
}
.chip:hover, .chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Page hero (category/static pages) ---------- */
.page-hero { padding: 40px 0 28px; }
.page-hero h1 { font-family: var(--font-head); font-size: 36px; font-weight: 800; letter-spacing: -.8px; display: flex; align-items: center; gap: 14px; }
.page-hero p { color: var(--muted); margin-top: 8px; max-width: 640px; font-size: 15.5px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.breadcrumb a:hover { color: var(--green-bright); }

/* ---------- Article page ---------- */
.article-page { max-width: 780px; }
.article-title { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1.25; letter-spacing: -.7px; margin: 14px 0 18px; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.article-meta .a-name { font-weight: 700; font-size: 14.5px; }
.article-meta .a-date { font-size: 12.5px; color: var(--muted); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 22px 0; box-shadow: var(--shadow); }
.article-body p { font-size: 17px; line-height: 1.85; color: var(--ink-2); margin-bottom: 22px; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-head); font-size: 52px; font-weight: 800; float: left;
  line-height: .95; margin: 4px 12px 0 0; color: var(--green-bright);
}
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0; }
.article-tags .chip { font-size: 12.5px; padding: 6px 14px; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.share-row span { font-size: 13.5px; font-weight: 700; margin-right: 6px; }

/* ---------- Tables (mobiles / packages) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th {
  text-align: left; padding: 13px 18px; background: var(--surface-2);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--surface-2); }
.price-tag { font-weight: 800; color: var(--green-bright); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Mobile cards ---------- */
.phone-card { padding: 20px; text-align: left; }
.phone-card .p-brand { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.phone-card .p-model { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin: 4px 0 10px; }
.phone-card .p-price { font-size: 20px; font-weight: 800; color: var(--green-bright); margin-bottom: 12px; }
.phone-card .p-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.phone-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.phone-specs span { display: flex; align-items: center; gap: 6px; }
.phone-icon {
  width: 100%; aspect-ratio: 16/8; border-radius: var(--radius-sm); margin-bottom: 14px;
  display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, var(--surface-2), var(--green-soft));
}
.phone-card .badge { position: absolute; top: 14px; right: 14px; background: var(--gold); color: #1a1a1a; }

/* ---------- Tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tool-card { padding: 26px; }
.tool-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tool-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.tool-card label { display: block; font-size: 12.5px; font-weight: 700; margin: 12px 0 6px; color: var(--ink-2); }
.tool-card input, .tool-card select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); font-size: 14.5px; font-family: inherit; outline: none;
  transition: border-color .2s;
}
.tool-card input:focus, .tool-card select:focus { border-color: var(--green-bright); }
.tool-result {
  margin-top: 16px; padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--green-soft); font-weight: 700; font-size: 15px;
  border: 1px dashed var(--green-bright); min-height: 52px; display: flex; align-items: center;
}
.tool-result strong { color: var(--green-bright); font-size: 19px; margin-left: 8px; }

/* ---------- Static / contact ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-head); font-size: 22px; margin: 30px 0 12px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; font-size: 15.5px; }
.prose h3 { font-family: var(--font-head); font-size: 18px; margin: 24px 0 10px; }

/* ---------- Rich text written with the editor toolbar ---------- */
/* Shared by article bodies and custom pages. */
.article-body h3, .prose h3 { font-family: var(--font-head); font-weight: 800; }
.art-list { margin: 4px 0 18px; padding-inline-start: 24px; }
.art-list li { color: var(--ink-2); font-size: 15.8px; line-height: 1.75; margin-bottom: 8px; }
.art-list li::marker { color: var(--green-bright); font-weight: 700; }
ul.art-list { list-style: disc; }
ol.art-list { list-style: decimal; }
.art-quote {
  margin: 20px 0; padding: 14px 20px; font-size: 16.5px; line-height: 1.7;
  color: var(--ink); background: var(--surface-2); border-radius: 10px;
  border-inline-start: 4px solid var(--green-bright); font-style: italic;
}
.article-body strong, .prose strong { font-weight: 800; color: var(--ink); }
.article-body a, .prose a { color: var(--green-bright); font-weight: 700; }
/* Urdu is set in a cursive script — italics distort it, so keep quotes upright */
[dir="rtl"] .art-quote { font-style: normal; }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0; }
.stat-band .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--green-bright); }
.stat .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; align-items: start; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); font-size: 14.5px; font-family: inherit; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green-bright); }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 14px; align-items: center; }
.info-row:last-child { border: none; }
.info-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #071a10; color: #cbd5e1; margin-top: 56px; }
[data-theme="dark"] .site-footer { background: #050d09; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 40px; }
.footer-main h4 { color: #fff; font-family: var(--font-head); font-size: 15px; margin-bottom: 16px; }
.footer-main ul { list-style: none; }
.footer-main li { margin-bottom: 9px; }
.footer-main a { font-size: 13.5px; opacity: .75; transition: opacity .2s, color .2s; }
.footer-main a:hover { opacity: 1; color: var(--green-bright); }
/* The categories column can get long — flow it into two balanced columns so the
   footer stays compact and professional instead of one tall list. */
.footer-cats { columns: 2; column-gap: 22px; }
.footer-cats li { break-inside: avoid; }
.footer-about p { font-size: 13.5px; opacity: .75; margin: 14px 0 18px; line-height: 1.7; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; font-size: 15px; transition: background .2s, transform .15s;
}
.social-row a:hover { background: var(--green); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; opacity: .65; gap: 12px; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-24 { margin-bottom: 24px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.toolbar select, .toolbar input {
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 13.5px; font-family: inherit; outline: none;
}

/* ---------- Product detail page ---------- */
.product-head { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; margin-bottom: 30px; }
.product-visual {
  aspect-ratio: 3/4; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 90px; background: linear-gradient(160deg, var(--green-soft), var(--surface-2));
  border: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 80px;
}
.product-title { font-family: var(--font-head); font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.product-brand { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.product-price { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--green-bright); margin: 10px 0 2px; }
.product-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.stars small { color: var(--muted); font-size: 12.5px; letter-spacing: 0; margin-left: 6px; }
.qspec-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.qspec {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 16px; font-size: 13px;
}
.qspec b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.spec-sheet { margin: 10px 0 26px; }
.spec-sheet .group-row td { background: var(--green-soft) !important; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--green); }
[data-theme="dark"] .spec-sheet .group-row td { color: var(--green-bright); }
.spec-sheet td:first-child { width: 220px; font-weight: 700; color: var(--ink-2); }
/* Product review — verdict box */
.verdict-box {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(4,106,56,.08), rgba(245,158,11,.06));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
}
.verdict-score { flex: 0 0 auto; text-align: center; min-width: 130px; }
.vs-num { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--green-bright); line-height: 1; }
.vs-num small { font-size: 18px; color: var(--muted); font-weight: 700; }
.vs-bar { height: 8px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 8px 0 5px; }
.vs-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #f59e0b, var(--green-bright)); }
.vs-label { font-size: 12.5px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .4px; }
.verdict-body { flex: 1; min-width: 240px; }
.verdict-h { font-family: var(--font-head); font-size: 18px; margin: 0 0 6px; }
.verdict-text { font-size: 15.5px; line-height: 1.6; color: var(--ink); margin: 0; }
.verdict-bestfor { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
.verdict-bestfor span { font-weight: 800; color: var(--green-bright); }
@media (max-width: 560px) { .verdict-box { gap: 14px; padding: 16px; } .verdict-score { min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
  .verdict-score .vs-bar { width: 90px; margin: 0; } }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.pc-card { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.pc-card h3 { font-family: var(--font-head); font-size: 16px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.pc-card ul { list-style: none; }
.pc-card li { padding: 7px 0 7px 26px; position: relative; font-size: 14px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.pc-card li:last-child { border-bottom: none; }
.pc-card.good li::before { content: "✔"; position: absolute; left: 0; color: var(--green-bright); font-weight: 800; }
.pc-card.bad li::before { content: "✘"; position: absolute; left: 0; color: #dc2626; font-weight: 800; }

/* ---------- Rates page ---------- */
.rate-section { padding: 30px 0 6px; scroll-margin-top: 80px; }
.rate-hero-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 6px 0 10px; }
.rate-hero-cards a.stat { display: block; transition: transform .2s, box-shadow .2s; }
.rate-hero-cards a.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rate-hero-cards .num { font-size: 24px; }
.disco-card { margin-bottom: 12px; overflow: hidden; }
.disco-card summary {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; cursor: pointer;
  list-style: none; font-weight: 700; flex-wrap: wrap;
}
.disco-card summary::-webkit-details-marker { display: none; }
.disco-card summary .d-region { font-size: 12.5px; color: var(--muted); font-weight: 500; flex: 1; min-width: 160px; }
.disco-card summary .d-rate { font-family: var(--font-head); font-weight: 800; color: var(--green-bright); white-space: nowrap; }
.disco-card summary .d-arrow { transition: transform .2s; color: var(--muted); }
.disco-card[open] summary .d-arrow { transform: rotate(90deg); }
.disco-card .d-charges { padding: 4px 18px 16px; border-top: 1px dashed var(--line); }
.disco-card .rate-row .r-label small { color: var(--muted); font-weight: 500; }
.topbar-links a { cursor: pointer; }

/* ---------- Images inside article body ---------- */
.art-img { margin: 24px 0; }
.art-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.art-img figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; font-weight: 500; }

/* ---------- Mid-article "you may also like" card ---------- */
.inline-read {
  margin: 26px 0; padding: 16px 18px; border-radius: var(--radius);
  border: 1.5px solid var(--line); border-inline-start: 4px solid var(--green-bright);
  background: var(--surface-2); display: flex; gap: 14px; align-items: center;
}
.inline-read .ir-body { flex: 1; min-width: 0; }
.inline-read .ir-kicker {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--green-bright); display: block; margin-bottom: 5px;
}
.inline-read a.ir-link {
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px; line-height: 1.4;
  color: var(--ink); display: block;
}
.inline-read a.ir-link:hover { color: var(--green-bright); }
.inline-read .ir-thumb {
  width: 84px; height: 64px; border-radius: 10px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
@media (max-width: 560px) {
  .inline-read { padding: 13px 14px; gap: 11px; margin: 20px 0; }
  .inline-read .ir-thumb { width: 64px; height: 52px; }
  .inline-read a.ir-link { font-size: 14px; }
}

/* ---------- Follow-us strip ---------- */
.follow-strip {
  margin: 30px 0; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-soft), var(--surface));
  border: 1.5px solid var(--green-bright); text-align: center;
}
.follow-strip .f-head { font-family: var(--font-head); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.follow-strip .f-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.follow-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--surface); border: 1.5px solid var(--line);
  transition: transform .15s, box-shadow .2s;
}
.follow-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--fc); }
.follow-btn .f-ic {
  width: 24px; height: 24px; border-radius: 50%; background: var(--fc); color: #fff;
  display: grid; place-items: center; font-size: 12px;
}

/* ---------- Packages card UI ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.pkg-card { padding: 0; overflow: hidden; }
.pkg-top { padding: 14px 18px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.pkg-top .net { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.pkg-top .val { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 999px; }
.pkg-body { padding: 16px 18px 18px; }
.pkg-name { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.pkg-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.pkg-stat { flex: 1; background: var(--surface-2); border-radius: 10px; padding: 9px 6px; text-align: center; }
.pkg-stat b { display: block; font-size: 13.5px; }
.pkg-stat span { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.pkg-foot { display: flex; justify-content: space-between; align-items: center; }
.pkg-price { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--green-bright); }
.pkg-price small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pkg-code {
  background: var(--surface-2); border: 1.5px dashed var(--line); border-radius: 9px;
  padding: 6px 12px; font-weight: 800; font-size: 13px; cursor: pointer; transition: border-color .2s;
}
.pkg-code:hover { border-color: var(--green-bright); }

/* ---------- Tool result breakdown & chart ---------- */
.tool-breakdown { margin-top: 14px; }
.tb-bar-row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 10px; align-items: center; margin: 7px 0; font-size: 12.5px; }
.tb-bar-row .lbl { font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-bar-row .val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tb-track { height: 18px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.tb-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--green-bright)); min-width: 2px; transition: width .4s; }
.tb-fill.alt { background: linear-gradient(90deg, #d97706, var(--gold)); }
.tool-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; border-top: 1px dashed var(--line); padding-top: 10px; }
.tool-info { margin-top: 40px; }
.tool-info .card { padding: 24px; margin-bottom: 18px; }
.tool-info h3 { font-family: var(--font-head); font-size: 17px; margin-bottom: 8px; }
.tool-info p { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; line-height: 1.7; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-main.card-overlay { min-height: 380px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  /* Inline padding-top on some pages must not kill side padding either */
  .container.layout { padding-left: 20px; padding-right: 20px; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .product-head { grid-template-columns: 1fr; }
  .product-visual { aspect-ratio: 16/8; position: static; font-size: 64px; }
  .pros-cons { grid-template-columns: 1fr; }
}
/* ---- Tablet and below ---- */
@media (max-width: 720px) {
  .topbar-links { display: none; }
  .search-box input { width: 160px; }
  .search-box input:focus { width: 200px; }
  .header-actions .btn-primary { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .tool-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .hero-main .card-title { font-size: 21px; }
  .article-title { font-size: 26px; }
  .page-hero h1 { font-size: 27px; }
  .list-card .card-cover { width: 110px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .logo-sub { display: none; }
}

/* ---- Phones (the real fix — most Pakistani users are here) ---- */
@media (max-width: 560px) {
  .container { padding: 0 14px; }

  /* Topbar: hide date, show only compact rate chips */
  .topbar { font-size: 11.5px; }
  .topbar-inner { height: 34px; gap: 8px; }
  .topbar .date { font-size: 11px; }
  .topbar-right { display: none; }

  /* Header slimmer */
  .header-inner { padding: 12px 0; gap: 10px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 11px; }
  .logo-mark svg { width: 22px; height: 22px; }
  .logo-text { font-size: 20px; }
  .header-actions { gap: 8px; }
  .search-box input { width: 130px; padding: 9px 34px 9px 12px; font-size: 13px; }
  .search-box input:focus { width: 150px; }
  .search-box .search-icon { right: 12px; }
  .icon-btn { width: 36px; height: 36px; font-size: 15px; }

  /* Nav — on phones, swipe horizontally instead of wrapping (keeps it short). */
  .nav-inner { gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav-inner a { padding: 10px 11px; font-size: 13px; gap: 5px; }
  .nav-inner .n-ico { font-size: 14px; }
  .nav-row-2 a { padding: 8px 11px; font-size: 12.5px; }

  /* Ticker — quieter on phones */
  .ticker-inner { height: 36px; }
  .ticker-label { padding: 0 11px; font-size: 10.5px; letter-spacing: .6px; }
  .ticker-items a { font-size: 12.5px; }

  /* Hero */
  .hero { padding: 18px 0 4px; }
  .hero-grid { gap: 14px; }
  .hero-main.card-overlay { min-height: 300px; }
  .hero-main .card-title { font-size: 19px; }
  .card-overlay .card-body { padding: 16px; }
  .hero-side .card-title { font-size: 15px; }

  /* Sections */
  .section { padding: 22px 0 4px; }
  .section-title { font-size: 18px; }
  .section-title::before { width: 4px; height: 22px; }
  .see-all { font-size: 12.5px; }

  /* List cards */
  .list-card { padding: 10px; gap: 12px; }
  .list-card .card-cover { width: 92px; border-radius: 8px; }
  .list-card .card-title { font-size: 14px; line-height: 1.35; }
  .list-card .card-body { padding: 0; }
  .card-meta { font-size: 11px; margin-top: 8px; }

  /* Category chips row */
  .chips { gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { padding: 7px 14px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }

  /* Layout: single column on phones */
  .layout { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; padding-bottom: 20px; }
  .sidebar { gap: 16px; }

  /* Page hero */
  .page-hero { padding: 26px 0 18px; }
  .page-hero h1 { font-size: 22px; gap: 8px; }
  .page-hero p { font-size: 14px; }

  /* Article page — the most-visited page, needs to breathe */
  .article-page { max-width: none; }
  .article-title { font-size: 22px; letter-spacing: -.4px; line-height: 1.28; margin: 10px 0 14px; }
  .article-meta { gap: 10px; padding-bottom: 14px; margin-bottom: 4px; }
  .avatar { width: 38px; height: 38px; font-size: 14px; }
  .article-meta .a-name { font-size: 13.5px; }
  .article-meta .a-date { font-size: 11.5px; }
  .article-cover { margin: 16px 0; }
  .article-body p { font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
  .article-body p:first-of-type::first-letter { font-size: 40px; margin: 3px 10px 0 0; }
  .article-tags { margin: 18px 0; }
  .share-row { padding: 14px 0; margin-bottom: 22px; flex-wrap: wrap; }
  .share-row span { font-size: 12.5px; }

  /* Cards */
  .card-body { padding: 14px 16px; }
  .card-title { font-size: 15.5px; }
  .card-excerpt { font-size: 12.5px; }

  /* Product page */
  .product-title { font-size: 24px; }
  .product-brand { font-size: 11.5px; }
  .product-price { font-size: 24px; }
  .product-price small { font-size: 12px; }
  .qspec { padding: 8px 12px; font-size: 12px; }
  .qspec b { font-size: 10px; }
  .pros-cons { gap: 12px; }
  .pc-card { padding: 16px; }
  .pc-card li { font-size: 13px; padding: 6px 0 6px 22px; }
  .spec-sheet td:first-child { width: 130px; font-size: 12.5px; }
  .spec-sheet td { padding: 10px 12px; font-size: 12.5px; }
  table.data th { padding: 10px 12px; font-size: 10.5px; }
  table.data td { padding: 10px 12px; font-size: 12.5px; }

  /* Widgets */
  .widget-head { padding: 12px 15px; }
  .widget-title { font-size: 13.5px; }
  .widget-body { padding: 6px 15px 12px; }
  .rate-row { font-size: 12.5px; padding: 8px 0; }
  .trend-item a { font-size: 12.5px; }
  .trend-num { font-size: 19px; }
  .newsletter .widget-body { padding: 18px; }
  .newsletter h3 { font-size: 17px; }
  .newsletter p { font-size: 12.5px; }

  /* Tools breakdown chart — the 130px label column was too wide */
  .tb-bar-row { grid-template-columns: 110px 1fr 74px; font-size: 11.5px; gap: 8px; }
  .tool-card { padding: 20px; }
  .tool-card h3 { font-size: 16px; }
  .tool-card > p { font-size: 12.5px; }
  .tool-result { font-size: 13.5px; padding: 12px 14px; }
  .tool-result strong { font-size: 16px; }

  /* Package cards */
  .pkg-grid { grid-template-columns: 1fr; gap: 14px; }
  .pkg-top { padding: 12px 15px; }
  .pkg-body { padding: 14px 15px 16px; }
  .pkg-price { font-size: 18px; }

  /* Follow strip */
  .follow-strip { padding: 18px; margin: 22px 0; }
  .follow-strip .f-head { font-size: 15px; margin-bottom: 12px; }
  .follow-btn { padding: 7px 14px; font-size: 12.5px; }

  /* Rates page */
  .rate-section { padding: 22px 0 2px; }
  .rate-hero-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rate-hero-cards .num { font-size: 18px; }
  .stat-card .n { font-size: 22px; }
  .stat-card { padding: 14px 16px; }
  #gold-wrap { grid-template-columns: 1fr !important; gap: 14px !important; }
  #fuel-break-wrap { grid-template-columns: 1fr !important; }
  .disco-card summary { padding: 12px 15px; gap: 10px; font-size: 13.5px; }
  .disco-card summary .d-region { min-width: 100%; order: 3; font-size: 11.5px; }

  /* Article body images */
  .art-img { margin: 18px 0; }
  .art-img figcaption { font-size: 11.5px; }

  /* Footer — two columns of links on phones instead of one long stack */
  .footer-main { padding: 34px 0 24px; gap: 22px 18px; grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-main h4 { font-size: 13.5px; margin-bottom: 12px; }
  .footer-about p { font-size: 12.5px; }
  .footer-main a { font-size: 12.5px; }
  .footer-bottom { font-size: 11.5px; padding: 14px 0; }

  /* Breadcrumb */
  .breadcrumb { font-size: 12px; margin-bottom: 8px; }

  /* Buttons: bigger tap targets */
  .btn { padding: 10px 18px; font-size: 13.5px; }
  .btn-primary, .btn-ghost { min-height: 40px; }

  /* Toolbars */
  .toolbar { gap: 8px; }
  .toolbar select, .toolbar input { padding: 8px 12px; font-size: 12.5px; }
}

/* ---- Very small phones (<= 380px, common budget devices) ---- */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .article-title { font-size: 20px; }
  .page-hero h1 { font-size: 19px; }
  .product-title { font-size: 21px; }
  .product-price { font-size: 21px; }
  .article-body p { font-size: 15px; }
  .article-body p:first-of-type::first-letter { font-size: 36px; }
  .search-box input { width: 100px; }
  .icon-btn { width: 34px; height: 34px; font-size: 14px; }
  .logo-text { font-size: 18px; }
  .rate-hero-cards { grid-template-columns: 1fr; }
  .tb-bar-row { grid-template-columns: 90px 1fr 64px; font-size: 11px; gap: 6px; }
}

/* ============ Author card (after each article) ============ */
.author-card{
  display:flex; gap:18px; align-items:flex-start;
  margin:30px 0 8px; padding:22px;
  background:var(--card); border:1px solid var(--line); border-left:4px solid var(--green-bright);
  border-radius:14px;
}
.author-photo{
  width:78px; height:78px; flex-shrink:0;
  border-radius:50%; object-fit:cover;
  border:3px solid var(--green-bright);
}
.author-photo-fallback{
  display:grid; place-items:center;
  background:var(--green); color:#fff;
  font-family:var(--font-head); font-size:32px; font-weight:800;
}
.author-meta{min-width:0}
.author-kicker{
  font-size:11px; letter-spacing:.10em; text-transform:uppercase;
  color:var(--muted); font-weight:700; margin-bottom:3px;
}
.author-name{font-family:var(--font-head); font-size:19px; line-height:1.25; margin:0}
.author-role{font-size:13px; font-weight:700; color:var(--green-bright); margin-top:2px}
.author-bio{font-size:14px; line-height:1.65; color:var(--muted); margin:9px 0 0}
.author-links{display:flex; gap:8px; margin-top:12px; flex-wrap:wrap}
.author-links a{
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:9px;
  font-size:15px; text-decoration:none; color:var(--ink);
  transition:background .15s, border-color .15s, transform .15s;
}
.author-links a:hover{background:var(--green); border-color:var(--green); color:#fff; transform:translateY(-2px)}

/* Urdu bylines read right-to-left */
html[dir="rtl"] .author-card{border-left:1px solid var(--line); border-right:4px solid var(--green-bright)}

@media (max-width:560px){
  .author-card{flex-direction:column; align-items:center; text-align:center; padding:20px 16px}
  .author-photo{width:66px; height:66px}
  .author-links{justify-content:center}
}

/* ============================================================
   Floating, draggable action buttons (WhatsApp share + translate)
   ============================================================ */
.np-fab{
  position:fixed; right:16px; bottom:calc(16px + env(safe-area-inset-bottom,0px));
  z-index:1200; display:flex; flex-direction:column; align-items:center; gap:12px;
  touch-action:none; user-select:none; -webkit-user-select:none;
  opacity:0; transform:translateY(14px) scale(.92);
  transition:opacity .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.4);
}
.np-fab.show{opacity:1; transform:none}
.np-fab.grabbing{transition:none; cursor:grabbing}
.np-fab-btn{
  width:54px; height:54px; border-radius:50%; border:none; cursor:pointer;
  display:grid; place-items:center; color:#fff; position:relative;
  box-shadow:0 6px 16px rgba(15,23,42,.28), 0 2px 5px rgba(15,23,42,.2);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.np-fab-btn:hover{transform:translateY(-3px) scale(1.05); box-shadow:0 12px 26px rgba(15,23,42,.34)}
.np-fab-btn:active{transform:scale(.94)}
.np-fab-btn::after{ /* pulse ring */
  content:""; position:absolute; inset:0; border-radius:50%;
  box-shadow:0 0 0 0 currentColor; opacity:.5; animation:npFabPulse 2.6s ease-out infinite;
}
@keyframes npFabPulse{0%{box-shadow:0 0 0 0 rgba(0,168,107,.5)} 70%,100%{box-shadow:0 0 0 14px rgba(0,168,107,0)}}
.np-fab-wa{background:linear-gradient(145deg,#25d366,#12a150)}
.np-fab-wa::after{animation-name:npFabPulseWA}
@keyframes npFabPulseWA{0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%,100%{box-shadow:0 0 0 14px rgba(37,211,102,0)}}
.np-fab-tr{background:linear-gradient(145deg,var(--green-bright),var(--green))}
.np-fab-tr::after{animation-name:npFabPulseTR}
@keyframes npFabPulseTR{0%{box-shadow:0 0 0 0 rgba(4,106,56,.45)} 70%,100%{box-shadow:0 0 0 14px rgba(4,106,56,0)}}
.np-fab-tr-txt{font-family:var(--font-head); font-weight:800; font-size:15px; line-height:1; letter-spacing:.2px}
.np-fab-grip{
  color:var(--muted); font-size:15px; line-height:1; cursor:grab;
  opacity:.55; letter-spacing:-2px; margin-top:-2px; padding:2px 8px;
}
.np-fab-grip:hover{opacity:.9}
/* Little permanent label so first-time visitors know what the buttons do */
.np-fab-btn::before{
  content:attr(aria-label); position:absolute; right:calc(100% + 12px); top:50%;
  transform:translateY(-50%) translateX(6px); white-space:nowrap;
  background:var(--ink); color:var(--surface); font-size:12px; font-weight:600;
  padding:6px 10px; border-radius:8px; pointer-events:none;
  opacity:0; transition:opacity .18s ease, transform .18s ease; box-shadow:var(--shadow);
}
.np-fab-btn:hover::before{opacity:1; transform:translateY(-50%) translateX(0)}
html[dir="rtl"] .np-fab-btn::before{right:auto; left:calc(100% + 12px)}
@media (max-width:560px){
  .np-fab{right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px)); gap:10px}
  .np-fab-btn{width:50px; height:50px}
  .np-fab-btn::before{display:none} /* no room for the hover label on phones */
}
@media (prefers-reduced-motion:reduce){
  .np-fab,.np-fab-btn{transition:none}
  .np-fab-btn::after{animation:none}
}

/* ============================================================
   Tasteful polish — additive refinements across all breakpoints
   ============================================================ */
/* Springier card lift so grids feel alive without changing the look */
.card{transition:transform .28s cubic-bezier(.2,.7,.3,1.2), box-shadow .28s ease}
/* Cover art fades in instead of popping when it loads */
.card-cover .cover-art,.article-cover img{opacity:1; animation:npFadeIn .5s ease both}
@keyframes npFadeIn{from{opacity:0} to{opacity:1}}
/* Keyboard users get a clear, on-brand focus ring everywhere */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.btn:focus-visible{
  outline:2px solid var(--green-bright); outline-offset:2px; border-radius:6px;
}
/* Primary buttons get a subtle gradient + lift for a more premium feel */
.btn-primary{background:linear-gradient(145deg,var(--green-bright),var(--green)); border:none}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(4,106,56,.28)}
/* Section titles get a small brand accent bar */
.section-title{position:relative}
/* Comfortable tap targets + no accidental horizontal scroll on phones */
@media (max-width:560px){
  .btn,.icon-btn,.nav-inner a{min-height:40px}
  .btn-sm{min-height:34px}
  img{max-width:100%; height:auto}
}
/* Nav links slide their underline in rather than snapping */
.nav-inner a{transition:color .2s, background .2s}

/* ============================================================
   Prayer times page
   ============================================================ */
.city-pills{display:flex; flex-wrap:wrap; gap:8px}
.city-pill{
  padding:7px 14px; border-radius:999px; border:1px solid var(--line);
  background:var(--surface); color:var(--ink); font-size:13px; font-weight:600;
  text-decoration:none; transition:background .15s, border-color .15s, transform .15s;
}
.city-pill:hover{border-color:var(--green-bright); transform:translateY(-1px)}
.city-pill.active{background:var(--green); border-color:var(--green); color:#fff}
.prayer-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-top:4px;
}
.prayer-card{
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:18px 16px; text-align:center; box-shadow:var(--shadow);
}
.prayer-card.hi{
  background:linear-gradient(150deg,var(--green-soft),var(--surface));
  border-color:var(--green-bright);
}
.pc-name{font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.5px}
.pc-time{font-family:var(--font-head); font-size:24px; font-weight:800; color:var(--ink); margin-top:6px}
.prayer-card.hi .pc-time{color:var(--green-bright)}

/* ============================================================
   Vertical channels (Naya Mobile / Cars / Sports / Business)
   The accent colour is passed in as --channel-accent per page.
   ============================================================ */
.channel-hero{
  background:linear-gradient(135deg, var(--channel-accent), color-mix(in srgb, var(--channel-accent) 55%, #0f172a));
  color:#fff; padding:22px 0 0;
}
.channel-back{color:rgba(255,255,255,.85); font-size:12.5px; font-weight:600; text-decoration:none}
.channel-back:hover{color:#fff}
.channel-wordmark{display:flex; align-items:center; gap:10px; text-decoration:none; margin-top:10px}
.channel-wordmark .cw-icon{font-size:30px; line-height:1}
.channel-wordmark .cw-text{font-family:var(--font-head); font-weight:700; font-size:30px; color:rgba(255,255,255,.92); letter-spacing:-.5px}
.channel-wordmark .cw-text b{font-weight:800; color:#fff}
.channel-blurb{color:rgba(255,255,255,.9); font-size:14px; margin:6px 0 0; max-width:640px}
.channel-subnav{display:flex; gap:4px; flex-wrap:wrap; margin-top:16px; overflow-x:auto}
.channel-subnav a{
  color:rgba(255,255,255,.9); text-decoration:none; font-weight:700; font-size:13.5px;
  padding:10px 14px; border-radius:9px 9px 0 0; white-space:nowrap; transition:background .15s;
}
.channel-subnav a:hover{background:rgba(255,255,255,.14); color:#fff}
.channel-subnav a.active{background:var(--bg); color:var(--channel-accent)}
html[data-theme="dark"] .channel-subnav a.active{background:var(--bg); color:#fff}
.channel-h1{font-family:var(--font-head); font-size:28px; font-weight:800; margin:4px 0 18px}
.channel-h1 span{color:var(--channel-accent)}

.ch-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:18px}
.ch-card{
  display:block; text-decoration:none; color:inherit; background:var(--surface);
  border:1px solid var(--line); border-radius:14px; overflow:hidden;
  transition:transform .25s cubic-bezier(.2,.7,.3,1.2), box-shadow .25s;
}
.ch-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg)}
.ch-card-cover{aspect-ratio:16/9; overflow:hidden; background:var(--surface-2)}
.ch-card-cover img{width:100%; height:100%; object-fit:cover; display:block}
.ch-card-ph{width:100%; height:100%}
.ch-card-body{padding:13px 14px}
.ch-card-body h3{font-family:var(--font-head); font-size:16px; font-weight:700; line-height:1.35; margin:0}
.ch-card:hover .ch-card-body h3{color:var(--channel-accent)}
.ch-card-meta{font-size:12px; color:var(--muted); margin-top:7px}
/* Homepage channel entry tiles */
.channel-tiles{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:8px 0 4px}
.ch-tile{
  display:flex; flex-direction:column; gap:2px; text-decoration:none; color:#fff;
  padding:16px 16px 15px; border-radius:14px; position:relative; overflow:hidden;
  background:linear-gradient(135deg, var(--t), color-mix(in srgb, var(--t) 55%, #0f172a));
  box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s;
}
.ch-tile:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.ch-tile .ct-ic{font-size:24px; line-height:1}
.ch-tile .ct-tx{font-family:var(--font-head); font-weight:700; font-size:19px; margin-top:6px; color:rgba(255,255,255,.92)}
.ch-tile .ct-tx b{font-weight:800; color:#fff}
.ch-tile .ct-sub{font-size:12px; color:rgba(255,255,255,.85)}
@media (max-width:760px){ .channel-tiles{grid-template-columns:repeat(2,1fr)} }
@media (max-width:380px){ .channel-tiles{grid-template-columns:1fr} }
.filters-bar{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:8px 0 16px}
.filters-bar select{padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink)}
@media (max-width:560px){
  .channel-wordmark .cw-text{font-size:24px} .channel-wordmark .cw-icon{font-size:24px}
  .channel-h1{font-size:22px}
}

/* ============================================================
   Structured details box (job info / phone-car-bike specs)
   ============================================================ */
.details-box{ border:1px solid var(--line); border-radius:14px; background:var(--surface); overflow:hidden; margin:8px 0 24px; box-shadow:var(--shadow); }
.details-box.is-job{ border-color:color-mix(in srgb, var(--green-bright) 45%, var(--line)); }
.det-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; background:var(--surface-2); border-bottom:1px solid var(--line); }
.det-head h2{ font-family:var(--font-head); font-size:17px; font-weight:800; margin:0; }
.det-apply{ background:var(--green); color:#fff; text-decoration:none; font-weight:700; font-size:13px; padding:8px 14px; border-radius:9px; white-space:nowrap; transition:transform .15s, box-shadow .15s; }
.det-apply:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(4,106,56,.28); }
.det-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0; }
.det-row{ display:flex; justify-content:space-between; gap:14px; padding:11px 18px; border-bottom:1px solid var(--line); font-size:14px; }
.det-row:nth-last-child(-n+2){ border-bottom:0; }
.det-k{ color:var(--muted); font-weight:600; }
.det-v{ font-weight:700; color:var(--ink); text-align:right; }
.dl-ok{ color:var(--green-bright); font-weight:800; }
.dl-soon{ color:#d97706; font-weight:800; }
.dl-closed{ color:#dc2626; font-weight:800; }
html[dir="rtl"] .det-v{ text-align:left; }
@media (max-width:560px){ .det-grid{ grid-template-columns:1fr; } .det-row{ border-bottom:1px solid var(--line); } }
