:root {
  --bg: #070912;
  --surface: #0e1222;
  --surface-2: #151a2f;
  --line: rgba(255, 255, 255, .09);
  --text: #f4f5ff;
  --muted: #9ca6c6;
  --purple: #8b5cf6;
  --violet: #6d3fec;
  --cyan: #56d6ff;
  --green: #43e6a0;
  --danger: #ff6f91;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(620px, calc(100% - 40px)); margin-inline: auto; }
.stars { position: fixed; inset: 0; pointer-events: none; z-index: -2; opacity: .42; background-image: radial-gradient(circle at 15% 20%, rgba(139, 92, 246, .18), transparent 24%), radial-gradient(circle at 85% 35%, rgba(86, 214, 255, .1), transparent 22%), radial-gradient(circle, rgba(255,255,255,.65) 1px, transparent 1.5px); background-size: auto, auto, 72px 72px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(7, 9, 18, .82); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 38px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.brand b { color: var(--cyan); }
.brand-mark { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-size: 21px; background: linear-gradient(145deg, var(--purple), #4a2aa9); box-shadow: 0 0 28px rgba(139,92,246,.35); }
nav { display: flex; align-items: center; gap: 26px; margin-right: auto; }
nav a, .account-links > a:not(.button) { color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s; }
nav a:hover, .account-links > a:hover { color: var(--text); }
.account-links { display: flex; align-items: center; gap: 16px; }
.button, .ghost-button { border: 0; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 13px; font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s; }
.button { background: linear-gradient(135deg, var(--purple), var(--violet)); box-shadow: 0 12px 28px rgba(109, 63, 236, .28); }
.button:hover, .ghost-button:hover { transform: translateY(-2px); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.button.disabled { opacity: .45; cursor: default; box-shadow: none; }
.button.disabled:hover { transform: none; }
.ghost-button { border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.hero { position: relative; overflow: hidden; padding: 92px 0 82px; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -120px; top: -240px; border-radius: 50%; background: rgba(139, 92, 246, .08); filter: blur(30px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 55px; min-height: 520px; }
.eyebrow { color: var(--cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 12px; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px var(--green); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 24px; font-size: clamp(58px, 8vw, 104px); line-height: .92; letter-spacing: -.065em; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.62); }
.hero-copy > p { max-width: 630px; margin-bottom: 32px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 30px; margin-top: 50px; color: var(--muted); font-size: 13px; }
.hero-meta span { display: flex; flex-direction: column; }
.hero-meta b { color: var(--text); font-size: 22px; }
.planet-wrap { position: relative; min-height: 460px; display: grid; place-items: center; }
.planet { position: relative; width: min(290px, 65vw); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 33% 30%, #c4b5fd 0 4%, #8b5cf6 16%, #402177 53%, #100d24 78%); box-shadow: inset -38px -35px 75px rgba(0,0,0,.62), 0 0 60px rgba(139,92,246,.48), 0 0 140px rgba(139,92,246,.18); }
.planet::after { content: ""; position: absolute; width: 142%; height: 25%; border: 13px solid rgba(111, 211, 255, .32); border-left-color: rgba(111, 211, 255, .75); border-radius: 50%; transform: rotate(-14deg); }
.planet span { position: relative; z-index: 2; font-size: 92px; font-weight: 900; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; transform: rotate(-14deg); }
.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 510px; height: 320px; }
.moon { position: absolute; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px rgba(86,214,255,.7); }
.moon-one { width: 15px; height: 15px; right: 12%; top: 20%; }
.moon-two { width: 9px; height: 9px; left: 8%; bottom: 24%; background: var(--purple); }
.announcement { border-block: 1px solid var(--line); background: rgba(139, 92, 246, .065); }
.announcement .container { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.announcement span { color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .15em; white-space: nowrap; }
.announcement p { margin: 0; color: #d3d8ed; }
.section { padding: 90px 0; }
.section.soft { background: rgba(255,255,255,.018); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.045em; margin-bottom: 0; }
.section-heading > a, .back-link { color: var(--cyan); font-size: 14px; font-weight: 700; }
.server-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(139,92,246,.13), rgba(15,19,36,.96) 48%, rgba(86,214,255,.06)); box-shadow: var(--shadow); }
.server-card.featured { padding: 40px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.server-card h3 { margin: 16px 0 8px; font-size: 32px; }
.server-card p { max-width: 690px; color: var(--muted); }
.status-pill { display: inline-flex; padding: 5px 10px; border-radius: 99px; color: var(--green); border: 1px solid rgba(67,230,160,.24); background: rgba(67,230,160,.08); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span, .version { border: 1px solid var(--line); background: rgba(255,255,255,.035); padding: 6px 10px; border-radius: 8px; color: #c7cee7; font-size: 12px; }
.server-online { min-width: 190px; }
.server-online strong { display: block; font-size: 36px; }
.server-online small { color: var(--muted); font-size: 18px; }
.server-online > span { color: var(--muted); font-size: 12px; }
.meter { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.meter i { display: block; height: 100%; min-width: 2%; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.topic-list { display: grid; gap: 10px; }
.topic-row { display: flex; align-items: center; gap: 17px; min-height: 78px; padding: 15px 19px; border: 1px solid var(--line); border-radius: 15px; background: rgba(14,18,34,.82); transition: transform .2s, border-color .2s; }
.topic-row:hover { transform: translateX(4px); border-color: rgba(139,92,246,.42); }
.topic-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: var(--cyan); border-radius: 12px; background: rgba(86,214,255,.08); }
.topic-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.topic-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-main small, .reply-count small { color: var(--muted); font-size: 12px; }
.reply-count { display: flex; flex-direction: column; align-items: flex-end; }
.page { min-height: 68vh; padding: 78px 0 100px; }
.page-head { margin-bottom: 45px; }
.page-head.horizontal { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.page-head h1, .topic-title h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.055em; margin-bottom: 18px; }
.page-head p { max-width: 660px; color: var(--muted); font-size: 18px; }
.server-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.server-tile { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.tile-top, .tile-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.server-tile h2 { margin: 40px 0 0; font-size: 35px; }
.server-tile h3 { color: var(--cyan); font-size: 14px; }
.server-tile p { color: var(--muted); min-height: 75px; }
.tile-bottom { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.tile-bottom > div { display: flex; flex-direction: column; }
.tile-bottom strong { font-size: 28px; }
.tile-bottom span { color: var(--muted); font-size: 12px; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.download-card { text-align: center; padding: 38px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.download-card h2 { margin: 20px 0 7px; }
.download-card p { color: var(--muted); min-height: 78px; font-size: 14px; }
.platform-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: auto; border-radius: 20px; font-size: 32px; color: var(--cyan); background: linear-gradient(145deg, rgba(86,214,255,.15), rgba(139,92,246,.16)); border: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps > div { padding: 28px; background: rgba(14,18,34,.72); }
.steps > div + div { border-left: 1px solid var(--line); }
.steps b { color: var(--purple); font-size: 13px; }
.steps h3 { margin: 8px 0 5px; }
.steps p { color: var(--muted); margin: 0; font-size: 13px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14,18,34,.92); box-shadow: var(--shadow); }
.auth-panel { padding: 40px; }
.auth-panel h1 { margin-bottom: 8px; font-size: 38px; letter-spacing: -.04em; }
.auth-panel > p { color: var(--muted); }
.stack-form { display: grid; gap: 17px; margin-top: 26px; }
.stack-form label { display: grid; gap: 7px; color: #cdd3e7; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 13px 14px; color: var(--text); border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #090c18; transition: border-color .2s, box-shadow .2s; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.form-switch { margin: 22px 0 0; text-align: center; font-size: 14px; }
.form-switch a { color: var(--cyan); }
.code-input { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .35em; }
.resend-form { margin-top: 18px; text-align: center; }
.resend-form button { padding: 5px; border: 0; color: var(--cyan); background: transparent; cursor: pointer; font: inherit; }
.resend-form button:hover { text-decoration: underline; }
.notice { padding: 14px 16px; margin: 18px 0; border: 1px solid rgba(86,214,255,.2); border-radius: 12px; color: #cdeefe; background: rgba(86,214,255,.07); }
.notice.error { border-color: rgba(255,111,145,.25); color: #ffc6d3; background: rgba(255,111,145,.08); }
.notice.success { border-color: rgba(67,230,160,.25); color: #bff8dc; background: rgba(67,230,160,.08); }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.panel-list { padding: 12px; }
.form-panel { padding: 28px; margin-top: 22px; }
.form-panel h2 { margin-bottom: 0; }
.forum-categories { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.forum-categories > div { display: grid; gap: 3px; padding: 15px 0; border-top: 1px solid var(--line); }
.forum-categories strong { font-size: 14px; }
.forum-categories span { color: var(--muted); font-size: 12px; }
.empty { padding: 35px; text-align: center; color: var(--muted); }
.topic-title { margin: 30px 0; }
.topic-title span { color: var(--cyan); font-size: 13px; }
.topic-title h1 { margin-top: 8px; }
.forum-post { display: grid; grid-template-columns: 180px 1fr; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.forum-post aside { padding: 24px; border-right: 1px solid var(--line); background: rgba(255,255,255,.02); }
.forum-post aside strong, .forum-post aside span { display: block; margin-top: 8px; }
.forum-post aside span { color: var(--purple); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.forum-post > div { padding: 24px; }
.forum-post time { display: block; margin-bottom: 19px; color: var(--muted); font-size: 11px; }
.forum-post p { margin: 0; word-break: break-word; }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; font-weight: 900; background: linear-gradient(145deg, var(--purple), #3b216f); }
.avatar.large { width: 82px; height: 82px; border-radius: 23px; font-size: 31px; }
.account-panel { padding: 36px; }
.profile-top { display: flex; align-items: center; gap: 20px; }
.profile-top h1 { margin: 0; font-size: 40px; }
.profile-top p { color: var(--muted); margin: 0; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0; border-block: 1px solid var(--line); }
.profile-stats > div { display: flex; flex-direction: column; padding: 22px 12px; }
.profile-stats > div + div { border-left: 1px solid var(--line); }
.profile-stats b { font-size: 21px; }
.profile-stats span { color: var(--muted); font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.admin-grid .form-panel { margin: 0; }
.form-row { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 10px; }
.admin-summary { margin-top: 22px; padding: 28px; }
.admin-summary > div { display: flex; gap: 35px; color: var(--muted); }
.admin-summary span { display: flex; gap: 8px; }
.admin-summary b { color: var(--text); }
.error-code { color: var(--purple); font-size: 70px; line-height: 1; font-weight: 900; }
footer { padding: 48px 0; border-top: 1px solid var(--line); background: #05070d; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 50px; align-items: center; color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--text); font-weight: 900; letter-spacing: .15em; }
.footer-grid p { margin: 5px 0 0; }
.footer-grid > div:nth-child(2), .footer-grid > div:last-child { display: flex; gap: 15px; }
.footer-grid > div:last-child { flex-direction: column; text-align: right; gap: 3px; }

@media (max-width: 900px) {
  nav { display: none; }
  .header-inner { gap: 14px; }
  .account-links { margin-left: auto; }
  .hero { padding-top: 55px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .planet-wrap { min-height: 370px; }
  .server-grid, .admin-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card p { min-height: auto; }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-categories { order: -1; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid > div:nth-child(2), .footer-grid > div:last-child { justify-content: center; text-align: center; }
}

@media (max-width: 620px) {
  .container, .narrow { width: min(100% - 24px, 1180px); }
  .site-header .button.small { display: none; }
  .brand span:last-child { display: none; }
  .hero h1 { font-size: 55px; }
  .hero-meta { gap: 16px; }
  .planet-wrap { min-height: 320px; }
  .orbit-one { width: 290px; height: 290px; }
  .orbit-two { width: 340px; height: 230px; }
  .announcement .container { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 18px; }
  .section, .page { padding-block: 58px; }
  .section-heading, .page-head.horizontal { align-items: flex-start; flex-direction: column; }
  .server-card.featured { grid-template-columns: 1fr; padding: 25px; }
  .steps { grid-template-columns: 1fr; }
  .steps > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .forum-post { grid-template-columns: 1fr; }
  .forum-post aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .auth-panel, .account-panel { padding: 25px; }
  .reply-count { display: none; }
}
