
:root {
  /* Mapeamento para variáveis existentes do sistema */
  --primary: var(--app-primary);
  --bg-dark: var(--app-bg-body);
  --text-primary: var(--app-text-title);
  --text-secondary: var(--app-text-body);
  --border-light: var(--app-border);
  --bg-card: var(--app-bg-card);

  /* Novas variáveis específicas da Landing Page */
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --primary-glow: rgba(241, 44, 76, 0.5);
  --gradient-brand: linear-gradient(135deg, #f12c4c 0%, #ff0055 100%);
  --gradient-text-red: linear-gradient(90deg, #f12c4c, #ff4d6d);
  --gradient-text-green: linear-gradient(90deg, #10b981, #34d399);
  
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  
  --bg-error-soft: rgba(239, 68, 68, 0.1);
  --bg-info-soft: rgba(59, 130, 246, 0.1);
  --bg-success-soft: rgba(16, 185, 129, 0.1);
  --bg-purple-soft: rgba(139, 92, 246, 0.1);
  
  --border-subtle: rgba(255, 255, 255, 0.05);
  --text-disabled: rgba(255, 255, 255, 0.2);
}

/* App Shell & Background */
.app-shell {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* Reset padding/margin if inherited */
  padding: 0 !important;
  margin: 0 !important;
}

body {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

/* Scroll lock do drawer mobile — só classe, para não conflitar com Bootstrap Modal (inline no body) */
body.landing-mobile-menu-open {
  overflow: hidden !important;
}

.landing-page {
    /* Ensure no padding on container */
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100vw;
}

.container, .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

.app-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-light {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.light-1 { top: -100px; left: -100px; background: #f12c4c; }
.light-2 { top: 40%; right: -100px; background: #10b981; }

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.app-content { position: relative; z-index: 1; min-height: 100vh; }
.landing-page { position: relative; width: 100%; margin: 0; padding: 0; overflow-x: hidden; }

/* Mobile Menu Overlay Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 100%);
  /* dvh evita corte com barra de endereço móvel; fallback vh */
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(10, 11, 15, 0.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1050;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

/* Fundo escuro clicável (elemento real — mais fiável que ::before para eventos) */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
  cursor: default;
}

.mobile-menu.active .mobile-menu-backdrop {
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  cursor: pointer;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: inherit;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Header do menu */
.mobile-menu-content > .d-flex {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  padding: 1rem 0;
  flex: 1;
}

.mobile-nav-item {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 0;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 3px solid transparent;
  letter-spacing: 0.01em;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--primary);
  padding-left: 1.75rem;
}

/* Animação de entrada dos itens */
.mobile-menu.active .mobile-nav-item {
  animation: mobileNavIn 0.3s ease both;
}

.mobile-menu.active .mobile-nav-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.active .mobile-nav-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav-item:nth-child(3) { animation-delay: 0.15s; }

@keyframes mobileNavIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Rodapé do menu com CTA */
.mobile-menu-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-footer .btn-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  padding: 0.625rem;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu-footer .btn-text:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-footer .btn-primary-landing {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

/* Updated Desktop Navbar Styles */
.navbar-landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  background: transparent;
  overflow: visible; /* não recortar filhos posicionados (ícones, sombras) */
}
.navbar-landing.scrolled {
  background: rgba(15, 18, 21, 0.9); /* Darker bg */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  gap: 0.75rem;
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.logo-wrapper {
  background: var(--gradient-brand);
  padding: 8px;
  border-radius: 12px;
  display: flex;
  color: white;
}
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.highlight { color: var(--primary); }

.nav-links { display: flex; gap: 2rem; }
.nav-item { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-item:hover { color: var(--text-primary); }

.nav-actions { display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; }
.btn-text { background: none; border: none; color: var(--text-primary); cursor: pointer; font-weight: 600; text-decoration: none; }
.btn-primary-landing {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary-landing:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 25px rgba(241, 44, 76, 0.6); 
  color: white; 
  background-color: #ff4d6d; /* Lighter/Brighter Red on Hover */
}
.btn-primary-landing.glow { box-shadow: 0 0 15px var(--primary-glow); }

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  padding: 8rem 4rem 4rem;
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 90vh;
}
.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}
.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.text-gradient-red {
  background: var(--gradient-text-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-green {
  background: var(--gradient-text-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 90%;
}
.hero-cta-group { display: flex; gap: 1rem; margin-top: 1rem; }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; border-radius: 12px; display: flex; align-items: center; gap: 0.75rem; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); color: white; }

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.875rem; color: var(--text-secondary); }
.divider { width: 1px; height: 40px; background: var(--border-subtle); }

/* Betting Terminal Redesign */
.betting-terminal {
    background: linear-gradient(145deg, rgba(10, 12, 16, 0.95) 0%, rgba(20, 24, 30, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(241, 44, 76, 0.05);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.pulse-green {
    animation: terminal-pulse 2s infinite;
}

@keyframes terminal-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.terminal-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.v-tag {
    color: var(--primary);
    font-size: 0.7rem;
    background: rgba(241, 44, 76, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.terminal-stats {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

#active-bots-count {
    color: var(--accent-green);
}

.terminal-body {
    padding: 0.5rem;
    max-height: 380px;
    overflow-y: hidden;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* New Betting Row Style */
.bet-entry {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInTerminal 0.5s ease-out forwards;
}

@keyframes slideInTerminal {
    from { opacity: 0; transform: translateX(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.bet-entry:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.bet-entry.win { border-left: 4px solid #10b981; }
.bet-entry.loss { border-left: 4px solid #ef4444; }

.bet-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bet-strategy {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-pattern-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.strategy-pattern-container img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
}

.bet-user-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-account {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
}

.badge-account.demo { background: #3b82f6; color: white; }
.badge-account.real { background: #f59e0b; color: white; }

.bet-result-info {
    text-align: right;
}

.bet-payout {
    font-size: 1rem;
    font-weight: 800;
    display: block;
}

.bet-payout.win { color: #10b981; }
.bet-payout.loss { color: #ef4444; }

.bet-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-item .label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.footer-item .value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-visual { position: relative; display: flex; justify-content: center; perspective: 1000px; }

/* Trust Strip */
.trust-strip { background: var(--bg-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); overflow: hidden; }
.ticker-wrap { width: 100%; overflow: hidden; padding: 1rem 0; }
.ticker { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: 3rem; color: var(--text-secondary); }
.green-text { color: var(--accent-green); font-weight: 700; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } } /* Adjusted to -50% assuming duplication for seamless loop */

/* Features Section */
.features-section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.section-header p { color: var(--text-secondary); font-size: 1.125rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card {
  background: var(--bg-glass);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); background: var(--bg-glass-hover); }
.icon-box { width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 32px; }
.icon-box.red { background: var(--bg-error-soft); color: var(--accent-red); }
.icon-box.blue { background: var(--bg-info-soft); color: var(--accent-blue); }
.icon-box.green { background: var(--bg-success-soft); color: var(--accent-green); }
.icon-box.purple { background: var(--bg-purple-soft); color: var(--accent-purple); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); line-height: 1.5; }

/* Pricing Section */
.pricing-section { padding: 4rem 2rem 8rem; max-width: 1200px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: start; }
.pricing-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  position: relative;
}
.pricing-card.featured {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  box-shadow: 0 0 30px rgba(241, 44, 76, 0.1);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
}
.card-header h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary); }
.price { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.period { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.features-list { list-style: none; padding: 0; margin: 2rem 0; }
.features-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: var(--text-secondary); }
.features-list li.disabled { color: var(--text-disabled); }
.full-width { width: 100%; justify-content: center; }

/* CTA Section */
.final-cta { background: var(--primary); padding: 6rem 2rem; text-align: center; margin-top: 4rem; border-radius: 24px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.cta-content { max-width: 600px; margin: 0 auto; }
.final-cta h2 { font-size: 2.5rem; margin-bottom: 1rem; color: white; }
.final-cta p { color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; font-size: 1.125rem; }
.btn-white { background: #fff; color: var(--primary); border: none; padding: 1rem 2.5rem; border-radius: 100px; font-weight: 700; font-size: 1.125rem; cursor: pointer; transition: transform 0.2s; text-decoration: none; display: inline-block; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); color: var(--primary); }
.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* Modal Glassmorphism Styles */
.modal-login-custom {
    max-width: 360px !important; /* +20% from 300px (modal-sm) */
    width: 100% !important;
}

@media (min-width: 576px) {
    .modal-login-custom {
        max-width: 380px !important;
    }
}

.glass-modal {
    background: rgba(20, 20, 30, 0.75) !important;
    backdrop-filter: blur(24px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(120%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.6) !important;
    border-radius: 24px !important;
    overflow: hidden;
    position: relative;
}

/* Subtle inner glow */
.glass-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(241, 44, 76, 0.2), rgba(241, 44, 76, 0.05));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(241, 44, 76, 0.25);
    border: 1px solid rgba(241, 44, 76, 0.3);
    transition: transform 0.3s ease;
}

.glass-modal:hover .modal-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(241, 44, 76, 0.35);
}

/* Success Modal Enhancements */
.login-success-icon-wrapper {
    width: 90px;
    height: 90px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.success-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    animation: ripple 2s linear infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.glass-progress {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 100px;
    overflow: hidden;
}

.shadow-glow-green {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.glass-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(241, 44, 76, 0.15) !important;
    color: white !important;
    transform: translateY(-1px);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.form-floating label {
    color: rgba(255, 255, 255, 0.6) !important;
    background-color: transparent !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: rgba(255, 255, 255, 0.8) !important;
    background-color: transparent !important;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control:-webkit-autofill {
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hover-underline {
    position: relative;
    padding-bottom: 2px;
}

/* =============================================
   AUTH MODALS — Redesign
   ============================================= */

.modal-auth-custom {
    max-width: 400px !important;
    width: 100% !important;
}

.modal-auth-card {
    background: #0e0e14 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04) inset !important;
}

/* Red accent line at top */
.auth-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #f12c4c 0%, #ff6b6b 50%, #f12c4c 100%);
    background-size: 200% auto;
    animation: auth-bar-shift 3s linear infinite;
}

@keyframes auth-bar-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Logo block */
.auth-logo-block {
    background: linear-gradient(160deg, rgba(241, 44, 76, 0.10) 0%, rgba(14, 14, 20, 0) 60%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 28px 32px 22px;
    text-align: center;
}

.auth-logo-wordmark {
    display: inline-block;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.auth-logo-list {
    color: #ffffff;
}

.auth-logo-flow {
    color: #f12c4c;
}

.auth-logo-sub {
    margin: 6px 0 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Form block */
.auth-form-block {
    padding: 28px 32px 30px;
}

.auth-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.auth-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0 0 22px;
}

/* Field */
.auth-field {}

.auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.auth-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 10px 14px 10px 40px !important;
    font-size: 0.88rem !important;
    height: 44px !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(241, 44, 76, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(241, 44, 76, 0.12) !important;
    color: #fff !important;
    outline: none !important;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #f12c4c;
}

/* Autofill fix */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px #131319 inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Primary button */
.auth-btn-primary {
    background: linear-gradient(135deg, #f12c4c, #c4203b) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    height: 46px !important;
    letter-spacing: 0.03em;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s !important;
    box-shadow: 0 4px 20px rgba(241, 44, 76, 0.35) !important;
}

.auth-btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(241, 44, 76, 0.45) !important;
}

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

/* Alert */
.auth-alert {
    background: rgba(241, 44, 76, 0.1);
    border: 1px solid rgba(241, 44, 76, 0.25);
    border-radius: 8px;
    color: #ff7a8a;
    font-size: 0.8rem;
    padding: 10px 14px;
}

/* Switch row */
.auth-switch-text {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 20px 0 0;
}

.auth-switch-link {
    color: #f12c4c !important;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.auth-switch-link:hover {
    opacity: 0.75;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Checkbox dos Termos de Uso */
#modalRegTerms {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.06) !important;
    border: 1.5px solid rgba(255,255,255,0.2) !important;
    border-radius: 4px !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    position: relative;
}

#modalRegTerms:checked {
    background: #f12c4c !important;
    border-color: #f12c4c !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px !important;
    box-shadow: 0 0 0 3px rgba(241,44,76,0.2) !important;
}

#modalRegTerms:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(241,44,76,0.15) !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.modal-backdrop.show {
    opacity: 0.8 !important;
    background-color: #050508 !important; /* Darker backdrop */
    backdrop-filter: blur(5px);
}

/* =============================================
   MOBILE RESPONSIVENESS
   ============================================= */

/* Tablet — até 992px */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        max-width: 92%;
        padding: 7rem 1.5rem 3rem;
        gap: 3rem;
        min-height: auto;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
    }

    .betting-terminal {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-section,
    .pricing-section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .final-cta {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        padding: 4rem 1.5rem;
    }
}

/* Mobile — até 768px */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-landing {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1.25rem;
        gap: 0.5rem;
    }

    .nav-cta-landing {
        padding: 0.55rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Hero */
    .hero {
        max-width: 100%;
        padding: 5.5rem 1.25rem 2.5rem;
        gap: 2.5rem;
        text-align: center;
    }

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

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .badge-new {
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }

    /* CTA buttons — empilhar em coluna */
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
        width: 100%;
    }

    /* Stats row — compactar */
    .hero-stats-row {
        justify-content: center;
        gap: 1.25rem;
        flex-wrap: wrap;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Terminal — ocultar no mobile pequeno para não pesar */
    .hero-visual {
        display: none;
    }

    /* Trust strip */
    .ticker-item {
        font-size: 0.85rem;
        margin-right: 2rem;
    }

    /* Features */
    .features-section {
        padding: 3.5rem 1.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .icon-box {
        width: 52px;
        height: 52px;
        font-size: 26px;
        margin-bottom: 1rem;
    }

    /* Pricing */
    .pricing-section {
        padding: 3rem 1.25rem 5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    /* CTA final */
    .final-cta {
        margin: 2rem 1.25rem;
        padding: 3.5rem 1.25rem;
        border-radius: 16px;
    }

    .final-cta h2 {
        font-size: 1.75rem;
    }

    .final-cta p {
        font-size: 1rem;
    }

    .btn-white {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Auth modals */
    .modal-auth-custom {
        max-width: calc(100vw - 2rem) !important;
        margin: 0.5rem auto !important;
    }

    .auth-logo-block {
        padding: 22px 20px 18px;
    }

    .auth-form-block {
        padding: 22px 20px 24px;
    }
}

/* Mobile pequeno — até 480px */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .features-section,
    .pricing-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .final-cta {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero-stats-row {
        gap: 1rem;
    }

    .divider {
        display: none;
    }
}

/* Footer */
.footer { background: var(--bg-dark); padding: 4rem 2rem; border-top: 1px solid var(--border-light); margin-top: 4rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--text-primary); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }

@media (max-width: 991.98px) {
  .hero {
    grid-template-columns: 1fr;
    max-width: 95%;
    padding: 6rem 1rem 2rem;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-cta-group button, .hero-cta-group a {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding-bottom: 2rem;
  }

  .divider {
    width: 60px;
    height: 1px;
  }

  .hero-visual {
    order: -1;
    perspective: none;
  }

  .betting-terminal {
    max-width: 100%;
  }

  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-text { display: none; }
  .nav-actions { width: auto; gap: 0.5rem; }

  /* Botão "Começar Agora" compacto na navbar mobile */
  .nav-actions .btn-primary-landing {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }

  .features-section, .pricing-section {
    padding: 4rem 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .badge-new {
    font-size: 0.75rem;
  }

  .btn-large {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}
