/* ═══════════════════════════════════════════════════════════════════
   MYDIGITALADDA v2 — India's Community Knowledge Hub
   Clean, content-first design inspired by Wikipedia × Medium × Scroll.in
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:wght@400;700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  --nav:          #0f172a;
  --nav-border:   #1e293b;
  --accent:       #f97316;
  --accent-dark:  #ea580c;
  --accent-bg:    #fff7ed;
  --blue:         #3b82f6;
  --green:        #10b981;

  --bg:           #ffffff;
  --surface:      #f8fafc;
  --surface-2:    #f1f5f9;
  --card:         #ffffff;

  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --text-inv:     #ffffff;

  --border:       #e2e8f0;
  --border-2:     #cbd5e1;

  --shadow-sm:    0 1px 2px rgba(15,23,42,0.05);
  --shadow:       0 4px 12px rgba(15,23,42,0.08), 0 1px 3px rgba(15,23,42,0.05);
  --shadow-lg:    0 12px 32px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.06);
  --shadow-acc:   0 8px 24px rgba(249,115,22,0.25);

  --r-sm:   6px;
  --r:      10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;

  --ease:   all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --max-w:  1440px;
  --nav-h:  60px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ─── Top Announcement Bar ──────────────────────────────────────── */
.topbar {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.topbar a { color: white; text-decoration: underline; }

/* ─── Site Navigation ───────────────────────────────────────────── */
.sitenav {
  background: var(--nav);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.sitenav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.sitenav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 24px;
}
.sitenav-logo-text { font-size: 1rem; line-height: 1; }
.sitenav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.sitenav-links::-webkit-scrollbar { display: none; }
.snl {
  color: rgba(255,255,255,0.75);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: var(--ease);
  text-decoration: none;
}
.snl:hover, .snl.active { color: #fff; background: rgba(255,255,255,0.1); }
.sitenav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 12px;
}
.sitenav-login {
  color: rgba(255,255,255,0.75);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: var(--ease);
}
.sitenav-login:hover { color: white; background: rgba(255,255,255,0.1); }
.sitenav-cta {
  background: var(--accent);
  color: white !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: var(--ease);
  white-space: nowrap;
}
.sitenav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-acc); }
.sitenav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: 8px;
  cursor: pointer;
}
.sitenav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: var(--ease);
}

/* Mobile nav */
@media (max-width: 768px) {
  .sitenav-burger { display: flex; }
  .sitenav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--nav);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 2px;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .sitenav-links.open { display: flex; }
  .snl { padding: 10px 14px; }
  /* Keep logo visible on mobile but smaller */
  .sitenav-logo-text { display: block; font-size: 0.85rem; }
}

/* ─── Category Ribbon (below nav) ───────────────────────────────── */
.cat-ribbon {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-ribbon::-webkit-scrollbar { display: none; }
.cat-ribbon-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.cat-pill {
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cat-pill:hover, .cat-pill.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Page Container ────────────────────────────────────────────── */
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ─── Hero Section ──────────────────────────────────────────────── */
.v2-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 56px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.v2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.v2-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: #fb923c;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.v2-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.v2-hero h1 .hl { color: var(--accent); }
.v2-hero p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.v2-hero-search {
  display: flex;
  max-width: 520px;
  margin: 0 auto 32px;
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.v2-hero-search input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  background: transparent;
  font-family: inherit;
}
.v2-hero-search button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--ease);
}
.v2-hero-search button:hover { background: var(--accent-dark); }
.v2-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.v2-hero-stat {
  text-align: center;
}
.v2-hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}
.v2-hero-stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Section Layout ────────────────────────────────────────────── */
.v2-section { padding: 40px 0; }
.v2-section-alt { background: var(--surface); }
.v2-section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.v2-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.v2-section-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-section-head a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.v2-section-head a:hover { text-decoration: underline; }

