/* ================================
   Root Theme & Base Styles
=================================== */
:root { 
  --blue: #007bff;
  --dark: #00264d;
  --gold: #ffcc00;
  --bg: #f7f9fc;
  --card: #ffffff;
  --muted: #6c757d;
}

* { box-sizing: border-box; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  background: var(--bg);
  color: #111;
}

/* ================================
   Header & Navigation
=================================== */
.header {
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
}
.header.small { padding: 10px; }
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { height: 44px; }
.logo-small { height: 72px; margin-bottom: 6px; }
.nav a {
  color: #fff;
  margin-left: 14px;
  text-decoration: none;
  font-weight: 600;
}
.site { max-width: 1100px; margin: 0 auto; }

/* ================================
   Hero & Buttons
=================================== */
.hero {
  padding: 48px 20px;
  background: linear-gradient(120deg, #eaf6ff, #f2f9ff);
}
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 36px; margin: 0; color: var(--dark); }
.hero .lead { color: var(--muted); margin: 12px 0 18px; }

.btn {
  padding: 12px 18px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.sharp { border-radius: 4px; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.gold { background: var(--gold); color: #111; }
.btn:active { transform: translateY(1px); }

/* ================================
   Preview & Cards
=================================== */
.preview .cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 20px;
}
.card {
  width: 220px;
  padding: 18px;
  border-radius: 10px;
  color: #fff;
}
.card.bronze { background: #cd7f32; }
.card.silver { background: #c0c0c0; color: #111; }
.card.gold { background: #ffd700; color: #111; }
.preview h2 { color: var(--dark); text-align: center; }

/* ================================
   Offers & Footer
=================================== */
.container { max-width: 900px; margin: 30px auto; padding: 0 16px; }
.offers-main { padding: 24px 16px; }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.offer-card {
  background: var(--card);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  text-align: center;
}
.offer-card img { width: 96px; height: 96px; object-fit: contain; }
.offer-card h4 { margin: 8px 0 6px; }
.small { color: var(--muted); font-size: 13px; }
.footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 14px;
  margin-top: 30px;
}

/* ================================
   Splash Animation
=================================== */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e6f2ff, #ffffff);
  z-index: 9999;
}
.splash .door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--dark);
  transition: transform 0.9s ease;
}
.splash .door.left { left: 0; transform: translateX(0); }
.splash .door.right { right: 0; transform: translateX(0); }
.splash .splash-content { position: relative; z-index: 2; text-align: center; color: var(--gold); opacity: 1; }
.splash-logo { height: 110px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.15)); }
.slogan { color: var(--dark); font-weight: 700; margin-top: 12px; }

/* ================================
   Utility Classes
=================================== */
.hidden { display: none; }
.fade-slide { animation: fadeSlide 700ms ease both; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   Auth & Wallet Basics
=================================== */
.auth-page {
  display: flex;
  min-height: 75vh;
  align-items: center;
  justify-content: center;
}
.auth-card {
  background: var(--card);
  padding: 26px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.08);
  width: 360px;
  text-align: center;
}
.auth-card input, .auth-card textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #eee;
  border-radius: 4px;
}
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }

.wallet-page {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
}
.wallet-card {
  background: var(--card);
  padding: 22px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.08);
  width: 420px;
  text-align: center;
}

/* ================================
   Responsive Layout Tweaks
=================================== */
@media(max-width:700px){
  .header-inner{ flex-direction: column; gap: 8px; }
  .preview .cards{ flex-direction: column; align-items: center; }
  .hero h1{ font-size: 26px; }
}

/* ================================
   Responsive Navbar
=================================== */
.site-nav {
  background: #0d6efd;
  color: #fff;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  justify-content: space-between;
}
.nav-brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.15rem;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
}
.nav-links li a:hover,
.nav-links li a:focus { background: rgba(255,255,255,0.08); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b5ed7;
    flex-direction: column;
    display: none;
    padding: 0.5rem 1rem 1rem;
    gap: 0.25rem;
  }
  .nav-links.active { display: flex; }
  .nav-links li a {
    padding: 0.6rem 0.75rem;
    width: 100%;
  }
  .nav-toggle.open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
  .nav-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ================================
   Game Page
=================================== */
.game-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}
.game-container h1 { color: #0d6efd; }
.game-controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.game-controls button {
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.game-controls button:hover { background: #0b5ed7; }
.ticket-display,
.result-section {
  margin-top: 1.5rem;
  text-align: left;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ================================
   Wallet & Transaction Updates
=================================== */
.wallet-summary {
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}
.wallet-summary h2 {
  color: var(--dark);
  margin: 0;
  font-size: 22px;
}
.wallet-balance {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  margin: 10px 0;
}
.wallet-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wallet-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
}
.wallet-actions button:hover { background: #0056b3; }

/* Transaction History */
.transaction-history {
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
}
.transaction-history h3 {
  color: var(--dark);
  margin-bottom: 12px;
}
.transaction-table {
  width: 100%;
  border-collapse: collapse;
}
.transaction-table th,
.transaction-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 15px;
}
.transaction-table th {
  background: #f8f9fa;
  color: var(--dark);
  font-weight: 600;
}
.status-success { color: #28a745; font-weight: 600; }
.status-pending { color: #ffc107; font-weight: 600; }
.status-failed { color: #dc3545; font-weight: 600; }

@media (max-width: 700px) {
  .wallet-summary h2 { font-size: 20px; }
  .wallet-balance { font-size: 24px; }
  .transaction-table th, .transaction-table td { font-size: 14px; }
}



/* About & Privacy Page Enhancements */
.about-section, .privacy-section {
  background: var(--card);
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  line-height: 1.7;
}
.about-section h1, .privacy-section h1 {
  color: var(--dark);
  margin-bottom: 10px;
}
.about-section h2, .privacy-section h2 {
  color: var(--blue);
  margin-top: 24px;
  margin-bottom: 10px;
}
.about-section ul, .privacy-section ul {
  list-style: disc;
  padding-left: 22px;
}
.about-section li, .privacy-section li {
  margin-bottom: 8px;
}
/* Align hamburger (mobile nav toggle) to the left */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    margin-right: auto;
  }

  .nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .nav-brand {
    display: none; /* optional: hides duplicate brand link if showing */
  }

  .nav-toggle {
    margin-left: 10px;
    order: -1; /* move the hamburger button before the logo if needed */
  }
}
.social-icons i {
  font-size: 24px;
  color: gold;
  transition: 0.3s;
}

.social-icons i:hover {
  color: white;
  transform: scale(1.2);
}.footer {
  background: #0a0a0a;
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-about {
  margin-top: 10px;
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
}

.footer-logo {
  width: 110px;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social {
  width: 40px;
  height: 40px;
  background: #222;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: gold;
  border: 1px solid #444;
  transition: 0.3s;
  text-decoration: none;
}

.social:hover {
  background: gold;
  color: #000;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #222;
  color: #aaa;
  font-size: 14px;
}

