@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #EFE422;
  --primary-dark: #C9BF0A;
  --primary-light: #F7F06B;
  --primary-glow: rgba(239, 228, 34, 0.35);
  --accent: #FF4D6A;
  --accent-hover: #FF6B83;
  --accent-dark: #D93A55;
  --bg-dark: #08282D;
  --bg-darker: #051C20;
  --bg-card: #0C3339;
  --bg-card-hover: #0F3E45;
  --bg-elevated: #114048;
  --bg-input: #0A2E34;
  --text-primary: #F0F4F5;
  --text-secondary: #8BAAAF;
  --text-muted: #5D8388;
  --text-on-primary: #08282D;
  --gradient-primary: linear-gradient(135deg, #EFE422 0%, #A8FF3E 100%);
  --gradient-accent: linear-gradient(135deg, #FF4D6A 0%, #FF8F5E 100%);
  --gradient-hero: linear-gradient(160deg, #08282D 0%, #0C3339 40%, #0F3E45 100%);
  --gradient-dark: linear-gradient(180deg, #08282D 0%, #051C20 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(239, 228, 34, 0.12) 0%, transparent 70%);
  --gradient-card: linear-gradient(145deg, rgba(239, 228, 34, 0.04) 0%, transparent 60%);
  --border-subtle: rgba(239, 228, 34, 0.1);
  --border-medium: rgba(239, 228, 34, 0.2);
  --border-strong: rgba(239, 228, 34, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(239, 228, 34, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(239, 228, 34, 0.25);
  --shadow-accent: 0 4px 20px rgba(255, 77, 106, 0.3);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 1000;
  --z-mobile-menu: 999;
  --z-modal-backdrop: 1100;
  --z-modal: 1200;
  --z-tooltip: 1300;
  --z-toast: 1400;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

::selection {
  background: var(--primary);
  color: var(--text-on-primary);
}

::-moz-selection {
  background: var(--primary);
  color: var(--text-on-primary);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.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;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: rgba(239, 228, 34, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 228, 34, 0.5);
}

/* ========================================
   SITE HEADER
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  background: rgba(8, 40, 45, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(5, 28, 32, 0.95);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 40px rgba(239, 228, 34, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1320px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.site-header .brand img {
  height: 34px;
  width: auto;
}

.site-header .nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}

.site-header .nav-links li a {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.site-header .nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform var(--transition-smooth);
}

.site-header .nav-links li a:hover,
.site-header .nav-links li a.active {
  color: var(--text-primary);
  background: rgba(239, 228, 34, 0.06);
}

.site-header .nav-links li a:hover::after,
.site-header .nav-links li a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 1.5px solid rgba(239, 228, 34, 0.35);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-login:hover {
  border-color: var(--primary);
  background: rgba(239, 228, 34, 0.08);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(239, 228, 34, 0.1);
}

.btn-login:active {
  transform: scale(0.97);
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-on-primary);
  background: var(--gradient-primary);
  border: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 2px 12px rgba(239, 228, 34, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(239, 228, 34, 0.4);
}

.btn-register:hover::before {
  left: 100%;
}

.btn-register:active {
  transform: translateY(0) scale(0.97);
}

/* ========================================
   HAMBURGER
   ======================================== */

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: calc(var(--z-header) + 1);
  background: none;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

.hamburger:hover span {
  background: var(--primary-light);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  background: rgba(5, 28, 32, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: var(--z-mobile-menu);
  padding: 20px 24px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(239, 228, 34, 0.06);
  transition: all var(--transition-base);
}

.mobile-menu a:hover,
.mobile-menu a:active {
  color: var(--primary);
  padding-left: 8px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 90px 16px 50px;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 228, 34, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.2) translate(20px, -15px); opacity: 1; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #F7F06B 35%, #FFFFFF 65%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ========================================
   CTA BUTTON & CTA SECTION
   ======================================== */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-primary);
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(239, 228, 34, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.01em;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(239, 228, 34, 0.45), 0 0 60px rgba(239, 228, 34, 0.15);
}

.cta-button:hover::before {
  transform: translateX(100%);
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

.cta-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.cta-section {
  position: relative;
  padding: 60px 16px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(239, 228, 34, 0.08) 0%, rgba(255, 77, 106, 0.06) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 228, 34, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-on-primary);
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 24px rgba(239, 228, 34, 0.35);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-section .btn-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent 30%);
  animation: ctaSpin 3s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.cta-section .btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(239, 228, 34, 0.5), var(--shadow-glow-strong);
}

.cta-section .btn-cta:hover::after {
  opacity: 1;
}

@keyframes ctaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */

article.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px;
  color: var(--text-primary);
}

article.content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

article.content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

article.content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

article.content ul,
article.content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

article.content ul {
  list-style: none;
}

article.content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

article.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  transform: rotate(45deg);
}

article.content ol {
  list-style: none;
  counter-reset: ordered-list;
}

article.content ol li {
  counter-increment: ordered-list;
  position: relative;
  padding-left: 36px;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

article.content ol li::before {
  content: counter(ordered-list);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: rgba(239, 228, 34, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

article.content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

article.content strong {
  color: var(--text-primary);
  font-weight: 700;
}

article.content em {
  color: var(--primary-light);
  font-style: italic;
}

article.content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(239, 228, 34, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition-base);
}

article.content a:hover {
  color: var(--primary-light);
  text-decoration-color: var(--primary);
}

/* ========================================
   TABLES
   ======================================== */

article.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 14px;
}

article.content thead {
  background: rgba(239, 228, 34, 0.1);
}

article.content tbody {
  background: var(--bg-card);
}

article.content th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  border-bottom: 2px solid var(--border-medium);
}

article.content td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(239, 228, 34, 0.05);
}

article.content tbody tr:nth-child(even) {
  background: rgba(239, 228, 34, 0.02);
}

article.content tbody tr:hover {
  background: rgba(239, 228, 34, 0.06);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  margin-bottom: 12px;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.open {
  border-color: var(--border-strong);
  box-shadow: 0 0 20px rgba(239, 228, 34, 0.08);
}

.faq-question {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  gap: 12px;
  transition: color var(--transition-base);
  color: var(--text-primary);
  user-select: none;
}

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

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.faq-item.open .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
  opacity: 1;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ========================================
   SITE FOOTER
   ======================================== */

.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 16px 24px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-base);
  padding: 4px 0;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(239, 228, 34, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 228, 34, 0.05);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ========================================
   CARDS (generic reusable)
   ======================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-featured {
  border-color: rgba(239, 228, 34, 0.3);
}

.card-featured::before {
  opacity: 1;
  height: 3px;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(239, 228, 34, 0.15);
  color: var(--primary);
  border: 1px solid rgba(239, 228, 34, 0.25);
}

.badge-accent {
  background: rgba(255, 77, 106, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 77, 106, 0.25);
}

.badge-success {
  background: rgba(0, 214, 143, 0.12);
  color: #00D68F;
  border: 1px solid rgba(0, 214, 143, 0.25);
}

.badge-warning {
  background: rgba(255, 170, 0, 0.12);
  color: #FFAA00;
  border: 1px solid rgba(255, 170, 0, 0.25);
}

.badge-info {
  background: rgba(56, 176, 255, 0.12);
  color: #38B0FF;
  border: 1px solid rgba(56, 176, 255, 0.25);
}

.badge-live {
  background: #FF0040;
  color: white;
  animation: badgePulse 2s infinite;
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-success {
  background: rgba(0, 214, 143, 0.08);
  border-color: rgba(0, 214, 143, 0.2);
  color: #88DFBF;
}

.alert-warning {
  background: rgba(255, 170, 0, 0.08);
  border-color: rgba(255, 170, 0, 0.2);
  color: #FFD088;
}

.alert-error {
  background: rgba(255, 77, 106, 0.08);
  border-color: rgba(255, 77, 106, 0.2);
  color: #FFAABB;
}

.alert-info {
  background: rgba(56, 176, 255, 0.08);
  border-color: rgba(56, 176, 255, 0.2);
  color: #99D4FF;
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition-base);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-medium);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 228, 34, 0.1);
  background: rgba(239, 228, 34, 0.03);
}