/* ─── Cards ─────────────────────────────────────────────────────── */
.v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.v2-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.v2-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.v2-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.v2-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.v2-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--surface-2);
}
.v2-card-icon {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--surface);
}
.v2-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.v2-card-tag {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 9px;
}
.v2-card-tag.blue { background: #eff6ff; color: var(--blue); }
.v2-card-tag.green { background: #f0fdf4; color: var(--green); }
.v2-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 7px;
}
.v2-card-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}
.v2-card-meta {
  font-size: 0.73rem;
  color: var(--text-3);
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--surface-2);
  padding-top: 10px;
  margin-top: auto;
}
.v2-card-featured { border-color: #f59e0b; background: linear-gradient(135deg,#fffbeb,#fff); }

/* Big featured card */
.v2-card-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--ease);
}
.v2-card-big:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.v2-card-big-img {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  min-height: 200px;
}
.v2-card-big-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.v2-card-big-body .v2-card-tag { margin-bottom: 12px; }
.v2-card-big-body .v2-card-title { font-size: 1.2rem; margin-bottom: 10px; }
.v2-card-big-body .v2-card-desc { font-size: 0.88rem; }
@media (max-width: 600px) {
  .v2-card-big { grid-template-columns: 1fr; }
  .v2-card-big-img { min-height: 120px; font-size: 3rem; }
}

/* ─── Category Spotlight Cards ──────────────────────────────────── */
.v2-cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.v2-cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.v2-cat-card .icon { font-size: 2.2rem; }
.v2-cat-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.v2-cat-card p { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }

/* ─── Ad Banner Placeholder ─────────────────────────────────────── */
.v2-ad {
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--r);
  padding: 8px;
  text-align: center;
  margin: 8px 0;
}
.v2-ad-label { font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }

/* ─── Post-Ad CTA Banner ────────────────────────────────────────── */
.v2-cta-banner {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 600px) { .v2-cta-banner { grid-template-columns: 1fr; text-align: center; } }
.v2-cta-banner h2 { color: white; font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.v2-cta-banner p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.v2-cta-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .v2-cta-banner-actions { justify-content: center; } }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--ease);
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}
.btn-v2-primary { background: var(--accent); color: white; }
.btn-v2-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-acc); }
.btn-v2-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-v2-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-v2-dark { background: var(--nav); color: white; }
.btn-v2-dark:hover { background: #1e293b; }
.btn-v2-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-v2-ghost:hover { background: var(--surface-2); }
.btn-v2-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-v2-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--r-md); }

/* ─── Tags / Badges ─────────────────────────────────────────────── */
.v2-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.v2-badge-orange { background: var(--accent-bg); color: var(--accent); }
.v2-badge-blue { background: #eff6ff; color: var(--blue); }
.v2-badge-green { background: #f0fdf4; color: var(--green); }

/* ─── Ticker / Breaking News Bar ────────────────────────────────── */
.v2-ticker {
  background: var(--accent);
  color: white;
  padding: 8px 0;
  overflow: hidden;
  cursor: default;
}
.v2-ticker-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}
.v2-ticker-label {
  background: white;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.v2-ticker-scroll {
  overflow: hidden;
  flex: 1;
}
.v2-ticker-track {
  display: flex;
  gap: 40px;
  animation: tickerMove 30s linear infinite;
  white-space: nowrap;
}
.v2-ticker-track:hover { animation-play-state: paused; }
.v2-ticker-track a { color: white; text-decoration: none; font-size: 0.82rem; font-weight: 500; }
.v2-ticker-track a:hover { text-decoration: underline; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Article Reading Page ──────────────────────────────────────── */
/* Article with optional sidebar layout */
.art-wrap { max-width: 860px; margin: 0 auto; padding: 36px 20px 80px; }
.art-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; max-width: 1300px; margin: 0 auto; padding: 36px 24px 80px; align-items: start; }
.art-layout .art-main { min-width: 0; }
.art-layout .art-sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 20px; }
.art-sidebar-ad { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; text-align: center; }
.art-sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }
.art-sidebar-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.art-sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.art-sidebar-links a { font-size: 0.82rem; color: var(--accent); line-height: 1.4; padding: 4px 0; border-bottom: 1px solid var(--border); }
.art-sidebar-links a:last-child { border-bottom: none; }
@media (max-width: 900px) { .art-layout { grid-template-columns: 1fr; } .art-layout .art-sidebar { position: static; } }
.art-breadcrumb { font-size: 0.78rem; color: var(--text-3); margin-bottom: 20px; }
.art-breadcrumb a { color: var(--accent); text-decoration: none; }
.art-breadcrumb a:hover { text-decoration: underline; }
.art-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; color: var(--text); }
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.art-meta .v2-badge { margin: 0; }
.art-body { font-size: 1rem; line-height: 1.8; color: #1e293b; }
.art-body h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 14px; color: var(--text); line-height: 1.3; }
.art-body h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--text); }
.art-body p { margin-bottom: 18px; }
.art-body ul, .art-body ol { margin: 0 0 18px 24px; }
.art-body li { margin-bottom: 7px; }
.art-body strong { color: var(--text); font-weight: 700; }
.art-body a { color: var(--accent); }
.art-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 24px 0;
  background: var(--accent-bg);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--text-2);
}
.art-tipbox {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--text);
}
.art-ad { margin: 32px 0; }
.art-author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 18px;
  margin-top: 36px;
}
.art-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ─── Related Articles Box ──────────────────────────────────────── */
.art-related {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 20px;
  margin-top: 36px;
}
.art-related h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.art-related-links { display: flex; flex-direction: column; }
.art-related-links a {
  color: var(--text);
  font-size: 0.87rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--ease);
}
.art-related-links a:last-child { border-bottom: none; }
.art-related-links a:hover { color: var(--accent); padding-left: 4px; }
.art-related-links a::before { content: '→'; color: var(--accent); font-size: 0.8rem; flex-shrink: 0; }

