/* ===== SALE BANNER ===== */
.sale-banner {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: linear-gradient(135deg, #ff0040, #ff6b00, #ff0040);
  background-size: 200% 200%;
  animation: saleBannerGlow 3s ease infinite;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  overflow: hidden;
  border-bottom: 3px solid #ffd700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 60px;
}

.sale-banner:hover {
  transform: scale(1.01);
  box-shadow: 0 5px 30px rgba(255, 0, 64, 0.5);
}

.sale-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: saleBannerShine 2s infinite;
  pointer-events: none;
}

@keyframes saleBannerGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes saleBannerShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.sale-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px 20px;
  position: relative;
  z-index: 1;
}

.sale-badge {
  background: #000;
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  animation: saleBadgePulse 1s ease infinite;
  white-space: nowrap;
}

@keyframes saleBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.sale-text {
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.sale-text strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.sale-text span {
  font-size: 14px;
  opacity: 0.95;
}

.sale-cta {
  background: #000;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #ffd700;
  animation: saleCtaPulse 2s ease infinite;
  white-space: nowrap;
}

.sale-cta:hover {
  background: #ffd700;
  color: #000;
  transform: scale(1.05);
}

@keyframes saleCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  50% { box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0.3); }
}

.sale-countdown {
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 25px;
  color: #ffd700;
  font-weight: 600;
  font-size: 14px;
  flex-basis: 100%;
  text-align: center;
  margin-top: 5px;
}

.spots-left strong {
  color: #fff;
  font-size: 16px;
}

@media (max-width: 768px) {
  .sale-banner {
    padding: 8px 10px;
    min-height: auto;
    position: relative !important;
  }
  
  .sale-banner-content {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
  }
  
  .sale-badge {
    display: none; /* Hide on mobile */
  }
  
  .sale-text {
    display: none; /* Hide description on mobile */
  }
  
  .sale-text strong {
    display: none;
  }
  
  .sale-text span {
    display: none;
  }
  
  .sale-cta {
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  .sale-countdown {
    padding: 5px 10px;
    font-size: 11px;
    flex-basis: auto;
    margin-top: 0;
    background: transparent;
  }
  
  .spots-left strong {
    font-size: 13px;
  }
}

/* ===== CSS Variables ===== */
:root {
  --bg: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --card: #16213e;
  --text: #ffffff;
  --text-secondary: #9ca3af;
  --accent: #3b82f6;
  --accent-light: rgba(59, 130, 246, 0.15);
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, 0.15);
  --warning: #facc15;
  --danger: #ef4444;
  --purple: #a855f7;
  --purple-light: rgba(168, 85, 247, 0.15);
  --orange: #ff6b35;
  --gold: #ffd700;
  --cyan: #00d4ff;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.nav {
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  position: fixed;
  top: 93px; /* Sale banner height */
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand img {
  height: 36px;
  transition: height 0.3s ease;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 215, 0, 0.1);
}

.nav-links a.rules-link {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  animation: rulesGlow 2s infinite;
}

.nav-links a.rules-link:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.35) 0%, rgba(255, 215, 0, 0.35) 100%);
  color: white;
}

@keyframes rulesGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
}

.nav-auth {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
  color: var(--text-secondary);
}

.lang-toggle:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--accent);
}

.lang-toggle .lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-toggle .code {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* ===== Hero Section ===== */
.hero {
  padding: 230px 0 80px; /* 140px nav + 90px sale banner */
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.info-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

.info-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}

/* ===== Grid ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .nav {
    position: relative !important;
    top: 0 !important;
    padding: 8px 0;
  }
  
  .nav-inner {
    gap: 10px;
  }
  
  .nav-links {
    display: none;
  }
  
  .brand img {
    height: 28px;
  }
  
  .nav-auth .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .lang-toggle {
    padding: 6px 10px;
  }
  
  .hero {
    padding-top: 40px !important; /* Mobile: normal padding since nav is relative */
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  /* Announcement badge mobile fix */
  .announcement-badge {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
  }
  
  .announcement-header {
    flex-wrap: wrap !important;
    padding-top: 0 !important;
  }
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Live Frame ===== */
.live-frame {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-secondary);
}

