:root {
  --ink: #0e1a12;
  --ink-2: #33423a;
  --muted: #66746b;
  --bg: #f5f6f0;
  --card: #ffffff;
  --line: #e2e5dc;
  --lime: #c6f432;
  --lime-dark: #a8d61a;
  --green: #0b6e4f;
  --amber: #b26b00;
  --amber-bg: #fff3dc;
  --red: #b42318;
  --red-bg: #fde8e6;
  --ok-bg: #e7f6ee;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 26, 18, 0.06), 0 6px 20px rgba(14, 26, 18, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; line-height: 1.1; margin: 0 0 0.5rem; }
a { color: var(--green); }
code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; outline: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--ink); color: #fff;
}
.logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 900 1.25rem Archivo, sans-serif; letter-spacing: -0.02em; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--lime); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--lime); }
nav { display: flex; align-items: center; gap: 14px; }
.nav-link { color: #fff; text-decoration: none; font-weight: 500; opacity: .85; }
.nav-link:hover { opacity: 1; }

.demo-banner { background: var(--amber-bg); color: var(--amber); font-size: .9rem; padding: 8px 16px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--lime); color: var(--ink);
  font: 700 1rem Inter, sans-serif; padding: 14px 22px; min-height: 48px;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: var(--lime-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-small { padding: 8px 16px; min-height: 38px; font-size: .9rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24342a; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: rgba(14,26,18,.06); }
.btn-wa { background: #25d366; color: #06301a; }
.btn-wa:hover { background: #1fbe5b; }
.btn-danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red-bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  margin: 0 -16px; padding: 44px 20px 40px;
  background: var(--ink); color: #fff;
  border-radius: 0 0 28px 28px;
}
.pill-badge { display: inline-block; background: rgba(198,244,50,.15); color: var(--lime); border: 1px solid rgba(198,244,50,.4); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { font-size: 1.1rem; color: #cfd8d2; max-width: 34ch; margin: 0 0 24px; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 8px; }
.step { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.step b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); font-family: Archivo, Inter, sans-serif; margin-bottom: 8px; }
.step span { font-size: .92rem; font-weight: 600; }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { display: flex; gap: 12px; align-items: center; } .step b { margin: 0; flex: none; } }

/* Sections & cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.section-head h2 { font-size: 1.5rem; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card h2 { font-size: 1.4rem; }
.page-title { margin: 28px 0 16px; }
.page-title h1 { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }
.back { display: inline-block; margin-top: 18px; text-decoration: none; font-weight: 600; }

.game-card { display: block; text-decoration: none; color: inherit; transition: transform .1s ease; }
.game-card:hover { transform: translateY(-2px); }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sport-chip { background: var(--ink); color: var(--lime); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.when { font-family: Archivo, Inter, sans-serif; font-weight: 800; font-size: 1.15rem; margin: 2px 0; }
.meta { color: var(--ink-2); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.spots { margin-top: 12px; }
.spots-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.spots-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.spots-text { font-size: .88rem; font-weight: 600; margin-top: 6px; }
.full { color: var(--muted); }

.empty { text-align: center; padding: 32px 18px; }
.empty .big { font-size: 2.2rem; }

/* Status pills */
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; }
.status.pending { background: var(--amber-bg); color: var(--amber); }
.status.approved { background: var(--ok-bg); color: var(--green); }
.status.declined, .status.withdrawn, .status.cancelled, .status.removed { background: var(--red-bg); color: var(--red); }

/* Forms */
form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
  min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
textarea { min-height: 80px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 .88rem Inter; cursor: pointer; }
.chip:hover { border-color: var(--green); }
.form-error { background: var(--red-bg); color: var(--red); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }

/* Success / links */
.success { border: 2px solid var(--lime); }
.success .big { font-size: 2rem; }
.linkbox { display: flex; gap: 8px; margin: 10px 0; }
.linkbox input { font-size: .85rem; background: var(--bg); }
.warn { background: var(--amber-bg); color: #6b4100; border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin: 10px 0; }

/* Requests list (host) */
.req { border-top: 1px solid var(--line); padding: 14px 0; }
.req:first-of-type { border-top: 0; }
.req-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.req-name { font-weight: 700; }
.req-msg { background: var(--bg); padding: 8px 12px; border-radius: 10px; margin: 8px 0; font-size: .92rem; }
.req .btn-row { margin-top: 10px; }
.req .btn { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
.attend { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: .9rem; flex-wrap: wrap; }
.attend .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.kpi { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.kpi b { display: block; font: 800 1.4rem Archivo, Inter, sans-serif; }
.kpi span { font-size: .8rem; color: var(--muted); }

.mine a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.mine a:first-of-type { border-top: 0; }

.loading { text-align: center; padding: 40px; color: var(--muted); }

/* Footer & toast */
.footer { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; font-size: .88rem; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  transition: transform .25s ease, opacity .25s ease; max-width: calc(100% - 32px); z-index: 50;
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

details summary { cursor: pointer; font-weight: 600; color: var(--green); }
