/* ============================================================
   GSM Portal — Public Theme (dark, technician-friendly)
   ============================================================ */
:root {
  --bg: #0a0a12;
  --bg2: #10101e;
  --card: #14142a;
  --card2: #1a1a33;
  --border: #26264a;
  --accent: #ff6b00;
  --accent2: #ffd700;
  --text: #e8e8f5;
  --muted: #9a9ab8;
  --radius: 12px;

  /* ---------- Design tokens (v1.42) ---------- */
  /* Type scale — Tailwind steps */
  --text-xs: .75rem;      /* 12 / 16 */
  --text-sm: .875rem;     /* 14 / 20 */
  --text-base: 1rem;      /* 16 / 24 */
  --text-lg: 1.125rem;    /* 18 / 28 */
  --text-xl: 1.25rem;     /* 20 / 28 */
  --text-2xl: 1.5rem;     /* 24 / 32 */
  --text-3xl: 1.875rem;   /* 30 / 36 */
  --text-4xl: 2.25rem;    /* 36 / 40 */
  --text-5xl: 3rem;       /* 48 */
  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;
  --sp-9: 64px;
  --sp-10: 80px;
  --sp-11: 96px;
  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 200ms;
  --dur-base: 300ms;
  --dur-layout: 500ms;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* v1.26 — sticky footer: short pages par footer viewport ke bottom pe chipke */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > * { flex-shrink: 0; }
/* Error pages (404/403/500) — poora viewport, text beech me centered */
body.error-page > .hero { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 60px 0; }
body.error-page .container { text-align: center; }
body.error-page .hero h1 { margin-inline: auto; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Accessibility & text flow (v1.42) ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible { border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--accent); color: #fff; padding: 8px 16px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
#main-content { display: block; scroll-margin-top: 80px; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 18, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: var(--sp-5); height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: var(--text-xl); font-weight: 700; color: var(--text); }
.logo i { color: var(--accent); font-size: 1.875rem; line-height: 1; }
.logo span { color: var(--accent); line-height: 1; letter-spacing: -.01em; }
.main-nav { margin-left: auto; display: flex; gap: var(--sp-5); align-items: center; flex-wrap: nowrap; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 1.05rem; white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; }
.main-nav a:hover { color: var(--text); }
.main-nav .nav-cta {
  color: #fff; background: var(--accent); padding: 7px 14px; border-radius: var(--r-sm); font-weight: 600; line-height: 1.4;
}
/* Logout CTA header me halka dikhe (register par hi accent rakho) */
.main-nav a.nav-cta[href*="logout"] {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); padding: 5px 12px; line-height: 1.4;
}
.main-nav a.nav-cta[href*="logout"]:hover { color: var(--danger, #ef4444); border-color: var(--danger, #ef4444); }

/* v1.49 — Login: single, refined header CTA */
.main-nav .nav-login {
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(180deg, #ff7d1f, var(--accent));
  box-shadow: 0 3px 12px rgba(255, 107, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.main-nav a.nav-login:hover {
  color: #fff;
  background: #ff7d1f;
  box-shadow: 0 6px 18px rgba(255, 107, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}
.main-nav a.nav-login:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(255, 107, 0, .28); }
.main-nav .nav-login i { font-size: .85rem; }
.nav-toggle, .nav-burger { display: none; }

/* v1.36 — full-size nav (1400px+): default comfortable sizing, koi extra media nahi */

/* ---------- Theme toggle (auto / light / dark, header) ---------- */
.theme-toggle {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
  font-size: .95rem; transition: .15s; margin-left: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
/* Icon mode ke hisaab se (html[data-site-theme-mode] set karta hai init script/JS) */
.theme-toggle i { display: none; }
html[data-site-theme-mode="auto"] .theme-toggle .fa-circle-half-stroke { display: block; }
html[data-site-theme-mode="light"] .theme-toggle .fa-sun { display: block; }
html[data-site-theme-mode="dark"] .theme-toggle .fa-moon { display: block; }

@media (max-width: 860px) {
  .theme-toggle { display: grid; }
}

/* v1.36 — header ek-line plan: header me max 4 categories.
   8 links (logged-in) ek line me fit karne ke liye:
   nav visible ≥1101px (1101–1399 compact), usse chhota burger menu (≤1100). */
@media (max-width: 1100px) {
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; font-size: 1.3rem; color: var(--text); cursor: pointer; border-radius: var(--r-sm); }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 65px); height: calc(100dvh - 65px);
    flex-direction: column; align-items: stretch; gap: var(--sp-1);
    background: rgba(16, 16, 30, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    padding: var(--sp-4) var(--sp-5); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav a { min-height: 48px; padding: 0 var(--sp-3); font-size: var(--text-lg); border-radius: var(--r-sm); }
  .main-nav a:hover { background: var(--card2); }
  .main-nav .nav-cta { justify-content: center; margin-top: var(--sp-2); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}
/* v1.37 — ek hi fit-safe sizing sabhi desktop widths par (1101px+).
   Pehle 1400px+ "full size" tha jo container (1140px inner) se bahar nikal
   jata tha (logged-out 1222px, logged-in ~1460px chahiye tha) — right side
   overflow ho raha tha. Ab compact sizing hi sab jagah fit rehti hai. */
@media (min-width: 1101px) {
  .nav-wrap { gap: 12px; }
  .logo { font-size: 1.05rem; min-height: 40px; }
  .logo i { font-size: 1.875rem; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
  .main-nav .nav-cta { padding: 0 18px; font-size: .78rem; }
  .main-nav a.nav-cta[href*="logout"] { padding: 5px 10px; }
  .theme-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  /* Logged-out header (visitors) me nav text thoda bada — uppercase 13px bhi
     1140px me fit (logged-in nav 9 links ke saath compact hi rehta hai) */
  .site-header:not(.is-auth) .main-nav a { font-size: .8rem; }
  .site-header:not(.is-auth) .main-nav .nav-cta { font-size: .8rem; padding: 0 18px; }
}
/* Narrow desktop (1101-1219px): 10px gap rakho taake logged-in header fit rahe */
@media (min-width: 1101px) and (max-width: 1219px) {
  .main-nav { gap: 10px; }
}
/* v1.49 — uppercase + logged-in ke 8 links: 4th category har width par hide,
   warna nav + theme toggle container se bahar nikal jate hain */
.site-header.is-auth .main-nav > a:nth-child(5) { display: none; }
/* v1.49 — wide desktop: visitor nav thoda bada + bold (professional header) */
@media (min-width: 1220px) {
  .site-header:not(.is-auth) .main-nav { gap: 14px; }
  .site-header:not(.is-auth) .main-nav a { font-size: .88rem; font-weight: 700; letter-spacing: .05em; }
  .site-header:not(.is-auth) .main-nav .nav-login { padding: 0 18px; }
}

/* ---------- Hero ---------- */
.hero { padding: 36px 0 28px; text-align: center; background: transparent; }
.hero .kicker { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: var(--text-xs); text-transform: uppercase; }

/* ---------- LIVE recent ticker (reference style) ---------- */
.ticker-section { margin-top: 0; margin-bottom: 16px; }
.live-ticker { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 8px 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; border-radius: 6px; background: #DCFCE7; padding: 4px 8px; font-size: var(--text-xs); font-weight: 800; letter-spacing: .06em; color: #14532D; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; animation: tickerBlink 1.6s ease-in-out infinite; flex-shrink: 0; }
.ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; gap: 10px; padding-right: 10px; animation: tickerMarquee var(--ticker-duration, 70s) linear infinite; }
.ticker-viewport:hover .ticker-track, .ticker-viewport:focus-within .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; height: 36px; flex-shrink: 0; white-space: nowrap; padding: 0 8px; font-size: var(--text-sm); font-weight: 600; color: var(--text); text-decoration: none; }
.ticker-item:hover { color: var(--accent); }
.ticker-item .sep-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .5; flex-shrink: 0; }
.ticker-title { max-width: 460px; overflow: hidden; text-overflow: ellipsis; }
.ticker-time { font-weight: 500; color: var(--muted); }
.ticker-featured { flex-shrink: 0; border-radius: 999px; background: rgba(245,158,11,.14); color: #f59e0b; padding: 2px 8px; font-size: var(--text-xs); font-weight: 700; line-height: 16px; }
.ticker-viewall { flex-shrink: 0; white-space: nowrap; font-size: var(--text-sm); font-weight: 600; color: var(--accent); text-decoration: none; }
.ticker-viewall:hover { text-decoration: underline; }
@keyframes tickerMarquee { 0% { transform: translate(0); } 100% { transform: translate(-50%); } }
@keyframes tickerBlink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@media (max-width: 720px) {
  .ticker-section { margin-top: 0; }
  .live-ticker { gap: 8px; padding: 7px 10px; }
  .ticker-title { max-width: 240px; }
  .ticker-viewall { font-size: 12px; }
}
/* Mobile ticker: chhoti screens par bhi card viewport me fit rahe */
@media (max-width: 560px) {
  .live-ticker { gap: 6px; padding: 6px 8px; border-radius: 10px; }
  .live-badge { font-size: var(--text-xs); padding: 3px 6px; gap: 4px; }
  .pulse-dot { width: 6px; height: 6px; }
  .ticker-item { height: 30px; font-size: 12px; gap: 6px; padding: 0 4px; }
  .ticker-title { max-width: 160px; }
  .ticker-time { font-size: var(--text-xs); }
  .ticker-featured { display: none; }
  .ticker-viewall { font-size: var(--text-xs); }
  .ticker-viewport { mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
  .ticker-viewport { overflow-x: auto; mask-image: none; }
  .pulse-dot { animation: none !important; }
}

/* Hero eyebrow — pill + blinking dot above the headline */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.07); border-radius: 999px; font-size: 12px; font-weight: 700; color: #dbe7ff; backdrop-filter: blur(8px); letter-spacing: .2px; animation: heroFadeUp .55s cubic-bezier(.22,1,.36,1) backwards; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 5px rgba(110,231,183,.12); animation: liveBlink 1.5s ease-in-out infinite; flex-shrink: 0; }
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0 auto 14px;
  max-width: 1140px;
  color: var(--text);
  text-wrap: balance;
}
.hero h1 .w {
  display: inline-block;
  animation: heroWordIn .62s cubic-bezier(.22,1,.36,1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms + 120ms);
}
@keyframes heroWordIn {
  from { opacity: 0; transform: translateY(.32em); }
  to { opacity: 1; transform: none; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero p { color: var(--muted); max-width: 680px; margin: 0 auto 22px; font-size: var(--text-lg); line-height: 1.55; }
.hero .hero-sub { animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) backwards; animation-delay: .42s; }
.hero .search-bar { animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) backwards; animation-delay: .52s; }
.hero-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted); animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) backwards; animation-delay: .62s; }
.hero-meta b { color: var(--text); font-weight: 800; }
.hero-meta .meta-sep { opacity: .45; }
@media (max-width: 720px) {
  .hero h1 .hero-br { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 28px 0 24px; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.1rem); }
  .hero p { font-size: 1rem; }
  .hero-meta { font-size: 12px; }
  .search-bar { border-radius: 12px; }
  .search-bar input[type="text"] { padding: 14px 16px; border-radius: 11px 0 0 11px; }
  .search-bar button { padding: 0 16px; border-radius: 0 11px 11px 0; }
  .search-bar .search-btn-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero .hero-sub, .hero .search-bar, .hero-meta, .hero h1 .w { animation: none; opacity: 1; }
  .hero h1 .w { transform: none; }
}
.search-bar {
  display: flex; max-width: 620px; margin: 0 auto 22px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  overflow: visible; /* v1.18: suggestion dropdown clip na ho (rounded corners niche handle) */
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,107,0,.14), 0 8px 26px rgba(0,0,0,.24);
}
.search-bar input[type="text"] { flex: 1; min-width: 0; width: auto; background: transparent; border: 0; padding: 16px 20px; color: var(--text); font-size: 1rem; outline: none; border-radius: 13px 0 0 13px; }
.search-bar input[type="text"]::placeholder { color: var(--muted); opacity: .9; }
.search-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); border: 0; color: #fff; padding: 0 24px; cursor: pointer; font-size: .95rem; font-weight: 700; letter-spacing: .01em; border-radius: 0 13px 13px 0; transition: background .15s var(--ease); }
.search-bar button:hover { background: #ff7d1f; }
.search-bar button i { font-size: .9rem; }
.search-tips { max-width: 860px; margin: 0 auto; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 26px 28px; }
.search-tips-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.search-tips-badge { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 107, 0, .12); color: var(--accent); font-size: 1rem; }
.search-tips-head h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.search-tips-head p { margin-top: 2px; color: var(--muted); font-size: var(--text-sm); }
.search-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.search-tip { border: 1px solid var(--border); background: var(--card2); border-radius: 10px; padding: 16px; }
.search-tip > i { display: block; color: var(--accent); font-size: 1rem; margin-bottom: 10px; }
.search-tip h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.search-tip p { color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.search-group + .search-group { margin-top: var(--sp-7); }

/* ---------- Sections ---------- */
.section { padding: var(--sp-7) 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.section-head h2 { font-size: var(--text-3xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.section-head h2 span { color: var(--accent); }
.section-head a { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.section-head a:hover { color: var(--accent); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--sp-3); }
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-5); text-align: center; transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cat-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: 10px; }
.cat-card h3 { font-size: var(--text-base); font-weight: 600; }
.cat-card small { color: var(--muted); font-size: var(--text-sm); }

/* ---------- Post cards (v1.22 — image + title, no description) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--sp-3); }
.post-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); }
/* image rakhi hai, description nahi */
.post-card .thumb { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--card2); display: block; }
.post-card .body { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; gap: var(--sp-2); }
.post-meta { display: flex; gap: 7px; align-items: center; font-size: var(--text-xs); color: var(--muted); flex-wrap: nowrap; min-width: 0; }
.post-meta .cat { color: var(--accent); font-weight: 600; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta span:last-child { margin-left: auto; white-space: nowrap; }
.post-card h3 { font-size: var(--text-base); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-card .excerpt { display: none; }
.post-card .more { display: inline-block; font-size: var(--text-sm); font-weight: 600; color: var(--accent); }
.post-card .badge, .post-card .dash-badge { font-size: var(--text-xs); padding: 2px 7px; align-self: flex-start; }

/* ---------- Stats strip ---------- */
.stats-sec { padding: 6px 0 var(--sp-11, 96px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); text-align: center; }
.stat b { display: block; font-size: var(--text-3xl); font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: var(--text-sm); }

/* ---------- Single post ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
@media (max-width: 920px) { .post-layout { grid-template-columns: 1fr; } }
/* Post card container — reference style (gsmxr-content-card) */
.post-card-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.28); padding: 34px; }

/* Breadcrumb — reference style (flex, gap 7, 11.5px / 700) */
.breadcrumb { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: var(--text-xs); font-weight: 700; margin-bottom: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--muted); }

