/* ==========================================================
   RESET
========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b1020;
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
}

/* ==========================================================
   VARIABLES
========================================================== */
:root {
  --bg: #0b1020;
  --bg2: #071633;
  --card: #151b2f;
  --gold: #ffd700;
  --accent: #ff5a1f;
  --accent2: #ff8c00;
  --white: #ffffff;
  --gray: #b0b7c3;
  --border: rgba(255,255,255,0.08);

  --glow-orange: 0 0 30px rgba(255,140,0,.35);
  --glow-gold: 0 0 25px rgba(255,215,0,.25);
}

/* ==========================================================
   HEADER
========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11,16,32,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.header-container {
  max-width: 1400px;
  margin: auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 700;
}

.logo span {
  color: var(--gold);
}

/* ==========================================================
   DESKTOP NAVIGATION
========================================================== */
.desktop-nav {
  display: flex;
  gap: 28px;
}

.desktop-nav a {
  color: var(--gray);
  transition: 0.3s;
}

.desktop-nav a:hover {
  color: var(--white);
}

/* ==========================================================
   HEADER ACTION BUTTONS
========================================================== */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.login-btn {
  color: var(--white);
  padding: 10px 16px;
}

.play-btn {
  background: linear-gradient(135deg, #ff5a1f, #ff8c00);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  color: white;
  transition: .3s;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-orange);
}

