/* ========================================
   STARTER TEMPLATE - LOTTERY THEME
   Modern Dark Theme with Gold/Neon Effects
======================================== */

/* Base Variables Override */
:root {
  --primary-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
  --dark-bg: #0a0a1a;
  --darker-bg: #050510;
  --card-bg: rgba(20, 20, 40, 0.95);
  --gold: #FFD700;
  --gold-light: #FFE55C;
  --neon-green: #00ff88;
  --neon-blue: #00d4ff;
  --neon-purple: #b000ff;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.5);
  --glow-green: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Global Dark Background */
body {
  background: var(--dark-bg) !important;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(176, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%) !important;
  background-attachment: fixed !important;
}

/* Main Wrapper Dark */
.main-wrapper {
  background: transparent;
}

/* Glowing Gold Text */
.text-glow {
  text-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold), 0 0 30px var(--gold);
}

/* ========================================
   HERO / BANNER SECTION
======================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%) !important;
  padding: 150px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.hero__description {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* Floating Lottery Balls Animation */
.lottery-balls {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.lottery-ball {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  animation: floatBall 8s ease-in-out infinite;
  box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3), inset 5px 5px 15px rgba(255,255,255,0.2), 0 10px 30px rgba(0,0,0,0.3);
}

.ball-gold { background: var(--primary-gradient); color: #000; }
.ball-red { background: linear-gradient(135deg, #ff4444, #cc0000); color: #fff; }
.ball-blue { background: linear-gradient(135deg, #4444ff, #0000cc); color: #fff; }
.ball-green { background: linear-gradient(135deg, #44ff44, #00cc00); color: #000; }
.ball-purple { background: linear-gradient(135deg, #9944ff, #6600cc); color: #fff; }

@keyframes floatBall {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(0) rotate(180deg); }
  75% { transform: translateY(20px) rotate(270deg); }
}

/* ========================================
   BUTTONS
======================================== */
.btn--base {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 600;
  padding: 12px 35px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.btn--base:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
  color: #000 !important;
}

.btn--capsule {
  border-radius: 50px !important;
}

.btn--secondary {
  background: transparent !important;
  border: 2px solid var(--gold) !important;
  color: var(--gold) !important;
}

.btn--secondary:hover {
  background: var(--gold) !important;
  color: #000 !important;
}

/* ========================================
   CARDS & SECTIONS
======================================== */
.card, .section-card {
  background: var(--card-bg) !important;
  border: 1px solid rgba(255, 215, 0, 0.1) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(10px);
}

.lottery-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.lottery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.lottery-card:hover::before {
  left: 100%;
}

.lottery-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

/* Jackpot Display */
.jackpot-amount {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.jackpot-label {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   COUNTDOWN TIMER
======================================== */
.countdown-wrapper {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.countdown-item {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 15px 20px;
  min-width: 80px;
  text-align: center;
}

.countdown-item .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.countdown-item .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   NAVIGATION / HEADER
======================================== */
.header {
  background: rgba(10, 10, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.navbar-brand img {
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* ========================================
   SECTION TITLES
======================================== */
.section-title {
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========================================
   STATISTICS / COUNTER
======================================== */
.counter-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.counter-item {
  text-align: center;
  padding: 30px;
}

.counter-item .count {
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter-item .label {
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ========================================
   WINNERS LIST
======================================== */
.winner-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.winner-item:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.winner-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
}

.winner-prize {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--darker-bg) !important;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-title {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-link {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-5px);
  box-shadow: var(--glow-gold);
}

/* ========================================
   FORM ELEMENTS
======================================== */
.form-control, .form-select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  color: var(--text-primary) !important;
  border-radius: 10px;
  padding: 12px 20px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   DASHBOARD CARDS
======================================== */
.dashboard-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1);
}

.dashboard-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
}

/* ========================================
   TABLES
======================================== */
.table {
  color: var(--text-primary);
}

.table thead th {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  border: none;
  font-weight: 600;
}

.table tbody td {
  border-color: rgba(255, 215, 0, 0.1);
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.02);
}

/* ========================================
   LOTTERY TICKET SELECTION
======================================== */
.number-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.2);
  color: var(--text-primary);
  transition: all 0.3s ease;
  margin: 5px;
}

.number-ball:hover {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
}

.number-ball.selected {
  background: var(--primary-gradient);
  color: #000;
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  transform: scale(1.1);
}

/* ========================================
   BREADCRUMB
======================================== */
.breadcrumb-section {
  background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
  padding: 80px 0;
  position: relative;
}

.breadcrumb-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

.breadcrumb-title {
  color: var(--text-primary);
  font-weight: 700;
}

.breadcrumb-item a {
  color: var(--gold);
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); }
}

.pulse-animation {
  animation: pulse-gold 2s infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 5px var(--gold)); }
  50% { filter: drop-shadow(0 0 20px var(--gold)); }
}

.glow-animation {
  animation: glow 2s ease-in-out infinite;
}

/* Particle Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 991px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .countdown-item {
    padding: 10px 15px;
    min-width: 60px;
  }

  .countdown-item .number {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .jackpot-amount {
    font-size: 1.8rem;
  }

  .counter-item .count {
    font-size: 2rem;
  }
}

/* ========================================
   EXISTING STYLES (PRESERVED)
======================================== */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .3s;
}

.copied::after {
  position: absolute;
  top: 50%;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #000;
  background-color: var(--gold);
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
  transform: translateY(-50%);
}

@keyframes showcopied {
  0% { opacity: 0; transform: translateX(100%) translateY(-50%); }
  50% { opacity: 0.7; transform: translateX(40%) translateY(-50%); }
  70% { opacity: 1; transform: translateX(0) translateY(-50%); }
  100% { opacity: 0; }
}

.cookies-card {
  width: 520px;
  padding: 30px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #f9f9f9;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all .5s;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #000;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
    border-radius: 20px 20px 0 0;
  }
}

.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  background-color: var(--card-bg);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transform: translateX(-50%);
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: '';
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px;
  border-style: solid;
  border-color: var(--card-bg) transparent transparent transparent;
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  font-family: 'Line Awesome Free';
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: var(--neon-green);
}

.show-filter {
  display: none;
}

@media(max-width:767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}

.error {
  color: #ff4444;
}

.input-group label.error {
  top: 100%;
  position: absolute;
}

.modal .btn-close {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50%;
}

.modal-content {
  background: var(--card-bg) !important;
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: 20px !important;
}

.modal-header {
  border-bottom-color: rgba(255, 215, 0, 0.1) !important;
}

.modal-footer {
  border-top-color: rgba(255, 215, 0, 0.1) !important;
}

.modal .btn--secondary {
  color: var(--gold) !important;
}

.modal .btn--base {
  color: #000 !important;
}

/* Scroll to top button */
.scroll-to-top {
  background: var(--primary-gradient);
  border-radius: 50%;
  box-shadow: var(--glow-gold);
}

.scroll-to-top .scroll-icon {
  color: #000;
}

/* Preloader */
.preloader {
  background: var(--darker-bg);
}

.animated-preloader {
  border-color: rgba(255, 215, 0, 0.1);
  border-top-color: var(--gold);
}
