/* AquaSpins — aquatic blue + yellow CTA, rounded 3D UI */

:root {
  --bg-deep: #03132f;
  --bg-mid: #062a5c;
  --bg-light: #0a4f9b;
  --aqua: #38bdf8;
  --aqua-2: #22d3ee;
  --foam: #e0f2fe;
  --cta: #facc15;
  --cta-2: #fbbf24;
  --cta-deep: #b45309;
  --text: #f0f9ff;
  --muted: rgba(224, 242, 254, 0.72);
  --surface: rgba(56, 189, 248, 0.08);
  --surface-2: rgba(56, 189, 248, 0.18);
  --shadow-3d: 0 18px 40px -10px rgba(2, 12, 36, 0.6), inset 0 1px 0 rgba(255,255,255,0.18);
  --shadow-cta: 0 10px 0 -2px var(--cta-deep), 0 18px 30px -10px rgba(250, 204, 21, 0.5);
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56,189,248,0.25), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(34,211,238,0.2), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(10,79,155,0.4), transparent 60%),
    linear-gradient(180deg, #03132f 0%, #062a5c 60%, #03132f 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Animated wave background overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.05) 0, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05) 0, transparent 2px);
  background-size: 200px 200px, 280px 280px, 320px 320px;
  pointer-events: none;
  z-index: 0;
  animation: bubble-drift 25s linear infinite;
}
main, header, footer { position: relative; z-index: 1; }

@keyframes bubble-drift {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 -400px, 0 -560px, 0 -640px; }
}

/* ===== 3D ROUNDED CARDS ===== */
.card-3d {
  background: linear-gradient(165deg, rgba(56,189,248,0.18), rgba(10,79,155,0.5));
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 2rem;
  box-shadow: var(--shadow-3d);
  position: relative;
  overflow: hidden;
}
.card-3d::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 30%);
  pointer-events: none;
}

.hero-3d {
  background: linear-gradient(160deg, rgba(56,189,248,0.25) 0%, rgba(10,79,155,0.55) 50%, rgba(34,211,238,0.2) 100%);
  border: 2px solid transparent;
  border-radius: 2.5rem;
  background-clip: padding-box;
  position: relative;
  box-shadow:
    0 30px 60px -20px rgba(2,12,36,0.8),
    inset 0 2px 0 rgba(255,255,255,0.22),
    inset 0 -2px 0 rgba(0,0,0,0.3);
}
.hero-3d::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #7dd3fc 0%, #facc15 25%, #22d3ee 50%, #facc15 75%, #7dd3fc 100%);
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-shine 6s linear infinite;
  pointer-events: none;
}
@keyframes border-shine {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* ===== CTA BUTTONS (yellow, 3D) ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: linear-gradient(180deg, #fde047 0%, #facc15 50%, #eab308 100%);
  color: #422006;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(180, 83, 9, 0.4);
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 0 -2px var(--cta-deep), 0 12px 22px -8px rgba(250, 204, 21, 0.6);
}
.btn-cta:active { transform: translateY(6px); box-shadow: 0 2px 0 -2px var(--cta-deep); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--foam);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(56, 189, 248, 0.22); }

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 4.5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }

@keyframes shimmer-text {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.shimmer-text {
  background: linear-gradient(90deg, #facc15 0%, #fde047 25%, #fff 50%, #fde047 75%, #facc15 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-text 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.5); }
  50% { box-shadow: 0 0 0 18px rgba(250, 204, 21, 0); }
}
.pulse-glow { animation: pulse-glow 2.4s ease-out infinite; }

@keyframes bubble-rise {
  0% { transform: translateY(100%) scale(0.8); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translateY(-120%) scale(1.2); opacity: 0; }
}
.bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(125,211,252,0.2));
  animation: bubble-rise 6s ease-in infinite;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.wave-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%2338bdf8' fill-opacity='0.18' d='M0,60 C300,120 600,0 900,60 C1050,90 1150,30 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 50% 100%;
  animation: wave 18s linear infinite;
}

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 30s linear infinite; }

