/* ==========================================================
   Prestige Roleplay — stylesheet
   ========================================================== */
:root {
  --bg: #04070c;
  --bg-2: #08101a;
  --panel: rgba(12, 21, 32, 0.78);
  --panel-solid: #0c1520;
  --panel-2: #101c2a;
  --border: rgba(0, 217, 255, 0.13);
  --border-strong: rgba(0, 217, 255, 0.35);
  --cyan: #00d9ff;
  --cyan-2: #00a6c8;
  --cyan-glow: rgba(0, 217, 255, 0.35);
  --text: #e7f2f8;
  --muted: #8ea4b6;
  --dim: #5c7184;
  --green: #2ee59d;
  --red: #ff4d6d;
  --yellow: #ffc857;
  --purple: #9b7bff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Rajdhani', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #6ee9ff; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 217, 255, .13), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(0, 120, 255, .08), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 217, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-bottom: 60px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { font-family: var(--font-head); color: var(--cyan); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 700; margin-bottom: 6px; display: block; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 7, 12, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; white-space: nowrap; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px var(--cyan-glow)); }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .93rem; transition: .15s; }
.nav > a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav > a.active { color: var(--cyan); background: rgba(0, 217, 255, .08); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 9px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.status-pill.is-online { color: var(--green); border-color: rgba(46, 229, 157, .3); }
.status-pill.is-online .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(46, 229, 157, .6); animation: pulse 2s infinite; }
.status-pill.is-offline .dot { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .55); } 70% { box-shadow: 0 0 0 9px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }

.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .88rem; max-width: 200px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip:hover { border-color: var(--border-strong); color: #fff; }

/* ---------- Avatars ---------- */
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; }
.avatar-sm { width: 30px; height: 30px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-xl { width: 120px; height: 120px; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; color: var(--cyan); border: 1px solid var(--border); }
.avatar-sm.avatar-fallback { font-size: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .93rem var(--font); cursor: pointer; transition: .18s; white-space: nowrap;
  color: var(--text); background: var(--panel-2); text-decoration: none;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); color: #021018; box-shadow: 0 8px 26px -8px var(--cyan-glow); }
.btn-primary:hover { color: #021018; box-shadow: 0 10px 32px -6px var(--cyan-glow); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--border); color: var(--text); }
.btn-ghost:hover, .btn-ghost.active { border-color: var(--border-strong); background: rgba(0, 217, 255, .07); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-steam { background: linear-gradient(135deg, #1b2838, #2a475e); color: #fff; border-color: #3b6585; }
.btn-danger { background: rgba(255, 77, 109, .12); color: var(--red); border-color: rgba(255, 77, 109, .35); }
.btn-danger:hover { background: rgba(255, 77, 109, .22); color: #ff8098; }
.btn-success { background: rgba(46, 229, 157, .12); color: var(--green); border-color: rgba(46, 229, 157, .35); }
.btn-success:hover { background: rgba(46, 229, 157, .22); color: #6fffc0; }
.btn-sm { padding: 7px 13px; font-size: .85rem; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: .78rem; border-radius: 7px; gap: 5px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(6px);
}
.card-hover { transition: .2s; }
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid transparent; white-space: nowrap; }
.badge-cyan { background: rgba(0, 217, 255, .1); color: var(--cyan); border-color: rgba(0, 217, 255, .25); }
.badge-green, .badge-accepted { background: rgba(46, 229, 157, .1); color: var(--green); border-color: rgba(46, 229, 157, .25); }
.badge-red, .badge-denied { background: rgba(255, 77, 109, .1); color: var(--red); border-color: rgba(255, 77, 109, .25); }
.badge-yellow, .badge-pending { background: rgba(255, 200, 87, .1); color: var(--yellow); border-color: rgba(255, 200, 87, .25); }
.badge-live { background: #ff2e4d; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Page header ---------- */
.page-head { padding: 56px 0 30px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 680px; font-size: 1.05rem; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 14px; }
.hero h1 .accent { color: var(--cyan); text-shadow: 0 0 34px var(--cyan-glow); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-logo { position: relative; display: flex; justify-content: center; }
.hero-logo img { width: min(380px, 80%); filter: drop-shadow(0 0 50px rgba(0, 217, 255, .35)); animation: float 6s ease-in-out infinite; }
.hero-logo::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 217, 255, .18), transparent 70%); filter: blur(20px); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Status card ---------- */
.status-card { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 26px 30px; position: relative; overflow: hidden; }
.status-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--dim); }
.status-card.is-online::before { background: var(--green); box-shadow: 0 0 22px var(--green); }
.status-card.is-offline::before { background: var(--red); }
.status-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: rgba(0, 217, 255, .08); color: var(--cyan); border: 1px solid var(--border); }
.status-icon .icon { width: 30px; height: 30px; }
.status-main .label { font-family: var(--font-head); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.status-main .state { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-main .state .count { color: var(--cyan); }
.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 10px; max-width: 520px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); border-radius: inherit; box-shadow: 0 0 14px var(--cyan-glow); transition: width .6s; }
.status-meta { font-size: .82rem; color: var(--dim); margin-top: 8px; }

/* ---------- Feature tiles ---------- */
.tile { display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.tile:hover { color: var(--text); }
.tile-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 217, 255, .08); color: var(--cyan); border: 1px solid var(--border); }
.tile-icon .icon { width: 24px; height: 24px; }
.tile p { color: var(--muted); margin: 0; font-size: .92rem; }
.tile .more { margin-top: auto; color: var(--cyan); font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: 6px; }

/* ---------- Rules ---------- */
.rules-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.rules-toc { position: sticky; top: 92px; padding: 18px; }
.rules-toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: .92rem; }
.rules-toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.rules-search { width: 100%; margin-bottom: 12px; }
.rule-cat { margin-bottom: 34px; scroll-margin-top: 90px; }
.rule-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rule-cat-num { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #021018; background: var(--cyan); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.rule-cat-head h2 { margin: 0; font-size: 1.7rem; }
.rule-cat > p { color: var(--muted); }
.rule { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); margin-bottom: 10px; }
.rule-num { font-family: var(--font-head); font-weight: 700; color: var(--cyan); font-size: 1.05rem; }
.rule h4 { margin: 0 0 4px; font-size: 1.12rem; }
.rule-body { color: #c4d3de; font-size: .94rem; }
.rule-body ul { margin: 6px 0; padding-left: 20px; }
.rule.hidden, .rule-cat.hidden { display: none; }

/* ---------- Team ---------- */
.dept { margin-bottom: 44px; }
.dept-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dept-head h2 { margin: 0; font-size: 1.6rem; }
.dept-bar { width: 6px; height: 28px; border-radius: 3px; }
.member { text-align: center; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; overflow: hidden; }
.member::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 70px; background: linear-gradient(180deg, var(--dept-color, var(--cyan)) -200%, transparent); opacity: .25; }
.member .avatar { width: 88px; height: 88px; border: 3px solid var(--dept-color, var(--cyan)); box-shadow: 0 0 24px -4px var(--dept-color, var(--cyan)); margin-bottom: 10px; position: relative; font-size: 1.6rem; }
.member h3 { margin: 0; font-size: 1.25rem; }
.member .rank { color: var(--dept-color, var(--cyan)); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.member .bio { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.member .discord { color: var(--dim); font-size: .82rem; display: flex; align-items: center; gap: 5px; margin-top: 6px; }

/* ---------- Creators ---------- */
.creator { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.creator-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #0b1724, #0f2233); display: grid; place-items: center; overflow: hidden; }
.creator-thumb img.thumb { width: 100%; height: 100%; object-fit: cover; }
.creator-thumb .avatar { width: 86px; height: 86px; border: 3px solid var(--border-strong); font-size: 1.5rem; }
.creator-thumb .badge-live { position: absolute; top: 12px; left: 12px; }
.creator-thumb .viewers { position: absolute; bottom: 10px; left: 12px; background: rgba(0, 0, 0, .7); padding: 2px 9px; border-radius: 6px; font-size: .8rem; font-weight: 600; }
.creator.is-live { border-color: rgba(255, 46, 77, .5); box-shadow: 0 0 0 1px rgba(255, 46, 77, .25), 0 14px 40px -14px rgba(255, 46, 77, .45); }
.creator-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.creator-head { display: flex; align-items: center; gap: 12px; }
.creator-head h3 { margin: 0; font-size: 1.25rem; }
.creator-title { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.social { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted); transition: .15s; }
.social .icon { width: 19px; height: 19px; }
.social:hover { transform: translateY(-2px); color: #fff; }
.social-twitch:hover { background: #9146ff; border-color: #9146ff; }
.social-youtube:hover { background: #ff0033; border-color: #ff0033; }
.social-tiktok:hover { background: #111; border-color: #25f4ee; }
.social-kick:hover { background: #53fc18; border-color: #53fc18; color: #000; }
.social-instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: #dc2743; }
.live-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ---------- Jobs / forms ---------- */
.job { display: flex; flex-direction: column; gap: 12px; }
.job-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.job-top h3 { margin: 0; }
.job .req { color: #c4d3de; font-size: .92rem; }
.job .req ul { padding-left: 20px; margin: 4px 0; }
.job-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field .hint { font-size: .8rem; color: var(--dim); margin-top: 5px; }
.req-star { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(3, 8, 14, .7);
  color: var(--text); font: 400 .95rem var(--font); transition: .15s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 217, 255, .15); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ea4b6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
select.input option { background: var(--panel-solid); }
.input-sm { padding: 7px 10px; font-size: .88rem; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .92rem; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--cyan); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 20px; display: grid; gap: 10px; }
.flash { padding: 13px 18px; border-radius: 10px; border: 1px solid; font-weight: 500; font-size: .93rem; }
.flash-success { background: rgba(46, 229, 157, .08); border-color: rgba(46, 229, 157, .35); color: #8cf5c8; }
.flash-error { background: rgba(255, 77, 109, .08); border-color: rgba(255, 77, 109, .35); color: #ff9aae; }
.flash-info { background: rgba(0, 217, 255, .07); border-color: rgba(0, 217, 255, .3); color: #9eeeff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 13px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid rgba(0, 217, 255, .06); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(0, 217, 255, .025); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--dim); margin: 0 auto 12px; display: block; }

/* ---------- Profile ---------- */
.profile-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-head .avatar { border: 3px solid var(--cyan); box-shadow: 0 0 30px -6px var(--cyan-glow); }
.profile-head h1 { font-size: 2.4rem; margin: 0 0 6px; }
.account { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); }
.account-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.account-icon .icon { width: 22px; height: 22px; }
.account-icon.steam { background: linear-gradient(135deg, #1b2838, #2a475e); }
.account-icon.discord { background: #5865f2; }
.account .info { flex: 1; min-width: 0; }
.account .info strong { display: block; }
.account .info span { color: var(--muted); font-size: .85rem; word-break: break-all; }

.answers dt { font-weight: 600; color: var(--cyan); margin-top: 16px; font-size: .92rem; }
.answers dd { margin: 5px 0 0; padding: 12px 14px; background: rgba(3, 8, 14, .6); border: 1px solid var(--border); border-radius: 9px; white-space: pre-wrap; word-wrap: break-word; color: #d3e1ea; }

/* ---------- Login ---------- */
.login-box { max-width: 460px; margin: 60px auto; text-align: center; padding: 40px 34px; }
.login-box img.logo { width: 110px; margin: 0 auto 16px; filter: drop-shadow(0 0 24px var(--cyan-glow)); }
.login-box .btn { width: 100%; margin-top: 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .8rem; margin: 18px 0 6px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(3, 6, 10, .8); padding: 40px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; max-width: 380px; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); }
.footer-social a:hover { color: var(--cyan); border-color: var(--border-strong); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(0, 217, 255, .06); font-size: .8rem; color: var(--dim); }

/* ---------- Staff panel ---------- */
.staff-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-top: 30px; align-items: start; }
.staff-side { position: sticky; top: 90px; padding: 14px; }
.staff-side .side-title { font-family: var(--font-head); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding: 10px 10px 6px; font-weight: 700; }
.staff-side a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.staff-side a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.staff-side a.active { color: var(--cyan); background: rgba(0, 217, 255, .09); }
.staff-side a .count { margin-left: auto; background: var(--yellow); color: #1a1200; font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.staff-main { min-width: 0; }
.staff-main > .head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.staff-main > .head h1 { font-size: 2rem; margin: 0; }
.stat { padding: 20px; }
.stat .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--cyan); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 7px 14px; border-radius: 8px; color: var(--muted); border: 1px solid var(--border); font-size: .88rem; font-weight: 500; }
.tabs a.active, .tabs a:hover { color: var(--cyan); border-color: var(--border-strong); background: rgba(0, 217, 255, .06); }
.q-row { display: grid; grid-template-columns: 1fr 140px 1fr auto auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: rgba(3, 8, 14, .5); }
.q-list { display: grid; gap: 8px; margin-bottom: 10px; }
.drag { cursor: grab; color: var(--dim); }
details.inline-edit > summary { list-style: none; cursor: pointer; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.rr-pick { position: relative; }
.rr-pick > summary { list-style: none; }
.rr-pick > summary::-webkit-details-marker { display: none; }
.rr-pop { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 14px; display: grid; gap: 8px; background: var(--panel-solid); box-shadow: var(--shadow); }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(4, 7, 12, .97); border-bottom: 1px solid var(--border); padding: 12px 20px 18px;
    display: none; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 11px 12px; }
  .nav-right { margin: 10px 0 0; flex-wrap: wrap; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .rules-layout, .staff-layout { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 200px; }
  .rules-toc, .staff-side { position: static; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .status-card { grid-template-columns: auto 1fr; }
  .status-card .btn-row { grid-column: 1 / -1; }
  .q-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .row-2, .row-3 { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .status-card { grid-template-columns: 1fr; padding: 22px; }
  .status-icon { display: none; }
  .rule { grid-template-columns: 1fr; gap: 4px; }
  .brand span { display: none; }
  .card { padding: 20px; }
  .q-row { grid-template-columns: 1fr; }
}
