:root {
  --primary: #1B9C3F;
  --primary-light: #26C44E;
  --primary-dark: #157A30;
  --secondary: #FFC107;
  --secondary-light: #FFD54F;
  --secondary-dark: #F9A825;
  --accent: #E63946;
  --accent-light: #FF6B6B;
  --bg-body: #F5F6FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F1F5;
  --bg-elevated: #F0F2F7;
  --text-light: #1A1A2E;
  --text-muted: #5A5E78;
  --text-dim: #9A9DB5;
  --green: #1B9C3F;
  --green-dark: #157A30;
  --green-glow: rgba(27, 156, 63, 0.25);
  --blue: #2979FF;
  --blue-dark: #1565C0;
  --purple: #7C4DFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 30px rgba(27,156,63,0.12);
  --border-color: rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  padding: 0 30px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 15px rgba(27,156,63,0.3);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-text span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 1px;
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.btn-auth {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(27,156,63,0.3);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(27,156,63,0.45);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text-light);
  border-radius: 2px;
  transition: 0.3s;
}

/* ==================== TICKER BAR ==================== */
.ticker-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  color: white;
  padding: 10px 0;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.ticker-content {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-content span { padding: 0 60px; }

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

/* ==================== COUNTDOWN ==================== */
.countdown-bar {
  background: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
}

.countdown-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.countdown-blocks { display: flex; gap: 8px; }

.countdown-block {
  background: linear-gradient(135deg, var(--primary), var(--green-dark));
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 68px;
  box-shadow: 0 4px 15px rgba(27,156,63,0.3);
  color: #fff;
}

.countdown-block .number {
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  color: #fff;
}

.countdown-block .label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
  margin-top: 3px;
  color: #fff;
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #26C44E 25%, var(--secondary) 55%, #FFD54F 80%, var(--primary) 100%);
  padding: 50px 20px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,0,0,0.75);
  color: var(--secondary-light);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  margin-bottom: 5px;
}

.hero-title .million {
  font-size: 4.5rem;
  font-weight: 900;
  display: block;
  color: #fff;
  line-height: 1;
  margin: 10px 0;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  filter: none;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-prizes {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-prize-tag {
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}

.hero-discount {
  position: absolute;
  top: 30px;
  right: 50px;
  background: var(--accent);
  color: white;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  animation: pulse-badge 2s ease-in-out infinite;
  box-shadow: 0 5px 25px rgba(230,57,70,0.5);
  z-index: 3;
}

.hero-discount .percent { font-size: 1.8rem; line-height: 1; }
.hero-discount .off { font-size: 0.85rem; }

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

.hero-draw-date {
  position: absolute;
  bottom: 25px;
  right: 50px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  text-align: center;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.hero-draw-date .day {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--secondary-light);
  line-height: 1;
}

.hero-draw-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
}

/* ==================== BUY SECTION ==================== */
.buy-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
}

.raffle-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.raffle-info-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.raffle-info-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.raffle-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: rgba(27,156,63,0.3);
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 6px;
}

/* ===== BUY CARD ===== */
.buy-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(27,156,63,0.2);
  box-shadow: var(--shadow-glow);
  position: sticky;
  top: 88px;
}

.buy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.discount-badge {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 3px 12px var(--green-glow);
}

.price-info { text-align: right; }

.price-old {
  text-decoration: line-through;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.price-new {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light);
}

.qty-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.qty-preset {
  background: var(--bg-elevated);
  border: 2px solid var(--border-color);
  color: var(--text-light);
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
}

.qty-preset:hover {
  border-color: var(--primary);
  background: rgba(27,156,63,0.06);
}

.qty-preset.active {
  border-color: var(--primary);
  background: rgba(27,156,63,0.1);
  box-shadow: 0 0 20px rgba(27,156,63,0.12);
}

.qty-preset .popular-tag {
  position: absolute;
  top: -9px;
  right: -5px;
  background: var(--accent);
  color: white;
  font-size: 0.55rem;
  padding: 3px 7px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qty-custom {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 2px solid var(--border-color);
}

.qty-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.qty-btn:hover { opacity: 0.85; }

.qty-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-light);
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--green-dark));
  color: white;
  border: none;
  padding: 18px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 6px 25px var(--green-glow);
  position: relative;
  overflow: hidden;
}

.buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(27,156,63,0.4);
}

.buy-btn .total-price { font-size: 1.3rem; }

/* ==================== PROMO CARDS ==================== */
.promo-section {
  max-width: 1140px;
  margin: 0 auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.promo-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27,156,63,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.promo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: #fff;
  font-weight: 800;
}

