/* ========================================
   Custom Ticket — Design System
   ======================================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --text-muted: rgba(240, 240, 245, 0.35);
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.25);
  --green: #00b894;
  --green-glow: rgba(0, 184, 148, 0.2);
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --orange: #fdcb6e;
  --red: #e17055;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.hidden { display: none !important; }

/* ========================================
   Glassmorphism Card
   ======================================== */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b7cf8);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

.btn-glass {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: white;
  box-shadow: 0 4px 20px var(--green-glow);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-accent {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.nav-link:hover {
  color: var(--text-primary);
}

.btn-nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: white !important;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.btn-nav-cta:hover {
  background: #7d6ff0;
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -150px;
  opacity: 0.15;
}
.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--green);
  bottom: -100px;
  left: -100px;
  opacity: 0.1;
}
.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--orange);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--green), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ========================================
   Section Header
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* ========================================
   Events Section
   ======================================== */
.events-section {
  padding: 100px 0 80px;
  position: relative;
}

.filters-bar {
  padding: 20px 24px;
  margin-bottom: 24px;
}

.search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(255, 255, 255, 0.08);
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.search-clear:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.results-info {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Event Card */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
}
.event-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-card-banner {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.event-card-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.event-card:hover .event-card-banner img {
  transform: scale(1.08);
}

.event-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg-primary) 100%);
  z-index: 1;
}

.banner-football { background: linear-gradient(135deg, #1e3a2f, #0d2818); }
.banner-concert { background: linear-gradient(135deg, #2d1b4e, #1a0e30); }
.banner-basketball { background: linear-gradient(135deg, #3b1e0a, #1f0f04); }
.banner-tennis { background: linear-gradient(135deg, #1a3a1a, #0d2a0d); }
.banner-rugby { background: linear-gradient(135deg, #2a1e0a, #1a1005); }
.banner-formule1 { background: linear-gradient(135deg, #1e0a0a, #3a0d0d); }
.banner-autre { background: linear-gradient(135deg, #0a1a3a, #050d1e); }

.event-card-body {
  padding: 20px;
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.event-category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.badge-football { background: rgba(0, 184, 148, 0.15); color: #55efc4; }
.badge-concert { background: rgba(162, 155, 254, 0.15); color: #a29bfe; }
.badge-basketball { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.badge-tennis { background: rgba(0, 184, 148, 0.15); color: #55efc4; }
.badge-rugby { background: rgba(225, 112, 85, 0.15); color: #e17055; }
.badge-formule1 { background: rgba(225, 85, 85, 0.15); color: #ff6b6b; }
.badge-autre { background: rgba(116, 185, 255, 0.15); color: #74b9ff; }

.event-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.meta-row svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.event-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.event-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-reserve {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-reserve:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--green-glow);
}

/* No results */
.no-results {
  text-align: center;
  padding: 80px 24px;
}
.no-results-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}
.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.no-results p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ========================================
   How Section (Steps)
   ======================================== */
.how-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 100px 0;
}

.cta-card {
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 16px;
}

.cta-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-copy p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-mobile-btn {
    display: flex;
  }
  .hero {
    padding-top: calc(var(--nav-height) + 20px);
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .stat-divider {
    width: 50px;
    height: 1px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
  .cta-card {
    padding: 40px 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
}

/* ========================================
   Language Visibility & Switcher Button
   ======================================== */
body.lang-fr .lang-en { display: none !important; }
body.lang-en .lang-fr { display: none !important; }

.btn-lang {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-lang:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}


/* ========================================
   Weekly Lottery & Google Sign-In Modal
   ======================================== */
.lottery-widget {
  margin: 30px 0;
  padding: 24px 30px;
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(29, 36, 54, 0.4) 0%, rgba(13, 17, 28, 0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lottery-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fdcb6e, #e84393, #00cec9, #fdcb6e);
  background-size: 300% 100%;
  animation: borderGlow 8s linear infinite;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.lottery-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.15), rgba(232, 67, 147, 0.15));
  border: 1px solid rgba(253, 203, 110, 0.3);
  color: #fdcb6e;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.lottery-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.lottery-info {
  flex: 1 1 350px;
}

.lottery-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  background: linear-gradient(to right, #ffffff, #dfe6e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lottery-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.lottery-timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.lottery-timer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
  min-width: 52px;
}

.timer-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.timer-unit {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.timer-colon {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  animation: flash 1s infinite;
}

@keyframes flash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.lottery-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}

/* Google Sign-in Button */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #d2d4d7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

/* Connect Success & Lottery Entry Card */
.lottery-success-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(46, 204, 113, 0.08);
  border: 1px dashed rgba(46, 204, 113, 0.4);
  padding: 12px 18px;
  border-radius: 12px;
  gap: 4px;
  max-width: 280px;
}

.success-header {
  color: #2ecc71;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.success-email {
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  word-break: break-all;
}

.success-ticket {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fdcb6e;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Styled Google Account Modal Overlay */
.google-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.google-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.google-modal {
  background: #ffffff;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #202124;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.google-logo-wrapper {
  margin-bottom: 20px;
}

.google-logo {
  height: 24px;
}

.google-modal-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
}

.google-modal-subtitle {
  font-size: 0.9rem;
  color: #5f6368;
  margin-bottom: 24px;
}

.google-accounts-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.google-account-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #dadce0;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: left;
}

.google-account-item:hover {
  background: #f7f8f9;
  border-color: #cccfdf;
}

.google-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 12px;
}

.google-account-details {
  display: flex;
  flex-direction: column;
}

.google-account-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #3c4043;
}

.google-account-email {
  font-size: 0.75rem;
  color: #5f6368;
}

.google-modal-footer {
  font-size: 0.7rem;
  color: #70757a;
  line-height: 1.4;
  margin-top: 10px;
}

.google-modal-footer a {
  color: #1a73e8;
  text-decoration: none;
}

.google-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #5f6368;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
}

.google-modal-close:hover {
  background: rgba(0,0,0,0.05);
}

.google-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
}

.google-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1a73e8;
  border-radius: 50%;
  animation: googleSpin 1s linear infinite;
}

@keyframes googleSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .lottery-widget {
    padding: 20px;
  }
  .lottery-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 20px;
  }
  .lottery-action {
    min-width: unset;
  }
  .lottery-success-card {
    max-width: unset;
    align-items: center;
    margin: 0 auto;
  }
}

