:root {
  --green: #00E676;
  --green-brand: #1AB34D;
  --green-dark: #0D8033;
  --gold: #FFD600;
  --black: #080A0C;
  --charcoal: #111418;
  --grey: #1C2128;
  --surface-card: #111418;
  --surface-input: #1C2128;
  --text: #F0F4F8;
  --muted: #8899AA;
  --success: #33B34D;
  --error: #FF3D3D;
  --warning: #FF9400;
  --info: #4D99FF;
  --border: rgba(255,255,255,0.12);
  --border-light: rgba(255,255,255,0.07);
  --divider: rgba(255,255,255,0.08);
  --overlay: rgba(0,0,0,0.55);
  --overlay-light: rgba(0,0,0,0.30);
  --payment-bg: #121217;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.20);
  --shadow: 0 4px 10px rgba(0,0,0,0.30);
  --shadow-medium: 0 6px 16px rgba(0,0,0,0.40);
  --shadow-heavy: 0 10px 24px rgba(0,0,0,0.50);
  --shadow-payment: 0 10px 24px rgba(0,0,0,0.35);
  --gradient-primary: linear-gradient(135deg, var(--green-brand), var(--green-dark));
  --gradient-gold: linear-gradient(135deg, var(--gold), #FFA000);
  --gradient-hero-overlay: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.78) 100%);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-button: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
  --transition-card: transform 0.3s cubic-bezier(0.3, 0, 0.3, 0.7);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Barlow", sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.page { min-height: 100vh; padding: 28px 0 96px; }

.site-nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--charcoal);
}
.nav-inner {
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem; letter-spacing: 5px;
  color: var(--green);
}
.nav-links {
  display: flex; gap: 16px;
  color: var(--muted);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a:hover { color: var(--green); }
.btn {
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition-button);
}
.btn:active { transform: scale(0.98); opacity: 0.9; }
.btn-primary {
  background: var(--green-brand);
  color: #fff;
  border-radius: 12px;
  min-height: 50px;
  padding: 0 18px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  min-height: 44px;
  padding: 0 14px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  font-size: .8rem; letter-spacing: 6px;
}
.page-title {
  margin: 0 0 10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  line-height: 1;
}
.subtitle { color: var(--muted); margin: 0 0 20px; }

.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card:hover { transform: scale(0.99); transition: var(--transition-card); }
.grid { display: grid; gap: 20px; }
.muted { color: var(--muted); }

.pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 4px 10px;
  display: inline-flex;
  font-family: "Barlow Condensed", sans-serif;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pill.full { color: #fff; border-color: var(--error); background: rgba(255,61,61,.15); }
.pill.open { color: var(--green); border-color: var(--green); background: rgba(0,230,118,.08); }

.session-card-image {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.session-card-image::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-hero-overlay);
}
.session-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.detail-list { display: grid; gap: 8px; margin: 12px 0 16px; color: var(--muted); }
.detail-item { display: flex; gap: 8px; align-items: center; }
.session-players {
  margin-top: 8px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.4;
}
.session-players strong { color: var(--text); }
.player-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.player-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .82rem;
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.input {
  width: 100%;
  background: var(--surface-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-size: 1rem;
}
.input:focus { outline: none; border-color: var(--green-brand); box-shadow: 0 0 0 2px rgba(26,179,77,.22); }

.auth-shell {
  max-width: 540px;
  margin: 24px auto 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 40px;
  padding: 0 20px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 1px;
}
.segmented button.active {
  background: rgba(0,230,118,.12);
  color: var(--green);
  font-weight: 700;
}

.fab {
  position: fixed; right: 24px; bottom: 92px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #000;
  font-size: 2rem; line-height: 1;
  border: 0; box-shadow: var(--shadow-heavy);
}

.notice-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
}

.notification-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -100px);
  opacity: 0;
  width: min(640px, 92vw);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  display: grid;
  grid-template-columns: 4px 40px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  z-index: 1000;
  transition: transform .4s var(--ease-fast), opacity .3s ease;
}
.notification-banner.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.notification-accent {
  width: 4px; height: 100%;
  border-radius: 999px;
  background: var(--green);
}
.notification-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,230,118,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.notification-dismiss {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}

.bottom-tab {
  position: fixed; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--divider);
  background: var(--charcoal);
  display: none;
  z-index: 120;
}
.bottom-tab nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tab-item {
  min-height: 64px;
  display: grid; align-content: center; justify-items: center;
  color: var(--muted);
  border-top: 2px solid transparent;
}
.tab-item.active {
  color: var(--green);
  border-top-color: var(--green);
}
.tab-item .label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: .68rem;
}

@keyframes pulse-wait {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.pulse-wait { animation: pulse-wait 1.6s infinite; }

/* Shared UI polish (landing patterns reused on app pages) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.btn-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px) scale(1.015);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (min-width: 860px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .bottom-tab { display: block; }
  .page { padding-bottom: 120px; }
  .btn-primary:hover { transform: none; filter: none; }
  .input {
    font-size: 16px;
    min-height: 48px;
  }
  .btn,
  .btn-primary,
  .btn-ghost {
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }
  .container { width: min(1120px, 94%); }
  .card { padding: 18px 16px; }
}
