:root {
  --bg-primary: #070d18;
  --bg-secondary: #0d172e;
  --bg-card: #132242;
  --bg-card-hover: #1a2f59;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-gold: #fbbf24;
  --accent-gold-hover: #f59e0b;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-cyan: #06b6d4;
  --accent-rose: #f43f5e;
  --border-color: #1e293b;
  --border-glow: rgba(251, 191, 36, 0.25);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --container-max: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: 70px;
}

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

a:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

.logo-container:hover,
.logo-container:focus,
.logo-container:active,
.btn:hover,
.btn:focus,
.btn:active,
.nav-link:hover,
.top-ticker a:hover,
.mobile-nav-item:hover {
  text-decoration: none !important;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Sticky Announcement / CTA Bar */
.top-ticker {
  background: linear-gradient(90deg, #1e1b4b 0%, #064e3b 50%, #1e1b4b 100%);
  color: #fef08a;
  font-size: 13px;
  padding: 6px 12px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.top-ticker a {
  color: #ffffff;
  background: var(--accent-gold);
  color: #0f172a;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 700;
  display: inline-block;
}

/* Header */
.site-header {
  background-color: rgba(13, 23, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-container,
.logo-container:hover,
.logo-container:focus,
.logo-container:active,
.logo-container:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  outline: none;
}

.logo-container * {
  text-decoration: none !important;
}

.logo-container img {
  height: 44px;
  width: 44px;
  border-radius: 10px;
  border: 1px solid var(--accent-gold);
  flex-shrink: 0;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.logo-brand {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-decoration: none !important;
}

.logo-brand span {
  color: var(--accent-gold);
  text-decoration: none !important;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (min-width: 1024px) and (max-width: 1220px) {
  .main-nav {
    gap: 10px;
  }
  .nav-link {
    font-size: 13px;
    padding: 6px 8px;
  }
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
  background-color: rgba(251, 191, 36, 0.1);
  text-decoration: none;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Responsive Header Styles */
@media (max-width: 1023px) {
  .main-nav {
    display: none !important;
  }

  .header-inner {
    height: 60px;
    padding: 0 4px;
  }

  .logo-container {
    gap: 10px;
  }

  .logo-container img {
    height: 38px;
    width: 38px;
    border-radius: 8px;
  }

  .logo-brand {
    font-size: 18px;
    letter-spacing: 0.3px;
  }

  .logo-sub {
    font-size: 9.5px;
    letter-spacing: 0.5px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .header-actions .btn-login {
    padding: 6px 11px;
  }

  .header-actions .btn-register {
    padding: 6px 13px;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .logo-container {
    gap: 8px;
  }

  .logo-container img {
    height: 34px;
    width: 34px;
  }

  .logo-brand {
    font-size: 16px;
  }

  .logo-sub {
    font-size: 8.5px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn {
    padding: 6px 8px;
    font-size: 11.5px;
  }
}

@media (max-width: 350px) {
  .logo-sub {
    display: none;
  }
  .header-actions .btn-register {
    padding: 5px 8px;
    font-size: 11px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none !important;
  border: none;
}

.btn-login {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid var(--accent-gold);
}

.btn-login:hover {
  background-color: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
}

.btn-register {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
  color: #0f172a;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #ffffff;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:after {
  content: "/";
  margin-left: 8px;
  color: var(--border-color);
}

.breadcrumbs li:last-child:after {
  content: "";
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-gold);
}

.breadcrumbs span {
  color: var(--text-main);
  font-weight: 600;
}

/* Hero Section */
.page-hero {
  background: linear-gradient(180deg, #0d172e 0%, #070d18 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0 50px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 900px) {
  .hero-grid.has-media {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: center;
  }
}

.hero-content h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 40px;
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Trust Badges Bar */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.trust-badge.badge-gold {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  background-color: rgba(251, 191, 36, 0.08);
}

.trust-badge.badge-green {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  background-color: rgba(16, 185, 129, 0.08);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  text-align: center;
}

.hero-media img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
}

/* Generative AI / AEO Answer Capsule */
.answer-capsule {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 4px solid var(--accent-emerald);
  border-radius: 10px;
  padding: 22px;
  margin: 30px 0;
}

.answer-capsule-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.answer-capsule-badge {
  background-color: var(--accent-emerald);
  color: #070d18;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.answer-capsule-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.answer-capsule-body {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Expert Insight / E-E-A-T Callout */
.expert-insight {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 30px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-emerald) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.insight-text h4 {
  font-size: 16px;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.insight-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Main Content Layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0;
}

@media (min-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr 340px;
  }
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  color: #cbd5e1;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  color: #cbd5e1;
}

.article-content li {
  margin-bottom: 8px;
}

/* Data Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
  text-align: left;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

th {
  background-color: var(--bg-secondary);
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--bg-card-hover);
}

/* Callout Boxes */
.callout {
  padding: 18px 22px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 15px;
}

.callout-pro {
  background-color: rgba(251, 191, 36, 0.08);
  border-left: 4px solid var(--accent-gold);
  color: #fef08a;
}

.callout-warning {
  background-color: rgba(244, 63, 94, 0.08);
  border-left: 4px solid var(--accent-rose);
  color: #fecdd3;
}

.callout-info {
  background-color: rgba(6, 182, 212, 0.08);
  border-left: 4px solid var(--accent-cyan);
  color: #cffafe;
}

/* Grid Cards (Hub / Spokes) */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.hub-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hub-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.hub-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.hub-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.hub-card-cta {
  color: var(--accent-gold);
  font-weight: 700;
}

/* FAQ Accordion */
.faq-section {
  margin: 50px 0;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.25s ease;
  color: var(--accent-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

.sidebar-menu a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.cta-promo-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #064e3b 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.cta-promo-box h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-promo-box p {
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 18px;
}

/* Footer */
.site-footer {
  background-color: #040810;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-col p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.payment-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.payment-badge-img {
  height: 32px;
  width: auto;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 2px 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* Floating Mobile Bottom Navigation */
.mobile-nav-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #0b1428;
  border-top: 1px solid var(--border-color);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 1024px) {
  .mobile-nav-bar {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
  gap: 3px;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--accent-gold);
}

.mobile-nav-item.highlight-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
}