/* ─── Form Styles ───────────────────────────────────────────────── */
.v2-form-wrap { max-width: 680px; margin: 0 auto; }
.v2-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.v2-form-card h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.v2-form-step { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-3); margin-bottom: 6px; }
.v2-field { margin-bottom: 16px; }
.v2-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.v2-field label small { font-weight: 400; color: var(--text-3); }
.v2-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: var(--ease);
  outline: none;
}
.v2-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.v2-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.v2-textarea { min-height: 120px; resize: vertical; }
.v2-grid-2c { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .v2-grid-2c { grid-template-columns: 1fr; } }
.v2-notice {
  background: #eff6ff;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 11px 16px;
  font-size: 0.82rem;
  color: #1e40af;
  margin-top: 12px;
}
.v2-submit {
  background: var(--accent);
  color: white;
  border: none;
  padding: 13px 24px;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: var(--ease);
  margin-top: 8px;
  font-family: inherit;
}
.v2-submit:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-acc); }
.v2-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── Duration Picker ───────────────────────────────────────────── */
.v2-duration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .v2-duration-grid { grid-template-columns: repeat(4, 1fr); } }
.v2-dur {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--ease);
  background: var(--bg);
}
.v2-dur:hover { border-color: var(--accent); background: var(--accent-bg); }
.v2-dur.selected { border-color: var(--accent); background: var(--accent-bg); }
.v2-dur-feat { border-color: #f59e0b; background: linear-gradient(135deg,#fffbeb,#fff); }
.v2-dur-feat.selected { border-color: #f59e0b; background: linear-gradient(135deg,#fef3c7,#fffbeb); }
.v2-dur-label { font-weight: 700; font-size: 0.85rem; margin-bottom: 3px; }
.v2-dur-price { font-size: 1.05rem; font-weight: 800; color: var(--accent); }
.v2-dur-desc { font-size: 0.7rem; color: var(--text-3); margin-top: 2px; }

/* ─── Community / Wiki Info Cards ───────────────────────────────── */
.v2-wiki-section { padding: 48px 0; background: var(--surface); }
.v2-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.v2-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  transition: var(--ease);
}
.v2-info-card:hover { box-shadow: var(--shadow); }
.v2-info-card .icon { font-size: 2rem; margin-bottom: 10px; }
.v2-info-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.v2-info-card p { font-size: 0.82rem; color: var(--text-2); line-height: 1.55; }

/* ─── Stats Bar ─────────────────────────────────────────────────── */
.v2-stats-bar {
  background: var(--nav);
  padding: 20px;
}
.v2-stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.v2-stat { text-align: center; }
.v2-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: white; }
.v2-stat span { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── About / Contact Pages ─────────────────────────────────────── */
.v2-page-hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 52px 20px;
  text-align: center;
}
.v2-page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.v2-page-hero p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto; font-size: 0.95rem; }
.v2-content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.v2-content-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.v2-content-card p { color: var(--text-2); line-height: 1.75; margin-bottom: 12px; font-size: 0.95rem; }
.v2-content-card p:last-child { margin-bottom: 0; }
.v2-value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.v2-value-item { background: var(--surface); border-radius: var(--r); padding: 16px; text-align: center; }
.v2-value-item .icon { font-size: 1.8rem; margin-bottom: 8px; }
.v2-value-item h3 { font-size: 0.87rem; font-weight: 700; margin-bottom: 4px; }
.v2-value-item p { font-size: 0.78rem; color: var(--text-2); margin: 0; }

