/* ============================================================
   BAJI365 - Global Stylesheet
   Site: https://www.baji365app.com
   ============================================================ */

/* ---- CSS Variables / Design System ---- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-dark: #0d0d1a;
  --color-secondary: #16213e;
  --color-accent: #f5c518;
  --color-accent-dark: #e8a000;
  --color-accent-light: #ffd700;
  --color-purple: #7b2ff7;
  --color-purple-dark: #5a1db5;
  --color-red: #c0392b;
  --color-green: #27ae60;
  --color-text: #e8e8f0;
  --color-text-muted: #9999bb;
  --color-text-dark: #1a1a2e;
  --color-bg-card: rgba(255,255,255,0.05);
  --color-bg-card-hover: rgba(255,255,255,0.09);
  --color-border: rgba(245,197,24,0.2);
  --color-border-strong: rgba(245,197,24,0.5);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(245,197,24,0.25);
  --shadow-btn: 0 4px 16px rgba(245,197,24,0.35);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --transition: 0.25s ease;
  --header-height: 72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-stack);
  background: var(--color-primary-dark);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-light); }
img, svg { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; }

/* ---- Utility Classes ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- Section Titles ---- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-accent);
  margin-bottom: 12px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
  margin-top: 10px;
  border-radius: 2px;
}
.text-center .section-title::after { margin: 10px auto 0; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 640px;
}
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-register {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-text-dark);
  box-shadow: var(--shadow-btn);
}
.btn-register:hover {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: var(--color-text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,197,24,0.5);
}
.btn-login {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-login:hover {
  background: rgba(245,197,24,0.12);
  color: var(--color-accent-light);
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(123,47,247,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9b4fff, var(--color-purple));
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border-strong);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* ---- Header / Navigation ---- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(13,13,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  background: rgba(13,13,26,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}
.logo-icon {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-accent);
  background: rgba(245,197,24,0.08);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-cta .btn { padding: 9px 20px; font-size: 0.88rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(13,13,26,0.98);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--color-accent);
  background: rgba(245,197,24,0.08);
}

/* Page offset for fixed header */
.page-content { padding-top: var(--header-height); }

/* ---- Banner ---- */
.home-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-primary-dark);
  max-height: 520px;
}
.home-banner img,
.home-banner svg {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary) 50%, #0f0f2a 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(123,47,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(245,197,24,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,0.12);
  border: 1px solid var(--color-border-strong);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ---- Cards ---- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.card-icon-gold { background: rgba(245,197,24,0.15); color: var(--color-accent); }
.card-icon-purple { background: rgba(123,47,247,0.15); color: var(--color-purple); }
.card-icon-red { background: rgba(192,57,43,0.15); color: var(--color-red); }
.card-icon-green { background: rgba(39,174,96,0.15); color: var(--color-green); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #fff; }
.card p { font-size: 0.92rem; color: var(--color-text-muted); line-height: 1.6; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ---- Feature Cards (Category) ---- */
.feature-card {
  background: linear-gradient(135deg, var(--color-bg-card), rgba(123,47,247,0.05));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--color-text);
}
.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  color: var(--color-text);
}
.feature-card .icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,197,24,0.15), rgba(123,47,247,0.15));
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  transition: all var(--transition);
}
.feature-card:hover .icon-wrap {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(245,197,24,0.25), rgba(123,47,247,0.2));
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---- Stats Section ---- */
.stats-section {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat-item { text-align: center; padding: 20px; }
.stat-item .stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--color-border-strong); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  background: var(--color-bg-card);
  transition: background var(--transition);
  gap: 12px;
}
.faq-question:hover { background: var(--color-bg-card-hover); }
.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  flex: 1;
}
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245,197,24,0.15);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 700;
}
.faq-item.open .faq-icon { background: var(--color-accent); color: var(--color-text-dark); transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--color-bg-card);
}
.faq-answer p { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.7; }
.faq-answer a { color: var(--color-accent); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.breadcrumb li a { color: var(--color-text-muted); }
.breadcrumb li a:hover { color: var(--color-accent); }
.breadcrumb li.active { color: var(--color-accent); }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--color-border-strong); }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(123,47,247,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-primary));
  border-top: 1px solid rgba(123,47,247,0.3);
  border-bottom: 1px solid rgba(123,47,247,0.3);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,197,24,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- YouTube Video ---- */
