/* =====================================================================
   AAGAHI NEWS — main.css
   Design tokens · base · components · site shell (header/footer) · auth
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0b1b34;
  --navy-800: #102544;
  --navy-700: #16305c;
  --navy-500: #274b86;
  --red: #e63946;
  --red-dark: #c1121f;
  --amber: #f4a300;
  --ink: #0f172a;
  --body: #33415c;
  --muted: #64748b;
  --line: #e3e8f0;
  --line-soft: #eef2f7;
  --bg: #f5f7fb;
  --card: #ffffff;
  --white: #ffffff;
  --chip: #eef2f8;

  --font-sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", serif;

  --shadow-sm: 0 1px 2px rgba(11, 27, 52, .06), 0 1px 3px rgba(11, 27, 52, .08);
  --shadow-md: 0 6px 18px rgba(11, 27, 52, .10);
  --shadow-lg: 0 18px 44px rgba(11, 27, 52, .16);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1240px;
  --header-h: 0px;

  --transition: .18s ease;
}

[data-theme="dark"] {
  --ink: #eef2f8;
  --body: #c3cde0;
  --muted: #93a1bb;
  --line: #22304a;
  --line-soft: #1a2740;
  --bg: #0a1120;
  --card: #101a2e;
  --chip: #1b2740;
  --navy: #060d19;
  --navy-800: #0c1730;
  --white: #101a2e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, .45);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, .55);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body[dir="rtl"], [dir="rtl"] { font-family: var(--font-sans); }
html[lang="ur"] body, html[lang="ur"] .headline, html[lang="ur"] h1, html[lang="ur"] h2 {
  font-family: var(--font-urdu);
  line-height: 2.05;
}
html[lang="ur"] .en-only { font-family: var(--font-sans); }

h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.28; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, .95rem + .5vw, 1.35rem); }
p { margin: 0 0 1rem; }

a { color: var(--navy-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; border-radius: 4px; }

img, video, svg { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

::selection { background: rgba(230, 57, 70, .22); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 900px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 9999;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; transition: top var(--transition);
}
.skip-link:focus { top: 12px; color: #fff; }

.text-muted { color: var(--muted); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.d-none { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 9px;
  padding: 10px 20px; min-height: 42px;
  font: 600 15px/1.2 var(--font-sans);
  cursor: pointer; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn i { font-size: 1.05em; }

.btn-primary { --btn-bg: var(--navy); }
.btn-primary:hover { --btn-bg: var(--navy-700); }
.btn-accent, .btn-danger { --btn-bg: var(--red); }
.btn-accent:hover, .btn-danger:hover { --btn-bg: var(--red-dark); }
.btn-success { --btn-bg: #12855a; }
.btn-warning { --btn-bg: #b7791f; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--body); }
.btn-ghost:hover { --btn-bg: var(--chip); box-shadow: none; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: 13.5px; border-radius: 7px; }
.btn-lg { padding: 13px 28px; min-height: 48px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; min-width: 38px; min-height: 38px; }

.btn-group-sm { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .form-label {
  display: block; margin-bottom: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: .01em;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="search"], input[type="tel"], input[type="date"],
input[type="datetime-local"], input[type="color"], select, textarea {
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  min-height: 44px;
  font: 400 15px/1.4 var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(39, 75, 134, .16);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: #9aa7bd; }

.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > i:first-child {
  position: absolute; inset-inline-start: 12px; color: var(--muted); pointer-events: none; font-size: 16px;
}
.input-icon > input { padding-inline-start: 38px; padding-inline-end: 40px; }
.input-icon .peek {
  position: absolute; inset-inline-end: 6px;
  background: none; border: 0; color: var(--muted);
  cursor: pointer; padding: 6px 8px; border-radius: 6px;
}
.input-icon .peek:hover { color: var(--navy); background: var(--chip); }

.check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--body); cursor: pointer; margin-bottom: 12px;
}
.check input { width: 17px; height: 17px; min-height: 0; accent-color: var(--red); }

.help-text { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.field-error { color: var(--red-dark); font-size: 13px; margin-top: 5px; font-weight: 600; }

.strength { margin-top: 8px; height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; position: relative; }
.strength-bar { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s ease, background .25s ease; }
.strength-text { position: absolute; inset-inline-start: 0; top: 8px; font-size: 11.5px; color: var(--muted); }

/* ---------- Alerts / flash ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px; font-size: 14.5px;
}
.alert-success { background: rgba(18, 133, 90, .10); border-color: rgba(18, 133, 90, .35); color: #0d6b47; }
.alert-error, .alert-danger { background: rgba(230, 57, 70, .10); border-color: rgba(230, 57, 70, .35); color: var(--red-dark); }
.alert-warning { background: rgba(183, 121, 31, .12); border-color: rgba(183, 121, 31, .35); color: #8a5b12; }
.alert-info { background: rgba(39, 75, 134, .10); border-color: rgba(39, 75, 134, .3); color: var(--navy-700); }
[data-theme="dark"] .alert-success { color: #6fe0b0; }
[data-theme="dark"] .alert-error, [data-theme="dark"] .alert-danger { color: #ff9aa4; }
[data-theme="dark"] .alert-info { color: #a9c4f5; }
[data-theme="dark"] .alert-warning { color: #ffd08a; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; background: var(--chip); color: var(--navy);
}
.badge-red { background: var(--red); color: #fff; }
.badge-navy { background: var(--navy); color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--line); color: var(--body); }
.badge-success { background: rgba(18, 133, 90, .14); color: #0d6b47; }
.badge-warning { background: rgba(183, 121, 31, .16); color: #8a5b12; }
.badge-danger { background: rgba(230, 57, 70, .14); color: var(--red-dark); }
.badge-info { background: rgba(39, 75, 134, .14); color: var(--navy-700); }
.badge-muted { background: var(--chip); color: var(--muted); }
[data-theme="dark"] .badge-success { color: #6fe0b0; }
[data-theme="dark"] .badge-danger { color: #ff9aa4; }

.cat-chip {
  display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--red); background: rgba(230, 57, 70, .10);
  padding: 3px 9px; border-radius: 5px;
}
.cat-chip.navy { color: var(--navy); background: rgba(11, 27, 52, .08); }

/* ---------- Section headings ---------- */
.section { padding: 34px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; border-bottom: 2px solid var(--line); padding-bottom: 10px;
}
.section-head h2 {
  margin: 0; font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem);
  position: relative; padding-inline-start: 14px;
}
.section-head h2::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .18em; bottom: .18em;
  width: 5px; border-radius: 4px; background: var(--red);
}
.section-head .more { font-size: 14px; font-weight: 700; white-space: nowrap; }
.section-head .more i { font-size: 13px; }