/* Post head — reference style (title + meta row + image + content) */
.post-head { margin: -4px 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--border); }
.single-title { font-size: clamp(1.875rem, 2.25vw, 2.25rem); font-weight: 800; line-height: 1.24; letter-spacing: -.02em; color: var(--text); max-width: 900px; margin: 10px 0 8px; }
.single-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; color: var(--muted); font-size: var(--text-xs); font-weight: 600; }
.single-meta .meta-dot { color: var(--border); }
.single-meta .meta-cat { font-weight: 700; color: var(--accent); text-decoration: none; }
.single-meta .meta-cat:hover { text-decoration: underline; }
.single-meta .meta-views b { color: var(--text); font-weight: 800; }

/* Featured image — reference style (centered, contain, 15px radius) */
.single-figure { width: min(78%, 520px); margin: 16px auto 20px; text-align: center; }
.single-image { display: block; width: 100%; height: auto; max-height: 410px; margin: 0 auto; object-fit: contain; border-radius: 15px; border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(0,0,0,.30); background: var(--card2); }

@media (max-width: 700px) {
  .post-card-wrap { padding: 18px; border-radius: 16px; }
  .single-figure { width: 100%; }
}
.article-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 { margin: 20px 0 10px; color: var(--text); }
.article-content p { margin-bottom: 14px; color: #c9c9de; }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; color: #c9c9de; }
.article-content img { border-radius: 10px; margin: 12px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 10px; font-size: .9rem; }
.article-content th { background: var(--card2); }
.dl-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 700;
  transition: filter var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.dl-btn:hover { filter: brightness(1.08); }
.dl-btn:active { transform: translateY(1px); }

/* ---------- Custom post buttons & notices (editor se insert hote hain) ---------- */
.post-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 700; margin: 6px 0;
  border: 0; cursor: pointer;
  transition: filter var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.post-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.post-btn:active { transform: translateY(0); }
.post-btn.btn-dl { background: var(--accent); color: #fff; }
.post-btn.btn-wa { background: #25d366; color: #fff; }
.post-btn.btn-tg { background: #229ed9; color: #fff; }
.post-btn.btn-simple { background: var(--card2); color: var(--text); border: 1px solid var(--border); }

.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 18px; border-radius: 10px; margin: 16px 0; font-size: .95rem; line-height: 1.6;
}
.notice i { margin-top: 3px; }
.notice-info { background: rgba(59,130,246,.1); color: #93c5fd; border: 1px solid rgba(59,130,246,.35); }
.notice-warning { background: rgba(245,158,11,.1); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }
.notice-success { background: rgba(16,185,129,.1); color: #6ee7b7; border: 1px solid rgba(16,185,129,.35); }
.notice-danger { background: rgba(239,68,68,.1); color: #fca5a5; border: 1px solid rgba(239,68,68,.35); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-box h4 { font-size: 1rem; margin-bottom: 14px; }
.side-box h4 span { color: var(--accent); }
.side-box ul { list-style: none; }
.side-box li { margin-bottom: 10px; }
.side-box li a { color: var(--text); font-size: .88rem; display: block; }
.side-box li a:hover { color: var(--accent); }
.side-box li small { color: var(--muted); }
.side-cats li a { display: flex; justify-content: space-between; }
.side-cats li a em { color: var(--muted); font-style: normal; }
.side-list { display: flex; flex-direction: column; gap: 12px; }
.side-item { display: flex; gap: 10px; }
.side-item img { width: 60px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.side-item b { font-size: .8rem; font-weight: 600; line-height: 1.35; display: block; color: var(--text); }
.side-item small { color: var(--muted); font-size: var(--text-xs); }

/* ---------- Related posts ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related:not(.show-all) .rel-extra { display: none; }
.rel-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0; overflow: hidden; }
.rel-card .rel-thumb { display: block; }
.rel-card .rel-thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--card2); transition: transform .2s; }
.rel-card:hover .rel-thumb img { transform: scale(1.03); }
.rel-card .rel-body { padding: 9px 11px 11px; }
.rel-card h4 { font-size: .78rem; line-height: 1.35; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-card h4 a { color: var(--text); }
.rel-card h4 a:hover { color: var(--accent); }
.rel-card small { color: var(--muted); font-size: var(--text-xs); }
.rel-actions { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.rel-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.rel-more-btn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font-size: .82rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.rel-more-btn:hover { border-color: var(--accent); color: var(--accent); }
.rel-more-btn i { font-size: var(--text-xs); transition: transform .2s; }
.rel-block.show-all .rel-more-btn i { transform: rotate(180deg); }
.rel-viewall { color: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .related { grid-template-columns: 1fr; } }

/* ---------- Social join box ---------- */
.join-box {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.join-box .join-item { flex: 1; min-width: 160px; text-align: center; padding: 14px; border-radius: 10px; background: var(--card2); }
.join-box i { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.join-box .fa-whatsapp { color: #25d366; }
.join-box .fa-telegram { color: #229ed9; }
.join-box .fa-youtube { color: #ff0000; }
.join-box small { color: var(--muted); display: block; margin-bottom: 6px; }
.join-box a { font-weight: 600; font-size: .9rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--border);
  color: var(--muted); font-size: var(--text-sm); white-space: nowrap;
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a:hover { color: var(--accent); }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 10px; margin: 20px 0; font-size: .92rem; }
.alert.success { background: rgba(16, 185, 129, .12); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.alert.error { background: rgba(239, 68, 68, .12); color: #f87171; border: 1px solid rgba(239,68,68,.3); }

/* ---------- Why section (home — reference design, dark theme) ---------- */
.why-section { background: transparent; padding: 56px 20px 50px; text-align: center; }
.why-section .why-kicker { color: var(--accent); font-weight: 800; letter-spacing: 2.5px; font-size: .78rem; text-transform: uppercase; margin-bottom: 12px; }
.why-section h2 { color: var(--text); font-size: clamp(1.875rem, 3.4vw, 2.25rem); font-weight: 700; margin-bottom: 10px; }
.why-section .why-sub { color: var(--muted); font-size: 1rem; max-width: 680px; margin: 0 auto; }

/* v1.51 — mobile: section spacing compact (heading ke beech 64px gap) */
@media (max-width: 720px) {
  .section { padding: var(--sp-6) 0; }
  .why-section { padding: 40px 20px 36px; }
  .search-group + .search-group { margin-top: var(--sp-6); }
  .search-tips { padding: 20px; }
  .search-tips-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
/* v1.26 — sticky footer: chhote pages (login/forgot/reset) par footer neeche chipke,
   niche blank na rahe. Extra space footer ke upar absorb hota hai (margin-top:auto). */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: auto; }
body > *:nth-last-child(2) { margin-bottom: 46px; }   /* content <-> footer minimum gap */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 44px 20px 30px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { margin-bottom: 14px; font-size: .95rem; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 8px; font-size: .88rem; }
/* Footer brand link flex hi rahe (upar ka block rule isko tod deta tha — icon/text misalign) */
.footer-grid a.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-about { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.footer-text { color: var(--muted); font-size: .82rem; line-height: 1.65; margin-top: 10px; max-width: 470px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--muted); margin: 0; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { text-align: center; padding: 18px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--border); }

/* ============================================================
   v1.8 — User accounts, payment, forms (public pages)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--card2); color: var(--text); font-weight: 600; font-size: var(--text-sm);
  cursor: pointer; text-decoration: none;
  transition: filter var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Button loader (SweetAlert2 / submit spinner) ---------- */
.btn-loader {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28); border-top-color: #fff;
  animation: gsmSpin .7s linear infinite; display: inline-block; flex: 0 0 15px;
}
.btn:not(.btn-primary) .btn-loader { border-color: rgba(154,154,184,.3); border-top-color: var(--accent); }
@keyframes gsmSpin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; }
.btn.is-loading > *:not(.btn-loader) { opacity: .45; }

/* ---------- Flash holder (SweetAlert2 toast source) ---------- */
.site-flash { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Scroll progress bar ---------- */
.gsm-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent);
  z-index: 9999; transition: width .1s linear;
}

/* ---------- Back to top ---------- */
.gsm-totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--accent); color: #fff; border: 0;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility var(--dur-base);
}
.gsm-totop.show { opacity: 1; visibility: visible; transform: none; }
.gsm-totop:hover { background: #ff8c33; }

/* ---------- SweetAlert2 tuning ---------- */
.gsm-popup { border-radius: var(--r-lg) !important; font-family: 'Manrope', system-ui, sans-serif !important; }
.gsm-popup .swal2-title { font-size: 1.15rem !important; font-weight: 700 !important; }
.gsm-popup .swal2-confirm,
.gsm-popup .swal2-cancel { border-radius: 10px !important; font-weight: 700 !important; font-size: .9rem !important; }
.gsm-toast { border-radius: 12px !important; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }

label { display: block; margin: 14px 0 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=file], select, textarea {
  width: 100%; background: var(--card2); border: 1px solid var(--border); color: var(--text);
  padding: 11px 14px; border-radius: 10px; font-size: .93rem; font-family: inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.6; }
input[type=file] { padding: 9px; font-size: .85rem; }

.alert { padding: 14px 18px; border-radius: 10px; margin: 18px 0; font-size: .92rem; }
.alert.success { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.alert.error { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.3); }

/* Account tables */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: .88rem; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .5px; }
.admin-table tr:last-child td { border-bottom: 0; }

/* Paid file box on post page */
.pay-box { box-shadow: 0 10px 30px rgba(255,107,0,.08); }

/* Payment card */
.pay-card { max-width: 520px; margin: 0 auto; }

/* Auth pages */
.section form.panel { margin-top: 10px; }

/* v1.26 — Compact page layout (heading + card ek saath, bada gap nahi)
   Use: login / register / forgot / reset / contact / submit */
.page-wrap { padding: 34px 0 46px; }
.page-head { text-align: center; margin-bottom: 18px; }
.page-head .kicker { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: var(--text-xs); text-transform: uppercase; }
.page-head h1 { font-size: clamp(1.875rem, 4.5vw, 2.25rem); font-weight: 800; margin: 6px 0 6px; line-height: 1.2; }
.page-head p { color: var(--muted); font-size: .92rem; margin: 0; }
.page-links { text-align: center; color: var(--muted); font-size: .88rem; margin: 0; }
.page-links a { color: var(--accent); }

/* ============================================================
   v1.13 — User Dashboard (account.php) — clean, responsive
   ============================================================ */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 22px; }
.dash-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 12px; text-align: center; text-decoration: none; display: block;
  transition: border-color .15s, transform .15s;
}
.dash-stat:hover { border-color: var(--accent); transform: translateY(-2px); }
.dash-stat b { display: block; font-size: 1.45rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.dash-stat span { font-size: var(--text-xs); color: var(--muted); }

.dash-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.dash-tab {
  padding: 9px 16px; border-radius: 9px; border: 1px solid var(--border);
  color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.dash-tab:hover { color: var(--text); border-color: var(--accent); }
.dash-tab.active { background: var(--accent); color: #fff; border-color: transparent; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.dash-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-panel-head h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.dash-panel-head a:not(.btn) { font-size: .85rem; color: var(--accent); font-weight: 600; text-decoration: none; }

.order-row {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--card2);
}
.order-main { flex: 1; min-width: 0; }
.order-main b { display: block; font-size: .9rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-main small { font-size: .75rem; color: var(--muted); }

.dash-badge { padding: 3px 11px; border-radius: 20px; font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.dash-badge.ok { background: rgba(16,185,129,.15); color: #34d399; }
.dash-badge.warn { background: rgba(245,158,11,.15); color: #fbbf24; }
.dash-badge.err { background: rgba(239,68,68,.15); color: #f87171; }
.dash-muted { color: var(--muted); font-size: .78rem; }

.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: .86rem; vertical-align: top; }
.dash-table th { color: var(--muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .5px; }
.dash-table tr:last-child td { border-bottom: 0; }

.btn-sm-dash {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn-sm-dash:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm-dash.ok { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.35); color: #34d399; }
.btn-sm-dash.ok:hover { background: #10b981; color: #fff; border-color: transparent; }

.dash-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-filters .chip { font-size: .8rem; padding: 5px 13px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.dash-filters .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.dash-empty { color: var(--muted); font-size: .9rem; padding: 18px; text-align: center; border: 1px dashed var(--border); border-radius: 10px; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   v1.18 — Live search suggestions (autocomplete dropdown)
   ============================================================ */
form.search-bar { position: relative; }
.suggest-box {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45); overflow: hidden; max-height: 420px; overflow-y: auto;
  text-align: left;
}
.suggest-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  color: var(--text); text-decoration: none; font-size: .88rem; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item i { color: var(--accent); width: 18px; text-align: center; flex: 0 0 18px; font-size: .85rem; }
.suggest-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-meta { font-size: var(--text-xs); color: var(--muted); background: var(--card2); padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.suggest-item:hover, .suggest-item.active { background: rgba(255,107,0,.10); }
.suggest-item.active .suggest-text { color: var(--accent); }
.suggest-all { color: var(--muted); font-weight: 600; font-size: .82rem; }
.suggest-all i { color: var(--muted); }

/* ============================================================
   v1.19 — Search keywords tags (post page) — REMOVED (reference design me post page pe nahi dikhte)
   ============================================================ */

/* ============================================================
   v1.24 — Payment page background loader (chhota, silent)
   ============================================================ */
.pay-loader {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,107,0,.25);
  border-top-color: var(--accent);
  animation: pay-spin .8s linear infinite;
  display: inline-block;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pay-loader { animation-duration: 2s; }
}

/* v1.25 — Static pages (terms / privacy) — clean vertical rhythm */
.terms-page, .privacy-page {
  background: var(--bg);
}
.terms-page main, .privacy-page main {
  padding: 30px 0;
}
.terms-page .page-header, .privacy-page .page-header {
  margin-bottom: 30px; text-align: center;
}
.terms-page .page-header h1, .privacy-page .page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 12px;
}
.terms-page .section-head, .privacy-page .section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap;
}
.terms-page h2, .privacy-page h2 {
  font-size: 1.25rem; font-weight: 700; margin: 24px 0 12px; color: var(--text);
}
.terms-page h2:first-child, .privacy-page h2:first-child { margin-top: 0; }
.terms-page ul, .privacy-page ul {
  margin: 0 0 14px 22px; color: var(--muted); line-height: 1.7;
}
.terms-page li, .privacy-page li {
  margin-bottom: 8px; line-height: 1.6;
}
.terms-page ol, .privacy-page ol {
  margin: 0 0 14px 22px; color: var(--muted); line-height: 1.7;
}
.terms-page ol li, .privacy-page ol li {
  margin-bottom: 8px; line-height: 1.6;
}
.terms-page a, .privacy-page a { color: var(--accent); text-decoration: underline; }
.terms-page a:hover, .privacy-page a:hover { color: var(--accent2); }

/* ============================================================
   v1.31 — PAGE LOADER (site-wide, jab tak page load ho raha hai)
   ============================================================ */
.site-loader {
  position: fixed; inset: 0; z-index: 99999;
  /* v1.36: frosted-glass (halka tint + blur) */
  background: rgba(10, 10, 18, .5);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: grid; place-items: center;
  transition: opacity .4s ease, visibility .4s ease;
}
html[data-site-theme="light"] .site-loader {
  background: rgba(244, 245, 249, .5);
}
/* v1.37 FINAL (production): loader turant dikhta hai, page load hote hi hide
   (JS: header script + site.js) */
.site-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
/* v1.37 — loader: premium dual-arc spinner (gradient arc + counter ring + pulsing core + halo ripple) */
.sl-inner { display: flex; align-items: center; justify-content: center; }
.sl-ring { position: relative; width: 60px; height: 60px; display: grid; place-items: center; }
.sl-arc {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,107,0,0) 0deg, rgba(255,107,0,0) 190deg, rgba(255,107,0,.22) 260deg, var(--accent) 340deg, #ffd9b8 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  animation: slSpin 2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255,107,0,.6));
}
.sl-arc.sl-arc2 {
  inset: 10px;
  background: conic-gradient(from 180deg, rgba(255,157,77,0) 0deg, rgba(255,157,77,0) 235deg, rgba(255,157,77,.55) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  animation: slSpinRev 1.4s linear infinite;
  filter: none;
}
.sl-core {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9d4d);
  box-shadow: 0 0 12px rgba(255,107,0,.8);
  animation: slCorePulse 1.6s ease-in-out infinite;
}
.sl-halo {
  position: absolute; inset: 0; margin: auto;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,107,0,.55);
  animation: slHalo 2s ease-out infinite;
}
@keyframes slSpin { to { transform: rotate(360deg); } }
@keyframes slSpinRev { to { transform: rotate(-360deg); } }
@keyframes slCorePulse {
  0%, 100% { transform: scale(.75); opacity: .7; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes slHalo {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(4.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-arc, .sl-core, .sl-halo { animation: none; }
  .sl-halo { display: none; }
}

/* ============================================================
   v1.27 — PUBLIC LIGHT THEME (header toggle, html[data-site-theme="light"])
   Default dark design UNTOUCHED — light sirf opt-in hai.
   ============================================================ */
html[data-site-theme="light"] {
  --bg: #f4f5f9;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #f0f1f7;
  --border: #e2e4ef;
  --text: #1c1f33;
  --muted: #5d6178;
}
html[data-site-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-site-theme="light"] .site-header { background: rgba(255,255,255,.92); }
html[data-site-theme="light"] .site-header .main-nav a { color: #4a4e66; }
html[data-site-theme="light"] .site-header .main-nav a:hover { color: #1c1f33; }
html[data-site-theme="light"] .hero { background: transparent; }
html[data-site-theme="light"] .search-bar { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
html[data-site-theme="light"] .main-nav { background: rgba(255, 255, 255, .97); }
html[data-site-theme="light"] .hero-eyebrow {
  border-color: rgba(15,23,42,.12); background: rgba(15,23,42,.05); color: #3a3f5c;
}
html[data-site-theme="light"] .hero-eyebrow .live-dot { background: #0e9f6e; box-shadow: 0 0 0 5px rgba(14,159,110,.14); }
html[data-site-theme="light"] .article-content p,
html[data-site-theme="light"] .article-content ul,
html[data-site-theme="light"] .article-content ol,
html[data-site-theme="light"] .article-content li { color: #3a3f5c; }
html[data-site-theme="light"] .article-content strong { color: #1c1f33; }
html[data-site-theme="light"] .post-card-wrap { box-shadow: 0 8px 30px rgba(15,23,42,.08); }
html[data-site-theme="light"] .single-image { box-shadow: 0 10px 26px rgba(15,23,42,.12); }
html[data-site-theme="light"] .notice-info { color: #1d4ed8; }
html[data-site-theme="light"] .notice-warning { color: #b45309; }
html[data-site-theme="light"] .notice-success { color: #047857; }
html[data-site-theme="light"] .notice-danger { color: #b91c1c; }
html[data-site-theme="light"] .alert.success { color: #047857; }
html[data-site-theme="light"] .alert.error { color: #b91c1c; }
html[data-site-theme="light"] .dash-badge.ok { color: #047857; }
html[data-site-theme="light"] .dash-badge.warn { color: #b45309; }
html[data-site-theme="light"] .dash-badge.err { color: #b91c1c; }
html[data-site-theme="light"] .btn-sm-dash.ok { color: #047857; }
html[data-site-theme="light"] .suggest-box { box-shadow: 0 18px 40px rgba(15,23,42,.14); }
html[data-site-theme="light"] .gsm-totop { box-shadow: 0 8px 22px rgba(255,107,0,.32); }
html[data-site-theme="light"] ::-webkit-scrollbar-track { background: #eef0f6; }
html[data-site-theme="light"] ::-webkit-scrollbar-thumb { background: #d3d6e2; border-color: #eef0f6; }
html[data-site-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #b9bdd0; }
html[data-site-theme="light"] .gsm-popup { background: #fff !important; color: #1c1f33 !important; }
html[data-site-theme="light"] .swal2-popup { background: #fff !important; color: #1c1f33 !important; }
