/* ===========================================================
   Qorix Network — shared styles
   Bright, modern, gaming-friendly Minecraft server portal
   =========================================================== */

:root {
  --green: #4CC93F;
  --green-600: #38B02E;
  --green-50: #EAF9E5;
  --blue: #3B9EFF;
  --blue-600: #1B83F0;
  --orange: #FF8A2A;
  --orange-50: #FFF1E2;
  --red: #DC2626;
  --red-50: #FEE7E7;
  --yellow: #EAB308;
  --yellow-50: #FEF7D6;
  --slate-50: #FAFBFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-700: #334155;
  --slate-900: #0F172A;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --shadow: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 18px 40px -8px rgba(15,23,42,.12), 0 6px 14px -4px rgba(15,23,42,.06);
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-900);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--slate-900);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate-700); }

/* ---------- container ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 760px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-900);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.18));
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--slate-700);
  font-weight: 500;
  font-size: .94rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--slate-100); color: var(--slate-900); text-decoration: none; }
.nav-links a.active { color: var(--slate-900); background: var(--slate-100); }
.nav-cta { margin-left: 6px; }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--slate-200);
  border-radius: 8px; padding: 8px;
  cursor: pointer; color: var(--slate-700);
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--slate-200);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 4px 0 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--green);
  color: #062b04;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), inset 0 -2px 0 rgba(0,0,0,.12);
}
.btn-primary:hover { background: var(--green-600); }

.btn-secondary {
  background: var(--slate-900);
  color: white;
}
.btn-secondary:hover { background: #1c2944; }

.btn-discord {
  background: #5865F2;
  color: white;
}
.btn-discord:hover { background: #4752C4; }

.btn-outline {
  background: white;
  border-color: var(--slate-200);
  color: var(--slate-900);
}
.btn-outline:hover { border-color: var(--slate-300); background: var(--slate-50); }

.btn-danger {
  background: var(--red);
  color: white;
}
.btn-danger:hover { background: #B91C1C; }

.btn-success {
  background: #16a34a;
  color: white;
}
.btn-success:hover { background: #15803D; }

.btn-warning {
  background: #D97706;
  color: white;
}
.btn-warning:hover { background: #B45309; }
.btn.confirming { animation: pulse-warning 1.1s ease-in-out infinite; }
@keyframes pulse-warning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .55); }
  50%      { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
}

.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; border-radius: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 480px at 12% 0%, rgba(76,201,63,.14), transparent 60%),
    radial-gradient(900px 420px at 100% 20%, rgba(59,158,255,.12), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(76,201,63,.22);
}
.hero h1 { margin-top: 18px; max-width: 760px; }
.hero h1 .accent { color: var(--green-600); }
.hero p.lead {
  font-size: 1.12rem;
  color: var(--slate-500);
  max-width: 640px;
  margin: 6px 0 0;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- cards / home grid ---------- */
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-title {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.section-title h2 { margin: 0; }
.section-title p { color: var(--slate-500); margin: 4px 0 0; }

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) {
  .app-grid { grid-template-columns: 1fr; }
}
.app-card {
  position: relative;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-300);
  text-decoration: none;
}
.app-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: white;
}
.app-card.staff .icon-wrap { background: linear-gradient(135deg, #4CC93F, #2BA41E); }
.app-card.media .icon-wrap { background: linear-gradient(135deg, #FF8A2A, #F25C00); }
.app-card h3 { font-size: 1.4rem; margin: 0 0 4px; }
.app-card .subtitle { color: var(--slate-500); font-size: .95rem; margin-bottom: 14px; }
.app-card ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 8px;
}
.app-card ul li {
  display: flex; align-items: start; gap: 8px;
  color: var(--slate-700); font-size: .92rem;
}
.app-card ul li svg { flex-shrink: 0; color: var(--green-600); margin-top: 2px; }
.app-card .spacer { flex: 1; }
.app-card .card-cta { align-self: start; }

.app-card .corner-deco {
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--slate-50);
  z-index: 0;
}
.app-card.staff .corner-deco { background: var(--green-50); }
.app-card.media .corner-deco { background: var(--orange-50); }
.app-card > * { position: relative; z-index: 1; }

/* ---------- how it works ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 22px;
}
.step .num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--slate-900); color: white;
  font-weight: 700; font-size: .9rem;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.step h4 { font-size: 1.05rem; margin: 0 0 4px; }
.step p { margin: 0; color: var(--slate-500); font-size: .92rem; }

/* ---------- forms ---------- */
.form-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-card h2 { margin-top: 0; }
.form-card .form-intro { color: var(--slate-500); margin-top: -4px; margin-bottom: 22px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.form-group .req { color: var(--red); margin-left: 2px; }
.form-group .hint { font-size: .82rem; color: var(--slate-500); margin-top: 4px; }

.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--slate-900);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59,158,255,.15);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.textarea.tall { min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--slate-400);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 26px 0 18px;
}
.form-divider::before, .form-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--slate-200);
}

