:root {
  --bg: #050322;
  --bg-card: rgba(29, 28, 48, 0.85);
  --bg-glass: rgba(9, 8, 30, 0.72);
  --accent: #ffc41e;
  --accent-hover: #ffd36c;
  --text: #ffffff;
  --text-muted: #9c99b6;
  --text-soft: #afacca;
  --border: rgba(120, 119, 131, 0.45);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --toc-h: 44px;
  --cta-h: 64px;
  --container: 1180px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --gradient: linear-gradient(135deg, #ffc41e 0%, #e6a800 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--toc-h) + 16px); }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.container { width: min(92%, var(--container)); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(29, 28, 48, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.logo-text { font-weight: 800; font-size: 15px; color: var(--text); white-space: nowrap; }
.logo-text span { color: var(--accent); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-desktop a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); background: rgba(255, 196, 30, 0.08); }

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--gradient);
  color: #1a1200;
  font-weight: 800;
  font-size: 13px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255, 196, 30, 0.3);
}
.header-cta:hover { color: #000; transform: translateY(-1px); }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.burger span, .burger::before, .burger::after {
  content: "";
  display: block;
  height: 2px;
  width: 26px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.is-open span { opacity: 0; }
.burger.is-open::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open::after { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  z-index: 999;
}
.nav-mobile.is-open { max-height: 80vh; overflow-y: auto; }
.nav-mobile ul { list-style: none; margin: 0; padding: 8px 0; }
.nav-mobile li { border-top: 1px solid var(--border); }
.nav-mobile a {
  display: block;
  padding: 14px 20px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.nav-mobile .mobile-cta {
  margin: 12px 16px;
  text-align: center;
  padding: 14px;
  background: var(--gradient);
  color: #1a1200;
  border-radius: 50px;
  font-weight: 800;
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Main */
main { padding-top: var(--header-h); min-height: 60vh; }

/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs span { color: var(--text-muted); }

/* Hero */
.hero {
  position: relative;
  padding: 32px 0 48px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 196, 30, 0.12), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 28px;
  position: relative;
}
.hero-left { display: flex; flex-direction: column; gap: 16px; }
.hero-logo img { height: 56px; width: auto; max-width: 220px; }
.hero h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}
.hero-desc { color: var(--text-soft); font-size: 15px; margin: 0; max-width: 520px; }

.bonus-box {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 196, 30, 0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  backdrop-filter: blur(8px);
}
.bonus-box strong { display: block; font-size: 20px; color: var(--accent); margin-bottom: 4px; }
.bonus-box span { font-size: 14px; color: var(--text-soft); }

.promo-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.promo-block:hover { border-color: var(--accent); background: rgba(255, 196, 30, 0.06); }
.promo-block code { color: var(--accent); font-size: 16px; letter-spacing: 0.05em; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--gradient);
  color: #1a1200;
  font-weight: 800;
  font-size: 15px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(255, 196, 30, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { color: #000; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255, 196, 30, 0.45); }

.hero-right {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.rating-block { margin-bottom: 20px; }
.rating-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.rating-score .score { font-size: 42px; font-weight: 900; color: var(--accent); line-height: 1; }
.rating-score .max { font-size: 18px; color: var(--text-muted); }
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 6px;
}
.star { color: var(--accent); font-size: 18px; }
.star.empty { color: rgba(255, 196, 30, 0.25); }
.rating-label { font-size: 13px; color: var(--text-muted); }

.rating-criteria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.criteria-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}
.criteria-item .val { font-size: 20px; font-weight: 800; color: var(--accent); }
.criteria-item .lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.payments-row { margin-top: 16px; }
.payments-row p { font-size: 12px; color: var(--text-muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.payments-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.payments-carousel img { height: 28px; width: auto; flex-shrink: 0; opacity: 0.9; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-meta a { color: var(--text-soft); }

.rg-notice {
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(230, 11, 16, 0.1);
  border: 1px solid rgba(230, 11, 16, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-soft);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .rating-criteria { grid-template-columns: repeat(4, 1fr); }
}

/* TOC */
.toc-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(5, 3, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.toc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--toc-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.toc-inner::-webkit-scrollbar { display: none; }
.toc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.toc-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.toc-list a:hover, .toc-list a.active { background: rgba(255, 196, 30, 0.12); color: var(--accent); }

/* Content layout */
.content-wrap {
  display: grid;
  gap: 32px;
  padding: 32px 0 64px;
}
@media (min-width: 1024px) {
  .content-wrap.has-sidebar { grid-template-columns: 1fr 260px; }
}

.article { min-width: 0; }

/* Comparison table */
.compare-section { margin-bottom: 40px; }
.compare-section h2 { margin-top: 0; }
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: rgba(255, 196, 30, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 38%;
}
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: none; }
.compare-table td { color: var(--text-soft); background: var(--bg-glass); }

/* Article sections */
.content-section {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + var(--toc-h) + 16px);
}
.content-section h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.25;
}
.content-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-soft);
}
.content-section p { color: var(--text-soft); margin: 0 0 16px; }
.content-section ul, .content-section ol {
  color: var(--text-soft);
  margin: 0 0 16px;
  padding-left: 22px;
}
.content-section li { margin-bottom: 8px; }

/* Trust cards */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.trust-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.trust-card .icon { font-size: 28px; margin-bottom: 8px; }
.trust-card p { font-size: 13px; margin: 0; color: var(--text-soft); }

/* Author box */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 32px 0;
}
.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #1a1200;
  font-size: 18px;
  flex-shrink: 0;
}
.author-info h4 { margin: 0 0 4px; font-size: 16px; }
.author-info .role { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.author-info p { font-size: 14px; margin: 0; color: var(--text-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--accent); flex-shrink: 0; }
.faq-item.is-open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 18px 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* Related guides */
.related-guides {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
}
.related-guides h3 { margin: 0 0 16px; font-size: 18px; }
.related-guides ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related-guides a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14px;
}
.related-guides a::before { content: "→"; color: var(--accent); }
.related-guides a:hover { background: rgba(255, 196, 30, 0.08); color: var(--accent); }