/* ==========================================================
   MOBILE MENU
========================================================== */
.menu-btn {
  display: none;
  font-size: 28px;
  background: transparent;
  color: white;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #151b2f;
  z-index: 2000;
  transition: 0.3s;
  padding: 20px;
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sidebar-header button {
  background: none;
  color: white;
  font-size: 24px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav a {
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  z-index: 1500;
  transition: 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================
   FOOTER
========================================================== */
.site-footer {
  background: #11182c;
  padding: 60px 20px 100px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-content h3 {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 28px;
}

.footer-content p {
  color: var(--gray);
}

.footer-bottom{
  margin-top:25px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,0.08);
  text-align:center;
}

.footer-bottom p{
  margin:6px 0;
  color:#9ca3af;
  font-size:14px;
  line-height:1.6;
}

/* ==========================================================
   MOBILE BOTTOM NAVIGATION
========================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #151b2f;
  display: none;
  justify-content: space-around;
  padding: 12px 6px;
  border-top: 1px solid var(--border);
  z-index: 999;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
  color: white;
}

.mobile-bottom-nav span {
  font-size: 12px;
  margin-top: 4px;
}

/* ==========================================================
   COMPONENTS
========================================================== */
.container {
  width: min(1400px, 95%);
  margin: auto;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  transition: .3s;
}

.card:hover {
  transform: translateY(-4px);
}

.section-title {
  font-size: 32px;
  margin-bottom: 25px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ff5a1f, #ff8c00);
  border-radius: 12px;
  color: white;
  font-weight: bold;
  transition: .3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-orange);
}

.btn-secondary {
  padding: 14px 24px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  transition: .3s;
}

.btn-secondary:hover {
  box-shadow: var(--glow-gold);
}

/* ==========================================================
   HOMEPAGE PREMIUM
========================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0 70px;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,140,255,.15), transparent 30%),
    radial-gradient(circle at 80% 50%, rgba(255,140,0,.15), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.hero-section::before {
  content:"";
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(circle, rgba(255,215,0,.9) 1px, transparent 1px);
  background-size:80px 80px;
  animation:sparkle 4s linear infinite;
  opacity:.45;
}

@keyframes sparkle {
  0% {opacity:.15;}
  50% {opacity:.7;}
  100% {opacity:.15;}
}

.hero-content {
  text-align:center;
  position:relative;
  z-index:2;
}

.hero-content h2 {
  font-size:72px;
  margin-bottom:20px;
  line-height:1.1;
}

.hero-content h2 span {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,.5);
}

.hero-content p {
  max-width: 760px;
  margin:auto;
  color: var(--gray);
  font-size:22px;
  line-height:1.7;
}

.hero-buttons {
  margin-top: 35px;
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

.jackpot-card {
  background: linear-gradient(135deg, #ff5a1f, #ff8c00);
  border-radius: 28px;
  padding: 45px;
  text-align: center;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:
    0 0 35px rgba(255,136,0,.35),
    inset 0 0 25px rgba(255,255,255,.08);
}

.jackpot-card p {
  font-size:24px;
  margin-bottom:12px;
}

.jackpot-card h2 {
  font-size:72px;
  font-weight:900;
}

.draw-grid,
.game-grid,
.winner-list {
  display:grid;
  gap:20px;
  margin-top:20px;
}

.draw-grid {
  grid-template-columns: repeat(3, 1fr);
}

.game-grid {
  grid-template-columns: repeat(3, 1fr);
}

.winner-list {
  grid-template-columns: repeat(3, 1fr);
}

.draw-card,
.game-card,
.winner-card {
  text-align:center;
}

.draw-card h3,
.game-card h3 {
  margin-bottom:12px;
}

.draw-card p,
.game-card p,
.winner-card p {
  color:var(--gray);
  margin-bottom:16px;
}

.cta-section {
  padding:80px 0;
}

.cta-card {
  text-align:center;
  background:var(--card);
  border-radius:24px;
  padding:50px 20px;
  box-shadow: var(--glow-orange);
}

.cta-card h2 {
  margin-bottom:24px;
}


/* ==========================================================
   RESULTS PAGE
========================================================== */

.results-page{
    padding:40px 0 140px;
}

.results-header{
    text-align:center;
    margin-bottom:40px;
}

.results-header h1{
    font-size:48px;
    margin-bottom:12px;
}

.results-header p{
    color:#b0b7c3;
}

.results-grid{
    display:grid;
    gap:24px;
}

.result-card{
    padding:28px;
}

.result-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:16px;
}

.result-top h2{
    font-size:28px;
}

.result-badge{
    background:#16a34a;
    padding:8px 14px;
    border-radius:999px;
    font-size:14px;
    font-weight:bold;
}

.result-game{
    color:#ffd700;
    margin-bottom:10px;
    font-weight:bold;
}

.result-time{
    color:#b0b7c3;
    margin-bottom:22px;
}

.winning-numbers{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.winning-ball{
    width:58px;
    height:58px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#ff5a1f,#ff8c00);
    color:white;
    font-weight:bold;
    font-size:18px;
    box-shadow:0 8px 20px rgba(255,140,0,.3);
}

.no-result-card{
    text-align:center;
    padding:60px;
}

@media (max-width:768px){
    .result-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .results-header h1{
        font-size:36px;
    }

    .winning-ball{
        width:48px;
        height:48px;
    }
}

/* ==========================================================
   HOW TO PLAY
========================================================== */
.how-page{
    padding:40px 0 140px;
}

.how-header{
    text-align:center;
    margin-bottom:40px;
}

.how-header h1{
    font-size:48px;
    margin-bottom:12px;
}

.how-header p{
    color:#b0b7c3;
}

.how-card{
    margin-bottom:24px;
    padding:28px;
}

.how-card h2{
    margin-bottom:20px;
}

.how-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.mini-card{
    text-align:center;
}

.steps p{
    margin-bottom:12px;
}

.warning-card{
    border:1px solid rgba(255,193,7,.4);
}

@media (max-width:768px){
    .how-grid{
        grid-template-columns:1fr;
    }

    .how-header h1{
        font-size:36px;
    }
}
/* ==========================================================
   CONTACT PAGE
========================================================== */
.contact-page{
    padding:40px 0 140px;
}

.contact-header{
    text-align:center;
    margin-bottom:40px;
}

.contact-header h1{
    font-size:48px;
    margin-bottom:12px;
}

.contact-header p{
    color:#b0b7c3;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.contact-info-card,
.contact-form-card{
    padding:30px;
}

.contact-info-card h2,
.contact-form-card h2{
    margin-bottom:24px;
}

.contact-item{
    margin-bottom:22px;
}

.contact-item h4{
    margin-bottom:8px;
}

.contact-item p{
    color:#b0b7c3;
}

.contact-field{
    margin-bottom:20px;
}

.contact-field label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.contact-field input,
.contact-field textarea{
    width:100%;
    padding:16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.05);
    color:white;
    resize:none;
}

@media (max-width:768px){
    .contact-grid{
        grid-template-columns:1fr;
    }

    .contact-header h1{
        font-size:36px;
    }
}
/* ==========================================================
   DRAW DETAILS
========================================================== */
.draw-details-page {
  padding: 40px 0;
}

.draw-banner {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(255,90,31,.08), rgba(255,140,0,.08));
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}

.draw-banner h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.draw-banner p {
  color: var(--gray);
  margin-bottom: 16px;
}

.status-badge {
  display: inline-block;
  padding: 8px 18px;
  background: #1f9d55;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
}

.draw-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0 50px;
}

.info-card {
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.info-card h3 {
  color: var(--gray);
  margin-bottom: 12px;
}

.info-card p {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold);
}

/* ==========================================================
   TICKET PAGE
========================================================== */
.ticket-selection-page {
  padding: 40px 0 140px;
}

.ticket-info-card {
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(255,90,31,.08), rgba(255,140,0,.08));
  border: 1px solid rgba(255,255,255,.08);
}

.ticket-info-card h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.ticket-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ticket-meta span {
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  color: var(--gold);
  font-weight: 600;
}

.ticket-boxes {
  max-width: 1100px;
  margin: auto;
}

.ticket-boxes h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.number-box-wrapper label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.number-box {
  width: 100%;
  padding: 18px;
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 18px;
  transition: .25s ease;
}

.number-box:hover {
  border-color: rgba(255,140,0,.5);
  transform: translateY(-2px);
}

