
: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;
}

.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; }

/* Navbar */
.navbar-landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  background: transparent; /* Override bootstrap */
}
.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;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.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: 1rem; align-items: center; }
.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-glass);
  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;
}

.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%;
}

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

/* 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: 768px) {
  .nav-links, .btn-text { display: none; }
  .hero { grid-template-columns: 1fr; padding: 6rem 1rem 2rem; text-align: center; }
  .hero-content { align-items: center; }
  .hero-stats-row { flex-direction: column; gap: 1rem; }
  .divider { width: 40px; height: 1px; }
  .footer-content { flex-direction: column; gap: 2rem; }
}