/* ===== Live Stream Container ===== */
.live-chat-container {
  display: flex;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.live-video-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.live-video-card {
  padding: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.live-video-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #cc0000;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.live-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.live-video-card .live-frame {
  border-radius: 0;
  flex: 1;
  min-height: 500px;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.live-video-footer {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border);
}

/* ===== Comments Section - Modern Design ===== */
.comments-section {
  max-width: 1200px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, rgba(30, 35, 50, 0.95), rgba(20, 25, 35, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.comments-title svg {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.comments-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Comment Input Section */
.comment-input-section {
  padding: 24px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-input-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.comment-avatar svg {
  color: white;
  opacity: 0.9;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  min-height: 56px;
}

.comment-textarea:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.comment-textarea:focus {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.comment-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.comment-cancel-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.comment-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.comment-submit-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.comment-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.comment-submit-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.comment-login-prompt {
  margin-top: 8px;
  padding: 12px 20px;
  background: rgba(255, 200, 0, 0.08);
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-radius: 12px;
  font-size: 14px;
  color: #ffc800;
  display: none;
}

.comment-login-prompt a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin: 0 4px;
}

.comment-login-prompt a:hover {
  text-decoration: underline;
}

/* Comments List */
.comments-list {
  padding: 0;
  max-height: 700px;
  overflow-y: auto;
}

.comments-list::-webkit-scrollbar {
  width: 6px;
}

.comments-list::-webkit-scrollbar-track {
  background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  text-align: center;
}

.comments-empty svg {
  opacity: 0.2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.comments-empty p {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.comments-empty span {
  font-size: 14px;
  opacity: 0.6;
}

/* Individual Comment - Modern Card Style */
.comment-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  margin: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.comment-item:first-child {
  margin-top: 16px;
}

.comment-item:last-child {
  margin-bottom: 16px;
}

.comment-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.comment-item .comment-avatar {
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comment-time {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-time::before {
  content: '•';
  opacity: 0.5;
}

.comment-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  word-wrap: break-word;
  opacity: 0.9;
}

.comment-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.comment-action-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent);
  transform: scale(1.02);
}

.comment-action-btn.liked {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.comment-action-btn.liked svg {
  fill: #ef4444;
}

.comment-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Load More */
.comments-load-more {
  padding: 20px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
}

.load-more-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

/* Comments Responsive */
@media (max-width: 768px) {
  .comments-section {
    margin: 24px 8px 0;
    border-radius: 16px;
  }
  
  .comments-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .comments-title {
    font-size: 18px;
  }
  
  .comment-input-section {
    padding: 20px 16px;
  }
  
  .comment-input-wrapper {
    gap: 12px;
  }
  
  .comment-avatar {
    width: 40px;
    height: 40px;
  }
  
  .comment-textarea {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .comment-item {
    padding: 16px;
    margin: 6px 10px;
    gap: 12px;
  }
  
  .comment-item .comment-avatar {
    width: 38px;
    height: 38px;
  }
  
  .comment-footer {
    gap: 6px;
  }
  
  .comment-action-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .comments-count {
    align-self: flex-start;
  }
  
  .comment-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .comment-avatar {
    display: none;
  }
  
  .comment-item .comment-avatar {
    display: flex;
    width: 32px;
    height: 32px;
  }
  
  .comment-actions {
    flex-direction: column;
  }
  
  .comment-cancel-btn,
  .comment-submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  .comment-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .comment-action-btn {
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }
}

/* ===== YouTube Style Live Chat ===== */
  padding: 10px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.load-more-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
}

/* Comments Responsive */
@media (max-width: 768px) {
  .comments-section {
    margin: 24px 8px 0;
    border-radius: var(--radius);
  }
  
  .comments-header {
    padding: 14px 16px;
  }
  
  .comments-title {
    font-size: 16px;
  }
  
  .comment-input-section {
    padding: 16px;
  }
  
  .comment-input-wrapper {
    gap: 12px;
  }
  
  .comment-avatar {
    width: 36px;
    height: 36px;
  }
  
  .comment-item {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .comment-item .comment-avatar {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .comment-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .comment-avatar {
    display: none;
  }
  
  .comment-item .comment-avatar {
    display: flex;
    width: 28px;
    height: 28px;
  }
  
  .comment-footer {
    gap: 8px;
  }
  
  .comment-action-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* ===== YouTube Style Live Chat ===== */
.live-chat-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.live-chat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-viewers {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--text-secondary);
}

.chat-menu-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-menu-btn:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

/* Chat Source Toggle */
.chat-source-toggle {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: 6px;
}

.chat-source-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-source-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.chat-source-btn.active {
  background: var(--accent);
  color: white;
}

/* YouTube Chat Container */
.youtube-chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.youtube-chat-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-chat-offline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
}

.youtube-chat-offline p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.youtube-chat-offline span {
  font-size: 13px;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
}

.chat-welcome-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.chat-welcome p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.chat-welcome span {
  font-size: 13px;
}

/* Individual Message */
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  animation: chatFadeIn 0.2s ease;
}

.chat-message:hover {
  background: rgba(255, 255, 255, 0.05);
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-content {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.chat-username {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  margin-right: 6px;
}

.chat-username.owner {
  color: #ffd700;
}

.chat-username.moderator {
  color: #5e84f1;
}

.chat-username.member {
  color: #2ba640;
}

.chat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

.chat-badge img {
  width: 100%;
  height: 100%;
}

.chat-text {
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}

.chat-time {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Admin delete button */
.chat-delete-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--danger);
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.chat-message {
  position: relative;
}

.chat-message:hover .chat-delete-btn {
  opacity: 1;
}

.chat-delete-btn:hover {
  background: #dc2626;
  transform: translateY(-50%) scale(1.1);
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

.chat-message:hover .chat-time {
  opacity: 1;
}

/* Super Chat Style */
.chat-message.super-chat {
  background: linear-gradient(135deg, rgba(255, 202, 40, 0.2), rgba(255, 152, 0, 0.1));
  border: 1px solid rgba(255, 202, 40, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
}

.chat-message.super-chat .chat-username {
  color: #ffca28;
}

/* Chat Input */
.chat-input-container {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border);
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 8px;
  transition: border-color 0.2s;
}

.chat-input-wrapper:focus-within {
  border-color: var(--accent);
}

.chat-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  padding: 8px;
  outline: none;
}

.chat-input::placeholder {
  color: var(--text-secondary);
}

.chat-input:disabled {
  cursor: not-allowed;
}

.emoji-btn,
.chat-send-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.emoji-btn:hover,
.chat-send-btn:hover:not(:disabled) {
  background: var(--card);
  color: var(--text);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-send-btn:not(:disabled) {
  color: var(--accent);
}

.chat-login-prompt {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.chat-login-prompt a {
  color: var(--accent);
  font-weight: 600;
}

.chat-login-prompt a:hover {
  text-decoration: underline;
}

/* Emoji Picker */
.emoji-picker {
  position: absolute;
  bottom: 70px;
  left: 12px;
  right: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 100;
}

.emoji-picker.active {
  display: block;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emoji-picker-header {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.emoji-picker-grid button {
  background: none;
  border: none;
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.emoji-picker-grid button:hover {
  background: var(--bg-secondary);
}

/* Responsive Live Video */
@media (max-width: 1024px) {
  .live-chat-container {
    padding: 0 12px;
  }
  
  .live-video-wrapper {
    max-width: 100%;
  }
  
  .live-video-card .live-frame {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .live-chat-container {
    padding: 0 8px;
  }
  
  .live-video-card .live-frame {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }
  
  .live-video-header {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .live-title {
    font-size: 14px;
  }
  
  .live-video-footer {
    padding: 10px 16px;
  }
  
  .live-video-footer .badge {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .live-chat-container {
    padding: 0 4px;
  }
  
  .live-video-card .live-frame {
    min-height: 180px;
  }
  
  .live-video-header {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  
  .live-indicator {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .live-title {
    font-size: 13px;
  }
  
  .live-title svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== Star Ratings ===== */

/* ===== Mission List ===== */
.mission-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-list > div {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-size: 15px;
  color: var(--text-secondary);
}

/* ===== Vote ===== */
.vote-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.search:focus {
  border-color: var(--accent);
}

.vote-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.vote-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.vote-item:hover {
  background: var(--card);
  transform: translateX(4px);
}

.vote-item img {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.vote-item span {
  flex: 1;
}

.vote-item .votes {
  color: var(--accent);
  font-weight: 600;
}

/* ===== Rating ===== */
.rating {
  display: flex;
  gap: 8px;
}

.star {
  font-size: 32px;
  color: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.star:hover,
.star.active {
  color: var(--gold);
  transform: scale(1.1);
}

/* ===== Team Section ===== */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.team-member:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.team-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.team-member-info {
  flex: 1;
}

.team-member-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.team-member-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.team-member.admin .team-member-avatar {
  background: linear-gradient(135deg, var(--accent), var(--purple));
}

.team-member.founder .team-member-avatar {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.team-member.moderator .team-member-avatar {
  background: linear-gradient(135deg, var(--success), var(--cyan));
}

.team-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 450px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--text);
}

/* ===== Form ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}

.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-footer a {
  color: var(--accent);
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ===== Auth Divider ===== */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== YouTube Login Button ===== */
.btn-youtube {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-youtube:hover {
  background: #f8f9fa;
  border-color: #cc0000;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.15);
}

.btn-youtube svg {
  flex-shrink: 0;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ===== Alert ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.alert.show {
  display: block;
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* ===== User Menu ===== */
.user-menu {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-btn:hover {
  border-color: var(--accent);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

/* ===== Animations ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===== Details/Summary ===== */
details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '▶ ';
  font-size: 10px;
  margin-right: 4px;
}

details[open] summary::before {
  content: '▼ ';
}

/* ===== ABOUT PROJECT SECTION ===== */
.about-project {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.about-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-badge .badge-icon {
  font-size: 18px;
}

.about-logo {
  max-width: clamp(280px, 50vw, 500px);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(0, 212, 255, 0.3));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.about-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.about-subtitle {
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.about-card.highlight {
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--card) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.about-card.vision {
  border-color: var(--purple);
  background: linear-gradient(135deg, var(--card) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.about-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-card strong {
  color: var(--text);
}

.tech-list {
  list-style: none;
  margin-top: 16px;
}

.tech-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tech-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.feature-list {
  list-style: none;
  margin-top: 16px;
}

.feature-list li {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 6px;
}

.feature-badge.lightning {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.feature-badge.ai {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid var(--purple);
}

.feature-badge.physics {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.vision-stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* DevLog Section */
.devlog-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.devlog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.devlog-icon {
  font-size: 32px;
}

.devlog-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.devlog-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.devlog-timeline {
  display: grid;
  gap: 12px;
}

.devlog-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.devlog-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.devlog-version {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  min-width: 50px;
  text-align: center;
}

.devlog-date {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 80px;
}

.devlog-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 20px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== GAME MODES SECTION ===== */
.game-modes-section {
  margin-bottom: 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mode-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.mode-card.normal::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.mode-card.lightning::before {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.mode-card.chaos::before {
  background: linear-gradient(90deg, #a855f7, #ec4899, #f43f5e);
}

.mode-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mode-card.normal:hover {
  border-color: #3b82f6;
}

.mode-card.lightning:hover {
  border-color: #fbbf24;
}

.mode-card.chaos:hover {
  border-color: #a855f7;
}

.mode-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.mode-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mode-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.mode-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mode-features span {
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ===== ARENA THEMES SECTION ===== */
.themes-section {
  margin-bottom: 48px;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.theme-card {
  background: var(--theme-color, var(--card));
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.theme-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.theme-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Responsive Game Modes & Themes */
@media (max-width: 900px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }
  
  .themes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mode-card {
    padding: 24px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
}

/* ===== FOOTER SECTION ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
}

.social-link.youtube:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: #FF0000;
  color: #FF0000;
}

.social-link.tiktok:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: #00f2ea;
  color: #ff0050;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, rgba(253, 29, 29, 0.1), rgba(131, 58, 180, 0.1));
  border-color: #E1306C;
  color: #E1306C;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(4px);
}

.contact-item:hover .contact-icon {
  background: var(--accent);
  color: #1a1a2e;
  border-color: var(--accent);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--accent);
  transition: all 0.3s ease;
}

.contact-icon svg {
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-item a:hover svg text {
  fill: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-copyright p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 4px;
}

.footer-legal {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-legal span:not(:last-child)::after {
  content: '';
}

/* Responsive About Section */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-project {
    padding: 100px 0 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .about-title {
    font-size: 36px;
    letter-spacing: -1px;
  }
  
  .about-subtitle {
    font-size: 15px;
  }
  
  .about-card {
    padding: 24px;
  }
  
  .vision-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .devlog-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .devlog-date {
    width: 100%;
    order: 2;
  }
  
  .devlog-text {
    width: 100%;
    order: 3;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== ANIMATIONS & EFFECTS ===== */

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Enhanced Card Hover Effects */
.card,
.info-card,
.announcement-card,
.mode-card,
.stat-card,
.theme-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.info-card:hover,
.announcement-card:hover,
.mode-card:hover,
.stat-card:hover,
.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

/* Button Enhanced Effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.97);
}

/* LIVE Badge Pulse Animation */
.live-badge,
.live-indicator,
[class*="live"] .badge,
.status-live {
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

/* Navbar Scroll Effect */
.nav.scrolled {
  padding: 8px 0;
  background: rgba(15, 15, 26, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav.scrolled .brand img {
  height: 30px;
}

/* Gradient Text Animation */
.gradient-animate {
  background: linear-gradient(90deg, #ffd700, #ff6b35, #ffd700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Floating Animation */
.float {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Glow Effect */
.glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2), 0 0 10px rgba(255, 215, 0, 0.1);
  }
  to {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
  }
}

/* Stat Number Animation */
.stat-number {
  display: inline-block;
}

/* Shimmer Loading Effect */
.shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Icon Bounce on Hover */
.info-icon:hover,
.feature-icon:hover {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Section Title Underline Animation */
.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  margin-top: 8px;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.section-title:hover::after,
.reveal.active .section-title::after {
  width: 60px;
}

/* ===== RULES BANNER SECTION ===== */
.rules-banner {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-top: 80px;
  position: relative;
}

.rules-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.rules-toggle-header:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.3) 0%, rgba(255, 215, 0, 0.3) 100%);
  transform: translateY(-2px);
}

.rules-header-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.rules-icon {
  font-size: 28px;
}

.rules-toggle-header h2 {
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.rules-badge {
  background: linear-gradient(135deg, var(--danger), var(--orange));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 107, 53, 0.5); }
}

.rules-chevron {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.rules-banner.collapsed .rules-chevron {
  transform: rotate(-90deg);
}

.rules-content {
  padding: 30px 0;
  display: block;
  transition: all 0.3s ease;
}

.rules-banner.collapsed .rules-content {
  display: none;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rules-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 25px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.rules-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rules-card.game-rules {
  border-left: 4px solid var(--accent);
}

.rules-card.chat-rules {
  border-left: 4px solid var(--danger);
}

.rules-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.rules-card-icon {
  font-size: 32px;
}

.rules-card-header h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0;
}

.rules-intro {
  background: rgba(59, 130, 246, 0.1);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
}

.rules-intro h4 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.rules-intro p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.rules-section {
  margin-bottom: 18px;
}

.rules-section h5 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rules-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rules-section ul {
  list-style: none;
  padding: 0;
}

.rules-section ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 0 8px 20px;
  position: relative;
  line-height: 1.5;
}

.rules-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.rules-section.highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.rules-section.warning {
  background: rgba(239, 68, 68, 0.1);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.rules-section.warning ul li::before {
  color: var(--danger);
}

.rules-section.moderation {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.rules-tip {
  font-size: 0.85rem;
  color: var(--warning);
  margin-top: 10px;
  font-style: italic;
}

.rules-section code {
  background: rgba(59, 130, 246, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  color: var(--accent);
  font-size: 0.9rem;
}

.rules-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: var(--radius);
  margin-top: 20px;
  border: 1px dashed var(--border);
}

.note-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.rules-note p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.moderation-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.mod-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.mod-step:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.mod-icon {
  font-size: 24px;
}

.mod-step span:last-child {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.mod-arrow {
  color: var(--gold);
  font-size: 1.2rem;
}

.rules-footer {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.rules-footer p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

@media (max-width: 600px) {
  .rules-toggle-header {
    padding: 15px;
  }
  
  .rules-toggle-header h2 {
    font-size: 1.1rem;
  }
  
  .rules-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  
  .rules-card {
    padding: 18px;
  }
  
  .rules-card-header h3 {
    font-size: 1.1rem;
  }
  
  .moderation-flow {
    gap: 8px;
  }
  
  .mod-step {
    padding: 8px 12px;
  }
}

/* ===== MEMBERSHIP SECTION ===== */
.membership-section {
  background: var(--bg);
  padding: 60px 0;
}

.membership-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.membership-section .section-header h2 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.membership-section .section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 1200px) {
  .membership-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .membership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .membership-grid {
    grid-template-columns: 1fr;
  }
}

.membership-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 25px 20px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.membership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Bronze */
.membership-card.bronze {
  border-color: #cd7f32;
}
.membership-card.bronze:hover {
  box-shadow: 0 15px 40px rgba(205, 127, 50, 0.3);
}
.membership-card.bronze .membership-icon {
  filter: sepia(100%) saturate(300%) hue-rotate(-20deg) brightness(0.7);
}
.membership-card.bronze .membership-btn {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
}

/* Silver */
.membership-card.silver {
  border-color: #c0c0c0;
}
.membership-card.silver:hover {
  box-shadow: 0 15px 40px rgba(192, 192, 192, 0.3);
}
.membership-card.silver .membership-icon {
  filter: grayscale(100%) brightness(1.5);
}
.membership-card.silver .membership-btn {
  background: linear-gradient(135deg, #c0c0c0, #808080);
}

/* Gold */
.membership-card.gold {
  border-color: var(--gold);
}
.membership-card.gold:hover {
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}
.membership-card.gold .membership-icon {
  filter: sepia(100%) saturate(1000%) hue-rotate(15deg) brightness(1.2);
}
.membership-card.gold .membership-btn {
  background: linear-gradient(135deg, var(--gold), #ffa500);
}

/* Diamond */
.membership-card.diamond {
  border-color: #00d4ff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, var(--card) 100%);
}
.membership-card.diamond:hover {
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}
.membership-card.diamond .membership-btn {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
}

/* Legendary */
.membership-card.legendary {
  border-color: #ff4500;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.15) 0%, var(--card) 100%);
  animation: legendaryGlow 3s infinite;
}
.membership-card.legendary:hover {
  box-shadow: 0 15px 40px rgba(255, 69, 0, 0.4);
}
.membership-card.legendary .membership-btn {
  background: linear-gradient(135deg, #ff4500, #dc143c);
}

@keyframes legendaryGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 69, 0, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 69, 0, 0.4); }
}

.membership-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.membership-badge.legendary-badge {
  background: linear-gradient(135deg, #ff4500, #dc143c);
  animation: pulseBadge 2s infinite;
}

.membership-header {
  margin-bottom: 20px;
}

.membership-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.membership-header h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.membership-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.membership-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.membership-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  flex-grow: 1;
}

.membership-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.membership-features li:last-child {
  border-bottom: none;
}

.membership-features li.current-tier {
  color: var(--text);
  font-weight: 600;
}

.membership-features li.inherited-header {
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  border-bottom: none;
}

.membership-features li.inherited {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.8rem;
  opacity: 0.8;
}

.membership-features li.has-desc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.membership-features li.has-desc span:first-child {
  font-weight: 600;
  color: var(--text);
}

.feature-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400 !important;
  line-height: 1.4;
  padding-left: 16px;
  opacity: 0.8;
}

.membership-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.membership-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.membership-footer {
  text-align: center;
  margin-top: 20px;
}

.membership-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
}

.membership-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.membership-cta svg {
  flex-shrink: 0;
}
