/*
Theme Name: 55win Theme
Description: 55win Custom Theme - Matching Static Site
Version: 1.0.0
Author: 55win
Template: flatsome
*/
/**
 * 55WIN Master Stylesheet
 * Style 5: Deep Sea Blue Tech
 * Target Market: Vietnam
 * Platform: Comprehensive iGaming (Sports + Casino + Lottery + Esports)
 *
 * Color Palette:
 * - Primary: #0A4D68 (Deep Sea Blue)
 * - Accent: #00D9FF (Cyan Glow)
 * - Background: #001524 (Dark Navy)
 * - Text Primary: #FFFFFF
 * - Text Secondary: #B8C5D0
 * - Success: #00FF88
 * - Warning: #FFB800
 * - Error: #FF4444
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Primary Colors */
  --color-primary: #0A4D68;
  --color-primary-light: #0D6A8A;
  --color-primary-dark: #073A50;

  /* Accent Colors */
  --color-accent: #00D9FF;
  --color-accent-light: #33E1FF;
  --color-accent-dark: #00B8D9;

  /* Background Colors */
  --color-bg-primary: #001524;
  --color-bg-secondary: #002133;
  --color-bg-tertiary: #003047;
  --color-bg-card: rgba(10, 77, 104, 0.3);

  /* Text Colors */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B8C5D0;
  --color-text-muted: #7A8A96;

  /* Status Colors */
  --color-success: #00FF88;
  --color-warning: #FFB800;
  --color-error: #FF4444;
  --color-info: #00D9FF;

  /* Gold/VIP Colors */
  --color-gold: #FFD700;
  --color-gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);

  /* Typography */
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Exo 2', 'Roboto', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Font Sizes - 8px Grid */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;

  /* Spacing - 8px Grid */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-14: 112px;
  --space-16: 128px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(0, 217, 255, 0.5);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

strong, b {
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.container-lg {
  max-width: var(--container-2xl);
}

.section {
  padding: var(--space-12) 0;
}

.section-sm {
  padding: var(--space-6) 0;
}

.section-lg {
  padding: var(--space-12) 0;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, rgba(0, 21, 36, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.header-top {
  background: var(--color-primary-dark);
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact {
  display: flex;
  gap: var(--space-3);
  color: var(--color-text-secondary);
}

.header-contact a {
  color: var(--color-text-secondary);
}

.header-contact a:hover {
  color: var(--color-accent);
}

.header-social {
  display: flex;
  gap: var(--space-2);
}

.header-social a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0, 217, 255, 0.1);
  color: var(--color-accent);
  transition: all var(--transition-fast);
}

.header-social a:hover {
  background: var(--color-accent);
  color: var(--color-bg-primary);
}

.header-main {
  padding: var(--space-2) 0;
}

.header-main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-logo-text span {
  color: var(--color-accent);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: rgba(0, 217, 255, 0.1);
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-accent);
  background: rgba(0, 217, 255, 0.15);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
  display: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 12px var(--space-3);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  color: var(--color-bg-primary);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-bg-primary);
  text-decoration: none;
}

.btn-gold {
  background: var(--color-gold-gradient);
  color: var(--color-bg-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  color: var(--color-bg-primary);
  text-decoration: none;
}

.btn-lg {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
}

.btn-sm {
  padding: 10px var(--space-2);
  font-size: var(--text-xs);
  min-height: 44px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: var(--space-12) 0;
  margin-top: 100px; /* Account for fixed header */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 21, 36, 0.95) 0%,
    rgba(10, 77, 104, 0.8) 50%,
    rgba(0, 21, 36, 0.95) 100%
  );
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px var(--space-2);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-3);
  text-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
}

.hero-title .highlight {
  color: var(--color-accent);
  position: relative;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
}

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

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

/* Game Card */
.game-card {
  position: relative;
  overflow: hidden;
}

