/* ============================================================================
   YTDrops - Modern Creator Theme v3.0
   YouTube-inspired, professional design for content creators
   ============================================================================ */

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

:root {
  /* Core Colors */
  --bg: #0f0f0f;
  --bg-elevated: #1a1a1a;
  --bg-card: #181818;
  --bg-hover: #252525;
  
  /* YouTube-inspired */
  --yt-red: #ff0000;
  --yt-red-hover: #cc0000;
  --yt-red-glow: rgba(255, 0, 0, 0.3);
  
  /* Accent Colors */
  --accent: #ff0000;
  --accent-secondary: #ff4e45;
  --accent-gradient: linear-gradient(135deg, #ff0000 0%, #ff4e45 100%);
  
  /* Supporting Colors */
  --success: #2ecc71;
  --success-bg: rgba(46, 204, 113, 0.15);
  --warning: #f1c40f;
  --warning-bg: rgba(241, 196, 15, 0.15);
  --danger: #e74c3c;
  --info: #3498db;
  --purple: #9b59b6;
  --purple-gradient: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  
  /* Text */
  --text: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #717171;
  
  /* Borders & Panels */
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --panel: rgba(255, 255, 255, 0.05);
  --panel-hover: rgba(255, 255, 255, 0.08);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--yt-red-glow);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Aliases used across components */
  --fg: var(--text);
  --muted: var(--text-muted);
  --shadow: var(--shadow-md);
}

/* ============================================================================
   Reset & Base
   ============================================================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* ============================================================================
   Layout
   ============================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.container.page {
  max-width: 800px;
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid.cols2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================================
   Navigation - Modern Creator Style
   ============================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* A bit wider than the main container so the full nav fits on desktop */
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  gap: 16px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Nav buttons on the right should look like the nav links */
.nav-right .btn.nav-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-right .btn.nav-btn:hover {
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  background: var(--panel);
}

