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

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

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Leaderboard expand chevron arrow */
.leaderboard-expand-btn {
  position: relative;
  min-width: 100%;
  padding-left: 2.2em;
}
.chevron-down {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border-style: solid;
  border-width: 0 0.18em 0.18em 0;
  border-color: var(--color-primary-teal);
  transform: rotate(45deg);
  margin-bottom: 0.1em;
  left: 0.7em;
  top: 50%;
}
/* ==========================================================================
   PHASE 1: DESIGN SYSTEM FOUNDATION
   ========================================================================== */

/* CSS Custom Properties - Color Palette */
:root {
  /* Primary Colors */
  --color-primary-dark: #3d4a73;     /* Deep blue/purple for hero background */
  --color-primary-teal: #2d5a5a;     /* Dark teal/green for buttons */
  --color-accent-teal: #1dd1a1;      /* Bright teal/aqua for highlights */
  --color-accent-teal-rgb: 29, 209, 161; /* RGB values for rgba() usage */
  
  /* Background Colors */
  --color-bg-light: #ffffff;         /* White/light background for contrast sections */
  --color-bg-card: #ffffff;          /* Card backgrounds */
  --color-bg-hero: linear-gradient(135deg, #3d4a73 0%, #2a3557 100%); /* Hero gradient */
  
  /* Text Colors */
  --color-text-primary: #1a1a1a;     /* Dark text for light backgrounds */
  --color-text-secondary: #666666;   /* Secondary text */
  --color-text-light: #ffffff;       /* White text for dark backgrounds */
  --color-text-muted: rgba(255, 255, 255, 0.8); /* Muted white text */
  
  /* Interactive Colors */
  --color-button-primary: var(--color-primary-teal);
  --color-button-primary-hover: #245454;
  --color-button-secondary: var(--color-bg-light);
  --color-button-secondary-hover: #f5f5f5;
  
  /* Shadow and Border */
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --border-radius-large: 12px;
  --border-color: #e5e5e5;
  
  /* Progress Card Colors (derived from existing palette) */
  --color-progress-mint: rgba(29, 209, 161, 0.15);  /* Light mint background */
  --color-progress-mint-border: rgba(29, 209, 161, 0.3);
  
  /* Reward Colors */
  --color-reward-yellow: #f4d03f;  /* Active Player badge */
  --color-reward-yellow-light: rgba(244, 208, 63, 0.1);
}

/* Typography System */
/* moved to top: @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap'); */
/* Local variable font: Chillax */
@font-face {
  font-family: 'Chillax';
  src: url('fonts/Chillax-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: 'Chillax', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
}

/* (Removed resend confirmation and confirm-email CTA styles) */

/* Prevent accidental horizontal scroll on narrow screens */
html, body {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.submissions-section .card__body h3 {
  margin-bottom: 1.5rem;
}

/* Add spacing under the Users heading in the Admin panel */
#admin-users-section .card__body h3 {
  margin-bottom: 0.5rem;
}

p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* ==========================================================================
   PHASE 2: HEADER SECTION
   ========================================================================== */

/* Header Layout - Update existing header styling */
.header {
  background-color: var(--color-bg-light);
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Brand Identity - Update existing nav__logo */
.nav__logo h2 {
  color: var(--color-primary-teal);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* Logo Image Styling */
.nav__logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Navigation Links - Update existing nav__links and button styles */
.nav__links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Update primary buttons in navigation - smaller sizing to match v1 */
.nav__links .btn--primary {
  background-color: var(--color-button-primary);
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-button);
}

.nav__links .btn--primary:hover {
  background-color: var(--color-button-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Update secondary buttons (Login) to match Get Started button style - smaller sizing */
.nav__links .btn--secondary {
  background-color: var(--color-button-secondary);
  color: var(--color-text-primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-button);
}

.nav__links .btn--secondary:hover {
  background-color: var(--color-button-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Update theme toggle button styling - smaller sizing */
.nav__links .btn--outline {
  border: 1px solid var(--color-accent-teal);
  color: var(--color-accent-teal);
  background-color: transparent;
  font-size: 1rem;
  padding: 0.5rem 0.625rem;
}

.nav__links .btn--outline:hover {
  background-color: var(--color-accent-teal);
  color: var(--color-text-light);
}

/* ==========================================================================
   MOBILE HAMBURGER MENU IMPLEMENTATION
   ========================================================================== */

/* Hamburger Menu Button */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
}

.nav__hamburger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: var(--color-text-primary);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* Hamburger Animation */
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Menu Dropdown */
.nav__mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  padding: 1rem;
  gap: 0.75rem;
  z-index: 1000;
}

.nav__mobile-menu.active {
  display: flex;
}

.nav__mobile-menu .btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-button);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

/* Mobile menu primary buttons (Sign Up, Dashboard) */
.nav__mobile-menu .btn--primary {
  background-color: var(--color-button-primary);
  color: var(--color-text-light);
}

.nav__mobile-menu .btn--primary:hover {
  background-color: var(--color-button-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile menu secondary buttons (Login) */
.nav__mobile-menu .btn--secondary {
  background-color: var(--color-button-secondary);
  color: var(--color-text-primary);
}

.nav__mobile-menu .btn--secondary:hover {
  background-color: var(--color-button-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile menu outline buttons (Theme toggle, Logout) */
.nav__mobile-menu .btn--outline {
  border: 1px solid var(--color-accent-teal);
  color: var(--color-accent-teal);
  background-color: transparent;
}

.nav__mobile-menu .btn--outline:hover {
  background-color: var(--color-accent-teal);
  color: var(--color-text-light);
}

/* Reusable Back Button (outlined, pill) */
.btn--back {
  border: 2px solid var(--color-primary-teal);
  color: var(--color-primary-teal);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.btn--back:hover {
  background: var(--color-primary-teal);
  color: var(--color-text-light);
}

/* Thin divider to separate content from footer */
.page-divider {
  height: 1px;
  width: 100%;
  background-color: var(--border-color);
  margin: 40px 0 0 0;
}

/* Mobile menu small buttons */
.nav__mobile-menu .btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  
  .nav__hamburger {
    display: flex;
  }
  
  .nav {
    position: relative;
  }
}

/* ==========================================================================
   PHASE 3: HERO SECTION - Update to use existing HTML classes
   ========================================================================== */

/* Hero Background & Layout - Update existing .hero class */
.hero {
  background: var(--color-bg-hero);
  padding: 4rem 0;
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Two-column hero grid */
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero__left {
  text-align: left;
}

.hero__right {
  display: flex;
  justify-content: center;
}

.hero__image {
  width: 150%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__left {
    text-align: center;
  }
  .hero__right {
    margin-top: 2rem;
  }
}

/* Update existing .hero__content */
.hero__content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

/* Update existing .hero__title */
.hero__title {
  color: var(--color-text-light);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Update existing .hero__subtitle */
.hero__subtitle {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Add social proof styling (can be added to HTML later) */
.hero__social-proof {
  color: var(--color-accent-teal);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Update hero button styling - target the get-started button */
.hero .btn--lg {
  background-color: var(--color-button-secondary);
  color: var(--color-text-primary);
  padding: 1.25rem 2.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}

.hero .btn--lg:hover {
  background-color: var(--color-button-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .hero__subtitle {
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   PHASE 4: COUNTDOWN TIMER SECTION (NOT IN CURRENT HTML - FUTURE FEATURE)
   ========================================================================== */

/* 
   Note: Countdown timer classes are ready but HTML doesn't exist yet.
   These styles will work when countdown section is added to HTML.
*/

.countdown-section {
  background-color: var(--color-bg-light);
  padding: 3rem 0;
  text-align: center;
}

.countdown-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.countdown-timer {
  font-family: 'Inter', monospace;
  font-size: 4rem;
  font-weight: 800;
  color: #2F3A59; /* unify timer color */
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 1.125rem;
  color: #2F3A59; /* unify label color */
  font-weight: 500;
}

@media (max-width: 768px) {
  .countdown-timer {
    font-size: 3rem;
  }
  .countdown-section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .countdown-timer {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   PHASE 4.5: LEADERBOARD SECTION (NEW)
   ========================================================================== */

.leaderboard-section {
  background-color: var(--color-bg-light);
  padding: 4rem 0;
}

/* Match mock: uppercase section title */
.leaderboard-section .section-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* PRIZES / PROMO BAND (appears after leaderboard) */
.prizes-band {
  background-color: #1f2a44;
  color: var(--color-text-light);
  padding: 5rem 0; /* slightly increased breathing room */
}

.prizes-band .container {
  max-width: 1200px; /* align with other sections for consistent gutters */
  margin: 0 auto;
  padding: 0 2rem; /* consistent section padding */
}

.prizes-band__grid {
  display: flex; /* strict two-column flex layout */
  gap: 2rem;
  align-items: center;
}

.prizes-visual {
  position: relative;
  overflow: visible;
  flex: 1 1 60%; /* left column takes most of the width */
}

/* Single-image visual for the left column */
.prizes-visual__img {
  display: block;
  width: 100%; /* fill left column */
  height: auto;
  max-width: 100%;
  margin: 0; /* align to left */
  filter: drop-shadow(0 20px 36px rgba(0,0,0,0.25));
  border-radius: 12px;
}

@media (max-width: 900px) {
  .prizes-band__grid {
    flex-direction: column;
    gap: 2rem;
  }
  .prizes-visual { flex: 1 1 auto; }
  .prizes-copy {
    text-align: center;
    justify-items: center;
    max-width: none; /* allow full width on mobile */
    margin-left: 0;
  }
  
  /* Center prizes text and CTA on mobile */
  .prizes-title,
  .prizes-description,
  .prizes-microcopy {
    text-align: center;
  }
  
  .prizes-copy .btn--cta-white {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .prizes-band__grid {
    flex-direction: column;
    gap: 2rem;
  }
  .prizes-visual { flex: 1 1 auto; }
  .prizes-copy {
    text-align: center;
    justify-items: center;
    max-width: none; /* allow full width on mobile */
    margin-left: 0;
  }
}

.leaderboard-table {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-top: 3rem;
}

.leaderboard-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}

.leaderboard-table th {
  background-color: var(--color-primary-teal);
  color: var(--color-text-light);
  padding: 1.5rem 2rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 2px solid var(--color-primary-dark);
}

.leaderboard-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.leaderboard-table th.sortable:hover {
  color: var(--color-text-secondary);
}

/* Admin tabs minimal styling */
.admin-tabs .admin-tab[aria-selected="true"] {
  background: var(--color-primary-teal);
  color: var(--color-text-light);
  border-color: var(--color-primary-teal);
}
.admin-tabs .admin-tab {
  cursor: pointer;
}

/* Align Views header with the right-aligned numbers */
.leaderboard-table th:last-child {
  text-align: right;
}

.leaderboard-table td {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.leaderboard-table tbody tr:hover {
  background-color: #f8fafc;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

/* Rank column styling */
.leaderboard-table .rank-cell {
  font-weight: 700;
  color: var(--color-accent-teal);
  width: 80px;
}

/* Creator name styling */
.leaderboard-table .creator-cell {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Number formatting */
.leaderboard-table .number-cell {
  font-weight: 500;
  text-align: right;
}

/* Mobile responsive table */
@media (max-width: 768px) {
  .leaderboard-table {
    margin-top: 2rem;
  }
  
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 1rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
}

.prizes-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: right;
  font-size: 2.75rem;
}

.prizes-copy {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  text-align: right;
  max-width: 560px; /* keep right content from stretching as container grows */
  flex: 1 1 40%;
  margin-left: auto; /* keep content right-aligned within row */
}

.prizes-description {
  color: var(--color-text-light);
  opacity: 0.85; /* lower opacity per spec */
  font-size: 0.95rem; /* slightly smaller */
  line-height: 1.6;
  text-align: right;
  margin-bottom: 3rem; /* 3–5 lines of space before microcopy */
}

.prizes-microcopy {
  color: var(--color-accent-teal, #1DD1A1);
  font-weight: 700; /* bold teal */
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-top: 0; /* spacing handled by description margin */
  text-align: right;
}

.btn--cta-white {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: #1f2a44;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform .15s ease, box-shadow .15s ease;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Keep CTA compact and right-aligned within the text column */
.prizes-copy .btn--cta-white {
  justify-self: end;
  white-space: nowrap;
}

.btn--cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
 
/* Accessible focus state for CTA */
.btn--cta-white:focus-visible {
  outline: 3px solid var(--color-accent-teal, #1DD1A1);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(29, 209, 161, 0.25);
}

/* Mobile overrides for Prizes section: ensure center alignment wins in cascade */
@media (max-width: 900px) {
  .prizes-copy {
    text-align: center;
    justify-items: center;
    max-width: none;
    margin-left: 0;
  }
  .prizes-title,
  .prizes-description,
  .prizes-microcopy {
    text-align: center;
  }
  .prizes-copy .btn--cta-white {
    justify-self: center;
  }
}

/* ==========================================================================
   PHASE 5: HOW IT WORKS SECTION - Update to use existing HTML classes
   ========================================================================== */

/* How It Works Layout - Update existing .how-it-works */
.how-it-works {
  background-color: var(--color-bg-light);
  padding: 4rem 0;
}

.how-it-works .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Update existing .steps grid */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Update existing .step cards */
.step {
  background-color: var(--color-bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
  position: relative;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Update existing .step__icon - style the emoji icons with backgrounds */
.step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--border-radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

/* Add number badges before icons */
.step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  width: 40px;
  height: 40px;
  background-color: var(--color-text-primary);
  color: var(--color-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Initialize counter for the steps container */
.steps {
  counter-reset: step-counter;
}

/* Icon Colors - Distinct for each step */
.step:nth-child(1) .step__icon {
  background-color: #fef3c7;
  color: #f59e0b;
}

.step:nth-child(2) .step__icon {
  background-color: #cffafe;
  color: #0891b2;
}

.step:nth-child(3) .step__icon {
  background-color: #dcfce7;
  color: #16a34a;
}

.step:nth-child(4) .step__icon {
  background-color: #fce7f3;
  color: #e11d48;
}

/* Update existing .step__title */
.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

/* Update existing .step__description */
.step__description {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* How It Works Responsive */
@media (max-width: 968px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .how-it-works {
    padding: 3rem 0;
  }
}

/* ==========================================================================
   PHASE 6: GUIDELINES SECTION - Update to use existing HTML classes
   ========================================================================== */

/* Update existing .guidelines section */
.guidelines {
  background-color: var(--color-bg-light);
  padding: 4rem 0;
}

.guidelines .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Update existing .section-title styling */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Inter', sans-serif;
}

/* Update existing .guidelines__grid */
.guidelines__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Update existing .guidelines__section cards */
.guidelines__section {
  background-color: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guidelines__section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Top gradient accent cap */
.guidelines__section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-top-left-radius: var(--border-radius-large);
  border-top-right-radius: var(--border-radius-large);
  /* Lighter teal-only gradient (no blue) */
  background: linear-gradient(90deg, rgba(29, 209, 161, 0.4) 0%, rgba(29, 209, 161, 0.7) 100%);
}

.guidelines__section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.guidelines__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guidelines__section li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--border-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

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

/* Branded check bullets */
.guidelines__section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--color-accent-teal);
  font-weight: 800;
}

/* Icon chips for each guidelines card */
.guidelines__section {
  position: relative;
}

.guidelines__section::before {
  content: '⭐️';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

/* Distinct colors/icons per card (matching How It Works palette) */
.guidelines__section:nth-child(1)::before {
  background-color: #fef3c7;
  color: #f59e0b;
  content: '⭐️';
}

.guidelines__section:nth-child(2)::before {
  background-color: #cffafe;
  color: #0891b2;
  content: '💬';
}

.guidelines__section:nth-child(3)::before {
  background-color: #dcfce7;
  color: #16a34a;
  content: '🎯';
}

/* Shift title and list to clear the chip */
.guidelines__section h3,
.guidelines__section ul {
  margin-left: 0;
}

/* Guidelines Responsive */
@media (max-width: 968px) {
  .guidelines__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .guidelines {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   PHASE 7: FOOTER CTA SECTION (NOT IN CURRENT HTML - FUTURE FEATURE)
   ========================================================================== */

/* 
   Note: Footer CTA classes are ready but HTML doesn't exist yet.
   These styles will work when footer CTA section is added to HTML.
*/

.footer-cta {
  background: linear-gradient(180deg, rgba(29, 209, 161, 0.05) 0%, #ffffff 60%);
  padding: 4rem 0 5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-pretext {
  color: var(--color-accent-teal);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.final-cta-button {
  background-color: var(--color-button-primary);
  color: var(--color-text-light);
  padding: 1.25rem 3rem;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  min-width: 200px;
}

.final-cta-button:hover {
  background-color: var(--color-button-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 90, 90, 0.3);
}

@media (max-width: 768px) {
  .footer-cta {
    padding: 3rem 0 4rem 0;
  }
  .final-cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   SECTION TITLE STYLES (General)
   ========================================================================== */

.how-it-works .section-title {
  margin-bottom: 3rem;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hidden {
  display: none;
}

/* ==========================================================================
   GLOBAL BUTTON SYSTEM (usable anywhere)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-shadow: var(--shadow-button);
}

/* Inline progress indicator for busy buttons */
.btn[aria-busy="true"] {
  opacity: 0.9;
  cursor: progress;
}
.btn[aria-busy="true"]::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Confirm-expired modal minor spacing helpers */
/* (Removed confirm-expired modal styles) */

.btn--primary {
  background-color: var(--color-button-primary);
  color: var(--color-text-light);
  border-color: var(--color-button-primary);
}

.btn--primary:hover {
  background-color: var(--color-button-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn--secondary {
  background-color: var(--color-button-secondary);
  color: var(--color-text-primary);
  border-color: var(--border-color);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-accent-teal);
  border-color: var(--color-accent-teal);
}

.btn--outline:hover {
  background: var(--color-accent-teal);
  color: var(--color-text-light);
}

.btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   MODAL STYLES (V2)
   ========================================================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: relative;
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
}

/* Ensure registration-complete modal content has comfortable padding */
#signup-complete-modal > .modal__dialog > .modal__content,
#signup-complete-modal .modal__content {
  padding: 1.5rem 1.75rem;
}

/* Stronger rule to ensure dialog and inner body get breathing room in all browsers */
#signup-complete-modal > .modal__dialog,
#signup-complete-modal > .modal__dialog > .modal__content,
#signup-complete-modal .modal__body {
  padding: 1.5rem !important;
  box-sizing: border-box;
}

.modal__content--large {
  max-width: 800px;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal__header h2 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  background-color: var(--color-button-secondary-hover);
}

/* Forms in modals */
.sign-up-form,
.video-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-accent-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 209, 161, 0.1);
}

/* Polished select dropdown styling */
select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--color-bg-light);
  padding-right: 2.5rem; /* space for caret */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 12px 8px;
}

select.form-control:focus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231dd1a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
}

/* Hide default arrow in old IE/Edge */
select.form-control::-ms-expand { display: none; }

/* Links inside forms */
.sign-up-form a,
.video-form a {
  color: var(--color-accent-teal);
  text-decoration: none;
  font-weight: 600;
}

.sign-up-form a:hover,
.video-form a:hover {
  text-decoration: underline;
}

.btn--full-width {
  width: 100%;
}

.mt-8 {
  margin-top: 0.5rem;
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal {
    padding: 1rem;
  }
  
  .modal__content {
    margin: 0;
  }
  
  .sign-up-form,
  .video-form {
    padding: 1.5rem;
  }
  
  .modal__header {
    padding: 1rem 1.5rem;
  }
}

/* ==========================================================================
   CLASS ALIGNMENT STATUS: THEME TOGGLE NOW WORKING! 
   ========================================================================== */

/*
🎉 CSS CLASS ALIGNMENT COMPLETE - V1/V2 THEME TOGGLE FUNCTIONAL!

✅ WORKING WITH EXISTING HTML CLASSES:
  ✅ .header, .nav, .nav__logo, .nav__links - Header navigation 
  ✅ .hero, .hero__content, .hero__title, .hero__subtitle - Hero section
  ✅ .how-it-works, .steps, .step, .step__icon, .step__title - How it works cards
  ✅ .guidelines, .guidelines__grid, .guidelines__section - Guidelines section
  ✅ .section-title - All section headings
  ✅ .btn, .btn--primary, .btn--secondary, .btn--outline, .btn--lg - Button system

🔧 DESIGN ENHANCEMENTS APPLIED:
  ✅ Inter font family throughout
  ✅ New color palette (#3d4a73 hero, #2d5a5a buttons, #1dd1a1 accents)  
  ✅ Beautiful hero gradient background
  ✅ Enhanced card shadows and hover effects
  ✅ Number badges on step cards with CSS counters
  ✅ Colored icon backgrounds (orange, blue, green, pink)
  ✅ Improved typography hierarchy and spacing
  ✅ Responsive design with proper mobile stacking

📋 READY FOR USE:
  ✅ Theme toggle button should now work properly
  ✅ "New Design" vs "Original Design" switching functional  
  ✅ V2 styles apply to existing HTML structure
  ✅ All mockup design elements implemented via CSS

🎯 FUTURE FEATURES (Styles ready, HTML not added yet):
  ⏳ .countdown-section, .countdown-timer - Countdown display
  ⏳ .footer-cta, .final-cta-button - Footer CTA section
  ⏳ .hero__social-proof - "Join 1000+ creators" text

🚀 NEXT PHASE: Test theme toggle and verify visual alignment with mockup!
*/

/* ==========================================================================
   PHASE 8: FOOTER SECTION
   ========================================================================== */

.footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem 0;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer__brand {
  max-width: 400px;
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}

.footer__description {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.footer__social {
  text-align: right;
}

.footer__social-title {
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary-teal);
  color: var(--color-text-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-button);
}

.footer__social-link:hover {
  background-color: var(--color-accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 209, 161, 0.3);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

.footer__link {
  color: var(--color-accent-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-primary-teal);
  text-decoration: underline;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer__social {
    text-align: center;
  }
  
  .footer__social-links {
    justify-content: center;
  }
  
  .footer {
    padding: 2rem 0 1.5rem 0;
  }
}

/* ==========================================================================
   RESOURCES PAGE STYLES
   ========================================================================== */

.resources-section {
  background-color: var(--color-bg-light);
  padding: 4rem 0;
}

.resources-grid-page {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.resource-category-page {
  margin-bottom: 2rem;
}

.resource-category-page h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--color-accent-teal);
  padding-bottom: 0.5rem;
}

.resource-category-description {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
}

.resource-items-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.resource-item-page {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-item-page:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-item__icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.resource-item__info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.resource-item__info p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.resource-item__info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-item__info ul li {
  color: var(--color-text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 1.5rem;
}

.resource-item__info ul li:last-child {
  border-bottom: none;
}

.resource-item__info ul li::before {
  content: '✓';
  color: var(--color-accent-teal);
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.resource-item__download {
  margin-top: auto;
}

.resource-item__download .btn {
  width: 100%;
  justify-content: center;
}

/* Resources Page Responsive */
@media (max-width: 768px) {
  .resources-section {
    padding: 3rem 0;
  }
  
  .resources-grid-page {
    gap: 3rem;
  }
  
  .resource-items-page {
    grid-template-columns: 1fr;
  }
  
  .resource-item-page {
    padding: 1.5rem;
  }
  
  .resource-category-page h2 {
    font-size: 1.75rem;
  }
  
  .resource-category-description {
    font-size: 1rem;
  }
}

/* ==========================================================================
   DASHBOARD + ADMIN (V2)
   ========================================================================== */

/* Dashboard layout */
.dashboard {
  padding: 3rem 0;
}

.dashboard__header h1 {
  margin-bottom: 0.25rem;
}

.dashboard__subtitle {
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem; /* add a bit of space under subtitle */
}

.dashboard__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.main-content > .card + .card {
  margin-top: 1.5rem;
}

.sidebar {
  display: grid;
  gap: 1.5rem;
}

/* Cards */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

.card__body {
  padding: 1.5rem;
}

/* Mobile Timeline Layout - Zero Spacing Debug */
@media (max-width: 768px) {
  .prize-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  .timeline-step {
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    margin: 0;
    border-radius: 20px;
    flex: 0 1 auto;
    gap: 0.5rem;
  }
  
  .timeline-step:nth-child(even) {
    flex-direction: row; /* Reset alternating layout */
  }
  
  .timeline-step:nth-child(even) .timeline-text {
    text-align: left; /* Reset right alignment */
  }
  
  .timeline-circle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 700;
  }
  
  .timeline-text {
    flex: 0 1 auto;
    white-space: nowrap;
    margin: 0;
    padding: 0;
  }
  
  .prize-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
  }
  
  .prize-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
  }
  
  .timeline-connector {
    display: none;
  }
  
  /* Removed conflicting mobile hero overrides to keep a single source of truth */
}

/* Dashboard Progress Cards */
.progress-cards {
  display: grid;
  gap: 1rem;
}

/* Lottery + Most Views cards (top section) theme */
.dashboard__top-section .progress-card.progress-card--mint {
  background-color: #2F3A59;
  border-color: #2F3A59;
}
.dashboard__top-section .progress-card.progress-card--mint .card__body,
.dashboard__top-section .progress-card.progress-card--mint .card__body h3,
.dashboard__top-section .progress-card.progress-card--mint .card__body p,
.dashboard__top-section .progress-card.progress-card--mint .lottery-title,
.dashboard__top-section .progress-card.progress-card--mint .lottery-desc,
.dashboard__top-section .progress-card.progress-card--mint .views-title,
.dashboard__top-section .progress-card.progress-card--mint .views-desc,
.dashboard__top-section .progress-card.progress-card--mint .views-small {
  color: #ffffff;
}

/* Buttons in these cards */
.dashboard__top-section .progress-card.progress-card--mint .btn--primary {
  background-color: #15cbc5;
  color: #2F3A59;
  border-color: #15cbc5;
}
.dashboard__top-section .progress-card.progress-card--mint .btn--primary:hover {
  background-color: #15cbc5;
  color: #2F3A59;
  filter: brightness(0.95);
}

/* Counts color override */
#total-posts,
#total-views {
  color: #15cbc5 !important;
}

/* Double font size for counts in top cards */
.dashboard__top-section .progress-card.progress-card--mint .progress-card__header .progress-card__count {
  font-size: 5rem;
  line-height: 1;
}
#total-posts { font-size: 5rem !important; line-height: 1; }

/* Lottery card custom content */
.lottery-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; }
.lottery-desc { font-size: 0.95rem; color: var(--color-text-secondary); margin-bottom: 0.75rem; }
.lottery-small { font-size: 0.9rem; color: var(--color-text-secondary); margin: 0.5rem 0; }
.lottery-image { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 0; box-shadow: none; margin-top: 0.25rem; }

.progress-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

/* In top-section cards, stack count above label */
.dashboard__top-section .progress-card .progress-card__header {
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 12px; /* mirror header spacing across both cards */
}
.dashboard__top-section .progress-card .progress-card__header .progress-card__count {
  order: 1;
  display: block;
}
.dashboard__top-section .progress-card .progress-card__header h3 {
  order: 2;
}

/* Center content in the two top cards for clarity */
.dashboard__top-section .progress-card.progress-card--mint .card__body { text-align: center; }
.dashboard__top-section .progress-card.progress-card--mint .user-actions { align-items: center; }
.dashboard__top-section .progress-card.progress-card--mint .video-input-group form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dashboard__top-section .progress-card.progress-card--mint .video-input-group .form-control {
  width: 100%;
  max-width: 520px;
}

.progress-card__count {
  font-weight: 700;
  color: var(--color-accent-teal);
}

.progress-bar {
  height: 10px;
  background-color: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent-teal), #7eead3);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.progress-card__status {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Minimal, consistent layout for status left/right */
.progress-card__status .progress-status-left {
  flex: 1;
  min-width: 0;
}

.progress-card__status .progress-status-tier {
  flex: none;
  text-align: right;
  color: var(--color-accent-teal);
  font-weight: 700;
  font-size: 1.5em; /* Increase Rank/Tier size ~1.5x */
}

/* Success styling for completed progress text (e.g., 100,000 / 100,000 ✓) */
.progress-card__status .success-text {
  color: var(--color-primary-teal);
  font-weight: 700;
}

/* Reward card */
.reward-card .card__body {
  text-align: center;
}

.reward-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Status chips */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
}

.status--pending {
  background: rgba(255, 170, 0, 0.12);
  color: #9a5a00;
  border-color: rgba(255, 170, 0, 0.32);
}

.status--success,
.status--verified {
  background: rgba(29, 209, 161, 0.12);
  color: #0d9f7e;
  border-color: rgba(29, 209, 161, 0.32);
}

.status--error,
.status--rejected {
  background: rgba(229, 57, 53, 0.12);
  color: #b31d1d;
  border-color: rgba(229, 57, 53, 0.32);
}

/* Submissions list */
.submissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.submission-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

/* Allow grid children to shrink (fix overflow of long content) */
.submission-item, .submission-item > * {
  min-width: 0;
}

.submission-info h4 {
  margin-bottom: 0.25rem;
}

.submission-info p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Ensure long rejection guidance wraps within the submission info column */
.submission-info .status--rejected {
  display: inline-block;
  white-space: normal;
}

.submission-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.submission-stats .views {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.submission-item > * {
  min-width: 0; /* allow grid children to shrink to avoid overflow */
}

.submission-info a {
  display: inline-block;
  max-width: 26rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-primary-teal);
  text-decoration: none;
}
.submission-stats .platform {
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


@media (max-width: 768px) {
  .submission-info a {
    white-space: normal;
    max-width: none;
  }
}

/* Admin: Users list */
.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-user-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.admin-user-row p {
  color: var(--color-text-secondary);
}

/* Admin: Submissions list */
.admin-submissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-submission-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.admin-submission-info h4 {
  margin-bottom: 0.25rem;
}

.admin-submission-info p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.admin-last-updated {
  font-style: italic;
}

.admin-submission-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.status-select,
.views-input {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.status-select {
  min-width: 140px;
}

/* Ensure custom caret sits inside the box for admin status select */
.status-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem; /* space for caret */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 12px 8px;
}

.status-select:focus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231dd1a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
}

.status-select::-ms-expand { display: none; }

.views-input {
  width: 120px;
}

/* Responsive */
@media (max-width: 992px) {
  .dashboard__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .submission-item {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .admin-submission-row {
    grid-template-columns: 1fr;
  }

  .admin-submission-controls {
    flex-wrap: wrap;
  }

  .status-select,
  .views-input {
    width: 100%;
  }
}

/* Admin: User submissions detail — remove outer card on mobile to free space */
@media (max-width: 768px) {
  #admin-user-submissions > .card {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  #admin-user-submissions > .card > .card__body {
    padding: 0;
  }
}

/* Simple brand divider used to separate sections (e.g., Admin header vs user submissions) */
.section-divider {
  height: 3px;
  width: 100%;
  border-radius: 9999px;
  background: var(--color-primary-teal);
  opacity: 0.9;
  margin: 0.75rem 0 1.25rem;
}

.section-divider--brand {
  background: var(--color-primary-teal);
}

/* ==========================================================================
   NEW DASHBOARD LAYOUT STYLES
   ========================================================================== */

/* Dashboard Header with Countdown */
/* Hero Section Styles */
.dashboard__hero {
  background: var(--color-bg-hero);
  color: var(--color-text-light);
  /* Full-bleed background regardless of container width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  /* Prefer dynamic viewport units where supported to avoid iOS 100vw quirks */
  margin-left: -50svw;
  margin-right: -50svw;
  width: 100svw;
  /* Vertical spacing */
  padding: 3rem 1rem; /* add breathing room left/right */
  margin-top: -3rem;
  margin-bottom: 3rem;
}

.dashboard__hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--color-text-light);
}

/* New dashboard hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem; /* inner padding on small screens */
}
.hero-left { text-align: left; }
.hero-right { display: flex; justify-content: center; }
.hero-illustration { max-width: 560px; width: 100%; height: auto; display: block; }
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-left { text-align: left; }
  .hero-right { justify-content: flex-end; }
  .hero-grid { padding: 0; }
}

@media (max-width: 899.98px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}

.hero-welcome {
  color: var(--color-text-light);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero-welcome #hero-user-name { color: #1dc9c4; }
.hero-desc { color: var(--color-text-muted); margin: 0.25rem 0; }
.guide-subtext { color: #1dc9c4; margin: 0.75rem 0; font-weight: 600; }
.btn--guide { background-color: #1dc9c4; color: #ffffff; padding: 0.75rem 1rem; border-radius: 8px; display: inline-block; text-decoration: none; font-weight: 700; }
.btn--guide:hover { filter: brightness(0.95); }

.prize-timeline {
  display: flex;
  align-items: flex-center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.timeline-circle {
  width: 80px;
  height: 80px;
  background: var(--color-accent-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.timeline-connector {
  width: 4rem;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--color-accent-teal) 0,
    var(--color-accent-teal) 8px,
    transparent 8px,
    transparent 16px
  );
  flex-shrink: 0;
  margin-top: 40px; /* Align with circle center */
}

.timeline-text {
  text-align: center;
  flex-shrink: 0;
}

.prize-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.prize-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.main-prizes {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prizes-image {
  max-width: 120px;
  height: auto;
}

.prizes-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.main-prizes-text {
  width: 120px;
}

.countdown-display {
  text-align: center;
}

.countdown-display {
  text-align: center;
  margin: 0;
}

.hero-download { margin-top: 0.75rem; }
.hero-download .btn { margin-top: 0.25rem; }

.dashboard .challenge-timer {
  font-family: 'Chillax', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #FFFFFF; /* dashboard timer stays white */
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dashboard .countdown-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85); /* dashboard label stays near-white */
  margin: 0;
}

/* Top Section: 30/70 Layout */
.dashboard__top-section {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* If only one child remains, span full width */
.dashboard__top-section > *:only-child { grid-column: 1 / -1; }

/* Top-section layout: align columns to the bottom so small card sits at bottom */
.dashboard__top-section {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: stretch; /* stretch columns so both match height */
}

/* User Info Card: match the column height so it fills same height as progress-section */
.user-info-card .card {
  height: 100%;
}

/* Align the specific inner block (video-submit-inline) to the bottom of the user card */
.user-info-card .card {
  display: flex;
  flex-direction: column;
}
.user-info-card .card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.5rem;
  position: relative;
}
.user-info-card .card__body > h3 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
/* Video input grouped with user info */
.video-input-group .form-control {
  margin-bottom: 0.5rem;
}

.video-input-group .form-message {
  margin: 0.5rem 0 0.5rem 0; /* slightly more bottom spacing under temp message */
  font-size: 0.85rem;
}

/* Video action buttons positioned lower */
.video-submit-actions {
  margin-top: 2rem;
}

/* Remove top spacing for specific submit areas */
#lottery-submit-actions { margin-top: 0; }
#views-card-view-check > .video-submit-actions { margin-top: 0; }

/* Creator Info Layout */
.creator-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.03) 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.creator-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.platform-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.platform-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.platform-icon--instagram {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
}

.platform-icon--youtube {
  background: #ff0000;
  color: white;
}

.platform-icon--tiktok {
  background: #000000;
  color: white;
}

.user-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.user-platform {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn--compact {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Creator Card Decorative Footer */
.creator-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0 0;
  margin-top: auto;
  border-top: 1px solid rgba(var(--color-accent-teal-rgb), 0.1);
}

.decoration-pattern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.decoration-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-teal) 0%, rgba(var(--color-accent-teal-rgb), 0.6) 100%);
  opacity: 0.7;
  animation: pulse-dots 3s ease-in-out infinite;
}

.decoration-dot:nth-child(2) {
  width: 8px;
  height: 8px;
  opacity: 0.9;
  animation-delay: 0.5s;
}

.decoration-dot:nth-child(3) {
  opacity: 0.5;
  animation-delay: 1s;
}

.creator-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 2px rgba(var(--color-success-rgb), 0.2);
}

.status-indicator.active {
  animation: pulse-status 2s ease-in-out infinite;
}

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

.status-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.status-link:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

@keyframes pulse-status {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes pulse-dots {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Progress Cards Vertical Layout */
.progress-cards-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Show Posts and Views side-by-side on larger screens */
@media (max-width: 900px) {
  .progress-cards-horizontal {
    grid-template-columns: 1fr;
  }
}

.progress-card--mint {
  background-color: var(--color-progress-mint);
  border: 1px solid var(--color-progress-mint-border);
}

.progress-card--mint .progress-card__header .progress-card__count {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary-teal);
}

.progress-card--mint .progress-bar__fill {
  background-color: var(--color-accent-teal);
}

/* Completed progress bars get dark green color */
.progress-bar__fill--completed {
  background: var(--color-primary-teal) !important;
}

/* Bottom Section: 60/40 Layout */
.dashboard__bottom-section {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2rem;
}

/* Center bottom section on larger screens (single column layout now) */
@media (min-width: 900px) {
  .dashboard__bottom-section {
    display: flex;
    justify-content: center;
  }
  .dashboard__bottom-section .submissions-section {
    width: 100%;
    max-width: 960px;
  }
}

/* Rewards Section (removed from HTML) */

.reward-status-card {
  text-align: center;
}

.active-player-badge {
  background-color: var(--color-reward-yellow);
  color: var(--color-text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.reward-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.reward-progress {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-teal);
}

/* New Rewards Tier System */
.reward-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}

.reward-tier {
  background: var(--color-reward-yellow-light);
  border: 1px solid rgba(244, 208, 63, 0.25);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.reward-tier__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.reward-tier__title {
  font-weight: 600;
  color: var(--color-primary-teal);
  font-size: 1rem;
}

.reward-tier__status {
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.reward-tier__description {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.reward-tier__reward {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

.reward-progress-bar {
  background: rgba(244, 208, 63, 0.25);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.reward-progress-fill {
  background: var(--color-reward-yellow);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

/* Completed tier progress bars should be dark green/teal */
.reward-tier--completed .reward-progress-fill {
  background: var(--color-primary-teal) !important;
}

.reward-tier__dual-progress {
  margin-bottom: 0.5rem;
}

.reward-progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reward-progress-label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-align: right;
}

.reward-progress-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
}

.reward-status-center {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

/* Tier completion states */
.reward-tier--completed {
  background: rgba(29, 209, 161, 0.1);
  border-color: var(--color-accent-teal);
}

.reward-tier--completed .reward-tier__title {
  color: var(--color-accent-teal);
}

.reward-tier--completed .reward-progress-fill {
  width: 100% !important;
}

/* Video Submission Form Container */
.video-form-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.video-form-container .card {
  max-width: 500px;
  width: 100%;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.form-actions .btn {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard__top-section {
    grid-template-columns: 1fr;
    /* Ensure spacing below Creator → Posts matches other section gaps */
    margin-bottom: 1rem;
  }
  
  /* On mobile, stack bottom section and show Rewards above Submissions */
  .dashboard__bottom-section {
    display: flex;
    flex-direction: column;
    /* grid-template-columns no longer applies when flex is used */
  }
  .dashboard__bottom-section .rewards-section {
    order: -1; /* move Rewards above Submissions on mobile */
  }
  
  .progress-cards-horizontal {
    grid-template-columns: 1fr;
    /* Match card spacing (Posts ↔ Views) to section spacing */
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .challenge-timer {
    font-size: 2.5rem;
  }
  
  .dashboard__top-section,
  .dashboard__bottom-section {
    gap: 1rem;
  }
  
  .user-actions {
    flex-direction: column;
  }
  
  .video-form-container {
    padding: 1rem;
  }
  
  /* Mobile responsive hero section */
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .prize-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  
  .timeline-connector {
    width: 2px;
    height: 40px;
    min-width: 2px;
    max-width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--color-accent-teal) 0,
      var(--color-accent-teal) 8px,
      transparent 8px,
      transparent 16px
    );
  }
  
  .timeline-item {
    flex-direction: row;
    gap: 1rem;
  }
  
  /* Mobile: emphasize grand prize only in hero */
  /* Hide all timeline children except the main prize block */
  .prize-timeline > :not(.main-prizes) { display: none; }

  /* Mobile hero: adjust vertical rhythm only; full-bleed handled globally */
  .dashboard__hero { padding: 2.25rem 0 2.5rem; margin-top: 0; margin-bottom: 1.5rem; }

  /* Make the grand prize image dominant */
  .main-prizes { flex-direction: column; align-items: center; gap: 0.5rem; }
  /* Make the hero image responsive and conservative on narrow screens */
  .main-prizes .prizes-image {
    display: block;
    width: 100%;
    height: auto;
    /* Cap by viewport and container-safe width (accounts for container padding ~2rem each side) */
    max-width: min(80svw, calc(100svw - 4rem), 420px);
    margin: 0 auto;
  }
  .main-prizes .timeline-text .prize-title { font-size: 1.125rem; }
  .main-prizes .timeline-text .prize-subtitle { font-size: 0.95rem; opacity: 0.9; }

  /* Tighten spacing now that only one item is visible */
  .prize-timeline { gap: 1rem; justify-content: center; }
}
.views-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; }
.views-desc { font-size: 0.95rem; color: var(--color-text-secondary); margin-bottom: 0.75rem; }
.views-small { font-size: 0.9rem; color: var(--color-text-secondary); margin: 0.5rem 0; }
.views-image { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 0; box-shadow: none; margin-top: 0.25rem; }
.lottery-block, .views-block { margin-bottom: 0.75rem; }
.dashboard__hero .countdown-display { padding-right: 0 !important; margin-right: 0; text-align: left; margin-top: 1rem; }

@media (max-width: 899.98px) {
  .hero-left { padding: 0 0.25rem; }
  .hero-illustration.mobile-only { margin: 0.5rem 0; }
}
