/* ============================================
   PouFlip - Casa de Apostas
   Identidade Visual: Dourado/Laranja, Preto, Branco
   Estilo: Urbano, Street, Graffiti
   ============================================ */

/* === RESET & VARIABLES === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --gold: #F7A600;
  --gold-light: #FFB800;
  --gold-dark: #D48F00;
  --gold-glow: rgba(247, 166, 0, 0.3);
  --gold-subtle: rgba(247, 166, 0, 0.08);

  /* Neutrals */
  --bg-primary: #0A0A0F;
  --bg-secondary: #0F0F18;
  --bg-card: #14141F;
  --bg-card-hover: #1A1A28;
  --bg-elevated: #1E1E2E;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B80;

  /* Status */
  --green: #22C55E;
  --red: #EF4444;
  --blue: #3B82F6;

  /* Spacing */
  --nav-height: 72px;
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* === LOADING SCREEN === */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0A0F;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 72px;
  height: 72px;
  animation: loadingPulse 1.8s ease-in-out infinite;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(247, 166, 0, 0.15);
  border-top-color: #F7A600;
  border-radius: 50%;
  animation: loadingSpin 0.8s linear infinite;
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6B6B80;
  letter-spacing: 0.5px;
}

@keyframes loadingSpin {
  to { transform: rotate(360deg); }
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

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

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 12px);
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  opacity: 0;
  animation: toastIn 0.35s var(--ease) forwards;
}

.toast.toast-out {
  animation: toastOut 0.3s var(--ease) forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}

.toast-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: toastProgress var(--toast-duration, 3.5s) linear forwards;
}

/* Toast types */
.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
}
.toast.toast-error .toast-icon { color: var(--red); }
.toast.toast-error .toast-progress { background: var(--red); }

.toast.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
}
.toast.toast-success .toast-icon { color: var(--green); }
.toast.toast-success .toast-progress { background: var(--green); }

.toast.toast-warning {
  border-color: rgba(247, 166, 0, 0.3);
}
.toast.toast-warning .toast-icon { color: var(--gold); }
.toast.toast-warning .toast-progress { background: var(--gold); }

.toast.toast-info {
  border-color: rgba(59, 130, 246, 0.3);
}
.toast.toast-info .toast-icon { color: var(--blue); }
.toast.toast-info .toast-progress { background: var(--blue); }

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

@media (max-width: 600px) {
  .toast-container {
    right: 12px;
    left: 12px;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
  }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--border-hover);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.btn-block {
  width: 100%;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all 0.3s var(--ease);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

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

.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(247, 166, 0, 0.12);
  top: -100px;
  right: -100px;
}
.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(247, 166, 0, 0.06);
  bottom: -50px;
  left: -50px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gold-subtle);
  border: 1px solid rgba(247, 166, 0, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease) both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
  animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeInUp 0.6s var(--ease) 0.4s both;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mascot {
  width: 420px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(247, 166, 0, 0.25));
  animation: float 4s ease-in-out infinite;
}

.hero-logo-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(247, 166, 0, 0.2), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  animation: bounce 2s ease-in-out infinite;
}

/* === TICKER === */
.ticker {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-icon {
  font-size: 16px;
}
.ticker-icon.gold {
  color: var(--gold);
}

/* === SECTIONS === */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: 8px;
}

/* === COIN ICON === */
.coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFD75E, #F7A600 40%, #C78200 80%, #8B5E00);
  box-shadow:
    inset 0 2px 4px rgba(255, 230, 130, 0.6),
    inset 0 -2px 4px rgba(100, 60, 0, 0.4),
    0 0 8px rgba(247, 166, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  font-size: 0;
  border: 1.5px solid #C78200;
}
.coin-icon::before {
  content: '$';
  font-size: 13px;
  font-weight: 900;
  color: rgba(139, 94, 0, 0.6);
  text-shadow: 0 1px 0 rgba(255, 230, 130, 0.5);
  font-family: 'Inter', sans-serif;
}
.coin-icon::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 8px;
  height: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.coin-icon.lg {
  width: 40px;
  height: 40px;
  border-width: 2px;
}
.coin-icon.lg::before {
  font-size: 20px;
}
.coin-icon.lg::after {
  top: 4px;
  left: 6px;
  width: 12px;
  height: 8px;
}