.game-card-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 4px var(--space-1);
  background: var(--color-gold-gradient);
  color: var(--color-bg-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.game-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2);
  background: linear-gradient(to top, rgba(0, 21, 36, 0.95) 0%, transparent 100%);
}

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.feature-item {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-bg-card);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.feature-icon svg,
.feature-icon img {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.feature-content h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.feature-content p {
  font-size: var(--text-sm);
  margin: 0;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 217, 255, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: var(--space-2);
  text-align: left;
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

th {
  background: var(--color-primary-dark);
  font-weight: 600;
  color: var(--color-text-primary);
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}

tr:hover {
  background: rgba(0, 217, 255, 0.05);
}

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

/* ============================================
   PROMO/BONUS CARDS
   ============================================ */
.promo-card {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.promo-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: 6px var(--space-2);
  background: var(--color-gold-gradient);
  color: var(--color-bg-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.promo-value {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.promo-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.promo-description {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-card);
  border: none;
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: rgba(0, 217, 255, 0.1);
}

.faq-question[aria-expanded="true"] {
  background: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: var(--space-3);
  background: var(--color-bg-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  padding-top: var(--space-8);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .site-logo {
  margin-bottom: var(--space-2);
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.footer-column h5 {
  color: var(--color-text-primary);
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.footer-links li {
  margin-bottom: var(--space-1);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.footer-payment img {
  height: 32px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.footer-payment img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.footer-bottom {
  padding: var(--space-3) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-3);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

/* Responsible Gambling Banner */
.responsible-gambling {
  background: var(--color-primary-dark);
  padding: var(--space-2);
  text-align: center;
}

.responsible-gambling p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.responsible-gambling strong {
  color: var(--color-warning);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-gold { color: var(--color-gold); }

.bg-primary { background-color: var(--color-bg-primary); }
.bg-secondary { background-color: var(--color-bg-secondary); }
.bg-tertiary { background-color: var(--color-bg-tertiary); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 217, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 217, 255, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 36px;
    --text-6xl: 42px;
  }

  .container {
    padding: 0 var(--space-2);
  }

  .header-top {
    display: none;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 48px;
    height: 48px;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: all var(--transition-fast);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile Navigation */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-secondary);
    padding: var(--space-3);
    gap: 0;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.active {
    display: flex;
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    width: 100%;
  }

  /* Hide only the login/register buttons on mobile, keep menu toggle */
  .header-actions .btn {
    display: none;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 500px;
    padding: var(--space-8) 0;
    margin-top: 70px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --text-4xl: 28px;
    --text-5xl: 32px;
    --text-6xl: 36px;
  }

  .btn-lg {
    width: 100%;
  }

  .promo-value {
    font-size: var(--text-4xl);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .hero-bg {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}

/* ============================================
   WORDPRESS MENU FIXES
   ============================================ */

/* 修复 WordPress wp_nav_menu 生成的 ul/li 结构 */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li a {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: block;
}

.main-nav li a:hover {
  color: var(--color-text-primary);
  background: rgba(0, 217, 255, 0.1);
  text-decoration: none;
}

/* 移除 WordPress 添加的额外样式 */
.main-nav li a:focus,
.main-nav li a:active {
  outline: none;
  box-shadow: none;
}

/* 确保 nav-link 类在 li 上也能工作 */
.main-nav li.nav-link a {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
}

.main-nav li.nav-link a:hover {
  color: var(--color-text-primary);
  background: rgba(0, 217, 255, 0.1);
  text-decoration: none;
}

/* ============================================
   HIDE FLATSOME ELEMENTS
   ============================================ */

/* 隐藏移动端侧边栏菜单 */
#main-menu,
.mobile-sidebar,
.sidebar-menu {
    display: none !important;
}

/* 隐藏搜索框 */
.header-search-form,
.searchform-wrapper,
.ux-search-box,
.search-form {
    display: none !important;
}

/* 隐藏 newsletter */
.header-newsletter-item,
#header-newsletter-signup {
    display: none !important;
}

/* 隐藏 WooCommerce 错误元素 */
.element-error {
    display: none !important;
}

/* 隐藏 Flatsome 社交图标 */
.header-social-icons.follow-icons {
    display: none !important;
}

/* 确保 footer 后面没有多余内容 */
.footer-bottom:last-child::after {
    display: none;
}

/* ============================================
   FLATSOME 样式覆盖
   ============================================ */
/* 覆盖 Flatsome 的 header-main 高度 */
.site-header .header-main {
    height: auto !important;
    padding: var(--space-2) 0 !important;
}

/* 覆盖 Flatsome 的 header-top 高度 */
.site-header .header-top {
    min-height: auto !important;
}

/* 覆盖 Flatsome 的 body 字体 */
body {
    font-family: var(--font-primary) !important;
}

/* 覆盖 Flatsome 的导航字体 */
.main-nav li a,
.main-nav .nav-link {
    font-family: var(--font-heading) !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

/* 覆盖 Flatsome 的标题字体 */
h1, h2, h3, h4, h5, h6,
.hero-title, .heading-font {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
}

/* 覆盖 Flatsome 的 logo 样式 */
.site-logo img {
    max-height: 60px !important;
    width: auto !important;
}

/* 确保 main-content 区域有正确的 padding */
#main-content {
    padding-top: 80px !important;
}

/* 覆盖 Flatsome 的 tooltip 样式 */
.tooltipster-base {
    display: none !important;
}
