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

:root {
  --color-primary: #64BAFF;
  --color-primary-light: #8ACEFF;
  --color-primary-dark: #3A9FE8;
  --color-secondary: #884EFF;
  --color-secondary-light: #A374FF;
  --color-secondary-dark: #6B30E0;
  --color-accent: #FF6B9D;
  --color-accent-alt: #FFB347;
  --color-success: #00E5A0;
  --color-warning: #FFD23F;
  --color-danger: #FF4757;
  --color-info: #64BAFF;

  --bg-deep: #0A1028;
  --bg-base: #111B3C;
  --bg-card: #162044;
  --bg-surface: #1C2A52;
  --bg-elevated: #233364;
  --bg-hover: #2A3D75;

  --text-primary: #F0F4FF;
  --text-secondary: #B0BEDC;
  --text-muted: #7A8BB5;
  --text-disabled: #4A5A80;
  --text-inverse: #0A1028;

  --gradient-brand: linear-gradient(135deg, #64BAFF 0%, #884EFF 100%);
  --gradient-brand-reverse: linear-gradient(135deg, #884EFF 0%, #64BAFF 100%);
  --gradient-warm: linear-gradient(135deg, #FF6B9D 0%, #FFB347 100%);
  --gradient-cool: linear-gradient(135deg, #00E5A0 0%, #64BAFF 100%);
  --gradient-vivid: linear-gradient(135deg, #884EFF 0%, #FF6B9D 50%, #FFB347 100%);
  --gradient-dark: linear-gradient(180deg, #0A1028 0%, #111B3C 50%, #162044 100%);
  --gradient-hero: linear-gradient(160deg, rgba(10, 16, 40, 0.97) 0%, rgba(17, 27, 60, 0.85) 40%, rgba(136, 78, 255, 0.25) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);

  --border-subtle: rgba(100, 186, 255, 0.08);
  --border-default: rgba(100, 186, 255, 0.12);
  --border-strong: rgba(100, 186, 255, 0.2);
  --border-accent: rgba(136, 78, 255, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow-primary: 0 0 40px rgba(100, 186, 255, 0.2);
  --shadow-glow-secondary: 0 0 40px rgba(136, 78, 255, 0.25);
  --shadow-glow-accent: 0 0 40px rgba(255, 107, 157, 0.2);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: rgba(136, 78, 255, 0.35);
  color: var(--text-primary);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 16, 40, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 16, 40, 0.96);
  border-bottom-color: var(--border-default);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

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

.site-header .brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  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: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.site-header .nav-links li a:hover,
.site-header .nav-links li a.active {
  color: var(--text-primary);
  background: rgba(100, 186, 255, 0.08);
}

.site-header .nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

/* ============================================
   BUTTONS: LOGIN & REGISTER
   ============================================ */

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1.5px solid rgba(100, 186, 255, 0.4);
  background: transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-login:hover {
  background: rgba(100, 186, 255, 0.1);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
}

.btn-login:focus-visible {
  outline-color: var(--color-primary);
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  box-shadow: 0 4px 16px rgba(100, 186, 255, 0.25), 0 2px 6px rgba(136, 78, 255, 0.2);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(100, 186, 255, 0.35), 0 4px 12px rgba(136, 78, 255, 0.3);
}

.btn-register:hover::before {
  opacity: 1;
}

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

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

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: rgba(100, 186, 255, 0.08);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.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: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-overlay);
  background: rgba(10, 16, 40, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.mobile-menu a {
  display: block;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: rgba(100, 186, 255, 0.08);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  background: var(--gradient-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 78, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 186, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #FFFFFF 0%, #64BAFF 40%, #884EFF 75%, #FF6B9D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.cta-button,
.cta-section .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(100, 186, 255, 0.3), 0 2px 8px rgba(136, 78, 255, 0.2);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0;
}

.cta-button::after,
.cta-section .btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.cta-button:hover,
.cta-section .btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(100, 186, 255, 0.4), 0 4px 16px rgba(136, 78, 255, 0.3);
}

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

.cta-button:active,
.cta-section .btn-cta:active {
  transform: translateY(-1px);
}

.cta-section {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(136, 78, 255, 0.12) 0%, rgba(100, 186, 255, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-xl);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
}

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

article.content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-2xl) var(--space-md);
}

article.content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: var(--space-sm);
}

article.content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

article.content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

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

article.content ul,
article.content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

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

article.content ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

article.content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

article.content ol {
  counter-reset: article-counter;
  list-style: none;
  padding-left: 0;
}

article.content ol li {
  counter-increment: article-counter;
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

article.content ol li::before {
  content: counter(article-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

article.content li {
  line-height: 1.7;
}

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

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

article.content a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(100, 186, 255, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

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

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

article.content table {
  width: 100%;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  font-size: 0.9rem;
}

article.content thead {
  background: var(--gradient-brand);
}

article.content th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}

article.content tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

article.content tbody tr:nth-child(even) {
  background: rgba(100, 186, 255, 0.03);
}

article.content tbody tr:hover {
  background: rgba(100, 186, 255, 0.06);
}

article.content td {
  padding: 12px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

article.content tbody tr:last-child {
  border-bottom: none;
}

/* Standalone table styling */
.data-table {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
}

.data-table thead {
  background: var(--gradient-brand);
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.data-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(100, 186, 255, 0.03);
}

.data-table tbody tr:hover {
  background: rgba(100, 186, 255, 0.06);
}

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

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-base);
}

.faq-item:last-child {
  border-bottom: none;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

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

.faq-question .icon,
.faq-question::after {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(136, 78, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-secondary);
  flex-shrink: 0;
  transition: transform var(--transition-slow), background var(--transition-base);
}

.faq-item.open .faq-question .icon,
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  background: rgba(136, 78, 255, 0.2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding var(--transition-slow);
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

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

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: 720px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-disabled);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

/* ============================================
   CARDS (Generic)
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-base);
}

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

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.1);
}

.card-img {
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img img {
  transform: scale(1.06);
}

/* Game Card */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(136, 78, 255, 0.25);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(136, 78, 255, 0.1);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-primary {
  background: rgba(100, 186, 255, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(100, 186, 255, 0.2);
}

.badge-secondary {
  background: rgba(136, 78, 255, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(136, 78, 255, 0.2);
}

.badge-success {
  background: rgba(0, 229, 160, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.badge-warning {
  background: rgba(255, 210, 63, 0.12);
  color: var(--color-warning);
  border: 1px solid rgba(255, 210, 63, 0.2);
}

.badge-danger {
  background: rgba(255, 71, 87, 0.12);
  color: var(--color-danger);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.badge-live {
  background: rgba(255, 71, 87, 0.15);
  color: #FF4757;
  border: 1px solid rgba(255, 71, 87, 0.25);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
}

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

.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.6;
  border: 1px solid;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.alert-info {
  background: rgba(100, 186, 255, 0.08);
  border-color: rgba(100, 186, 255, 0.2);
  color: var(--color-primary-light);
}

.alert-success {
  background: rgba(0, 229, 160, 0.08);
  border-color: rgba(0, 229, 160, 0.2);
  color: var(--color-success);
}

.alert-warning {
  background: rgba(255, 210, 63, 0.08);
  border-color: rgba(255, 210, 63, 0.2);
  color: var(--color-warning);
}

.alert-danger {
  background: rgba(255, 71, 87, 0.08);
  border-color: rgba(255, 71, 87, 0.2);
  color: var(--color-danger);
}

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

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

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

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(100, 186, 255, 0.15);
  background: var(--bg-elevated);
}

.form-input.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: var(--space-xs);
}

.form-checkbox,
.form-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

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

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

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

.form-checkbox input:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

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

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

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast);
}

.tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--text-primary);
}

.tab.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-slow);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 1.25rem;
}

.modal-close:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--color-danger);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

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

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: var(--z-tooltip);
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

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

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

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  justify-content: center;
  margin: var(--space-xl) 0;
}

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

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

.pagination-item.active {
  color: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(100, 186, 255, 0.3);
}

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

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

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 0.875rem;
  padding: var(--space-md) 0;
}

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

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

.breadcrumbs .separator {
  color: var(--text-disabled);
  margin: 0 var(--space-xs);
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   LISTS (Styled)
   ============================================ */

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 229, 160, 0.12);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 2px;
}

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

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 400px;
  margin: 0 auto var(--space-lg);
}

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

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-default);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

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