/* === GAME SHOWCASE === */
.game-showcase {
  max-width: 700px;
  margin: 0 auto;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.game-showcase-info {
  text-align: center;
}
.game-showcase-info .section-title {
  margin-bottom: 16px;
}
.game-showcase-info .section-desc {
  margin: 0 auto 32px;
  max-width: 560px;
}
.game-showcase-info .btn {
  margin: 0 auto;
}

.game-highlight-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.highlight-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
}
.highlight-stat:hover {
  border-color: var(--border-hover);
}

.highlight-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border-radius: var(--radius-md);
}

.highlight-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.highlight-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* === STEPS === */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
}

.step-card {
  flex: 1;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease);
}
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.step-connector {
  flex-shrink: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

/* === LIVE FEED === */
.live-feed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.live-feed-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.live-feed-header > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.feed-status.online {
  color: var(--green);
}
.feed-status.error {
  color: var(--red);
}

.feed-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.feed-item.new {
  animation: feedSlideIn 0.4s var(--ease) both;
  background: rgba(247, 166, 0, 0.03);
}

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

.live-feed-list {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.feed-item {
  display: grid;
  grid-template-columns: 120px 1fr 80px 120px;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.2s;
}
.feed-item:last-child {
  border-bottom: none;
}
.feed-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feed-user {
  font-weight: 600;
  color: var(--text-primary);
}

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

.feed-multiplier {
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}

.feed-result {
  font-weight: 700;
  text-align: right;
}
.feed-result.win {
  color: var(--green);
}
.feed-result.win.big {
  color: var(--gold);
}
.feed-result.loss {
  color: var(--red);
}

/* === PROMOS === */
.promos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.promo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.promo-featured {
  border-color: rgba(247, 166, 0, 0.3);
  background: linear-gradient(180deg, rgba(247, 166, 0, 0.06) 0%, var(--bg-card) 40%);
}

.promo-ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 36px;
  transform: rotate(45deg);
}

.promo-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.promo-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
}

.promo-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.promo-rules {
  text-align: left;
  margin-bottom: 20px;
}
.promo-rules li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.promo-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

/* === AFFILIATES === */
.affiliate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.affiliate-content .section-title {
  margin-bottom: 16px;
}

.affiliate-content .section-desc {
  margin-bottom: 32px;
}

.affiliate-perks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.perk {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.perk-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border-radius: var(--radius-md);
}

.perk h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.perk p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Affiliate Preview Card */
.affiliate-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}

.preview-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
}
.preview-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.preview-stat {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.preview-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.preview-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.preview-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--gold), rgba(247, 166, 0, 0.3));
  border-radius: 4px 4px 0 0;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.chart-bar.active,
.chart-bar:hover {
  opacity: 1;
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === CTA SECTION === */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(247, 166, 0, 0.1), transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-subtle);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.payment-methods {
  display: flex;
  gap: 8px;
}

.payment-badge {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease);
  position: relative;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

