/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --bg: #110520;
  --bg-dark: #08020f;
  --card-bg: rgba(45, 11, 105, 0.65);
  --card-border: rgba(123, 47, 247, 0.25);
  --sidebar-bg: #0a0218;
  --sidebar-border: rgba(80, 30, 180, 0.35);
  --gold: #f5a623;
  --gold-light: #ffd700;
  --purple: #7b2ff7;
  --purple-light: #a855f7;
  --text: #f0eafb;
  --text-muted: rgba(196, 181, 253, 0.6);
  --radius: 16px;
  --radius-lg: 24px;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ── KEYFRAMES ── */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(8deg);
  }
}

@keyframes float-r {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(-8deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.18);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-left {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-right {
  from {
    opacity: 0;
    transform: translateX(26px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes number-flip {
  0% {
    transform: perspective(500px) rotateX(0deg);
    opacity: 1;
  }

  45% {
    transform: perspective(500px) rotateX(90deg);
    opacity: 0;
  }

  55% {
    transform: perspective(500px) rotateX(-90deg);
    opacity: 0;
  }

  100% {
    transform: perspective(500px) rotateX(0deg);
    opacity: 1;
  }
}

@keyframes orbit-cw {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-ccw {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes bounce-x {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

/* Used by the ticket "called" badge */
@keyframes tick-pop {
  0% {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.2) rotate(4deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Used by the QR scan laser line */
@keyframes scan-sweep {

  0%,
  100% {
    top: 8%;
    opacity: 1;
  }

  48% {
    opacity: 1;
  }

  50% {
    top: 84%;
    opacity: 0.7;
  }

  52% {
    opacity: 1;
  }
}

/* ── LAYOUT ── */
#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100dvh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

#sidebar nav {
  scrollbar-width: none;
}

#sidebar nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  #sidebar {
    transform: translateX(0);
  }

  main {
    margin-left: 280px;
  }

  #menu-btn {
    display: none !important;
  }
}

#sidebar.open {
  transform: translateX(0);
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 30;
}

#overlay.show {
  display: block;
}

/* ── NAV ── */
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.38);
  padding: 0 14px;
  margin-bottom: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(196, 181, 253, 0.62);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  border-left: 2px solid transparent;
}

.nav-link .nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.nav-link .nav-chevron {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
  color: rgba(196, 181, 253, 0.7);
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(123, 47, 247, 0.12);
  border-left-color: rgba(123, 47, 247, 0.4);
}

.nav-link:hover .nav-icon {
  background: rgba(123, 47, 247, 0.18);
  border-color: rgba(123, 47, 247, 0.35);
}

.nav-link.active {
  color: white;
  background: linear-gradient(90deg, rgba(123, 47, 247, 0.38), rgba(168, 85, 247, 0.18));
  border-left-color: #a855f7;
}

.nav-link.active .nav-icon {
  background: linear-gradient(135deg, #7b2ff7, #a855f7);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 12px rgba(123, 47, 247, 0.5);
}

.nav-link.active .nav-chevron {
  opacity: 1;
}

/* ── SIDEBAR CTA CARD ── */
.sidebar-cta {
  margin: 0 12px 0;
  border-radius: 14px;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(45, 11, 90, 0.9), rgba(20, 4, 55, 0.95));
  border: 1px solid rgba(245, 166, 35, 0.25);
  box-shadow: 0 0 28px rgba(123, 47, 247, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.22), transparent 70%);
}

.sidebar-cta-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 7px;
}

.sidebar-cta-text {
  font-size: 12px;
  color: rgba(196, 181, 253, 0.65);
  line-height: 1.55;
  margin-bottom: 14px;
}

.sidebar-cta-btn {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  color: rgba(196, 181, 253, 0.85);
  cursor: default;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 14px rgba(123, 47, 247, 0.2);
  animation: pulse-glow 2.8s ease-in-out infinite;
}

/* ── PHONE FRAME ── */
.phone-frame {
  background: #0d0316;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-shadow: 0 0 80px rgba(120, 50, 220, 0.45), 0 40px 80px rgba(0, 0, 0, 0.7);
  width: 260px;
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  z-index: 10;
}

.phone-frame img {
  border-radius: 26px;
  width: 100%;
}

