/* ============================================================
   SubZeroMC - shared stylesheet
   Theme: near-black navy + icy blue / cyan frost accents
   Author: 41ev
   ============================================================ */

:root {
  --bg:         #060a12;
  --bg-2:       #0a1120;
  --surface:    #0e1626;
  --surface-2:  #131e33;
  --surface-3:  #182543;
  --border:     #1c2942;
  --border-2:   #2a3d63;
  --text:       #eaf1fb;
  --muted:      #93a3c2;
  --muted-2:    #5e6e92;
  --accent:     #38bdf8;
  --accent-2:   #7dd3fc;
  --accent-3:   #22d3ee;
  --accent-deep:#0ea5e9;
  --frost:      #e0f2fe;
  --good:       #34d399;
  --warn:       #fbbf24;
  --bad:        #f87171;
  --glow:       rgba(56, 189, 248, 0.35);
  --radius:     16px;
  --radius-lg:  22px;
  --maxw:       1140px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .display {
  font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection { background: var(--accent); color: #04121f; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

main { flex: 1 0 auto; }

/* ---------- Ambient background layers ---------- */
.ambient { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.5;
}
.ambient::before {
  width: 640px; height: 640px; top: -240px; left: -160px;
  background: radial-gradient(circle, rgba(56,189,248,0.30), transparent 70%);
  animation: drift1 24s var(--ease) infinite alternate;
}
.ambient::after {
  width: 560px; height: 560px; top: 200px; right: -180px;
  background: radial-gradient(circle, rgba(34,211,238,0.20), transparent 70%);
  animation: drift2 28s var(--ease) infinite alternate;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
#snow { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6; }
@keyframes drift1 { to { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-70px, -40px) scale(1.05); } }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.nav.scrolled {
  background: rgba(6, 10, 18, 0.78);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo .flake { width: 26px; height: 26px; color: var(--accent); filter: drop-shadow(0 0 8px var(--glow)); animation: spin-slow 24s linear infinite; }
.logo .logo-text { display: inline; }
.logo .zero { color: var(--accent-2); }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; color: var(--muted); padding: 9px 13px; border-radius: 10px;
  font-weight: 500; transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: 7px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent-2); }
.nav-links a.ext .ext-ic { width: 14px; height: 14px; opacity: .7; }
.nav-links a.cta { color: #04121f; background: var(--accent); font-weight: 700; }
.nav-links a.cta:hover { background: var(--accent-2); color: #04121f; transform: translateY(-1px); }
.nav-sep { width: 1px; height: 22px; background: var(--border-2); margin: 0 6px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-2); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; color: var(--text); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
body.menu-open .nav-toggle .x { display: block; }
body.menu-open .nav-toggle .bars { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 6px; padding: 18px 24px 26px; background: rgba(8,13,24,0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  body.menu-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 16px; padding: 13px 14px; }
  .nav-links a.cta { justify-content: center; margin-top: 6px; }
  .nav-sep { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: all .22s var(--ease);
  font-family: inherit; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #04121f; box-shadow: 0 8px 30px -8px var(--glow); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(56,189,248,0.04); }
.btn-arrow { transition: transform .22s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-block { width: 100%; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Eyebrow / tags ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(56,189,248,0.08);
  border: 1px solid var(--border-2); padding: 7px 14px; border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform: scale(1);} 50%{ opacity:.5; transform: scale(.75);} }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: 92px 0 84px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
h1.hero-title {
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 0.96; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 22px;
}
h1.hero-title .grad {
  background: linear-gradient(115deg, var(--accent-2) 0%, var(--accent) 42%, var(--accent-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 54ch; margin-bottom: 34px; }
.hero-sub b { color: var(--text); font-weight: 600; }

/* ---------- IP box + copy ---------- */
.ip-box {
  display: inline-flex; align-items: stretch; gap: 0; margin-bottom: 22px;
  border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  box-shadow: 0 12px 40px -18px rgba(0,0,0,0.8);
  max-width: 100%;
}
.ip-box .ip-label {
  display: flex; align-items: center; gap: 12px; padding: 15px 20px; min-width: 0;
}
.ip-box .ip-label .tag {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}
.ip-box .ip-text {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1rem, 3.4vw, 1.35rem); font-weight: 600; color: var(--text); letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 14.5px; padding: 0 22px; border: none; border-left: 1px solid var(--border-2);
  background: var(--accent); color: #04121f; transition: background .2s var(--ease), color .2s;
  white-space: nowrap;
}
.copy-btn svg { width: 17px; height: 17px; }
.copy-btn:hover { background: var(--accent-2); }
.copy-btn.copied { background: var(--good); color: #052e1a; }
.copy-btn .copy-ic-check { display: none; }
.copy-btn.copied .copy-ic-copy { display: none; }
.copy-btn.copied .copy-ic-check { display: block; }

@media (max-width: 480px) {
  .ip-box { flex-direction: column; align-items: stretch; width: 100%; }
  .ip-box .ip-label { justify-content: center; }
  .copy-btn { border-left: none; border-top: 1px solid var(--border-2); padding: 14px; justify-content: center; }
}

/* ---------- Version / crossplay badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 15px; border-radius: 999px;
}
.badge-pill .b-dot { width: 9px; height: 9px; border-radius: 3px; }
.badge-pill.java .b-dot { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.badge-pill.bedrock .b-dot { background: var(--accent-3); box-shadow: 0 0 8px rgba(34,211,238,.5); }
.badge-pill.cross { color: var(--accent-2); border-color: var(--border-2); background: rgba(56,189,248,0.06); }
.badge-pill b { color: var(--text); }

/* ---------- Section shell ---------- */
section.block { padding: 78px 0; position: relative; }
.sec-head { margin-bottom: 46px; max-width: 64ch; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-tag { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px; }
.sec-head.center .sec-tag { justify-content: center; }
.sec-tag::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.sec-head.center .sec-tag::after { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
h2.sec-title { font-size: clamp(1.9rem, 4.6vw, 2.95rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.sec-desc { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

/* ---------- Gamemode cards ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  padding: 30px 28px 28px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.mode-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.mode-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 26px 54px -26px rgba(0,0,0,0.75); }
.mode-card:hover::before { opacity: .8; }
.mode-ic {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 20px; color: var(--accent-2);
  background: radial-gradient(120% 120% at 30% 20%, rgba(56,189,248,0.22), rgba(56,189,248,0.04));
  border: 1px solid var(--border-2);
}
.mode-ic svg { width: 28px; height: 28px; }
.mode-card h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.mode-card p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; flex: 1; }
.mode-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-tags span {
  font-size: 12px; font-weight: 600; color: var(--accent-2);
  background: rgba(56,189,248,0.08); border: 1px solid var(--border-2);
  padding: 5px 11px; border-radius: 999px;
}

/* ---------- Feature strip ---------- */
.feature-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: 34px; position: relative; overflow: hidden;
}
.feature-strip::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6;
}
@media (max-width: 860px) { .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; } }
@media (max-width: 480px) { .feature-strip { grid-template-columns: 1fr; } }
.feat { display: flex; flex-direction: column; gap: 6px; }
.feat .fic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 6px; }
.feat h4 { font-size: 1.05rem; font-weight: 700; }
.feat p { font-size: .9rem; color: var(--muted); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 70px 0 44px; }
.page-hero .eyebrow { margin-bottom: 20px; }
h1.page-title { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 16px; }
h1.page-title .grad {
  background: linear-gradient(115deg, var(--accent-2) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.page-lead b { color: var(--text); font-weight: 600; }

/* ---------- Link cards (forums + vote) ---------- */
.link-grid { display: grid; gap: 20px; }
.link-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .link-grid.cols-2 { grid-template-columns: 1fr; } }

.link-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  padding: 28px; display: flex; align-items: center; gap: 20px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.link-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 22px 46px -24px rgba(0,0,0,0.7); background: var(--surface-2); }
.link-card .lic {
  flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent-2); background: radial-gradient(120% 120% at 30% 20%, rgba(56,189,248,0.22), rgba(56,189,248,0.04));
  border: 1px solid var(--border-2);
}
.link-card .lic svg { width: 28px; height: 28px; }
.link-card .lbody { flex: 1; min-width: 0; }
.link-card .lbody h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.link-card .lbody p { color: var(--muted); font-size: .95rem; }
.link-card .lbody .lhost {
  display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.link-card .go { flex: none; color: var(--muted-2); transition: color .25s, transform .25s; }
.link-card .go svg { width: 22px; height: 22px; }
.link-card:hover .go { color: var(--accent); transform: translate(3px,-3px); }

/* vote index number */
.link-card .vnum {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: var(--accent-2);
  background: var(--surface-2); border: 1px solid var(--border-2);
}

/* placeholder ribbon on link cards */
.placeholder-note {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 11.5px; font-weight: 600; color: var(--warn);
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.28);
  padding: 4px 10px; border-radius: 999px;
}
.placeholder-note svg { width: 12px; height: 12px; }

/* ---------- Callout / info banner ---------- */
.callout {
  display: flex; align-items: flex-start; gap: 16px; margin-top: 30px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: rgba(56,189,248,0.05); padding: 20px 22px;
}
.callout .cic {
  flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  color: #04121f; background: var(--accent); box-shadow: 0 0 20px -4px var(--glow);
}
.callout .cic svg { width: 24px; height: 24px; }
.callout .ctext h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.callout .ctext p { color: var(--muted); font-size: .95rem; }
.callout .ctext p b { color: var(--accent-2); }

/* warning-toned callout variant */
.callout.warn { border-color: rgba(251,191,36,0.32); background: rgba(251,191,36,0.05); }
.callout.warn .cic { background: var(--warn); color: #2a1c00; box-shadow: 0 0 20px -4px rgba(251,191,36,0.5); }
.callout.warn .ctext p b { color: var(--warn); }

/* ---------- Rules ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .rules-grid { grid-template-columns: 1fr; } }
.rule-group {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.rule-group:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7); }
.rule-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.rg-ic {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent-2); background: radial-gradient(120% 120% at 30% 20%, rgba(56,189,248,0.22), rgba(56,189,248,0.04));
  border: 1px solid var(--border-2);
}
.rg-ic svg { width: 24px; height: 24px; }
.rule-group-head h2 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; }
.rule-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.rule-list li { display: flex; gap: 14px; align-items: flex-start; }
.rule-list .rn {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--accent-2); background: var(--surface-2); border: 1px solid var(--border-2);
}
.rule-list .rt { font-size: .96rem; color: var(--muted); padding-top: 3px; }
.rule-list .rt b { color: var(--text); font-weight: 600; }

/* Blocked / allowed mods */
.mods-intro { color: var(--muted); font-size: 1.04rem; max-width: 72ch; margin-bottom: 26px; }
.mods-intro b { color: var(--text); font-weight: 600; }
.mods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .mods-grid { grid-template-columns: 1fr; } }
.mod-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 26px; }
.mod-card.blocked { border-color: rgba(248,113,113,0.28); background: linear-gradient(180deg, rgba(248,113,113,0.055), var(--surface) 55%); }
.mod-card.allowed { border-color: rgba(52,211,153,0.28); background: linear-gradient(180deg, rgba(52,211,153,0.055), var(--surface) 55%); }
.mod-head { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.01em; }
.mod-head svg { width: 20px; height: 20px; }
.mod-card.blocked .mod-head { color: #fca5a5; }
.mod-card.allowed .mod-head { color: #6ee7b7; }
.mod-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.mod-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.mod-list li svg { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.mod-card.blocked .mod-list li svg { color: var(--bad); }
.mod-card.allowed .mod-list li svg { color: var(--good); }
.mod-list li b { color: var(--text); font-weight: 600; }

/* ---------- Form (appeals) ---------- */
.form-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-shell {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: 30px; position: relative; overflow: hidden;
}
.form-shell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6;
}
@media (min-width: 640px) { .form-shell { padding: 38px; } }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: .01em; }
.field label .req { color: var(--accent); }
.field .hint { font-weight: 400; color: var(--muted-2); font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); padding: 14px 16px; border-radius: 12px; font-size: 1rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.field.select-wrap { position: relative; }
.field.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 46px; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
.field select { cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--text); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--bad); }
.field .msg { font-size: 12px; color: var(--bad); margin-top: 6px; display: none; }
.field.err .msg { display: block; }
.field .char-count { font-size: 11.5px; color: var(--muted-2); text-align: right; margin-top: 6px; }

.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 18px; display: flex; align-items: flex-start; gap: 8px; }
.form-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--muted); }

.form-success { display: none; text-align: center; padding: 26px 10px; }
.form-success.show { display: block; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.form-success .check {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 34px;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4); color: var(--good);
}
.form-success .check svg { width: 38px; height: 38px; }
.form-success h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.form-success p { color: var(--muted); max-width: 42ch; margin: 0 auto 22px; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(4,18,31,0.35); border-top-color: #04121f; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Aside info panel ---------- */
.info-panel {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  padding: 28px; position: sticky; top: 88px;
}
.info-panel h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.info-panel h3 svg { width: 20px; height: 20px; color: var(--accent); }
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-list li { list-style: none; display: flex; gap: 12px; }
.info-list li .n {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--accent-2); background: var(--surface-2); border: 1px solid var(--border-2);
}
.info-list li .t { font-size: .92rem; color: var(--muted); }
.info-list li .t b { color: var(--text); font-weight: 600; display: block; margin-bottom: 1px; }
.info-panel .divider { height: 1px; background: var(--border); margin: 22px 0; }
.info-panel .discord-line { font-size: .9rem; color: var(--muted); }
.info-panel .discord-line a { color: var(--accent-2); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding: 20px 0 88px; }
.cta-inner {
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 160% at 50% 0%, rgba(56,189,248,0.14), transparent 60%), var(--surface);
  padding: 54px 40px; text-align: center; position: relative;
}
.cta-inner h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-inner h2 .grad { background: linear-gradient(115deg, var(--accent-2), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-inner p { color: var(--muted); max-width: 50ch; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

/* ---------- Footer ---------- */
footer.foot { border-top: 1px solid var(--border); padding: 52px 0 40px; margin-top: auto; flex-shrink: 0; background: rgba(8,12,22,0.4); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; gap: 30px; } }
.foot-brand .logo { font-size: 22px; margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 36ch; margin-bottom: 18px; }
.foot-ip {
  display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--border-2);
  border-radius: 11px; background: var(--bg-2); padding: 8px 8px 8px 15px;
}
.foot-ip .fi-text { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .92rem; font-weight: 600; color: var(--text); }
.foot-ip .copy-mini {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 700; color: var(--accent-2); background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 11px; transition: all .2s;
}
.foot-ip .copy-mini:hover { border-color: var(--accent); color: var(--accent); }
.foot-ip .copy-mini svg { width: 13px; height: 13px; }
.foot-ip .copy-mini.copied { color: var(--good); border-color: var(--good); }

.foot-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--accent-2); }
.foot-col a .ext-ic { width: 13px; height: 13px; opacity: .6; }

.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px;
}
.foot-bottom .made b { color: var(--accent-2); }
.foot-bottom .fdisclaim { color: var(--muted-2); }

/* ---------- Honeypot (spam trap, hidden from people) ---------- */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Conditional field (appeals) ---------- */
.field.is-hidden { display: none; }
.field.reveal-field { animation: stepIn .4s var(--ease); }

/* ---------- Form-level error (webhook failure) ---------- */
.form-error {
  display: none; align-items: flex-start; gap: 10px; margin-top: 18px;
  border: 1px solid rgba(248,113,113,0.3); background: rgba(248,113,113,0.06);
  border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: #fca5a5;
}
.form-error.show { display: flex; }
.form-error svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.form-error a { color: var(--accent-2); font-weight: 600; }

/* ---------- Utilities ---------- */
.text-accent { color: var(--accent-2); }
.mt-sm { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
