:root {
  --gold: #d4af37;
  --gold-light: #e8d5a1;
  --dark: #0f1117;
  --dark-secondary: #1c1f2b;
  --dark-tertiary: #2a2e3f;
  --white: #f5f5f5;
  --accent: #b8860b;
}

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

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
  background: linear-gradient(
    135deg,
    var(--dark-secondary) 0%,
    var(--dark) 100%
  );
  border-top: 2px solid var(--gold);
}

/* Navbar */
.navbar {
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--dark-secondary) 100%
  ) !important;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.navbar-brand img {
  border: none;
  outline: none;
  box-shadow: none;
}

.navbar-brand:hover {
  transform: scale(1.05);
  transition: 0.3s ease;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 8px;
  position: relative;
  transition: 0.3s ease;
}

.nav-link:hover {
  color: var(--gold) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
}

.btn-light {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 600;
  border: none;
}

.btn-light:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--dark-secondary) 50%,
    rgba(212, 175, 55, 0.1) 100%
  );
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-section .lead {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 30px;
  font-weight: 300;
}

.bg-gradient {
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--dark-secondary) 100%
  );
}

/* Buttons */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--accent) 100%
  ) !important;
  color: var(--dark) !important;
  border: none;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
  color: var(--dark) !important;
}

.btn-outline-light {
  color: var(--white) !important;
  border: 2px solid var(--gold) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
  border: none;
}

.btn-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(23, 162, 184, 0.3);
}

/* Cards */
.card {
  background: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--white);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.card-header {
  background: linear-gradient(
    135deg,
    var(--dark-tertiary) 0%,
    rgba(212, 175, 55, 0.1) 100%
  ) !important;
  border-bottom: 2px solid var(--gold);
  font-weight: 600;
  color: var(--gold) !important;
}

.card-body {
  color: var(--white);
}

.card-title {
  color: var(--gold);
  font-weight: 700;
}