.nav-right .btn.nav-btn.primary {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.nav-right .btn.nav-btn.primary:hover {
  background: var(--yt-red-hover);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand:hover {
  opacity: 0.9;
}

.logo {
  height: 40px;
  width: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

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

.navlinks .btn {
  padding: 8px 14px;
  font-size: 0.875rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
}

.navlinks .btn:hover {
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  background: var(--panel);
}

.navlinks .btn.primary {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.navlinks .btn.primary:hover {
  background: var(--yt-red-hover);
}

/* Top-right meta (credits + notifications) */
.nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  color: var(--text);
}

.credit-pill:hover {
  background: rgba(255,255,255,0.07);
}

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

.credit-pill .pill-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.credit-pill .pill-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255,0,0,0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.credit-pill.prize {
  border-color: rgba(255,0,0,0.25);
}

.notif-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-size: 1.05rem;
}

.notif-pill:hover {
  background: rgba(255,255,255,0.07);
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(15,15,15,0.95);
}

/* ============================================================================
   Buttons - YouTube Style
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-hover);
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--panel-hover);
  transform: translateY(-1px);
}

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

.btn.primary {
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--yt-red-glow);
}

.btn.primary:hover {
  background: var(--yt-red-hover);
  box-shadow: 0 6px 25px var(--yt-red-glow);
}

.btn.secondary {
  background: var(--purple-gradient);
  color: white;
}

.btn.success {
  background: var(--success);
  color: white;
}

.btn.danger {
  background: var(--danger);
  color: white;
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--border);
}

.btn.outline:hover {
  background: var(--panel);
  border-color: var(--text-secondary);
}

.btn.lg {
  padding: 14px 32px;
  font-size: 1.0625rem;
}

.btn.sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================================
   Cards - Modern Glass Style
   ============================================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

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

/* Dashboard Action Cards */
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.action-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.action-card.purple .icon {
  background: var(--purple-gradient);
}

.action-card.success .icon {
  background: linear-gradient(135deg, var(--success) 0%, #27ae60 100%);
}

.action-card.info .icon {
  background: linear-gradient(135deg, var(--info) 0%, #2980b9 100%);
}

.action-card h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.action-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 78, 69, 0.2) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================================
   Hero Section - Bold & Impactful
   ============================================================================ */

.hero {
  text-align: center;
  padding: 80px 20px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--yt-red-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 50%, #ffa500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

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

.hero-stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat .label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ============================================================================
   Stats Grid - Dashboard
   ============================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }
.stat-value.danger { color: var(--danger); }

/* ============================================================================
   Pills & Badges
   ============================================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--panel);
  color: var(--text-secondary);
}

.pill.green, .pill.success {
  background: var(--success-bg);
  color: var(--success);
}

.pill.red, .pill.danger {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger);
}

.pill.purple {
  background: rgba(155, 89, 182, 0.15);
  color: var(--purple);
}

.pill.yellow, .pill.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.pill.blue, .pill.info {
  background: rgba(52, 152, 219, 0.15);
  color: var(--info);
}

.pill.gray {
  background: var(--panel);
  color: var(--text-muted);
}

/* ============================================================================
   Forms
   ============================================================================ */

label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 500;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-size: 0.9375rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--yt-red-glow);
}

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

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

select {
  cursor: pointer;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* ============================================================================
   Tables
   ============================================================================ */

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

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:hover td {
  background: var(--panel);
}

/* ============================================================================
   Flash Messages
   ============================================================================ */

.flash {
  margin-bottom: 20px;
}

.msg {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-weight: 500;
  border-left: 4px solid;
}

.msg.success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.msg.error {
  background: rgba(231, 76, 60, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

.msg.warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}

.msg.info {
  background: rgba(52, 152, 219, 0.15);
  border-color: var(--info);
  color: var(--info);
}

/* ============================================================================
   User Welcome Section
   ============================================================================ */

.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.welcome-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.avatar.lg {
  width: 80px;
  height: 80px;
}

.welcome-info h1 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.welcome-info p {
  color: var(--text-secondary);
  margin: 0;
}

.welcome-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.welcome-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================================
   Quick Actions Grid
   ============================================================================ */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .quick-actions {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

.quick-action:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.quick-action .icon {
  width: 56px;
  height: 56px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.quick-action.purple .icon { background: var(--purple-gradient); }
.quick-action.success .icon { background: linear-gradient(135deg, var(--success), #27ae60); }
.quick-action.info .icon { background: linear-gradient(135deg, var(--info), #2980b9); }
.quick-action.warning .icon { background: linear-gradient(135deg, var(--warning), #f39c12); }

.quick-action .label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.quick-action .sublabel {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================================
   Section Headers
   ============================================================================ */

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

.section-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================================
   Pricing Cards
   ============================================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.pricing-card .tier {
  margin-bottom: 16px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.pricing-card .price-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.pricing-card .limit {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
}

/* ============================================================================
   FAQ Accordion
   ============================================================================ */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ============================================================================
   Winner Card
   ============================================================================ */

.winner-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(155, 89, 182, 0.1));
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--accent);
}

.winner-card .emoji {
  font-size: 64px;
  margin-bottom: 20px;
}

.winner-card .name {
  font-size: 1.75rem;
  font-weight: 700;
}

/* ============================================================================
   Footer
   ============================================================================ */

.site-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.footer-left {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

.youtube-attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.youtube-attribution img {
  height: 16px;
  opacity: 0.85;
  /* The official YouTube SVG is dark; invert so it reads on our dark theme */
  filter: invert(1);
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.muted { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 50%, #ffa500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================================
   Animations
   ============================================================================ */

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.card { animation: fadeIn 0.4s ease; }

.hero h1 { animation: fadeInUp 0.6s ease; }
.hero p { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-buttons { animation: fadeInUp 0.6s ease 0.2s both; }

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    gap: 12px;
  }
  
  .navlinks {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .navlinks::-webkit-scrollbar { display: none; }
  
  .hero {
    padding: 50px 20px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .welcome-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-section {
    align-items: center;
  }
}

/* ============================================================================
   Scrollbar
   ============================================================================ */

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 4px;
}

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

/* ============================================================================
   Verification List
   ============================================================================ */

.verification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.verification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.verification-item.verified {
  background: var(--success-bg);
}

.verification-item.pending {
  background: var(--warning-bg);
}

/* ============================================================================
   Countdown
   ============================================================================ */

.countdown {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* ============================================================================
   Creator Search
   ============================================================================ */

.creator-search {
  position: relative;
}

.creator-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: var(--shadow-lg);
}

.creator-results.show {
  display: block;
}

.creator-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.15s;
}

.creator-item:hover {
  background: var(--panel-hover);
}

.creator-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.creator-item .name {
  font-weight: 600;
}

.creator-item .channel {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================================
   Page Specific Styles
   ============================================================================ */

.container.page h1 {
  margin-bottom: 12px;
}

.container.page h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.container.page h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.container.page ul,
.container.page ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.container.page li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.container.page a {
  color: var(--accent);
}

.container.page a:hover {
  text-decoration: underline;
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
  .nav, .site-footer { display: none; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  body { background: white; color: black; }
}


/* Ensure webkit text fill never hides button labels */
.btn, .btn * {
  -webkit-text-fill-color: currentColor;
}

/* -------------------------------------------------------------------------
   Weekly Draw (refreshed UI)
--------------------------------------------------------------------------- */
.weekly-draw-hero {
  margin-top: 20px;
}

.weekly-draw-hero-inner {
  padding: 18px 18px 0 18px;
}

.weekly-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.weekly-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.weekly-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.weekly-card {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.weekly-card-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 900px) {
  .weekly-card-grid {
    grid-template-columns: 1fr;
  }
}

.weekly-prize-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.weekly-prize-value {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.05;
}

.weekly-prize-value .units {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 8px;
}

.weekly-clock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.weekly-ring {
  position: relative;
  width: 150px;
  height: 150px;
}

.weekly-ring svg {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}

.ring-bg {
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 10;
  fill: none;
}

.ring-fg {
  stroke: var(--yt-red);
  stroke-width: 10;
  fill: none;
  stroke-linecap: round;
}

.weekly-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.weekly-ring-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.weekly-ring-time {
  font-size: 18px;
  font-weight: 800;
}

.weekly-ring-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.weekly-how {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.weekly-how h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.weekly-how ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.weekly-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.weekly-alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.weekly-alert.success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.weekly-alert.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.weekly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  cursor: pointer;
}

.weekly-btn.primary {
  background: var(--yt-red);
  border-color: rgba(0,0,0,0);
  color: white;
}

.weekly-btn.primary:hover {
  background: var(--yt-red-hover);
}

.weekly-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.weekly-btn.ghost {
  background: rgba(255,255,255,0.02);
}


/* -------------------------------------------------------------------------
   Weekly Draw - template helpers
--------------------------------------------------------------------------- */
.weekly-sections {
  margin-top: 20px;
}

.weekly-section-title {
  margin-bottom: 14px;
}

.dot {
  opacity: 0.6;
  padding: 0 6px;
}

.weekly-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.weekly-list li {
  margin: 6px 0;
}

.weekly-eligibility {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weekly-elig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.weekly-elig-row.header {
  padding-top: 0;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.weekly-elig-row:last-child {
  border-bottom: none;
}
