/*
  SARA 777 Premium Design System
  Author: Antigravity
*/

:root {
  /* Colors */
  --primary: #064e3b; /* Deep Emerald */
  --primary-light: #065f46;
  --secondary: #fbbf24; /* Gold/Amber */
  --secondary-light: #fbbf24;
  --accent: #10b981; /* Emerald */
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --bg-dark: #020617;
  
  /* Spacing */
  --section-padding: clamp(3rem, 5vw, 6rem);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
}

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

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

h1, h2, h3, h4, .brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: all 0.3s ease-out;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--emerald-800);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-700);
}

/* Glass Effect Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* Buttons */
.btn-primary {
  background-color: var(--emerald-600);
  border-color: var(--emerald-600);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
  background-color: var(--emerald-700);
  border-color: var(--emerald-700);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-gold {
  background-color: var(--secondary);
  color: var(--slate-900);
  border: none;
  border-radius: 12px;
  font-weight: 600;
}

.btn-gold:hover {
  background-color: #f59e0b;
  color: var(--slate-900);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(251, 191, 36, 0.3);
}

.btn-outline-light {
  border-radius: 12px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--bg-dark);
  border-color: white;
  transform: translateY(-2px);
}

.btn-telegram {
  background: #0088cc;
  color: white;
  border-radius: 15px;
}

.btn-telegram:hover {
  background: #0077b3;
  color: white;
  transform: scale(1.05);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border-radius: 15px;
}

.btn-whatsapp:hover {
  background: #128c7e;
  color: white;
  transform: scale(1.05);
}

/* Header/Navbar */
#navbar {
  transition: all 0.4s ease;
  background: transparent;
  padding: 1.25rem 0;
}

#navbar.navbar-scrolled {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 12px;
  margin-right: 12px;
  background: var(--emerald-900);
}

.brand-text {
  font-size: 1.5rem;
  color: white;
  font-weight: 800;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary) !important;
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  padding-top: 120px;
  padding-bottom: 60px;
  background: radial-gradient(circle at top right, var(--emerald-900) 0%, var(--bg-dark) 50%);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: white;
}

.hero-title span {
  color: var(--secondary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 540px;
}

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

.hero-mockup img {
  border: 4px solid var(--glass-border);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
  animation: floating 6s ease-in-out infinite;
}

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

.floating-badge {
  position: absolute;
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  z-index: 2;
  font-size: 0.9rem;
  white-space: nowrap;
}

.player-badge {
  top: 10%;
  right: -5%;
  animation: floating 8s ease-in-out infinite reverse;
}

.win-badge {
  bottom: 20%;
  left: -5%;
  animation: floating 7s ease-in-out infinite 1s;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-card {
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--slate-900);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--emerald-600);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.stat-icon.emerald { background: rgba(16, 185, 129, 0.1); color: var(--accent); }
.stat-icon.gold { background: rgba(251, 191, 36, 0.1); color: var(--secondary); }
.stat-icon.slate { background: rgba(148, 163, 184, 0.1); color: white; }

.stat-number {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}

/* Section Header Utility */
.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--secondary);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Game Rates */
.rates-tabs-container {
  overflow: hidden;
}

.custom-pills {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto;
}

.custom-pills .nav-link {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  color: white !important;
}

.custom-pills .nav-link.active {
  background-color: var(--emerald-600) !important;
}

.rate-item-card {
  background: rgba(15, 23, 42, 0.6);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.rate-item-card:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--emerald-800);
}

.rate-item-card.highlight {
  border-color: var(--emerald-600);
  background: rgba(16, 185, 129, 0.05);
}

.rate-item-card.premium {
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0) 100%);
}

.rate-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.rate-value {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.rate-item-card.highlight .rate-value { color: var(--accent); }
.rate-item-card.premium .rate-value { color: var(--secondary); }

/* FAQ Section */
.custom-accordion .accordion-item {
  background: var(--slate-900);
  border: 1px solid var(--glass-border) !important;
}

.custom-accordion .accordion-button {
  background: var(--slate-900);
  color: white;
  padding: 1.5rem;
  font-weight: 600;
  box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: var(--emerald-900);
  color: var(--secondary);
}

.custom-accordion .accordion-button::after {
  filter: invert(1);
}

.custom-accordion .accordion-body {
  background: var(--slate-900);
  color: var(--text-secondary);
  padding: 0 1.5rem 1.5rem;
}

/* Support Section */
.bg-dark-slate {
  background-color: var(--slate-900);
}

.shape-glow {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  z-index: 0;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--emerald-600);
  transform: translateY(-3px);
}

/* Fixed Actions */
.fixed-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.fixed-actions .btn {
  font-weight: 700;
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.5) !important;
}

/* Responsive Fixes */
@media (max-width: 991px) {
  .hero-section {
    text-align: center;
    padding-top: 100px;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-subtitle {
     margin-left: auto;
     margin-right: auto;
  }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.25rem; }
  .fixed-actions span { display: none; }
  .fixed-actions .btn { padding: 12px !important; }
}
