:root {
  --primary-green: #00c853;
  --secondary-green: #00e676;
  --dark-green: #1b5e20;
  --accent-green: #a2ffb3;
  --black: #0a0a0a;
  --dark-bg: #121212;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --light-gray: #f4f7f6;
  --text-dark: #1a1a1a;
  --text-muted: #888888;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--black);
  color: var(--text-dark);
  line-height: 1.6;
}

header {
  background-color: var(--black);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  font-style: italic;
  letter-spacing: -1px;
  position: relative;
}

.logo span {
  color: var(--primary-green);
}

.logo .swoosh {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-green));
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 200, 83, 0.2);
}

.btn-nav:hover {
  background-color: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 200, 83, 0.3);
}

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

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--black);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

main {
  width: 100%;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

section > * {
  max-width: 1100px;
  width: 100%;
}

.hero-section {
  text-align: center;
  padding: 6rem 2rem;
}

.hero-p {
  font-size: 1.2rem;
  max-width: 850px;
  margin: 1.5rem auto;
}

.hero-btns {
  margin-top: 2.5rem;
}

.hero-btns a:first-child {
  margin-right: 1rem;
}

.hero-btn-alt {
  background: transparent;
  border: 2px solid var(--primary-green);
}

.rating-box {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--light-gray);
  width: 100%;
}

.live-stats-badge {
  display: inline-block;
  background: #ffebee;
  color: #ef5350;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef5350;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse 1.5s infinite;
}

.stat-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
}

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
  padding-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

.social-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

section {
  padding: 4rem 1.5rem;
  margin-bottom: 1rem;
  background-color: var(--white);
}

section h2, section h1, section h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--primary-green);
  padding-left: 1rem;
  scroll-margin-top: 100px;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Container Variations */
.container-green {
  background-color: var(--primary-green);
  color: var(--white);
}

.container-green h2, .container-green p, .container-green li {
  color: var(--white);
}

.container-black {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: var(--white);
  border-bottom: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
}

.container-black h2, .container-black p, .container-black li {
  color: var(--white);
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.glass-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--white);
  width: 100%;
  font-size: 1rem;
  transition: var(--transition);
}

.glass-input:focus {
  outline: none;
  border-color: var(--primary-green);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 200, 83, 0.2);
}

/* Premium Buttons */
.btn-premium {
  background: linear-gradient(180deg, var(--secondary-green) 0%, var(--primary-green) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 200, 83, 0.4);
  filter: brightness(1.1);
}

.btn-premium:active {
  transform: translateY(-1px);
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Grids & Cards */
.category-grid, .download-grid, .guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card, .download-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-card .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

/* Logic & Steps */
.logic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.logic-item {
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
}

.logic-item.green { background: #4caf50; color: white; }
.logic-item.red { background: #f44336; color: white; }
.logic-item.violet { background: #9c27b0; color: white; }

.steps-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  margin: 1.5rem 0;
}

.btn-download {
  display: inline-block;
  background: var(--primary-green);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: var(--secondary-green);
  transform: scale(1.05);
}

/* Stat System Pulse Animation */
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Rating Stars */
.stars {
  font-size: 2.5rem;
  color: #ccc;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.stars .star {
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.stars .star:hover {
  transform: scale(1.2);
}

.stars.has-voted {
  pointer-events: none;
}

.stars .star.active {
  color: #fbbf24;
}

footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

footer p {
  color: #888;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  main {
    margin: 0 auto !important;
    padding: 0 !important;
  }

  section { padding: 3rem 1.5rem; }
  
  .hero-section {
    padding: 4rem 1rem;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .btn-download, .btn-premium {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }

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

  .logo a {
    font-size: 1.5rem;
  }

  /* Fix 2-column grids from HTML inline styles */
  [style*="display: grid; grid-template-columns: 1fr 1fr"],
  [style*="display: flex; gap: 4rem; align-items: center"] {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  #register-hero, #login-hero {
    grid-template-columns: 1fr !important;
    padding: 3rem 1rem !important;
    text-align: center;
  }

  .promo-content h1 {
    font-size: 2.5rem !important;
  }

  .glass-card {
    padding: 1.5rem !important;
  }

  .stat-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .review-stats-grid {
    flex-direction: column;
    gap: 2rem !important;
  }

  .stars {
    font-size: 2.2rem !important;
  }

  /* Compact Mobile Layout */
  main {
    padding: 0 1rem;
  }

  section {
    padding: 2.5rem 1.5rem;
    display: block; /* Revert flex centering for mobile if needed, or keep it */
    border-radius: 15px;
    margin-bottom: 1rem;
  }

  .hero-section {
    padding: 4rem 1.5rem;
  }

  .rating-box {
    padding: 2rem 1rem;
  }

  .btn-premium {
    padding: 0.8rem 1.5rem;
    width: 100%;
  }

  section h2, section h1, section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
    scroll-margin-top: 80px;
  }
}