.form-input.error {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238BAAAF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-checkbox input,
.form-radio input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  position: relative;
}

.form-radio input {
  border-radius: 50%;
}

.form-checkbox input:checked,
.form-radio input:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.form-checkbox input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-on-primary);
  font-size: 12px;
  font-weight: 700;
}

.form-radio input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-on-primary);
}

.form-helper {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error-msg {
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
}

/* ========================================
   TABS
   ======================================== */

.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  background: transparent;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(239, 228, 34, 0.06);
}

.tab.active {
  color: var(--text-on-primary);
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(239, 228, 34, 0.25);
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

/* ========================================
   MODALS
   ======================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 28, 32, 0.85);
  backdrop-filter: blur(12px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: var(--z-modal);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 18px;
  color: var(--text-muted);
}

.modal-close:hover {
  background: rgba(255, 77, 106, 0.15);
  color: var(--accent);
}

.modal-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ========================================
   TOOLTIPS
   ======================================== */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-tooltip);
  pointer-events: none;
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bg-elevated);
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  padding: 16px 0;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-base);
}

.pagination-item:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.pagination-item.active {
  color: var(--text-on-primary);
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(239, 228, 34, 0.25);
}

.pagination-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  font-size: 13px;
}

.breadcrumb-item {
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 10px;
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* ========================================
   LISTS (styled)
   ======================================== */

.list-styled {
  list-style: none;
}

.list-styled li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(239, 228, 34, 0.04);
  font-size: 14px;
  color: var(--text-secondary);
}

