/* ========================================================
   No-KYC.cc — Production Stylesheet
   Clean, Lightweight, Zero-Bloat Vanilla CSS
   Full Light (Default) & Dark Mode Support
   ======================================================== */

:root {
  /* Light Mode Palette (Default) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #f8fafc;
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  
  /* Brand Accent Tokens */
  --emerald: #059669;
  --emerald-hover: #047857;
  --emerald-subtle: #ecfdf5;
  --emerald-border: #a7f3d0;
  --emerald-text: #065f46;

  --amber: #d97706;
  --amber-subtle: #fffbeb;
  --amber-border: #fde68a;
  --amber-text: #92400e;

  --rose: #e11d48;
  --rose-subtle: #fff1f2;
  --rose-border: #fecdd3;
  --rose-text: #9f1239;

  --blue: #2563eb;
  --blue-subtle: #eff6ff;
  --blue-border: #bfdbfe;
  --blue-text: #1e40af;

  /* Typography Scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Clean, Lightweight Sidebar Tokens */
  --sidebar-bg: var(--bg-card);
  --sidebar-border: var(--border-subtle);
  --sidebar-row-hover: var(--bg-subtle);
  --sidebar-row-active: var(--emerald-subtle);
  --sidebar-label-color: var(--text-sub);
  --sidebar-label-active: var(--text-main);
  --sidebar-count-bg: var(--bg-subtle);
  --sidebar-count-color: var(--text-muted);
  --sidebar-cb-border: var(--border-strong);
  --sidebar-cb-bg: var(--bg-card);

  --heading-xl: clamp(1.625rem, 2.2vw + 0.5rem, 2.125rem);
  --heading-lg: clamp(1.25rem, 1.6vw + 0.35rem, 1.5rem);
  --heading-md: clamp(1.0625rem, 1vw + 0.25rem, 1.25rem);
  --measure-prose: 70ch;

  /* Shadows & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-card: #0f172a;
  --bg-surface: #111827;
  --bg-subtle: #1e293b;
  --bg-muted: #141e33;
  --border: #1e293b;
  --border-subtle: #162032;
  --border-strong: #334155;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* Clean, Lightweight Sidebar Tokens */
  --sidebar-bg: var(--bg-card);
  --sidebar-border: var(--border-subtle);
  --sidebar-row-hover: rgba(255, 255, 255, 0.04);
  --sidebar-row-active: rgba(52, 211, 153, 0.1);
  --sidebar-label-color: var(--text-sub);
  --sidebar-label-active: var(--text-main);
  --sidebar-count-bg: rgba(255, 255, 255, 0.05);
  --sidebar-count-color: var(--text-muted);
  --sidebar-cb-border: #334155;
  --sidebar-cb-bg: #1e293b;

  --emerald: #34d399;
  --emerald-hover: #10b981;
  --emerald-subtle: rgba(52, 211, 153, 0.12);
  --emerald-border: rgba(52, 211, 153, 0.28);
  --emerald-text: #34d399;

  --amber: #f59e0b;
  --amber-subtle: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.28);
  --amber-text: #fcd34d;

  --rose: #f43f5e;
  --rose-subtle: rgba(244, 63, 94, 0.12);
  --rose-border: rgba(244, 63, 94, 0.28);
  --rose-text: #fda4af;

  --blue: #3b82f6;
  --blue-subtle: rgba(59, 130, 246, 0.12);
  --blue-border: rgba(59, 130, 246, 0.28);
  --blue-text: #93c5fd;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.55);
}

/* ========================================================
   Base Reset & Typographic Enhancements
   ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Monospace Helpers */
.font-mono {
  font-family: var(--font-mono);
}

/* Fluid Typography Classes */
.heading-xl {
  font-size: var(--heading-xl);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text-main);
}

.heading-lg {
  font-size: var(--heading-lg);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-main);
}

.heading-md {
  font-size: var(--heading-md);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text-main);
}

.prose-measure {
  max-width: var(--measure-prose);
}

/* ========================================================
   Header & Navigation
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-shield {
  width: 34px;
  height: 34px;
  background-color: var(--emerald);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--emerald);
}

.brand-text span {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.registry-badge {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .registry-badge {
    display: flex;
  }
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
}

.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  background: var(--border);
  color: var(--text-main);
}

/* ========================================================
   Main Layout Container (2 Columns)
   ======================================================== */
.app-container {
  display: flex;
  flex: 1;
  width: 100%;
}

@media (max-width: 1023px) {
  .app-container {
    flex-direction: column;
  }
}

/* ========================================================
   Left Sidebar: Clean, Soft & Lightweight UX
   ======================================================== */
.sidebar {
  width: 100%;
  background-color: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 1024px) {
  .sidebar {
    width: 260px;
    border-bottom: none;
    border-right: 1px solid var(--sidebar-border);
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.sidebar-flow {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0 0.35rem;
}

.sidebar-section-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.sidebar-reset-btn {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.sidebar-reset-btn:hover {
  background: var(--emerald-subtle);
  color: var(--emerald);
  border-color: var(--emerald-border);
}

.sidebar-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.filter-option-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.12s ease;
  user-select: none;
}

.filter-option-row:hover {
  background-color: var(--sidebar-row-hover);
}

.filter-option-row:has(.custom-cb:checked) {
  background-color: var(--sidebar-row-active);
}

.filter-option-row:has(.custom-cb:checked) .sidebar-opt-label {
  color: var(--sidebar-label-active);
  font-weight: 600;
}

.sidebar-opt-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.85;
  transition: opacity 0.12s ease;
}

.filter-option-row:hover .sidebar-opt-icon {
  opacity: 1;
}

.sidebar-opt-label {
  font-size: 0.8125rem;
  color: var(--sidebar-label-color);
  font-weight: 450;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: color 0.12s ease;
}

.sidebar-opt-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--sidebar-count-color);
  background: var(--sidebar-count-bg);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.12s ease;
}

