/* ShySMP applications + admin: same look as the store (dark slate, Poppins, chunky buttons, snow) */
:root {
  --bg: #16191d; --panel: #20252b; --panel2: #272d34; --raise: #2d343c; --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .12);
  --text: #fff; --muted: #93a1b0; --dim: #6c7a88;
  --blue: #35a7ff; --blue-d: #1c6fb5; --blue-soft: rgba(53, 167, 255, .13);
  --purple: #7b45e8; --purple-d: #3c1f8a;
  --green: #3fd06b; --green-d: #21843f; --green-soft: rgba(63, 208, 107, .13);
  --red: #ff4b45; --red-d: #a92320; --red-soft: rgba(255, 75, 69, .13);
  --gold: #ffc531; --gold-soft: rgba(255, 197, 49, .13);
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100vh; font-family: Poppins, system-ui, sans-serif; font-weight: 500; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
::selection { background: rgba(53, 167, 255, .45); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.req { color: var(--gold); margin-left: 4px; }

/* panels */
.card { position: relative; padding: 30px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 6px 0 #12151a; }

/* chunky buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border: 0; border-radius: 14px;
  background: var(--panel2); color: #fff; font: 800 14px Poppins, system-ui, sans-serif; letter-spacing: .3px; cursor: pointer;
  box-shadow: 0 5px 0 #14181c; transition: transform .12s, filter .12s, box-shadow .12s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #14181c; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; filter: none; }
.btn.primary { background: var(--blue); box-shadow: 0 5px 0 var(--blue-d); }
.btn.primary:active { box-shadow: 0 2px 0 var(--blue-d); }
.btn.ok { background: var(--green); box-shadow: 0 5px 0 var(--green-d); }
.btn.danger { background: var(--red); box-shadow: 0 5px 0 var(--red-d); }
.btn.discord { background: #5865f2; box-shadow: 0 5px 0 #3a43b8; }
.btn.small { height: 38px; padding: 0 14px; border-radius: 11px; font-size: 13px; box-shadow: 0 4px 0 #14181c; }
.btn.small.primary { box-shadow: 0 4px 0 var(--blue-d); }
.btn.small.discord { box-shadow: 0 4px 0 #3a43b8; }

/* form controls */
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 2px solid transparent; background: var(--bg); color: #fff;
  font: 500 15px Poppins, system-ui, sans-serif; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5f6c79; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
textarea.short { min-height: 80px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(53, 167, 255, .15); }
input.bad, textarea.bad, select.bad { border-color: var(--red); }

.alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.alert.err { background: var(--red-soft); border: 1px solid rgba(255, 75, 69, .4); color: #ffc9c7; }
.alert.ok { background: var(--green-soft); border: 1px solid rgba(63, 208, 107, .4); color: #c2f5d2; }
.alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pending { color: var(--gold); background: var(--gold-soft); }
.pill.accepted { color: var(--green); background: var(--green-soft); }
.pill.rejected { color: var(--red); background: var(--red-soft); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--panel2); color: #c8d2dc; }

.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