.form-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--slate-200);
}
.form-status { font-size: .92rem; }
.form-status.error { color: var(--red); }
.form-status.success { color: #16a34a; }
.form-status.sending { color: var(--slate-500); }

/* ---------- status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill-pending { background: var(--yellow-50); color: #92610A; }
.pill-pending .dot { background: var(--yellow); }
.pill-accepted { background: #DCFCE7; color: #166534; }
.pill-accepted .dot { background: #16a34a; }
.pill-rejected { background: var(--red-50); color: var(--red); }
.pill-rejected .dot { background: var(--red); }

/* ---------- banners / notifications ---------- */
.banner {
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.banner svg { width: 22px; height: 22px; flex-shrink: 0; }
.banner-accepted { background: #DCFCE7; color: #14532D; border-color: #BBF7D0; }
.banner-rejected { background: var(--red-50); color: #7F1D1D; border-color: #FECACA; }
.banner-info { background: #DBEAFE; color: #1E3A8A; border-color: #BFDBFE; }

/* ---------- account page ---------- */
.account-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px;
  margin-top: 28px;
}
@media (max-width: 820px) { .account-grid { grid-template-columns: 1fr; } }

.profile-card {
  background: white; border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--slate-100);
  margin: 0 auto 12px;
  display: grid; place-items: center;
  color: var(--slate-500);
  font-weight: 700; font-size: 2rem;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: var(--shadow);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h3 { margin: 0 0 2px; }
.profile-card .username { color: var(--slate-500); font-size: .9rem; margin-bottom: 14px; }
.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-top: 12px;
  border-top: 1px solid var(--slate-200);
  padding-top: 14px;
}
.profile-stats .stat { text-align: center; }
.profile-stats .stat .n { font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); }
.profile-stats .stat .l { font-size: .72rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .05em; }

.apps-panel {
  background: white; border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow);
}
.apps-list { display: grid; gap: 12px; }
.app-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
}
.app-item .meta { flex: 1; }
.app-item .meta .t { font-weight: 600; }
.app-item .meta .s { font-size: .85rem; color: var(--slate-500); }

/* ---------- dashboard ---------- */
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin-bottom: 22px;
}
.leader-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .04em;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px -4px rgba(220,38,38,.5), inset 0 -2px 0 rgba(0,0,0,.18);
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
}
.leader-badge svg { width: 22px; height: 22px; }