/* ─── Articles Listing Page ─────────────────────────────────────── */
.v2-topics-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.v2-topic-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  color: var(--text-2);
  font-family: inherit;
}
.v2-topic-btn:hover, .v2-topic-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ─── FAQ Section ───────────────────────────────────────────────── */
.v2-faq { margin-top: 32px; }
.v2-faq h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; }
.v2-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
  overflow: hidden;
}
.v2-faq-q {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  user-select: none;
}
.v2-faq-q::after { content: '+'; color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.v2-faq-item.open .v2-faq-q::after { content: '−'; }
.v2-faq-a {
  display: none;
  padding: 0 18px 14px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  background: var(--surface);
}
.v2-faq-item.open .v2-faq-a { display: block; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.v2-footer {
  background: var(--nav);
  padding: 48px 20px 0;
  margin-top: 60px;
}
.v2-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 768px) { .v2-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .v2-footer-inner { grid-template-columns: 1fr; } }
.v2-footer-brand { font-size: 1.1rem; margin-bottom: 10px; }
.v2-footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-top: 8px; }
.v2-footer-heading { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.v2-footer-link { display: block; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 8px; text-decoration: none; transition: var(--ease); }
.v2-footer-link:hover { color: var(--accent); }
.v2-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.v2-footer-bottom p { font-size: 0.77rem; color: rgba(255,255,255,0.3); }

/* ─── Spinner / Loading ─────────────────────────────────────────── */
.v2-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast ──────────────────────────────────────────────────────── */
.v2-toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.v2-toast {
  background: var(--nav);
  color: white;
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 0.87rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}
.v2-toast.success { background: #15803d; }
.v2-toast.error { background: #dc2626; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ─── Responsive Tweaks ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .v2-grid, .v2-grid-2, .v2-grid-4 { grid-template-columns: 1fr; }
  .v2-cta-banner { padding: 28px 20px; }
  .v2-section { padding: 28px 0; }
  .v2-hero { padding: 36px 20px 44px; }
  .v2-footer-inner { gap: 24px; }
}

/* ─── Utility ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ─── Legacy compatibility (admin/post pages use styles.css separately) ── */
/* These ensure any page that accidentally loads both sheets doesn't break */
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 0.9rem; font-family: inherit; color: var(--text); background: var(--bg); outline: none; transition: var(--ease); }
.form-control:focus { border-color: var(--accent); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: var(--r); font-size: 0.875rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: var(--ease); text-decoration: none; font-family: inherit; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ─── Social Proof Notification ──────────────────────────────────── */
.sp-notif {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(15,23,42,0.14), 0 2px 8px rgba(15,23,42,0.08);
  padding: 12px 14px 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  min-width: 240px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.sp-notif.sp-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sp-notif-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--surface-2);
}
.sp-notif-body { flex: 1; min-width: 0; }
.sp-notif-name { font-size: 0.82rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-notif-msg { font-size: 0.76rem; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.sp-notif-time { font-size: 0.68rem; color: var(--text-3); margin-top: 3px; }
.sp-notif-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.sp-notif-close { position: absolute; top: 6px; right: 8px; font-size: 0.7rem; color: var(--text-3); cursor: pointer; background: none; border: none; line-height: 1; padding: 2px; }
.sp-notif-close:hover { color: var(--text); }

/* ─── Sticky bottom ad bar ──────────────────────────────────────── */
.sticky-ad-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 6px 12px;
  z-index: 998;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.sticky-ad-bar-inner { max-width: 728px; margin: 0 auto; position: relative; }
.sticky-ad-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  /* Move popup to top-right on mobile so it never blocks content below */
  .sp-notif {
    bottom: auto;
    top: 68px;
    left: auto;
    right: 10px;
    max-width: calc(100vw - 20px);
    min-width: 0;
    font-size: 0.85rem;
  }
  .sticky-ad-bar { display: none; }
  /* Show compact logo on mobile */
  .sitenav-logo { display: flex; }
  .sitenav-logo-text { display: block; font-size: 0.82rem; }
}