.list-styled li:last-child {
  border-bottom: none;
}

.list-styled li::before {
  content: '▸';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.list-check li::before {
  content: '✓';
  color: #00D68F;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 214, 143, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto 20px;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(239, 228, 34, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinLoader 0.7s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.loading-skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

.loading-bar {
  height: 14px;
  margin-bottom: 10px;
}

.loading-bar.short {
  width: 60%;
}

.loading-bar.medium {
  width: 80%;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 45, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
}

/* ========================================
   CONTENT DIVIDERS
   ======================================== */

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 32px 0;
  border: none;
}

.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 32px 0;
  opacity: 0.3;
  border: none;
}

.divider-thick {
  height: 3px;
  background: var(--gradient-primary);
  width: 60px;
  border-radius: 3px;
  margin: 24px auto;
  border: none;
}

/* ========================================
   CODE BLOCKS
   ======================================== */

.code-block {
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--primary-light);
  overflow-x: auto;
  margin: 16px 0;
}

.code-inline {
  background: rgba(239, 228, 34, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  color: var(--primary);
}

/* ========================================
   STAT BLOCKS
   ======================================== */

.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-block:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.stat-block:hover::before {
  opacity: 1;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.stat-trend.up {
  color: #00D68F;
}

.stat-trend.down {
  color: var(--accent);
}

/* ========================================
   TESTIMONIAL BLOCKS
   ======================================== */

.testimonial-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
  position: relative;
}

.testimonial-block::before {
  content: '"';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 64px;
  font-family: Georgia, serif;
  color: rgba(239, 228, 34, 0.08);
  line-height: 1;
}

.testimonial-block:hover {
  border-color: var(--border-medium);
  box-shadow: 0 0 20px rgba(239, 228, 34, 0.05);
}

.testimonial-rating {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-quote {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar-block {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-on-primary);
  flex-shrink: 0;
}

.testimonial-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-author-detail {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   MEDIA CONTAINERS
   ======================================== */

.media-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.media-container img,
.media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 40, 45, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 228, 34, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-primary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(239, 228, 34, 0.4);
}

.media-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(239, 228, 34, 0.6);
}

.media-ratio-16-9 {
  aspect-ratio: 16/9;
}

.media-ratio-4-3 {
  aspect-ratio: 4/3;
}

.media-ratio-1-1 {
  aspect-ratio: 1/1;
}

/* ========================================
   SECONDARY NAVIGATION
   ======================================== */

.nav-secondary {
  display: flex;
  gap: 4px;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-secondary::-webkit-scrollbar {
  display: none;
}

.nav-secondary a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.nav-secondary a:hover {
  color: var(--text-primary);
  background: rgba(239, 228, 34, 0.06);
}

.nav-secondary a.active {
  color: var(--primary);
  background: rgba(239, 228, 34, 0.1);
  border-color: rgba(239, 228, 34, 0.2);
}

/* Sub nav / sidebar */
.nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-sidebar a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-sidebar a:hover {
  color: var(--text-primary);
  background: rgba(239, 228, 34, 0.06);
}

.nav-sidebar a.active {
  color: var(--primary);
  background: rgba(239, 228, 34, 0.1);
  font-weight: 600;
  border-left: 3px solid var(--primary);
  padding-left: 11px;
}

/* ========================================
   CHARTS & DATA CONTAINERS
   ======================================== */

.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-area {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

/* Progress / data bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(239, 228, 34, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ========================================
   TOAST / NOTIFICATION
   ======================================== */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-toast);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 400px;
  transform: translateY(120%);
  transition: transform var(--transition-smooth);
}

.toast.visible {
  transform: translateY(0);
}

.toast-success {
  border-left: 4px solid #00D68F;
}

.toast-error {
  border-left: 4px solid var(--accent);
}

.toast-info {
  border-left: 4px solid #38B0FF;
}

.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.toast-close {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

/* ========================================
   ACCORDION (generic beyond FAQ)
   ======================================== */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item.open {
  border-color: var(--border-medium);
}

.accordion-trigger {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger:hover {
  color: var(--primary);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 228, 34, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.open .accordion-panel {
  max-height: 500px;
}

.accordion-panel-inner {
  padding: 0 18px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ========================================
   TAGS / CHIPS
   ======================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: rgba(239, 228, 34, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.tag:hover {
  background: rgba(239, 228, 34, 0.14);
  border-color: var(--border-medium);
  color: var(--primary);
}

.tag-removable {
  padding-right: 8px;
}

.tag-remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.tag-remove:hover {
  background: rgba(255, 77, 106, 0.3);
}

/* ========================================
   SWITCH / TOGGLE
   ======================================== */

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-base);
}

.switch input:checked + .switch-slider {
  background: rgba(239, 228, 34, 0.2);
  border-color: var(--primary);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
  background: var(--primary);
}

/* ========================================
   DROPDOWN
   ======================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(239, 228, 34, 0.08);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* ========================================
   AVATAR
   ======================================== */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--gradient-primary);
  color: var(--text-on-primary);
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 72px; height: 72px; font-size: 24px; }

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  margin-left: -8px;
  border: 2px solid var(--bg-dark);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* ========================================
   PRICING / VALUE CARDS (igaming specific)
   ======================================== */

.odds-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(239, 228, 34, 0.1);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.odds-pill:hover {
  background: rgba(239, 228, 34, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(239, 228, 34, 0.15);
}

.odds-pill.selected {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

.bet-slip-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.bet-slip-event {
  font-size: 13px;
  color: var(--text-secondary);
}

.bet-slip-selection {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.bet-slip-odds {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   GAME CARD (igaming specific)
   ======================================== */

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  cursor: pointer;
  group: true;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-glow);
}

.game-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-card:hover .game-card-thumb img {
  transform: scale(1.08);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 45, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-play-btn {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: var(--text-on-primary);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform var(--transition-smooth);
}

.game-card:hover .game-card-play-btn {
  transform: translateY(0);
}

.game-card-info {
  padding: 14px;
}

.game-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.game-card-provider {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   PROMOTION BANNER
   ======================================== */

.promo-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(239, 228, 34, 0.1) 0%, rgba(255, 77, 106, 0.08) 100%);
  border: 1px solid var(--border-medium);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 228, 34, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.promo-tag {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.promo-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.1;
}

.promo-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   PAGE-SPECIFIC: HEADER OVERRIDE STYLES
   Applied to existing HTML classes
   ======================================== */

.header {
  background: rgba(8, 40, 45, 0.88) !important;
  border-bottom-color: var(--border-subtle) !important;
}

.header-inner {
  max-width: 1320px;
}

.nav-desktop a {
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
  background: rgba(239, 228, 34, 0.06);
}

.btn-outline {
  border-color: rgba(239, 228, 34, 0.35);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(239, 228, 34, 0.08);
  color: var(--primary);
}

.btn-primary {
  background: var(--gradient-primary) !important;
  color: var(--text-on-primary) !important;
  box-shadow: 0 4px 20px rgba(239, 228, 34, 0.3) !important;
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(239, 228, 34, 0.45) !important;
}

.btn-accent {
  background: var(--accent) !important;
  box-shadow: 0 4px 20px rgba(255, 77, 106, 0.3) !important;
}

.btn-accent:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 6px 30px rgba(255, 77, 106, 0.45) !important;
}

/* Hero existing classes override */
.hero-badge {
  background: rgba(239, 228, 34, 0.12);
  border-color: rgba(239, 228, 34, 0.25);
  color: var(--primary);
}

.hero-badge::before {
  content: '🎲';
}

.hero-title {
  background: linear-gradient(135deg, var(--primary) 0%, #F7F06B 30%, #FFFFFF 60%, var(--primary-light) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-family: var(--font-heading);
}

.hero-bg::after {
  background: linear-gradient(180deg, rgba(8, 40, 45, 0.3) 0%, rgba(8, 40, 45, 0.95) 100%) !important;
}

.hero-orb-1 {
  background: var(--primary) !important;
}

.hero-orb-2 {
  background: var(--accent) !important;
}

.hero-stat {
  background: rgba(12, 51, 57, 0.8);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.hero-stat-value {
  color: var(--primary);
}

/* Section tag overrides */
.section-tag {
  color: var(--primary);
}

/* Category cards */
.category-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.category-card:hover {
  border-color: rgba(239, 228, 34, 0.35);
  box-shadow: var(--shadow-glow);
}

.category-card-link {
  color: var(--primary);
}

/* Features ribbon */
.features-ribbon {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%) !important;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.features-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.feature-icon {
  background: rgba(239, 228, 34, 0.12);
  border: 1px solid rgba(239, 228, 34, 0.15);
}

.feature-text p {
  color: var(--text-secondary) !important;
}

/* Live casino */
.live-casino-image {
  border-color: var(--border-subtle);
}

.live-casino-features li::before {
  color: var(--primary);
  background: rgba(239, 228, 34, 0.1);
}

/* Bonus cards */
.bonus-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.bonus-card::before {
  background: var(--gradient-primary);
}

.bonus-card:hover {
  border-color: rgba(239, 228, 34, 0.3);
  box-shadow: var(--shadow-glow);
}

.bonus-card.featured {
  border-color: rgba(255, 77, 106, 0.35);
}

.bonus-card.featured::before {
  background: var(--gradient-accent);
}

.bonus-card-value {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Sports */
.sport-tag {
  background: rgba(239, 228, 34, 0.08);
  border-color: rgba(239, 228, 34, 0.2);
}

.sports-image {
  border-color: var(--border-subtle);
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.testimonial-card:hover {
  border-color: var(--border-medium);
}

.testimonial-stars {
  color: var(--primary);
}

.testimonial-avatar {
  background: var(--gradient-primary);
  color: var(--text-on-primary);
}

/* CTA banner */
.cta-banner-bg {
  background: linear-gradient(135deg, rgba(239, 228, 34, 0.15) 0%, rgba(255, 77, 106, 0.1) 100%) !important;
  opacity: 1 !important;
}

.cta-banner {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-banner-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(239, 228, 34, 0.04) 1px, transparent 1px) !important;
}

/* FAQ overrides */
.faq-item {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.open {
  border-color: rgba(239, 228, 34, 0.35);
}

.faq-toggle {
  background: rgba(239, 228, 34, 0.12);
  color: var(--primary);
}

/* Footer overrides */
.footer {
  background: var(--bg-darker) !important;
  border-top-color: var(--border-subtle) !important;
}

.footer-links a:hover {
  color: var(--primary);
}

.age-badge {
  border-color: var(--accent);
  color: var(--accent);
}

/* App section */
.app-visual img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 228, 34, 0.08);
}

/* Payment pills */
.payment-pill {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.payment-pill:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

/* Sections backgrounds */
.game-categories {
  background: var(--gradient-dark);
}

.bonus-section {
  background: var(--gradient-dark);
}

.testimonials-section {
  background: var(--gradient-dark);
}

.app-section {
  background: var(--gradient-dark);
}

/* ========================================
   RESPONSIVE: TABLET (768px)
   ======================================== */

@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-header .container {
    height: 68px;
  }

  .mobile-menu {
    top: 68px;
    height: calc(100vh - 68px);
  }

  article.content {
    padding: 60px 24px;
  }

  article.content h2 {
    font-size: 2rem;
  }

  article.content h3 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 120px 24px 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .cta-section {
    padding: 80px 24px;
  }

  .footer-nav {
    gap: 12px 24px;
  }

  .testimonials-grid,
  .bonus-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal {
    padding: 32px;
  }

  .toast {
    bottom: 24px;
    right: 24px;
  }
}

/* ========================================
   RESPONSIVE: DESKTOP (1024px)
   ======================================== */

@media (min-width: 1024px) {
  .site-header .container {
    height: 72px;
  }

  .site-header .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  article.content {
    padding: 80px 24px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
  }

  .section {
    padding: 100px 24px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .site-header,
  .site-footer,
  .hamburger,
  .mobile-menu,
  .nav-desktop,
  .nav-links,
  .btn-login,
  .btn-register,
  .cta-button,
  .cta-section,
  .header-actions,
  .footer-nav,
  .header,
  .footer,
  .nav-desktop,
  .hero-orb,
  .hero-bg,
  .cta-banner,
  .features-ribbon {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }

  article.content {
    max-width: 100%;
    padding: 0;
  }

  article.content h2,
  article.content h3 {
    color: black;
    border-left-color: black;
  }

  article.content p,
  article.content li {
    color: #333;
  }

  article.content a {
    color: black;
    text-decoration: underline;
  }

  article.content table {
    border: 1px solid #ccc;
  }

  article.content th,
  article.content td {
    border: 1px solid #ddd;
    color: #333;
  }

  article.content thead {
    background: #f0f0f0;
  }

  article.content th {
    color: #333;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
    background: none;
  }

  .hero h1 {
    background: none;
    -webkit-text-fill-color: black;
    color: black;
    font-size: 24pt;
  }

  .faq-answer {
    max-height: none !important;
    opacity: 1 !important;
    padding: 10px 0 !important;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .fade-in,
  .slide-left,
  .slide-right,
  .scale-up {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */

@media (forced-colors: active) {
  .btn-register,
  .btn-primary,
  .btn-accent,
  .cta-button,
  .cta-section .btn-cta {
    border: 2px solid ButtonText;
  }

  .faq-item,
  .card,
  .testimonial-block,
  .stat-block {
    border: 1px solid CanvasText;
  }
}