/* ── FLOATING BALLS ── */
.ball-float {
  position: fixed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  pointer-events: none;
  z-index: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 1s;
}

.ball-float.visible {
  opacity: 0.38;
}

/* ── LIVE BALL ── */
#live-ball {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  font-weight: 900;
  color: white;
  border: 3px solid;
  position: relative;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

#live-ball.flip {
  animation: number-flip 0.6s ease;
}

/* ── CALLED BALLS ROW ── */
#called-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  max-width: 220px;
  max-height: 80px;
  overflow: hidden;
}

.called-ball {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  animation: scale-in 0.3s ease;
  flex-shrink: 0;
}

/* ── PATTERN GRID ── */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pattern-cell {
  aspect-ratio: 1;
  border-radius: 3px;
}

.pattern-cell.off {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── CARDS ── */
.tp-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tp-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}

/* ── BUTTONS ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a0533;
  font-weight: 900;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 0 32px rgba(245, 166, 35, 0.42);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
  transform: scale(1.05);
  box-shadow: 0 0 52px rgba(245, 166, 35, 0.65);
}

.btn-gold:active {
  transform: scale(0.97);
}

.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(123, 47, 247, 0.22);
  border: 1px solid rgba(123, 47, 247, 0.6);
  color: white;
  font-weight: 900;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 0 28px rgba(123, 47, 247, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-purple:hover {
  transform: scale(1.05);
  box-shadow: 0 0 48px rgba(123, 47, 247, 0.58);
}

.btn-purple:active {
  transform: scale(0.97);
}

.btn-dl {
  display: block;
  width: 100%;
  padding: 13px;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a0533;
  font-weight: 900;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.3);
}

/* ── SHIMMER TEXT ── */
.shimmer-text {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ── OR DIVIDER ── */
.or-divider {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ── BLOG CARD ── */
.blog-card {
  background: linear-gradient(135deg, rgba(45, 11, 105, 0.7), rgba(26, 5, 51, 0.85));
  border: 1px solid rgba(123, 47, 247, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 166, 35, 0.38);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}

.blog-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
}

/* ── SCROLL ANIMATIONS ── */
.scroll-animate {
  opacity: 0;
}

.scroll-animate.animated {
  animation: fade-up 0.7s ease forwards;
}

.scroll-animate.from-left.animated {
  animation: fade-left 0.7s ease forwards;
}

.scroll-animate.from-right.animated {
  animation: fade-right 0.7s ease forwards;
}

.scroll-animate.scale.animated {
  animation: scale-in 0.6s ease forwards;
}

.stagger-child {
  opacity: 0;
}

.stagger-child.animated {
  animation: fade-up 0.6s ease forwards;
}

/* ── BOUNCE ARROW ── */
.bounce-arrow {
  display: inline-block;
  animation: bounce-x 1.5s ease-in-out infinite;
}

/* ── COMING SOON ── */
.coming-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a0533;
  font-weight: 900;
  font-size: 20px;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: var(--radius);
  cursor: default;
  animation: pulse-glow 2.4s ease-in-out infinite;
  box-shadow: 0 0 48px rgba(245, 166, 35, 0.5);
}

/* ── GLOW ORBS ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  animation: pulse-glow var(--dur, 5s) var(--delay, 0s) ease-in-out infinite;
}

/* ── SPARKLE ── */
.sparkle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  animation: sparkle var(--dur, 3s) var(--delay, 0s) ease-in-out infinite;
}

/* ── SECTION BASE ── */
section {
  position: relative;
  z-index: 1;
}

/* ── DIVIDER LINE ── */
.divider-v {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245, 166, 35, 0.4), rgba(255, 255, 255, 0.12), rgba(123, 47, 247, 0.4), transparent);
}

.divider-h {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  flex: 1;
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 991px) {
  .flex-lg-row {
    flex-direction: column !important;
  }

  .or-col {
    display: none !important;
  }

  .or-row {
    display: flex !important;
  }

  .hide-lg {
    display: none !important;
  }

  .scroll-animate.scale.animated div {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .or-row {
    display: none !important;
  }

  .show-lg {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .hide-md {
    display: none !important;
  }

  .flex-sm-col {
    flex-direction: column !important;
  }

  section {
    padding: 80px 0px !important;
  }

}

/* ── MENU BUTTON ── */
#menu-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  padding: 10px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}