/* BloodSMP apply + admin: shared design tokens and components */
:root {
  --bg: #0a0607; --card: rgba(24, 13, 15, .84); --card-2: rgba(14, 8, 9, .92); --raise: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12);
  --text: #ece4e5; --muted: #9a8d8f; --dim: #6e6163;
  --red: #f5243b; --red-2: #d90f2a; --red-3: #8e0c20; --red-soft: rgba(245, 36, 59, .12);
  --ok: #22c55e; --ok-soft: rgba(34, 197, 94, .12); --warn: #f59e0b; --warn-soft: rgba(245, 158, 11, .12);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh; color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 560px at 10% -10%, rgba(217, 15, 42, .22), transparent 62%),
    radial-gradient(900px 520px at 110% 10%, rgba(142, 12, 32, .26), transparent 60%),
    radial-gradient(1100px 600px at 50% 120%, rgba(118, 14, 31, .16), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}
a { color: #ff7a86; text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(245, 36, 59, .45); color: #fff; }

.wordmark {
  background: linear-gradient(92deg, #fff 0%, #ffd9dd 28%, #ff4d5f 66%, #b10a22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-glow { filter: drop-shadow(0 6px 18px rgba(217, 15, 42, .35)); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.req { color: #ff7a86; margin-left: 3px; }

.card {
  position: relative; padding: 28px; border-radius: 22px; background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); box-shadow: 0 30px 70px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* form controls */
label.f { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cbbfc1; margin-bottom: 8px; }
label.f .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--dim); }
label.f .count { float: right; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.q { display: block; font-size: 14px; font-weight: 600; color: #f1e9ea; margin-bottom: 8px; line-height: 1.45; }
.q .num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-right: 8px; padding: 0 6px; border-radius: 8px; background: var(--red-soft); color: #ff9ca5; font-size: 12px; font-weight: 800; }
.q .opt { color: var(--dim); font-weight: 500; }
.q .count { float: right; color: var(--dim); font-size: 12px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #3a2f31; background: #0e090a; color: var(--text);
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
textarea.short { min-height: 76px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(245, 36, 59, .22); }
input.bad, textarea.bad, select.bad { border-color: #ff5f6f; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 13px;
  border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font: 600 14px var(--font); cursor: pointer;
  transition: transform .12s, filter .15s, border-color .15s, background .15s;
}
.btn:hover { border-color: rgba(245, 36, 59, .5); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn.primary { border: 0; color: #fff; background: var(--red-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(217, 15, 42, .7); }
.btn.primary:hover { background: #e8192f; }
.btn.ok { border: 0; color: #fff; background: #16a34a; }
.btn.ok:hover { background: #18b352; }
.btn.danger { border: 0; color: #fff; background: var(--red-2); }
.btn.danger:hover { background: #e8192f; }
.btn.small { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; }

.alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.alert.err { background: var(--red-soft); border: 1px solid rgba(245, 36, 59, .4); color: #ffc7cc; }
.alert.ok { background: var(--ok-soft); border: 1px solid rgba(34, 197, 94, .4); color: #b7f5cd; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 1px solid;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending { color: #fcd34d; background: var(--warn-soft); border-color: rgba(245, 158, 11, .35); }
.pill.accepted { color: #6ee7a7; background: var(--ok-soft); border-color: rgba(34, 197, 94, .35); }
.pill.rejected { color: #ff8a96; background: var(--red-soft); border-color: rgba(245, 36, 59, .35); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--raise); border: 1px solid var(--line); color: #cbbfc1; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