.skeleton-text {
  height: 16px;
  margin-bottom: var(--space-sm);
}

.skeleton-heading {
  height: 28px;
  width: 60%;
  margin-bottom: var(--space-md);
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-card {
  height: 240px;
  border-radius: var(--radius-xl);
}

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

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-subtitle.center {
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(136, 78, 255, 0.1);
  border: 1px solid rgba(136, 78, 255, 0.15);
  color: var(--color-secondary-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

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

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

.divider-gradient {
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.3;
  margin: var(--space-xl) 0;
  border: none;
  border-radius: var(--radius-full);
}

.divider-dotted {
  height: 0;
  border: none;
  border-top: 2px dotted var(--border-default);
  margin: var(--space-xl) 0;
}

.divider-with-text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.divider-with-text::before,
.divider-with-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

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

.code-block {
  background: var(--bg-deep);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: var(--space-md) 0;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(136, 78, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.85em;
  color: var(--color-secondary-light);
}

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

.stat-block {
  text-align: center;
  padding: var(--space-lg);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-xs);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.testimonial::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 4rem;
  font-family: Georgia, serif;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
}

.testimonial:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: var(--color-warning);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

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

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

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

.media-container.aspect-16-9 img,
.media-container.aspect-16-9 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 40, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

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

.nav-secondary {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-secondary a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-secondary a:hover,
.nav-secondary a.active {
  color: var(--text-primary);
  background: rgba(100, 186, 255, 0.1);
  border-color: rgba(100, 186, 255, 0.2);
}

/* ============================================
   CHART / DATA VISUAL CONTAINERS
   ============================================ */

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

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.chart-title {
  font-size: 1rem;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

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

.chart-area {
  min-height: 200px;
  position: relative;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: progressShine 2s ease infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 4px 16px rgba(100, 186, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 186, 255, 0.35);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(100, 186, 255, 0.06);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #FF4757, #FF6B81);
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 71, 87, 0.35);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

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

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon.btn-lg {
  width: 48px;
  height: 48px;
}

.btn-block {
  width: 100%;
}

/* ============================================
   TAG / CHIP
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.tag-removable {
  cursor: pointer;
}

.tag-removable .remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition-fast);
}

.tag-removable:hover .remove {
  background: rgba(255, 71, 87, 0.2);
  color: var(--color-danger);
}

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

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
}

.avatar-md {
  width: 44px;
  height: 44px;
  font-size: 0.875rem;
}

.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 1.25rem;
}

.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: 1.75rem;
  border-radius: var(--radius-lg);
}

.avatar-round {
  border-radius: 50%;
}

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 3px solid var(--bg-base);
  margin-left: -10px;
}

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

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

.dropdown {
  position: relative;
}

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

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

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

.dropdown-item:hover {
  background: rgba(100, 186, 255, 0.08);
  color: var(--text-primary);
}

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

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

.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-md);
  z-index: var(--z-toast);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  max-width: 380px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl);
  transform: translateY(120%);
  transition: transform var(--transition-slow);
}

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

.toast-success {
  border-left: 3px solid var(--color-success);
}

.toast-error {
  border-left: 3px solid var(--color-danger);
}

.toast-info {
  border-left: 3px solid var(--color-primary);
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

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

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

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

  .hero {
    padding-top: 100px;
    padding-bottom: var(--space-4xl);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
  }

  article.content {
    padding: var(--space-3xl) var(--space-lg);
  }

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

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

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

  .cta-section {
    padding: var(--space-4xl) 0;
  }

  .footer-nav {
    gap: var(--space-lg) var(--space-2xl);
  }

  .mobile-menu {
    top: 72px;
  }
}

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

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

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

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .hero h1 {
    font-size: 3.75rem;
    max-width: 680px;
  }

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

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

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

  .toast {
    right: var(--space-xl);
    bottom: var(--space-xl);
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .hamburger,
  .mobile-menu,
  .nav-links,
  .btn-login,
  .btn-register,
  .cta-button,
  .cta-section .btn-cta,
  .toast,
  .modal-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 12pt;
  }

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

  article.content h2,
  article.content h3 {
    color: #111;
    page-break-after: avoid;
  }

  article.content h2::after {
    display: none;
  }

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

  article.content a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

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

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

  article.content thead {
    background: #eee;
  }

  article.content th {
    color: #111;
  }

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

  .hero::before,
  .hero::after {
    display: none;
  }
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 30px rgba(100, 186, 255, 0.15);
  }
  50% {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(136, 78, 255, 0.25);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease forwards;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

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

  .spinner {
    animation: spin 0.8s linear infinite !important;
  }
}

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

@media (prefers-contrast: high) {
  :root {
    --border-subtle: rgba(255, 255, 255, 0.2);
    --border-default: rgba(255, 255, 255, 0.3);
    --text-muted: #A0B0D0;
  }
}

/* ============================================
   DARK COLOR SCHEME (already dark, enforce)
   ============================================ */

@media (prefers-color-scheme: light) {
  /* Keep dark theme regardless - it's a gaming site */
  body {
    color-scheme: dark;
  }
}