/* ---------- dashboard: application status toggle ---------- */
.app-status-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
}
.app-status-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-status-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(15,23,42,.25);
}
.app-status-icon.open { background: linear-gradient(135deg, #4CC93F, #2BA41E); }
.app-status-icon.closed { background: linear-gradient(135deg, #DC2626, #991B1B); }
.app-status-icon svg { width: 28px; height: 28px; }
.app-status-label {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--slate-500); font-weight: 700;
}
.app-status-state {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.08rem; margin-top: 2px;
}
.app-status-state.open { color: #16a34a; }
.app-status-state.closed { color: var(--red); }
@media (max-width: 560px) {
  .app-status-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .app-status-info { flex-direction: column; text-align: center; gap: 10px; }
  .app-status-bar .btn { width: 100%; justify-content: center; }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 16px;
}
.stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); }
.stat .value { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; margin-top: 4px; }
.stat.pending .value { color: var(--yellow); }
.stat.accepted .value { color: #16a34a; }
.stat.rejected .value { color: var(--red); }

.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
}
.toolbar .select, .toolbar .input { padding: 8px 12px; font-size: .9rem; width: auto; flex: 0 0 auto; }
.toolbar .input.search { min-width: 220px; flex: 1 1 220px; }

.dash-list { display: grid; gap: 10px; }
.dash-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, transform .08s ease;
}
.dash-item:hover { border-color: var(--slate-300); }
.dash-item:active { transform: scale(.998); }
.dash-item .avatar-sm {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--slate-100);
  display: grid; place-items: center;
  color: var(--slate-500);
  font-weight: 700; font-size: .9rem;
  overflow: hidden;
  flex-shrink: 0;
}
.dash-item .avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.dash-item .meta { flex: 1; min-width: 0; }
.dash-item .meta .name { font-weight: 600; }
.dash-item .meta .sub { font-size: .82rem; color: var(--slate-500); }
.dash-item .type-tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 6px;
  background: var(--slate-100); color: var(--slate-700);
  font-weight: 700;
}
.dash-item .type-tag.staff { background: var(--green-50); color: var(--green-600); }
.dash-item .type-tag.media { background: var(--orange-50); color: #B14E00; }

/* ---------- home: apply card closed state ---------- */
.app-card.closed { opacity: .85; }
.app-card.closed .icon-wrap { filter: grayscale(.6); }
.app-card.closed .card-cta {
  background: var(--slate-200) !important;
  color: var(--slate-700) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}
.app-card.closed .card-cta:hover { transform: none; }

/* ---------- detail drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 50;
  display: none;
}
.drawer.open { display: block; }
.drawer .scrim {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(2px);
}
.drawer .panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(640px, 96vw);
  background: white;
  box-shadow: -10px 0 40px rgba(15,23,42,.18);
  display: flex; flex-direction: column;
  animation: slidein .25s ease;
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--slate-200);
  position: sticky; top: 0; background: white; z-index: 1;
}
.drawer header h3 { margin: 0; }
.drawer .body { padding: 18px 22px; overflow: auto; flex: 1; }
.drawer footer {
  padding: 14px 22px; border-top: 1px solid var(--slate-200);
  display: flex; gap: 10px; justify-content: end;
  background: white; position: sticky; bottom: 0;
}
.q-row { padding: 10px 0; border-bottom: 1px solid var(--slate-100); }
.q-row:last-child { border-bottom: 0; }
.q-row .q { font-size: .82rem; color: var(--slate-500); font-weight: 600; margin-bottom: 2px; }
.q-row .a { white-space: pre-wrap; color: var(--slate-900); }

/* ---------- login modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15,23,42,.5);
  display: none; place-items: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: grid; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h2 { margin-top: 0; font-size: 1.3rem; }
.modal p { color: var(--slate-500); }
.modal .discord-btn {
  width: 100%; padding: 14px;
  font-size: 1rem;
  margin-top: 6px;
}
.modal .alt {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-200);
}
.modal .alt label { font-size: .85rem; font-weight: 600; }
.modal .alt .input { margin-top: 6px; }
.modal .alt .input + .input { margin-top: 8px; }
.modal .alt .modal-submit { margin-top: 14px; width: 100%; }
.demo-note {
  font-size: .8rem; color: var(--slate-500);
  background: var(--yellow-50);
  border: 1px solid #FDE68A;
  padding: 10px 12px; border-radius: 8px;
  margin-top: 14px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 80px;
  background: white;
  border-top: 1px solid var(--slate-200);
  padding: 36px 0;
  color: var(--slate-500);
  font-size: .9rem;
}
.site-footer .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--slate-700); }

/* ---------- misc ---------- */
.muted { color: var(--slate-500); }
.center { text-align: center; }
.empty {
  text-align: center; padding: 40px 20px;
  color: var(--slate-500);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius);
  background: white;
}
.spacer-lg { height: 32px; }
.divider { height: 1px; background: var(--slate-200); margin: 24px 0; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--slate-100); color: var(--slate-700);
  font-size: .75rem; font-weight: 600;
}
.kbd {
  display: inline-block;
  padding: 2px 6px; border-radius: 4px;
  background: var(--slate-100); color: var(--slate-700);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: .8rem; border: 1px solid var(--slate-200);
  border-bottom-width: 2px;
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 36px; }
  .section { padding: 36px 0; }
  .form-card, .apps-panel, .profile-card { padding: 20px; }
  .leader-badge { font-size: 1.15rem; padding: 8px 14px; }
}