.promo-star { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.promo-diamond { background: linear-gradient(135deg, #7C4DFF, #651FFF); }
.promo-target { background: linear-gradient(135deg, #2979FF, #1565C0); }
.promo-fire { background: linear-gradient(135deg, var(--accent), #D32F2F); }

.promo-card h3 {
  font-size: 0.9rem;
  margin-bottom: 3px;
  color: var(--text-light);
}

.promo-card p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ==================== RESULTS SECTION ==================== */
.results-section {
  max-width: 1140px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 25px;
  text-align: center;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.result-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.result-card .result-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.result-card .result-winner {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.result-card .result-prize {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-results-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  grid-column: 1 / -1;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.no-results-card p {
  color: var(--text-dim);
  font-size: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 50px 20px 30px;
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-col h4 {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-col p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.78rem;
}

.footer-bottom .age-badge {
  display: inline-block;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 28px;
  font-weight: 800;
  font-size: 0.75rem;
  margin-right: 8px;
  vertical-align: middle;
}

/* ==================== AUTH MODAL ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px;
  width: 90%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
  border: 1px solid rgba(27,156,63,0.15);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover { color: var(--text-light); }

.modal h2 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  text-align: center;
}

.modal .modal-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 25px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-elevated);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,156,63,0.1);
}

.form-group input::placeholder { color: var(--text-dim); }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
}

.nome-social-group { display: none; margin-bottom: 16px; }
.nome-social-group.show { display: block; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  margin-top: 5px;
  box-shadow: 0 4px 20px rgba(27,156,63,0.3);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(27,156,63,0.4);
}

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

.form-error {
  background: rgba(230,57,70,0.08);
  border: 1px solid rgba(230,57,70,0.25);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: none;
}

.form-error.show { display: block; }

.form-success {
  background: rgba(27,156,63,0.08);
  border: 1px solid rgba(27,156,63,0.25);
  color: var(--green);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: none;
}

.form-success.show { display: block; }

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
}

.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

.step-dot.done { background: var(--green); }

/* USER HEADER (logged in) */
.user-menu { display: none; align-items: center; gap: 12px; }
.user-menu.show { display: flex; }

.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.user-name { font-weight: 600; font-size: 0.9rem; }

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--bg-card);
  color: var(--text-light);
  padding: 16px 26px;
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68,-0.55,0.27,1.55);
  z-index: 3000;
  font-weight: 600;
  font-size: 0.9rem;
}

.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--accent); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1000px) {
  .buy-section {
    grid-template-columns: 1fr;
  }
  .buy-card {
    position: static;
  }
  .promo-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid rgba(27,156,63,0.15);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .header { padding: 0 16px; }
  .hero { padding: 35px 16px 60px; }
  .hero-title { font-size: 1.2rem; }
  .hero-title .million { font-size: 3rem; }
  .hero-discount {
    width: 70px; height: 70px;
    top: 12px; right: 16px;
  }
  .hero-discount .percent { font-size: 1.4rem; }
  .hero-draw-date { bottom: 12px; right: 16px; padding: 10px 16px; }
  .hero-draw-date .day { font-size: 1.8rem; }
  .countdown-bar { padding: 12px 16px; gap: 10px; }
  .countdown-label { font-size: 0.75rem; }
  .countdown-block { padding: 8px 12px; min-width: 55px; }
  .countdown-block .number { font-size: 1.3rem; }
  .buy-section { padding: 30px 16px; }
  .promo-section { grid-template-columns: 1fr 1fr; gap: 10px; }
  .promo-card { padding: 16px 14px; }
  .modal { padding: 28px; width: 95%; }
}

@media (max-width: 480px) {
  .promo-section { grid-template-columns: 1fr; }
  .hero-title .million { font-size: 2.5rem; }
  .raffle-stats { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Cart Button (header) ---- */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(27,156,63,0.1), rgba(255,193,7,0.1));
  color: #1B9C3F;
  text-decoration: none;
  transition: all .25s;
  margin-right: 8px;
}
.cart-btn:hover {
  background: linear-gradient(135deg, rgba(27,156,63,0.18), rgba(255,193,7,0.18));
  transform: translateY(-1px);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #E63946;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-badge:empty { display: none; }

/* ==================== RAFFLE CARDS ==================== */
.raffles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  width: 100%;
}

.rcard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.rcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(27,156,63,0.13);
}

.rcard-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e9ecef;
  position: relative;
}
.rcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rcard-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B9C3F 0%, #157A31 100%);
}
.rcard-img-placeholder span {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  letter-spacing: 4px;
}

.rcard-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.rcard-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}

.rcard-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.rcard-prize {
  font-size: 1rem;
  font-weight: 700;
  color: #1B9C3F;
}

.rcard-date {
  font-size: 0.85rem;
  color: #888;
}

.rcard-progress {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}
.rcard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1B9C3F, #FFC107);
  border-radius: 4px;
  transition: width 0.5s;
}

.rcard-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #888;
}

.rcard-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rcard-discount {
  background: #E63946;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.rcard-old-price {
  font-size: 0.88rem;
  color: #aaa;
  text-decoration: line-through;
}

.rcard-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1B9C3F;
}

.rcard-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f8f3;
  border: 2px solid #d4edda;
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 2px;
}
.rcard-total-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rcard-total-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1B9C3F;
}

.rcard-buy {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 4px;
}

