/* style.css */
:root {
  --bg: #050818;
  --bg-alt: #0b1024;
  --primary: #ffb700;    
  --bg-dark: #0f172a;   
  --track-color: #38bdf8;
  --primary-dark: #e19d00;
  --accent: #3ac8ff;
  --danger: #ff4d4d;
  --text: #f5f7ff;
  --muted: #9ca3af;
  --card: #111827;
  --border: #1f2933;
  --success: #22c55e;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  background: radial-gradient(circle at top, #111827 0%, #020617 55%, #000 100%);
  color: var(--text);
}

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

img {
  max-width: 100%;
}

/* Layout */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffdd7a 0%, #ffb700 25%, #b45309 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-weight: 800;
  font-size: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: #1f2933;
  background: rgba(15, 23, 42, 0.9);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  background: #111827;
  color: var(--text);
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #111827;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd34f 0%, var(--primary) 100%);
}

.btn-outline {
  background: transparent;
  border-color: #1f2933;
}

.btn-danger {
  background: #7f1d1d;
  border-color: #b91c1c;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

main {
  flex: 1;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

/* Cards & UI */

.card {
  background: radial-gradient(circle at top left, #111827 0%, #020617 60%);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.7);
}

.card + .card {
  margin-top: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.8);
  color: var(--muted);
}

/* Forms */

form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.input-group {
  display: flex;
  flex-direction: column;
}

input, select {
  background: #020617;
  border-radius: 999px;
  border: 1px solid #1f2937;
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row > .input-group {
  flex: 1;
}

.helper {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Alerts */

.alert {
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.alert-info {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.6);
}

.alert-success {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.6);
}

.alert-danger {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.6);
}

/* Hero (home) */

.hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  align-items: center;
}

.hero-title {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  font-weight: 700;
}

.hero-highlight {
  color: var(--primary);
}

.hero-sub {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

/* Simple “plane” preview on home

.hero-plane {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 1rem;
  background: radial-gradient(circle at bottom, #0f172a 0%, #020617 55%, #000 100%);
  border: 1px solid #1f2937;
}

.hero-plane-track {
  position: absolute;
  left: 1.15rem;
  bottom: 0.9rem;
  width: 260%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform-origin: left bottom;
  transform: rotate(11deg);
  opacity: 0.9;
}

.hero-plane-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #e5f3ff 0%, #38bdf8 35%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-size: 1.5rem;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
  transform: translate(0, 0);
  animation: heroPlane 3.5s ease-in-out infinite;
}

.hero-plane-multiplier {
  position: absolute;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-shadow: 0 0 16px rgba(250, 204, 21, 0.9);
  left: 1.3rem;
  top: 1.15rem;
} */

/* AeroFly game */

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 1.25rem;
}

.game-screen {
  position: relative;
  height: 260px;
  border-radius: 1rem;
  background: radial-gradient(circle at bottom, #020617 0%, #020617 60%, #000 100%);
  border: 1px solid #1f2937;
  overflow: hidden;
}

.game-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.game-graph-axis {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  right: 0.75rem;
  top: 0.85rem;
  border-left: 1px dashed rgba(148, 163, 184, 0.7);
  border-bottom: 1px dashed rgba(148, 163, 184, 0.7);
}

.game-plane {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #e0f2fe 0%, #38bdf8 35%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-size: 1.35rem;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.9);
  transform: translate(-50%, 50%);
}

.game-multiplier {
  position: absolute;
  top: 0.75rem;
  left: 0.9rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-shadow: 0 0 18px rgba(250, 204, 21, 1);
}

.game-status {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.game-curve {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform-origin: left center;
}

.game-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.balance-pill {
  border-radius: 999px;
  background: radial-gradient(circle at left, #14532d 0%, #052e16 45%, #020617 100%);
  border: 1px solid rgba(22, 163, 74, 0.8);
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-pill span {
  font-weight: 600;
}

.bet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.stat-pill {
  border-radius: 999px;
  border: 1px solid #1f2937;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.stat-pill strong {
  color: var(--text);
}

.badge-green {
  background: rgba(22, 163, 74, 0.24);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  color: #bbf7d0;
}

.badge-red {
  background: rgba(220, 38, 38, 0.24);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  color: #fecaca;
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.table th,
.table td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid #111827;
}

.table thead th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
}

.table tbody tr:hover {
  background: rgba(15, 23, 42, 0.75);
}

/* Footer */

footer {
  border-top: 1px solid #111827;
  padding: 0.75rem 1rem 1rem;
  background: #020617;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Responsive */

/* Simple “plane” preview on home */

.game-container {
  position: relative;
  width: 600px; 
  height: 340px;
  background-color: var(--bg-dark);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
  /*transform: scale(1.1);*/ /* Shrinks it to 110% of its size */
  /*transform-origin: center;*/ /* Ensures it stays centered while shrinking */
}

/* Grid Background without static CSS animation */
.grid-bg {
  position: absolute;
  inset: -100px;
  background-image: 
    linear-gradient(rgba(30, 41, 59, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}

.hero-plane-track {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-plane-track svg {
  width: 100%;
  height: 100%;
  transform: scaleY(-1); 
}

.hero-plane-track path {
  fill: url(#areaGradient);
  stroke: #38bdf8; /* Default stroke color */
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
}

.hero-plane-icon {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #e5f3ff 0%, #38bdf8 35%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.9);
  z-index: 10;
  left: 0;
  bottom: 0;
}

.hero-plane-multiplier {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 20;
  text-align: center;
}

.hero-plane-multiplier.betting {
  font-size: 1.8rem;
  color: #ffffff !important;
  text-transform: uppercase;
  text-shadow: none;
}

.hero-plane-status {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 20;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
}

.loading-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--track-color);
  width: 0%; 
}

@media (max-width: 900px) {
  .hero,
  .game-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-screen {
    height: 230px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    flex: 1 1 100%;
    justify-content: center;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .form-row {
    flex-direction: column;
  }
}

/* Carousel Container */
.promo-carousel {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 1rem 0;
}

.keen-slider {
  height: auto;
}

.keen-slider__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

.keen-slider__slide img {
  width: 100%;
  max-width: 90%;           /* prevents edge-to-edge on sides */
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.4s, opacity 0.4s;
}

/* Center slide "pops" larger */
.keen-slider__slide:not(.keen-slider__slide--active) {
  transform: scale(0.85);
  opacity: 0.8;
}

.keen-slider__slide--active {
  transform: scale(1.08);
  z-index: 2;
}

/* Pill dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.2rem;
}

.carousel-dot {
  width: 20px;
  height: 6px;
  border-radius: 10px;
  background: #4b5563;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  width: 30px;
  background: #FFCC00; /* mustard */
}