/* SHARK VIPs · web portal and admin panel. Dark only, like the app. */
:root {
  --bg: #07070a;
  --surface: #111117;
  --surface-2: #1a1a22;
  --surface-3: #24242e;
  --line: #2b2b36;
  --text: #ffffff;
  --muted: #a3a3b2;
  --pink: #f7c2d8;
  --pink-deep: #e88ab4;
  --on-pink: #2a0e1b;
  --green: #2fd17a;
  --amber: #ffb547;
  --red: #ff5c6c;
  --radius: 16px;
  --radius-lg: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--pink); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 7, 10, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img.flame { height: 36px; }
.brand img.word { height: 18px; }
.brand .tag { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
nav.links { display: flex; gap: 4px; align-items: center; }
nav.links a, nav.links button {
  background: none; border: 0; color: var(--muted); text-decoration: none;
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 15px;
}
nav.links a:hover, nav.links button:hover { color: var(--text); background: var(--surface-2); }
nav.links a.active { color: var(--pink); background: rgba(247, 194, 216, .1); }

main { padding: 24px 0 64px; }

.hero { text-align: center; padding: 40px 0 24px; }
.hero img.flame { height: 110px; margin: 0 auto 12px; }
.hero img.word { height: 44px; margin: 0 auto 16px; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto; }

h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 32px 0 12px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card.event { display: flex; flex-direction: column; gap: 6px; }
.card.event h3 { margin: 0; font-size: 19px; }
.card.event .meta { color: var(--muted); font-size: 14px; }
.card.event .actions { margin-top: auto; padding-top: 12px; }
.card .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }

/* ---------------------------------------------------------------- pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid currentColor; white-space: nowrap;
}
.pill.pending { color: var(--amber); background: rgba(255, 181, 71, .1); }
.pill.approved { color: var(--green); background: rgba(47, 209, 122, .1); }
.pill.rejected { color: var(--red); background: rgba(255, 92, 108, .1); }
.pill.cancelled { color: var(--muted); }
.pill.level { color: var(--c, var(--pink)); background: color-mix(in srgb, var(--c, var(--pink)) 14%, transparent); }

/* ---------------------------------------------------------------- forms */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px; /* avoids iOS zoom on focus */
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); }
textarea { min-height: 96px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--pink); color: var(--on-pink);
  font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .05s, filter .15s, opacity .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: transparent; color: var(--red); border-color: rgba(255, 92, 108, .5); }
.btn.success { background: var(--green); color: #04150c; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }

/* choice cards (access level) */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s, background .15s;
}
.choice span b { color: var(--c, var(--text)); }
.choice span small { color: var(--muted); font-size: 13px; }
.choice input:checked + span { border-color: var(--c, var(--pink)); background: color-mix(in srgb, var(--c, var(--pink)) 12%, var(--surface)); }
.choice input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }

.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: 22px; cursor: pointer;
}
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { font-size: 24px; font-weight: 700; min-width: 48px; text-align: center; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; font-size: 14px;
  background: rgba(247, 194, 216, .08); color: var(--pink);
}
.notice.warn { background: rgba(255, 181, 71, .1); color: var(--amber); }
.notice.error { background: rgba(255, 92, 108, .1); color: var(--red); }
.notice.ok { background: rgba(47, 209, 122, .1); color: var(--green); }

/* ---------------------------------------------------------------- admin */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar select { width: auto; min-width: 220px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.tabs button.active { background: var(--surface-3); color: var(--text); border-color: var(--surface-3); }
.tabs button .count { margin-left: 6px; color: var(--pink); font-weight: 700; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--surface-2); border-radius: var(--radius); padding: 14px; }
.stat .label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-size: 30px; font-weight: 800; }

.req { display: grid; gap: 10px; grid-template-columns: 1fr auto; align-items: start; }
.req .who { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700;
  background: rgba(247, 194, 216, .16); color: var(--pink);
}
.req .msg { grid-column: 1 / -1; font-style: italic; color: var(--muted); margin: 0; }
.req .buttons { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.req .when { font-size: 13px; color: var(--muted); text-align: right; }
.contact { font-size: 14px; color: var(--muted); }

dialog {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; width: min(480px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(2px); }
dialog h3 { margin: 0 0 16px; font-size: 20px; }
dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------------------------------------------------------------- misc */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--surface-3); color: var(--text); padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .25s; z-index: 100;
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: #3a1419; color: #ffd1d6; }
.toast.ok { background: #0f2c1c; color: #c9f5dc; }

.spinner {
  width: 28px; height: 28px; border-radius: 50%; margin: 48px auto;
  border: 3px solid var(--surface-3); border-top-color: var(--pink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

footer.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0 40px; }

@media (max-width: 640px) {
  .brand img.word, .brand .tag { display: none; }
  header.top .wrap { height: 56px; }
  nav.links a, nav.links button { padding: 8px 10px; font-size: 14px; }
  h1 { font-size: 24px; }
  .hero { padding: 24px 0 12px; }
  .hero img.flame { height: 84px; }
  .hero img.word { height: 34px; }
  .req { grid-template-columns: 1fr; }
  .req .when { text-align: left; }
  .toolbar select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
