* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #e53e3e;
  --light: #f7fafc;
  --lighter: #edf2f7;
  --dark: #2d3748;
  --text: #4a5568;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Improved header styling with better contrast and spacing -->
.navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.navbar-brand h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.navbar-brand .tagline {
  font-size: 12px;
  color: var(--text);
  margin: 4px 0 0 0;
  font-weight: 500;
}

.navbar-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Enhanced hero section with better typography and spacing -->
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 100px 20px;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Improved button styling with better visual hierarchy -->
.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #38a169;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* Enhanced section styling with better spacing and typography -->
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--dark);
}

/* Improved features section with better card styling -->
.features {
  padding: 80px 20px;
  background: var(--light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* Enhanced pricing section with better card styling -->
.pricing {
  padding: 80px 20px;
  background: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
  transform: scale(1.05);
}

.badge-featured {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.price {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.price span {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.features-list {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.features-list li {
  padding: 12px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.features-list li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
  margin-top: 30px;
}

/* Added CTA section styling -->
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* Improved footer styling -->
.footer {
  background: var(--dark);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

/* Auth Forms */
.login-box,
.register-box {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  margin: 50px auto;
  box-shadow: var(--shadow);
}

.login-box h1,
.register-box h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Alerts */
.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-error {
  background: #fed7d7;
  color: #c53030;
  border: 1px solid #fc8181;
}

.alert-success {
  background: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.alert-info {
  background: #bee3f8;
  color: #2c5282;
  border: 1px solid #90cdf4;
}

/* Dashboard */
.dashboard {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-card h3 {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
  font-weight: 600;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  margin: 10px 0;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s;
}

.product-card.active {
  border-color: var(--success);
  box-shadow: 0 5px 15px rgba(72, 187, 120, 0.2);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark);
  font-weight: 600;
}

.product-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: #c6f6d5;
  color: #22543d;
}

.badge-warning {
  background: #feebc8;
  color: #7c2d12;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 50px auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.close:hover {
  color: var(--dark);
}

/* Status indicators */
.status-active {
  color: var(--success);
  font-weight: bold;
}

.status-inactive {
  color: var(--warning);
  font-weight: bold;
}

.status-suspended {
  color: var(--danger);
  font-weight: bold;
}

/* Platform Connections */
.platform-connections {
  background: var(--light);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.platform-connections h2 {
  margin-bottom: 20px;
  color: var(--dark);
  font-size: 22px;
  font-weight: 700;
}

.connection-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-facebook {
  background: #1877f2;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
}

.connection-status.connected {
  background: #c6f6d5;
  color: #22543d;
  border: 2px solid var(--success);
}

.connected-list {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}

.connected-list h3 {
  margin-bottom: 15px;
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
}

.connection-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.active {
  background: #c6f6d5;
  color: #22543d;
}

.status-badge.inactive {
  background: #feebc8;
  color: #7c2d12;
}

.status-badge.expired {
  background: #fed7d7;
  color: #c53030;
}

.account-status {
  background: var(--light);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.quick-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Text utilities */
.text-center {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 15px;
  }

  .navbar-nav {
    gap: 15px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .connection-buttons {
    flex-direction: column;
  }

  .btn-facebook,
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .quick-actions {
    flex-direction: column;
  }

  .quick-actions .btn {
    width: 100%;
    text-align: center;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .section-title {
    font-size: 28px;
  }
}