/* Sidebar */
.sidebar-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + var(--toc-h) + 16px);
}
.sidebar-card h4 { margin: 0 0 12px; font-size: 15px; }
.sidebar-card .btn-primary { width: 100%; margin-top: 12px; font-size: 13px; padding: 12px; }

/* Footer */
.site-footer {
  background: rgba(29, 28, 48, 0.6);
  border-top: 1px solid var(--border);
  padding: 48px 0 100px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer-col h4 { margin: 0 0 14px; font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-weight: 900;
  font-size: 12px;
  color: var(--accent);
}

/* Sticky CTA bar */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(5, 3, 34, 0.97);
  border-top: 1px solid rgba(255, 196, 30, 0.4);
  padding: 10px 16px;
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  backdrop-filter: blur(10px);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
}
.sticky-cta-logo { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); overflow: hidden; flex-shrink: 0; }
.sticky-cta-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.sticky-cta-info { flex: 1; min-width: 0; }
.sticky-cta-info strong { display: block; font-size: 13px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta-info span { font-size: 11px; color: var(--text-muted); }
.sticky-cta .btn-primary { padding: 10px 18px; font-size: 12px; flex-shrink: 0; }

/* Updated note */
.updated-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  padding: 8px 12px;
  background: rgba(255, 196, 30, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero-visual {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
  max-width: 100%;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content-visual {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(16, 24, 38, 0.6);
}
.content-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.content-visual figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 16px 14px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

.toc-heading {
  font-size: 14px;
  font-weight: 800;
  margin: 0 16px 0 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.footer-about p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}
.footer-rg { font-size: 13px; margin-top: 8px; }
.footer-grid-strong { grid-template-columns: 1.4fr repeat(3, 1fr); }

@media (max-width: 899px) {
  .footer-grid-strong { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  .footer-grid-strong { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal-page .content-section h2 { font-size: 22px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 899px) {
  body { padding-bottom: var(--cta-h); }
}