/* Wider modal for register */
.modal-overlay.register-mode .modal {
  max-width: 560px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 24px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 16px;
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Forms */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
.form-group input::placeholder {
  color: var(--text-muted);
}
.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.password-wrapper {
  position: relative;
}
.password-wrapper input {
  width: 100%;
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px;
  color: var(--text-muted);
  border-radius: 4px;
}
.password-toggle:hover {
  color: var(--text-secondary);
}

.form-link {
  font-size: 13px;
  color: var(--gold);
  align-self: flex-end;
  margin-top: -8px;
}
.form-link:hover {
  text-decoration: underline;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
}
.form-check label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.form-check a {
  color: var(--gold);
}

.form-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.form-switch a {
  color: var(--gold);
  font-weight: 600;
}
.form-switch a:hover {
  text-decoration: underline;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

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


/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 0 20px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-mascot {
    width: 260px;
  }
  .promos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    flex-wrap: wrap;
    gap: 16px;
  }
  .step-connector {
    display: none;
  }
  .step-card {
    flex: 1 1 calc(50% - 16px);
    max-width: none;
  }
  .affiliate-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feed-item {
    grid-template-columns: 100px 1fr 60px 100px;
    font-size: 12px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .nav-container {
    padding: 0 16px;
    gap: 10px;
  }
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 15, 0.97);
  }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 16px;
    padding: 14px 16px;
  }
  .nav-actions {
    gap: 4px;
  }
  .nav-actions .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }
  .btn-lg {
    padding: 14px 28px;
    font-size: 15px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 32px;
  }
  .hero-container {
    padding: 0 16px;
    gap: 24px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-mascot {
    width: 180px;
  }
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: 32px;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .hero-scroll-indicator {
    display: none;
  }
  .hero-bg-effects {
    display: none;
  }

  .section {
    padding: 48px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
  }
  .section-desc {
    font-size: 14px;
  }

  .steps-grid {
    flex-direction: column;
    margin-bottom: 32px;
  }
  .step-card {
    flex: none;
    width: 100%;
    padding: 24px 20px;
  }

  .game-showcase-info {
    text-align: center;
  }
  .game-highlight-stats {
    align-items: center;
  }

  .promos-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .promo-card {
    padding: 24px 20px;
  }
  .promo-value {
    font-size: 20px;
  }

  .feed-item {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .feed-action {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .affiliate-grid {
    gap: 24px;
  }
  .affiliate-card-preview {
    padding: 20px;
  }
  .perk-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer {
    padding: 40px 0 20px;
  }
  .footer-logo {
    width: 100px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-payment {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .stat-divider {
    display: none;
  }
  .stat {
    text-align: center;
  }
  .stat-value {
    font-size: 22px;
  }
  .stat-label {
    font-size: 11px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
  }

  .modal-overlay {
    padding: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.9);
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal {
    padding: 20px;
    border-radius: var(--radius-md);
    max-width: 100%;
    max-height: none;
    overflow-y: visible;
    flex-shrink: 0;
  }
  .modal-overlay.register-mode .modal {
    max-width: 100%;
  }
  .modal-logo {
    width: 48px;
    height: 48px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-group input,
  .form-group select {
    padding: 14px;
    font-size: 16px;
    min-height: 48px;
  }
  .password-wrapper input {
    font-size: 16px;
  }

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

  .cta-section {
    padding: 48px 0;
  }
  .cta-content h2 {
    font-size: 24px;
  }
  .cta-content p {
    font-size: 14px;
  }
  .cta-note {
    font-size: 11px;
  }

  .ticker {
    font-size: 13px;
  }
  .live-feed-header {
    font-size: 13px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .nav-container {
    padding: 0 12px;
  }
  .hero-container {
    padding: 0 12px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .hero-mascot {
    width: 140px;
  }
  .hero-badge {
    font-size: 11px;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-label {
    font-size: 10px;
  }
  .section {
    padding: 32px 0;
  }
  .section-title {
    font-size: 20px;
  }
  .section-desc {
    font-size: 13px;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .step-card {
    padding: 20px 16px;
  }
  .step-icon {
    font-size: 32px;
  }
  .step-number {
    font-size: 36px;
  }
  .step-card h3 {
    font-size: 16px;
  }
  .step-card p {
    font-size: 13px;
  }
  .modal {
    padding: 16px;
  }
  .feed-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 12px;
  }
  .feed-multiplier,
  .feed-action {
    display: none;
  }
  .promo-card {
    padding: 20px 16px;
  }
  .promo-icon {
    font-size: 32px;
  }
  .promo-card h3 {
    font-size: 16px;
  }
  .promo-value {
    font-size: 18px;
  }
  .feature-card {
    padding: 20px;
  }
  .feature-icon {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .highlight-stat {
    flex-direction: column;
    text-align: center;
  }
  .highlight-value {
    font-size: 18px;
  }
  .highlight-label {
    font-size: 12px;
  }
  .perk {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .cta-content h2 {
    font-size: 22px;
  }
}

/* ============================================
   PIX QR CODE MODAL
   ============================================ */

.pix-qr-modal {
  max-width: 420px;
  width: 100%;
}

.pix-qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 8px;
}

.pix-qr-status {
  text-align: center;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-status-pending,
.pix-status-success,
.pix-status-expired {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.pix-status-pending { color: var(--gold); }
.pix-status-success { color: var(--green); }
.pix-status-expired { color: var(--red); }

.pix-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(247, 166, 0, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: pixSpin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes pixSpin {
  to { transform: rotate(360deg); }
}

.pix-qr-image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  border: 3px solid var(--gold);
  background: #ffffff;
  object-fit: contain;
  transition: opacity 0.3s;
}

.pix-copy-section {
  width: 100%;
}

.pix-copy-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pix-copy-row {
  display: flex;
  gap: 8px;
}

.pix-copy-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 9px 12px;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.pix-copy-btn {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.pix-copy-btn:hover { background: var(--gold-light); }
.pix-copy-btn.copied { background: var(--green); color: #fff; }

.pix-expires-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.pix-expires-text span {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .pix-qr-image {
    width: 170px;
    height: 170px;
  }
}