.number-box.selected {
  background: linear-gradient(135deg, #ff5a1f, #ff8c00);
  border-color: transparent;
  font-weight: bold;
  box-shadow: 0 10px 24px rgba(255,140,0,.25);
}

.ticket-actions {
  margin-top: 35px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ticket-actions button {
  min-width: 160px;
  transition: .3s;
}

.ticket-actions button:hover {
  transform: translateY(-2px);
}

/* ==========================================================
   NUMBER MODAL
========================================================== */
.number-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.number-modal.active {
  display: flex;
}

.number-modal-content {
  width: 100%;
  max-width: 950px;
  max-height: 85vh;
  background: #151b2f;
  border-radius: 24px;
  padding: 25px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  font-size: 28px;
}

.modal-header button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 22px;
  transition: .3s;
}

.modal-header button:hover {
  background: rgba(255,90,31,.3);
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
}

.grid-number {
  height: 55px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 18px;
  font-weight: bold;
  transition: .25s ease;
}

.grid-number:hover {
  background: linear-gradient(135deg, #ff5a1f, #ff8c00);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255,140,0,.25);
}
/* ==========================================================
   CART PAGE PREMIUM DESIGN
========================================================== */
.cart-page {
  padding: 40px 0 140px;
}

.cart-header {
  text-align: center;
  margin-bottom: 30px;
}

.cart-title {
  font-size: 42px;
  margin-bottom: 10px;
}

.cart-subtitle {
  color: var(--gray);
}

.cart-summary-card {
  background: linear-gradient(135deg, rgba(255,90,31,.08), rgba(255,140,0,.08));
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
}

.cart-summary-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.summary-box {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
}

.summary-box h4 {
  color: var(--gray);
  margin-bottom: 10px;
}

.summary-box h2 {
  color: var(--gold);
  font-size: 34px;
}

.cart-ticket-card {
  background: var(--card);
  padding: 25px;
  border-radius: 22px;
  margin-bottom: 22px;
  transition: .3s;
}

.cart-ticket-card:hover {
  transform: translateY(-4px);
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.remove-btn {
  background: #dc2626;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
}

.ticket-number-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ticket-number-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#ff5a1f,#ff8c00);
  font-weight: bold;
}

.ticket-bottom {
  display: flex;
  justify-content: space-between;
}

.ticket-price-label,
.ticket-type-label {
  color: var(--gray);
}

.ticket-price-value {
  color: var(--gold);
  font-size: 24px;
  font-weight: bold;
}

.cart-actions {
  margin-top: 30px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.clear-cart-btn {
  background: #dc2626;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
}

.checkout-btn {
  background: linear-gradient(135deg,#ff5a1f,#ff8c00);
  padding: 14px 24px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
}

.empty-cart-card {
  text-align: center;
  padding: 50px;
}

/* ==========================================================
   CHECKOUT PAGE
========================================================== */
.checkout-page {
  padding: 40px 0 140px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 30px;
}

.checkout-header h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.checkout-header p {
  color: var(--gray);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.checkout-form-card,
.checkout-summary-card {
  padding: 28px;
}

.checkout-form-card h3,
.checkout-summary-card h3 {
  margin-bottom: 25px;
}

.checkout-field {
  margin-bottom: 18px;
}

.checkout-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.checkout-input {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: white;
}

.checkout-note {
  margin: 18px 0;
  color: var(--gray);
}

.checkout-pay-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg,#ff5a1f,#ff8c00);
  color: white;
  border-radius: 14px;
  font-weight: bold;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.amount-highlight {
  color: var(--gold);
  font-size: 24px;
}

.ticket-summary-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.summary-numbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ==========================================================
   PAYMENT PAGE
========================================================== */
.payment-page {
  padding: 40px 0 140px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.qr-card,
.payment-summary {
  padding: 30px;
}

.qr-card img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: auto;
  border-radius: 18px;
}

.agent-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  margin-top: 16px;
}

.pay-whatsapp-btn {
  display: inline-block;
  margin-top: 16px;
  background: #16a34a;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: bold;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 992px) {
  .draw-grid,
  .game-grid,
  .winner-list {
    grid-template-columns: repeat(2,1fr);
  }

  .checkout-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .number-grid {
    grid-template-columns: repeat(6,1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .draw-grid,
  .game-grid,
  .winner-list,
  .draw-info-grid,
  .cart-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 46px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .jackpot-card h2 {
    font-size: 42px;
  }

  .number-grid {
    grid-template-columns: repeat(5,1fr);
  }

  .ticket-top,
  .ticket-bottom {
    flex-direction: column;
  }

  .cart-title,
  .checkout-header h1 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 94%;
  }

  .hero-section {
    padding-top: 70px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .number-grid {
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
  }

  .grid-number {
    height: 46px;
    font-size: 16px;
  }

  .ticket-number-badge {
    width: 44px;
    height: 44px;
  }
}