/* ---------- Site header ---------- */
.site-header { background: var(--card); position: relative; z-index: 60; }

.topbar {
  background: var(--navy); color: #cfd9ec; font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.topbar-start, .topbar-end { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar a { color: #cfd9ec; }
.topbar a:hover { color: #fff; }
.topbar .date-line { display: inline-flex; align-items: center; gap: 7px; color: #aebcd8; }
.topbar .lang-switch a { padding: 2px 7px; border-radius: 5px; font-weight: 700; }
.topbar .lang-switch a.is-active { background: var(--red); color: #fff; }
.topbar-social { display: flex; align-items: center; gap: 4px; }
.topbar-social a {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .10); font-size: 13px;
}
.topbar-social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.topbar-social svg { width: 13px; height: 13px; fill: currentColor; }

/* Weather + market strip (Settings → General → Weather / Currency widget) */
.topbar-widget {
  display: inline-flex; align-items: center; gap: 6px;
  color: #cfd9ec; font-size: 12.5px; white-space: nowrap;
}
.topbar-widget strong { color: #fff; font-weight: 800; }
.topbar-widget > i { font-size: 14px; color: #ffd166; }
.topbar-widget__sub { color: #93a4c4; font-weight: 600; }
.topbar-market {
  gap: 9px; padding: 3px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .07);
}
.market-pair { display: inline-flex; align-items: baseline; gap: 3px; font-size: 11.5px; color: #aebcd8; }
.market-pair strong { font-size: 12px; }
@media (max-width: 1100px) {
  .topbar-market .market-pair:nth-of-type(n+4) { display: none; }
}
@media (max-width: 720px) {
  .topbar-widget .topbar-widget__sub { display: none; }
  .topbar-market .market-pair:nth-of-type(n+3) { display: none; }
}

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
/* A configured logo is letterboxed rather than squashed, so a wide lock-up
   still renders cleanly next to the wordmark. */
.brand img { width: 52px; height: 52px; object-fit: contain; object-position: left center; }
.brand-name { font-family: var(--font-serif); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); color: var(--navy); line-height: 1.05; letter-spacing: -.01em; }
[data-theme="dark"] .brand-name { color: #fff; }
.brand-name .accent { color: var(--red); }
/* Urdu site name (Settings → Appearance → "Site name (Urdu)"). */
.brand-name-ur { display: none; }
html[lang="ur"] .brand-name.en-only { display: none; }
html[lang="ur"] .brand-name.brand-name-ur { display: block; font-family: var(--font-urdu); letter-spacing: 0; line-height: 1.5; }
.brand-tagline { font-size: 12.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
html[lang="ur"] .brand-tagline { letter-spacing: 0; text-transform: none; font-family: var(--font-urdu); font-size: 14px; }

.header-tools { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }
.header-search { position: relative; flex: 1; max-width: 440px; }
.header-search input {
  border-radius: 999px; padding-inline: 44px 14px; background: var(--bg); border-color: var(--line);
}
.header-search button {
  position: absolute; inset-inline-start: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--navy); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.header-search button:hover { background: var(--red); }
.header-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer;
  min-height: 42px;
}
.header-btn:hover { border-color: var(--navy); color: var(--navy); }
.header-btn.live { background: var(--red); border-color: var(--red); color: #fff; position: relative; }
.header-btn.live::after {
  content: ""; position: absolute; inset-inline-end: 8px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s infinite;
}
.header-btn.live:hover { background: var(--red-dark); color: #fff; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.navbar { border-top: 1px solid var(--line); background: var(--card); }
.navbar-inner { display: flex; align-items: stretch; gap: 6px; }
.nav-list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 6px; padding: 13px 15px;
  font-weight: 700; font-size: 14.5px; color: var(--ink); text-transform: none;
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover, .nav-list > li.is-active > a { color: var(--red); border-bottom-color: var(--red); background: rgba(230, 57, 70, .05); }
.nav-list .dropdown {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 70;
}
.nav-list li:hover > .dropdown, .nav-list li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .dropdown li a {
  display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; color: var(--body); font-weight: 600;
}
.nav-list .dropdown li a:hover { background: var(--chip); color: var(--red); }
.nav-spacer { flex: 1; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-toggle, .nav-search-toggle { display: none; }

/* Sticky */
.site-header.is-sticky { position: fixed; top: 0; left: 0; right: 0; box-shadow: var(--shadow-md); animation: dropIn .22s ease; }
.site-header.is-sticky .topbar { display: none; }
body.has-sticky-header { padding-top: var(--sticky-h, 0px); }
@keyframes dropIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; visibility: hidden;
}
.mobile-nav .drawer-veil {
  position: absolute; inset: 0; background: rgba(6, 13, 25, .55); opacity: 0;
  transition: opacity .25s ease;
}
.mobile-nav .drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0;
  width: min(86vw, 340px); background: var(--card);
  transform: translateX(-102%); transition: transform .28s ease;
  overflow-y: auto; padding: 18px; box-shadow: var(--shadow-lg);
}
[dir="rtl"] .mobile-nav .drawer-panel { transform: translateX(102%); }
.mobile-nav.is-open { visibility: visible; }
.mobile-nav.is-open .drawer-veil { opacity: 1; }
.mobile-nav.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-close { background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; color: var(--ink); font-size: 18px; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 8px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.drawer-sub { list-style: none; margin: 0 0 6px; padding: 0 0 0 12px; display: none; }
.drawer-sub.is-open { display: block; }
.drawer-sub a { display: block; padding: 9px 8px; font-size: 14.5px; color: var(--body); border-bottom: 1px dashed var(--line-soft); }
.drawer-expand { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 8px; }

/* Breaking ticker */
.breaking-bar {
  background: #0a111f; color: #fff; display: flex; align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.breaking-label {
  background: var(--red); color: #fff; font-weight: 800; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 16px; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.breaking-label .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.breaking-viewport { overflow: hidden; flex: 1; position: relative; display: flex; align-items: center; }
.breaking-track {
  display: flex; gap: 44px; white-space: nowrap; padding-inline: 20px;
  animation: ticker var(--ticker-duration, 45s) linear infinite;
  will-change: transform;
}
.breaking-viewport:hover .breaking-track,
.breaking-track:focus-within { animation-play-state: paused; }
.breaking-track a { color: #e7edf9; font-size: 14.5px; font-weight: 600; }
.breaking-track a::before { content: "●"; color: var(--red); font-size: 9px; margin-inline-end: 8px; vertical-align: middle; }
.breaking-track a:hover { color: #fff; text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .breaking-track { animation-name: ticker-rtl; }
@keyframes ticker-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6de; margin-top: 46px; font-size: 14.5px; }
.site-footer a { color: #cfd9ec; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 44px 0 30px;
}
.footer-brand .brand-name { color: #fff; font-size: 1.7rem; }
.footer-brand p { color: #9fb0cd; font-size: 14px; margin-top: 10px; }
.footer-title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; font-weight: 800; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #e3eaf7; transition: all var(--transition);
}
.footer-social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .10); padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: #8fa1c1;
}
.footer-bottom .theme-toggle {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #dfe7f5; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px; font-weight: 700;
}
.footer-bottom .theme-toggle:hover { background: rgba(255, 255, 255, .16); }

/* ---------- Newsletter strip ---------- */
.newsletter-strip {
  background: linear-gradient(120deg, var(--navy-700), var(--navy));
  color: #fff; border-radius: var(--radius); padding: 28px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center;
  box-shadow: var(--shadow-md);
}
.newsletter-strip h3 { color: #fff; margin-bottom: 6px; }
.newsletter-strip p { color: #c3cfe6; margin: 0; font-size: 14.5px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff;
}
.newsletter-form input::placeholder { color: #b3c1da; }
.newsletter-form .btn { background: var(--red); white-space: nowrap; }
.newsletter-form .btn:hover { background: #fff; color: var(--navy); }
.newsletter-note { font-size: 12.5px; color: #9fb0cd; margin-top: 8px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Auth screens ---------- */
.auth-body {
  background: radial-gradient(1100px 500px at 15% -10%, var(--navy-700) 0%, var(--navy) 55%, #060d19 100%);
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth-shell {
  width: min(1000px, 100%); background: var(--card); border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: .85fr 1.15fr; box-shadow: var(--shadow-lg);
}
.auth-aside { background: linear-gradient(160deg, var(--navy-700), var(--navy)); color: #cfd9ec; padding: 38px 30px; }
.auth-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; color: #fff; letter-spacing: .5px; }
.auth-brand b { color: var(--red); }
.auth-tagline { font-family: var(--font-urdu); font-size: 20px; color: #ffd7db; margin-top: 14px; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; font-size: 14.5px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; }
.auth-points i { color: var(--red); font-size: 17px; margin-top: 2px; }
.auth-main { padding: 30px 34px 34px; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 14px; }
.auth-home { color: var(--muted); font-weight: 600; }
.auth-lang a { padding: 3px 8px; border-radius: 6px; font-weight: 700; color: var(--muted); }
.auth-lang a.is-active { background: var(--red); color: #fff; }
.auth-head h1 { font-size: 1.55rem; margin-bottom: 4px; }
.auth-head p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: 14px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-switch a { font-weight: 700; }
.auth-footer { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 18px; }

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 26px 22px; }
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center; padding: 46px 20px; background: var(--card);
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty-state i { font-size: 34px; display: block; margin-bottom: 10px; opacity: .6; }
.empty-state h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }
.empty-state p { font-size: 14.5px; }

/* ---------- Demo notice ---------- */
.demo-notice {
  background: repeating-linear-gradient(45deg, rgba(244, 163, 0, .14), rgba(244, 163, 0, .14) 12px, transparent 12px, transparent 24px);
  border-block: 1px solid rgba(244, 163, 0, .5); color: var(--ink);
  font-size: 13.5px; text-align: center; padding: 9px 14px;
}
.demo-notice strong { color: #8a5b12; }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 14px; }
.hide-mobile { display: initial; }
.only-mobile { display: none; }

/* ---------- Responsive shell ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
  .navbar .nav-list { display: none; }
  .nav-toggle, .nav-search-toggle { display: inline-grid; place-items: center; }
  .header-search { display: none; }
  .brand-row { padding: 12px 0; gap: 12px; }
  .brand img { width: 42px; height: 42px; }
  .header-tools { gap: 8px; }
  .hide-mobile { display: none !important; }
  .only-mobile { display: initial; }
  .newsletter-strip { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .topbar .date-line { display: none; }
  .section { padding: 26px 0; }
}
@media (max-width: 575.98px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 15px; }
  .breaking-label { padding: 9px 11px; font-size: 12px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .breaking-track { animation: none !important; transform: none !important; }
  .breaking-viewport { overflow-x: auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .sidebar-ads, .share-bar, .newsletter-strip { display: none !important; }
  body { background: #fff; }
}