.filter-option-row:hover .sidebar-opt-count {
  color: var(--text-main);
}

.filter-option-row:has(.custom-cb:checked) .sidebar-opt-count {
  color: var(--emerald-text);
  background: rgba(16, 185, 129, 0.18);
  font-weight: 700;
}

.custom-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--sidebar-cb-border);
  border-radius: 4px;
  background-color: var(--sidebar-cb-bg);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
  transition: all 0.12s ease;
  margin: 0;
}

.custom-cb:hover {
  border-color: var(--emerald);
}

.custom-cb:checked {
  background-color: var(--emerald);
  border-color: var(--emerald);
}

.custom-cb:checked::before {
  content: "";
  width: 7px;
  height: 3.5px;
  border-left: 1.75px solid #ffffff;
  border-bottom: 1.75px solid #ffffff;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}

/* ========================================================
   Main Directory Content
   ======================================================== */
.main-content {
  flex: 1;
  padding: 1.25rem 1rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .main-content {
    padding: 1.35rem 1.35rem 2.5rem 1.35rem;
  }
}

.directory-topbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.15rem;
}

@media (min-width: 640px) {
  .directory-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.directory-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========================================================
   Service Cards Grid (Lightweight, High-End, 4 Per Row on Devices)
   ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 520px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

@media (min-width: 860px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}

/* Monogram Brand Color Tokens */
.bg-emerald-600 { background: #059669 !important; color: #ffffff !important; }
.bg-blue-600 { background: #2563eb !important; color: #ffffff !important; }
.bg-amber-600 { background: #d97706 !important; color: #ffffff !important; }
.bg-purple-600 { background: #7c3aed !important; color: #ffffff !important; }
.bg-rose-800 { background: #9f1239 !important; color: #ffffff !important; }

/* The Service Card - Ultra-lightweight, zero GPU lag, crisp & high-end */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.85rem 0.9rem 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.14s ease, transform 0.14s ease;
  position: relative;
  min-width: 0;
  contain: content;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45);
}

.service-card-body {
  display: flex;
  flex-direction: column;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.service-logo-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
  text-decoration: none;
  transition: border-color 0.12s ease;
}

.service-card:hover .service-logo-box {
  border-color: var(--border-strong);
}

.service-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.service-logo-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.service-meta-top {
  flex: 1;
  min-width: 0;
}

.service-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.service-name-link {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: color 0.12s ease;
}

.service-name-link:hover {
  color: var(--emerald);
}

.srv-status-icon {
  flex-shrink: 0;
}

.service-badges-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-tor {
  color: #9333ea;
  border-color: rgba(147, 51, 234, 0.25);
  background: rgba(147, 51, 234, 0.06);
}

/* Factual Summary - strictly clamped to 2 lines for uniform card height */
.service-summary {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-sub);
  margin-top: 0.55rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.175rem;
}

/* Card Bottom Metadata Bar */
.service-card-footer {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-footer-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.6875rem;
  color: #ffffff;
  flex-shrink: 0;
}

.badge-score-high { background-color: var(--emerald); }
.badge-score-med { background-color: var(--amber); }
.badge-score-low { background-color: var(--rose); }

.kyc-pill {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.625rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.kyc-emerald {
  background: var(--emerald-subtle);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.kyc-amber {
  background: var(--amber-subtle);
  border-color: var(--amber-border);
  color: var(--amber-text);
}

.kyc-rose {
  background: var(--rose-subtle);
  border-color: var(--rose-border);
  color: var(--rose-text);
}

.card-footer-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.crypto-micro-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-sub);
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.review-btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--emerald-text);
  padding: 0.12rem 0.42rem;
  border-radius: 3px;
  border: 1px solid var(--emerald-border);
  background: var(--emerald-subtle);
  text-decoration: none;
  transition: all 0.12s ease;
}

.review-btn-compact:hover {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}

.review-btn-compact:hover i {
  color: #ffffff;
}

/* ========================================================
   Review Page (/review/{domain})
   ======================================================== */
.review-page-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  width: 100%;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-nav a:hover {
  color: var(--emerald);
}

.review-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.review-header-flex {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .review-header-flex {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.review-brand-left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.review-logo-large {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  padding: 6px;
  overflow: hidden;
}

.review-score-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 140px;
}

.score-number-big {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--amber);
}

.alert-banner-amf {
  background: var(--rose-subtle);
  border: 1px solid var(--rose-border);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  gap: 1rem;
  color: var(--text-main);
}

.alert-banner-amf h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-text);
  margin-bottom: 0.25rem;
}

.alert-banner-amf p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-sub);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.spec-card-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.spec-card-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.editorial-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.editorial-h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.85rem;
  color: var(--text-main);
}

.editorial-h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.5rem 0 0.65rem;
  color: var(--text-main);
}

.editorial-h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-main);
}

.editorial-li {
  margin-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-sub);
}

.editorial-section p {
  color: var(--text-sub);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* FAQ Box */
.faq-box {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.faq-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-sub);
}

/* ========================================================
   Footer
   ======================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ========================================================
   Admin Styling (/ad/)
   ======================================================== */
.admin-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.admin-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
}

.admin-nav a.active, .admin-nav a:hover {
  background: var(--bg-subtle);
  color: var(--emerald);
  font-weight: 700;
}

.admin-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  width: 100%;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-subtle);
}

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--emerald-hover);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.smart-fetch-btn {
  background: var(--blue-subtle);
  color: var(--blue-text);
  border: 1px solid var(--blue-border);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.smart-fetch-btn:hover {
  background: var(--blue);
  color: #ffffff;
}