/* Prediction Balls */
.number-ball,
.star-ball {
  display: inline-block;
  width: 55px;
  height: 55px;
  line-height: 55px;
  text-align: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 22px;
  margin: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.number-ball {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: var(--dark);
}

.number-ball:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.star-ball {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  color: var(--white);
}

.star-ball:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

.main-numbers,
.star-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* Pricing Cards */
.pricing-card {
  position: relative;
  background: var(--dark-secondary);
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.pricing-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
}

.pricing-card.premium {
  border-color: var(--gold);
  transform: scale(1.05);
}

.pricing-header {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: var(--dark);
  padding: 30px 20px;
  text-align: center;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
}

.pricing-header-free {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.pricing-header-premium {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
}

.pricing-header-mid {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.pricing-header-mid h3,
.pricing-header-mid .pricing-amount,
.pricing-header-mid .pricing-period {
  color: #fff !important;
}

.pricing-page-title {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-page-subtitle {
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 600;
}

.btn-signup-free {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--dark);
  border: none;
}

.btn-signup-free:hover {
  color: var(--dark);
  opacity: 0.9;
}

.badge-free {
  background: linear-gradient(
    135deg,
    var(--gold-light) 0%,
    var(--gold) 100%
  ) !important;
  color: var(--dark) !important;
}

.btn-signup-mid,
.btn-checkout-mid {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: #fff;
  border: none;
}

.btn-signup-mid:hover,
.btn-checkout-mid:hover {
  color: #fff;
  opacity: 0.9;
}

/* Free tier draw selection buttons */
.btn-outline-free {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: transparent;
}

.btn-outline-free:hover {
  background: rgba(232, 213, 161, 0.2);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-check:checked + .btn-outline-free {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-check:not(:checked) + .btn-outline-free {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.small-icon {
  font-size: 0.75rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  margin: 15px 0;
  letter-spacing: -2px;
}

.pricing-period {
  font-size: 0.9rem;
  opacity: 0.9;
}

.pricing-features {
  padding: 30px 20px;
  list-style: none;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .fa-check {
  color: var(--gold);
  margin-right: 12px;
  font-weight: bold;
}

.pricing-features .fa-times {
  color: #666;
  margin-right: 12px;
}

/* Features Section */
.features-section {
  background: var(--dark-secondary);
  padding: 80px 0;
}

.features-section h2 {
  color: var(--white);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
}

.features-section .card {
  text-align: center;
  background: rgba(212, 175, 55, 0.05);
}

.features-section .card-body {
  padding: 30px;
}

.features-section .fa-3x {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.features-section .card-title {
  font-size: 1.3rem;
  margin: 15px 0;
}

.no-white {
  color: var(--dark-secondary) !important;
  font-weight: bold;
}

non-white:hover {
  color: var(--dark) !important;
}

/* Forms */
.form-control {
  background: var(--dark-tertiary);
  border: 2px solid rgba(212, 175, 55, 0.2);
  color: var(--white);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: var(--dark-tertiary);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control::placeholder {
  color: #999;
}

.form-label {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Alerts */
.alert {
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  border-radius: 10px;
}

.alert-danger {
  background: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
  color: #ff6b6b;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
  color: #81c784;
}

/* Footer */
footer {
  background: var(--dark-secondary);
  border-top: 2px solid var(--gold);
  color: var(--white);
  margin-top: auto;
}

footer p {
  margin: 0;
}

footer .text-muted {
  color: #999 !important;
  font-size: 0.9rem;
}

/* Badge */
.badge {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.badge.bg-success {
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--accent) 100%
  ) !important;
  color: var(--dark);
}

/* Dropdown */
.dropdown-menu {
  background: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
}

.dropdown-item {
  color: var(--white);
  transition: 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.dropdown-divider {
  border-color: rgba(212, 175, 55, 0.2);
}

/* Utility */
.text-gold {
  color: var(--gold) !important;
}

.text-gold img {
  border: none;
  outline: none;
  box-shadow: none;
}

.bg-dark {
  background: var(--dark) !important;
}

.blur-content {
  filter: blur(4px);
  opacity: 0.6;
}

/* History Table */
.history-table {
  background: #1a1a2e;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.history-table thead {
  background: linear-gradient(135deg, #2a2a40 0%, #1a1a2e 100%);
  border-bottom: 3px solid var(--gold);
}

.history-table thead th {
  color: var(--gold);
  font-weight: 700;
  border: none;
  padding: 18px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.history-table tbody td {
  color: #ffffff;
  background: #252540;
  border-color: #3a3a5a;
  border-bottom: 1px solid #3a3a5a;
  padding: 18px;
  vertical-align: middle;
  font-size: 1rem;
  font-weight: 500;
}

.history-table tbody tr {
  background: #252540;
}

.history-table tbody tr:hover {
  background: #2f2f50;
}

.history-table tbody tr:hover td {
  background: #2f2f50;
  color: var(--gold-light);
}

.history-table .badge {
  font-size: 0.95rem;
  padding: 8px 15px;
  font-weight: 600;
}

.history-table .btn {
  background: var(--gold);
  color: var(--dark);
  border: none;
  font-weight: 600;
  padding: 8px 20px;
}

.history-table .btn:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

/* Dashboard Text Visibility */
.card-text,
.card-title,
.form-label {
  color: var(--white) !important;
}

.text-muted {
  color: var(--gold-light) !important;
}

/* Account Dropdown */
.dropdown-menu {
  background: var(--dark-secondary);
  border: 1px solid var(--gold);
}

.dropdown-item {
  color: var(--white);
}

.dropdown-item:hover {
  background: var(--dark-tertiary);
  color: var(--gold);
}

.dropdown-divider {
  border-color: var(--dark-tertiary);
}

.bg-info {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
  border: none !important;
}

.border-info {
  border-color: #9b59b6 !important;
}

.btn-info {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
  border: none !important;
  color: #fff !important;
}

.btn-outline-info {
  background: transparent !important;
  border: 2px solid #9b59b6 !important;
  color: #9b59b6 !important;
}

.btn-outline-info:hover,
.btn-outline-info:active,
.btn-check:checked + .btn-outline-info {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
  border-color: #9b59b6 !important;
  color: #fff !important;
}

/* Footer */
footer {
  background: var(--dark-secondary);
  border-top: 2px solid var(--gold);
  padding: 30px 0;
  margin-top: 50px;
}

footer a {
  color: var(--gold-light);
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: var(--gold);
}

/* Password Toggle */
.password-input-wrapper {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 5px 10px;
  font-size: 1.1rem;
  transition: color 0.3s;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: var(--gold-light);
}

.password-toggle-btn:focus {
  outline: none;
}

.password-input-wrapper .form-control {
  padding-right: 45px;
}

/* Google AdSense Section */
.adsense-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 40px;
  margin: 50px auto;
  text-align: center;
  max-width: 900px;
}

.adsense-placeholder {
  background: #0f1419;
  border: 2px dashed var(--gold-light);
  border-radius: 10px;
  padding: 60px 20px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.adsense-placeholder i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.adsense-placeholder p {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin: 0;
}

/* Navbar Toggler (Burger Menu) - Fixed Visibility */
.navbar-toggler {
  border: 2px solid var(--gold) !important;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.4);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23D4AF37' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5em;
  height: 1.5em;
}

/* Collapsed Navigation Menu */
/* .navbar-collapse {
  background: var(--dark-secondary);
} */

@media (max-width: 991px) {
  .navbar-collapse {
    padding: 20px;
    margin-top: 15px;
    border-radius: 12px;
    border: 1px solid var(--gold);
    background: linear-gradient(
      135deg,
      var(--dark) 0%,
      var(--dark-secondary) 100%
    );
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 5px 0;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 12px 15px !important;
    margin: 0 !important;
    display: block;
    font-size: 1.1rem;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .btn {
    margin: 15px 0 5px 0;
    width: 100%;
    padding: 15px !important;
    font-size: 1.1rem;
    text-align: center;
  }

  .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 10px;
    border: none;
    background: var(--dark-tertiary);
  }
}

/* Tablet View (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }

  .hero-section .lead {
    font-size: 1.15rem;
  }

  .pricing-card.premium {
    transform: scale(1.02);
  }

  .card {
    margin-bottom: 20px;
  }

  .number-ball,
  .star-ball {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    margin: 6px;
  }

  /* Better grid on tablet */
  .row > [class*='col-md-4'] {
    margin-bottom: 20px;
  }

  /* Comparison stats section */
  .comparison-stats .col-md-4 {
    margin-bottom: 15px;
  }
}

/* Mobile View (below 768px) */
@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .number-ball,
  .star-ball {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 16px;
    margin: 4px;
  }

  .pricing-card.premium {
    transform: scale(1);
  }

  .hero-section {
    min-height: 350px;
    padding: 30px 0;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .card {
    margin-bottom: 15px;
  }

  /* Stack comparison stats vertically */
  .comparison-stats .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
}