/* ===== SLOT CARDS ===== */
.slot-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(56,189,248,0.2), rgba(10,79,155,0.55));
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 12px 30px -10px rgba(2,12,36,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.slot-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 24px 40px -10px rgba(250,204,21,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
}
.slot-card__img-wrap {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}
.slot-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.slot-card:hover .slot-card__img-wrap img { transform: scale(1.08); }
.slot-card__badge {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  background: linear-gradient(180deg, #fde047, #facc15);
  color: #422006;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 83, 9, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.slot-card__info {
  padding: 0.85rem 1rem 1rem;
}
.slot-card__title {
  font-weight: 700;
  color: var(--foam);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}
.slot-card__provider {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== POPOVER ===== */
.popover-backdrop {
  position: fixed; inset: 0;
  background: rgba(2, 12, 36, 0.78);
  backdrop-filter: blur(10px);
  z-index: 60;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.popover-backdrop.open { display: flex; }
.popover-panel {
  background: linear-gradient(160deg, #0a4f9b, #062a5c);
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 2rem;
  max-width: 520px; width: 100%;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.7);
  padding: 1.75rem;
  position: relative;
  animation: popover-in 0.3s ease-out;
}
@keyframes popover-in {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.popover-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--foam);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; cursor: pointer;
}
.popover-close:hover { background: rgba(255,255,255,0.18); }

/* ===== FILTER PILLS ===== */
.filter-pill {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: var(--foam);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-pill:hover { background: rgba(56, 189, 248, 0.2); }
.filter-pill.active {
  background: linear-gradient(180deg, #fde047, #facc15);
  color: #422006;
  border-color: #b45309;
  box-shadow: 0 6px 14px -4px rgba(250,204,21,0.45);
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 3rem;
  border-radius: 999px;
  background: rgba(2, 12, 36, 0.5);
  border: 2px solid rgba(125, 211, 252, 0.3);
  color: var(--foam);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--cta); box-shadow: 0 0 0 4px rgba(250,204,21,0.18); }

/* ===== INNER PAGES: CENTERED 3D TOP MENU ===== */
@media (min-width: 768px) {
  header > .max-w-6xl {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  #primary-nav {
    justify-self: center;
    margin-left: 0;
    gap: 0.75rem;
  }

  #primary-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 1rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.34) 0%, rgba(56, 189, 248, 0.2) 100%);
    border: 1px solid rgba(125, 211, 252, 0.42);
    box-shadow: 0 5px 0 rgba(2, 12, 36, 0.42), 0 10px 20px -12px rgba(56, 189, 248, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    color: var(--foam);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  }

  #primary-nav a:hover {
    color: #fff7bf;
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(2, 12, 36, 0.5), 0 8px 16px -10px rgba(56, 189, 248, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }

  #primary-nav a:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 rgba(2, 12, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* ===== PROSE ===== */
.prose-aqua h2 {
  font-size: 1.85rem; font-weight: 800; margin: 2.5rem 0 1rem;
  color: var(--foam); line-height: 1.2;
  background: linear-gradient(90deg, #fde047, #facc15);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prose-aqua h3 {
  font-size: 1.3rem; font-weight: 700; margin: 1.8rem 0 0.75rem;
  color: var(--foam);
}
.prose-aqua p { margin: 0.85rem 0; color: var(--muted); line-height: 1.75; }
.prose-aqua ul { list-style: none; padding: 0; margin: 1rem 0; }
.prose-aqua ul li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  color: var(--muted);
}
.prose-aqua ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.85rem;
  width: 1rem; height: 1rem;
  background: radial-gradient(circle, #facc15, #b45309);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(250,204,21,0.5);
}
.prose-aqua ol { list-style: decimal; padding-left: 1.5rem; margin: 1rem 0; color: var(--muted); }
.prose-aqua ol li { margin: 0.5rem 0; padding-left: 0.5rem; }
.prose-aqua ol li::marker { color: var(--cta); font-weight: 800; }
.prose-aqua a { color: var(--cta); text-decoration: underline; text-underline-offset: 3px; }
.prose-aqua strong { color: var(--foam); font-weight: 700; }
.prose-aqua table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(125,211,252,0.2);
}
.prose-aqua th {
  background: rgba(56, 189, 248, 0.2);
  color: var(--foam);
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prose-aqua td {
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(125,211,252,0.12);
  color: var(--muted);
}
.prose-aqua tr:hover td { background: rgba(56,189,248,0.05); }

/* ===== FOOTER ===== */
.payment-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(125,211,252,0.2);
  color: var(--foam);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 84px;
}

/* ===== TICKER / STATS ===== */
.stat-card {
  background: linear-gradient(160deg, rgba(56,189,248,0.18), rgba(10,79,155,0.5));
  border: 1px solid rgba(125,211,252,0.3);
  border-radius: 1.5rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-3d);
}
.stat-card__value {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(180deg, #fde047, #facc15);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card__label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }

/* Coin flip */
@keyframes coin-flip {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}
.coin {
  display: inline-block;
  animation: coin-flip 3s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Hide scrollbar on filter scroll */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
