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

:root {
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-950: #2e1065;
  --gray-900: #1a1a1a;
  --gray-950: #0a0a0a;
  --gray-800: #2d2d2d;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--gray-950);
  color: white;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--purple-500);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-950) 0%, var(--purple-950) 100%);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-300);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--purple-600);
  color: white;
}

.btn-primary:hover {
  background: var(--purple-700);
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-500);
  border: 2px solid var(--purple-600);
}

.btn-secondary:hover {
  background: var(--purple-600);
  color: white;
}

.btn-light {
  background: white;
  color: var(--purple-700);
}

.btn-light:hover {
  background: var(--gray-100);
}

.btn-large {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
}

.btn-block {
  width: 100%;
}

/* Features Section */
.features {
  padding: 4rem 2rem;
  background: var(--gray-950);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
  padding: 4rem 2rem;
  background: var(--gray-950);
}

.pricing h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.pricing-disclaimer {
  text-align: left;
  color: var(--gray-300);
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.old-price {
  color: var(--purple-500);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.price {
  font-size: 2.5rem;
  color: var(--purple-500);
  font-weight: 800;
  margin: 0.5rem 0;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.benefits {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.benefits li {
  padding: 0.5rem 0;
  color: var(--gray-300);
}

.benefit-yes {
  color: #10b981;
}

.benefit-no {
  color: #ef4444;
}

/* Channels Section */
.channels {
  padding: 4rem 2rem;
  background: var(--gray-950);
}

.channels h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1.5rem;
}

.channel-logo {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition: all 0.3s;
}

.channel-logo:hover {
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.1);
}

.channel-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* CTA Section */
.cta {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-800) 100%);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--gray-900);
  padding: 3rem 2rem;
  color: var(--gray-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--purple-500);
}

/* Gerar Teste Page */
.gerar-teste-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

.gerar-teste-content {
  text-align: center;
  max-width: 600px;
}

.gerar-teste-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.gerar-teste-content p {
  font-size: 1.25rem;
  color: var(--gray-300);
  margin-bottom: 2rem;
}

/* Admin Login */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-950) 0%, var(--purple-950) 100%);
}

.login-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 1rem;
  padding: 3rem;
  width: 100%;
  max-width: 400px;
}

.login-card h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-800);
  border-radius: 0.5rem;
  background: var(--gray-950);
  color: white;
  font-size: 1rem;
}

.error-message {
  background: #ef4444;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--purple-500);
  text-decoration: none;
}

/* Admin Dashboard */
.admin-dashboard {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--gray-950);
}

.admin-nav {
  background: var(--gray-900);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.admin-section {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
}

.admin-section h2 {
  margin-bottom: 1.5rem;
}

.admin-form .form-group {
  margin-bottom: 1rem;
}

.text-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-800);
  border-radius: 0.5rem;
  background: var(--gray-950);
  color: white;
}

.plans-table {
  margin-top: 2rem;
  overflow-x: auto;
}

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

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-800);
}

th {
  background: var(--gray-800);
  font-weight: 600;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  margin: 0 0.25rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.close {
  float: right;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-300);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gray-900);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

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

  .hero h1 {
    font-size: 2rem;
  }

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

  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}