.video-section { background: var(--color-secondary); }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  max-width: 860px;
  margin: 0 auto;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

/* ---- Promotion Cards ---- */
.promo-card {
  background: linear-gradient(135deg, var(--color-bg-card), rgba(123,47,247,0.08));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.promo-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.promo-card-header {
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-primary));
  padding: 24px;
  position: relative;
}
.promo-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.promo-card-header h3 { color: #fff; font-size: 1.2rem; }
.promo-card-body { padding: 20px 24px; }
.promo-card-body p { font-size: 0.92rem; color: var(--color-text-muted); margin-bottom: 16px; }

/* ---- Steps ---- */
.steps-list { counter-reset: step; }
.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-text-dark);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.step-content p { font-size: 0.92rem; color: var(--color-text-muted); }

/* ---- Table ---- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table th {
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-primary));
  color: var(--color-accent);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}
.compare-table td {
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-card);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--color-bg-card-hover); }
.check { color: var(--color-green); font-weight: 700; }
.cross { color: var(--color-red); }

/* ---- Contact Form ---- */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-stack);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { color: var(--color-red); font-size: 0.82rem; margin-top: 4px; display: none; }
.form-success {
  background: rgba(39,174,96,0.12);
  border: 1px solid rgba(39,174,96,0.4);
  color: var(--color-green);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  display: none;
}

/* ---- Policy Pages ---- */
.policy-content { max-width: 860px; }
.policy-content h2 {
  font-size: 1.4rem;
  color: var(--color-accent);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.policy-content h3 { font-size: 1.1rem; color: #fff; margin: 24px 0 10px; }
.policy-content p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 14px; line-height: 1.8; }
.policy-content ul { margin: 12px 0 16px 20px; }
.policy-content ul li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  list-style: disc;
  line-height: 1.7;
}
.policy-content a { color: var(--color-accent); }

/* ---- Bullet List ---- */
.bullet-list { margin: 16px 0; }
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.bullet-list li::before {
  content: '▸';
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Info Box ---- */
.info-box {
  background: rgba(245,197,24,0.06);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.info-box p { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }

/* ---- Related Links ---- */
.related-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.related-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(245,197,24,0.06);
}

/* ---- Footer ---- */
#site-footer {
  background: var(--color-primary-dark);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}
.footer-brand .logo-text { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-contact p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-contact strong { color: var(--color-text); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--color-text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.85rem; color: var(--color-text-muted); }
.footer-bottom-links a:hover { color: var(--color-accent); }

/* ---- Back to Top ---- */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-text-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 900;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(245,197,24,0.5); }

/* ---- 404 Page ---- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-accent), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h2 { font-size: 1.6rem; color: #fff; margin-bottom: 12px; }
.error-page p { color: var(--color-text-muted); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Long Content Sections ---- */
.long-content h2 {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.long-content h3 { font-size: 1.15rem; color: #fff; margin: 24px 0 10px; }
.long-content p { font-size: 0.97rem; color: var(--color-text-muted); margin-bottom: 16px; line-height: 1.8; }
.long-content ul { margin: 12px 0 20px 0; }
.long-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.long-content ul li::before {
  content: '▸';
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---- Tabs ---- */
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: var(--font-stack);
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Highlight Box ---- */
.highlight-box {
  background: linear-gradient(135deg, rgba(123,47,247,0.1), rgba(245,197,24,0.05));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}
.highlight-box h3 { color: var(--color-accent); margin-bottom: 12px; }
.highlight-box p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .home-banner { max-height: 280px; }
  .home-banner img, .home-banner svg { max-height: 280px; }
  .section { padding: 48px 0; }
  .cta-section { padding: 48px 0; }
  .hero-section { padding: 48px 0 40px; }
  .page-hero { padding: 40px 0 32px; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 10px 14px; }
}

@media (max-width: 480px) {
  .header-cta .btn { padding: 8px 14px; font-size: 0.82rem; }
  .logo-text { font-size: 1.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .related-links { flex-direction: column; }
  #back-to-top { bottom: 16px; right: 16px; }
}