.rcard-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  height: 48px;
}
.rcard-qty .qty-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: #1B9C3F;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
}
.rcard-qty .qty-btn:hover { background: #157A31; }
.rcard-qty .qty-input {
  width: 52px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 2px solid #e0e0e0;
  border-right: 2px solid #e0e0e0;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  background: #fff;
  -moz-appearance: textfield;
}
.rcard-qty .qty-input::-webkit-inner-spin-button,
.rcard-qty .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.rcard-buy .buy-btn {
  flex: 1;
  padding: 0 16px;
  font-size: 0.95rem;
  height: 48px;
  min-height: 48px;
  letter-spacing: 1.5px;
  gap: 8px;
  animation: pulse-buy 2.5s ease-in-out infinite;
  white-space: nowrap;
}
.rcard-buy .buy-btn::before { display: none; }
.rcard-buy .buy-btn:hover { transform: none; }

@keyframes pulse-buy {
  0%, 100% { box-shadow: 0 4px 20px rgba(27,156,63,0.3); }
  50% { box-shadow: 0 6px 30px rgba(27,156,63,0.55); }
}

.rcard-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.qty-preset-sm {
  padding: 5px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
}
.qty-preset-sm:hover {
  border-color: #1B9C3F;
  color: #1B9C3F;
  background: rgba(27,156,63,0.05);
}

@media (max-width: 768px) {
  .raffles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rcard-img { height: 180px; }
  .rcard-buy { flex-direction: column; }
  .rcard-buy .buy-btn { width: 100%; height: 52px; font-size: 0.95rem; }
  .rcard-qty { width: 100%; justify-content: center; height: 52px; }
  .rcard-qty .qty-input { flex: 1; }
}

/* ==================== RIFA DETAIL PAGE ==================== */
.rifa-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.rifa-container { width: 100%; }

.rifa-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.15s;
}
.rifa-back:hover { color: #1B9C3F; }

.rifa-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 0;
  color: #888;
}
.rifa-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #1B9C3F;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.rifa-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.09);
  display: grid;
  grid-template-columns: 420px 1fr;
}

.rifa-card-img {
  height: 100%;
  min-height: 420px;
  background: linear-gradient(135deg, #1B9C3F 0%, #157A31 100%);
  overflow: hidden;
}
.rifa-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rifa-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rifa-card-img-placeholder span {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.25);
  letter-spacing: 6px;
}

.rifa-card-body {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rifa-badge {
  background: #E63946;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.rifa-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.2;
  margin: 0;
}

.rifa-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.rifa-prize {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1B9C3F;
}

.rifa-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.rifa-progress-track {
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}
.rifa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1B9C3F, #FFC107);
  border-radius: 5px;
  transition: width 0.5s;
}
.rifa-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #888;
}

.rifa-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rifa-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f8f3;
  border: 2px solid #c8e6d0;
  border-radius: 12px;
  padding: 12px 18px;
}
.rifa-total-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rifa-total-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #1B9C3F;
}

.rifa-buy-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.rifa-qty {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  height: 52px;
  flex-shrink: 0;
}
.rifa-qty .qty-btn {
  width: 44px;
  height: 100%;
  border: none;
  background: #1B9C3F;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
}
.rifa-qty .qty-btn:hover { background: #157A31; }
.rifa-qty input {
  width: 60px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 2px solid #e0e0e0;
  border-right: 2px solid #e0e0e0;
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
  background: #fff;
  -moz-appearance: textfield;
}
.rifa-qty input::-webkit-inner-spin-button,
.rifa-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }

.rifa-buy-btn {
  flex: 1;
  height: 52px;
  font-size: 1rem;
  padding: 0 20px;
  letter-spacing: 1.5px;
  animation: pulse-buy 2.5s ease-in-out infinite;
}
.rifa-buy-btn::before { display: none; }
.rifa-buy-btn:hover { transform: none; }

.rifa-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Section title */
.rifa-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 32px 0 16px;
}

/* Upsells grid */
.rifa-upsells-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rifa-upsell-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 14px;
}
.rifa-upsell-icon {
  font-size: 1.6rem;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}
.rifa-upsell-body { flex: 1; }
.rifa-upsell-title {
  font-weight: 800;
  font-size: 1rem;
  color: #1a1a2e;
}
.rifa-upsell-desc {
  font-size: 0.85rem;
  color: #777;
  margin-top: 2px;
}
.rifa-upsell-info {
  font-size: 0.85rem;
  color: #1B9C3F;
  font-weight: 700;
  margin-top: 4px;
}
.rifa-upsell-btn {
  background: #1B9C3F;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.rifa-upsell-btn:hover { background: #157A31; }

/* Error state */
.rifa-error {
  text-align: center;
  padding: 60px 0;
  color: #888;
}
.btn-back-home {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: #1B9C3F;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Title link in cards */
.rcard-title a {
  color: inherit;
  text-decoration: none;
}
.rcard-title a:hover { color: #1B9C3F; }

@media (max-width: 860px) {
  .rifa-card { grid-template-columns: 1fr; }
  .rifa-card-img { min-height: 240px; height: 240px; }
  .rifa-card-body { padding: 22px 20px; }
  .rifa-title { font-size: 1.4rem; }
  .rifa-buy-row { flex-direction: column; }
  .rifa-qty { width: 100%; justify-content: center; }
  .rifa-qty input { flex: 1; }
  .rifa-buy-btn { width: 100%; }
}
