:root {
  color-scheme: dark;
  --bg: #06050d;
  --bg-soft: #0c0918;
  --panel: rgba(15, 10, 30, .78);
  --panel-strong: rgba(18, 12, 38, .94);
  --line: rgba(196, 164, 255, .14);
  --line-strong: rgba(219, 185, 255, .28);
  --text: #f7f3ff;
  --muted: #aaa1bd;
  --pink: #ff2ea6;
  --violet: #a855f7;
  --blue: #3ca6ff;
  --cyan: #4ef1ff;
  --green: #42e59e;
  --yellow: #ffd166;
  --red: #ff647c;
  --shadow: 0 30px 100px rgba(0, 0, 0, .48);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1240px;
  --header: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
::selection { background: rgba(255, 46, 166, .36); color: white; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; border-radius: 10px; background: #fff; color: #111; transform: translateY(-140%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }
.ambient { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .15; pointer-events: none; z-index: 0; }
.ambient--one { left: -220px; top: 80px; background: var(--blue); }
.ambient--two { right: -240px; top: 260px; background: var(--pink); }
#app { position: relative; z-index: 1; min-height: 100vh; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.page { min-height: 100vh; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--surface { background: linear-gradient(180deg, transparent, rgba(29, 13, 53, .22), transparent); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: #d6c4ed; font-weight: 800; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.kicker::before { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--pink)); box-shadow: 0 0 12px var(--pink); }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 38px; }
.section-heading h2 { max-width: 760px; margin: 10px 0 0; font-size: clamp(2rem, 4vw, 4rem); line-height: .98; letter-spacing: -.05em; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); line-height: 1.75; }
.gradient-text { background: linear-gradient(110deg, #fff 5%, #dba6ff 35%, #ff45b3 70%, #5ab7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.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; }

.site-header { position: sticky; top: 0; z-index: 500; height: var(--header); background: rgba(6, 5, 13, .72); border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(20px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: fit-content; }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 13px; box-shadow: 0 0 22px rgba(255, 46, 166, .34); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1.12rem; letter-spacing: -.03em; }
.brand-copy small { color: var(--muted); margin-top: 5px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin-left: auto; }
.primary-nav a { padding: 10px 13px; border-radius: 10px; color: #b8afc8; font-weight: 650; font-size: .9rem; transition: .2s; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav-actions { display: flex; gap: 9px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: white; }

.button { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 13px; font-weight: 800; font-size: .9rem; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s, opacity .2s; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button--primary { color: white; background: linear-gradient(120deg, #5d5bff, #a83aff 42%, #ff2f9f); box-shadow: 0 12px 32px rgba(181, 49, 255, .28), inset 0 1px rgba(255,255,255,.28); }
.button--primary:hover { box-shadow: 0 18px 44px rgba(205, 44, 255, .38); }
.button--secondary { color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); }
.button--ghost { color: #d5ccdf; background: transparent; border: 1px solid var(--line); }
.button--danger { color: #fff; background: rgba(255, 70, 104, .15); border: 1px solid rgba(255, 100, 124, .35); }
.button--success { background: rgba(66, 229, 158, .14); color: #8bffc9; border: 1px solid rgba(66, 229, 158, .25); }
.button--compact { min-height: 38px; padding: 0 13px; font-size: .82rem; border-radius: 10px; }
.button--wide { width: 100%; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.status-strip { border-bottom: 1px solid rgba(255,255,255,.055); background: rgba(14, 8, 27, .9); }
.status-strip__inner { min-height: 38px; display: flex; align-items: center; gap: 13px; color: #beb4cc; font-size: .78rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); animation: pulse 2s infinite; }
.status-dot--offline { background: var(--red); box-shadow: 0 0 14px var(--red); }
.status-dot--planned { background: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.status-spacer { flex: 1; }
@keyframes pulse { 50% { opacity: .42; transform: scale(.84); } }

.hero { min-height: calc(100vh - var(--header) - 38px); display: grid; align-items: center; padding: 70px 0 90px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); gap: 70px; align-items: center; }
.hero-copy { position: relative; z-index: 3; }
.hero-eyebrow { width: fit-content; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid rgba(214, 188, 255, .16); background: rgba(255,255,255,.035); border-radius: 999px; color: #cbbfda; font-weight: 750; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(var(--pink), var(--violet)); box-shadow: 0 0 14px var(--pink); }
.hero h1 { margin: 24px 0 20px; max-width: 760px; font-size: clamp(3.6rem, 7.2vw, 7.5rem); line-height: .84; letter-spacing: -.075em; }
.hero-lead { max-width: 650px; color: #b9afc8; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-trust div { display: grid; gap: 4px; }
.hero-trust strong { font-size: 1.25rem; }
.hero-trust span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; }
.hero-visual { position: relative; min-height: 610px; display: grid; place-items: center; }
.logo-stage { width: min(100%, 570px); aspect-ratio: 1; position: relative; display: grid; place-items: center; border-radius: 34px; isolation: isolate; }
.logo-stage::before { content: ""; position: absolute; inset: 2%; background: radial-gradient(circle at 45% 42%, rgba(255,45,174,.32), transparent 42%), radial-gradient(circle at 25% 72%, rgba(50,137,255,.24), transparent 40%); filter: blur(35px); z-index: -2; }
.logo-stage::after { content: ""; position: absolute; inset: 0; border-radius: 40px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.01)); backdrop-filter: blur(10px); transform: rotate(-3deg); z-index: -1; }
.logo-stage img { width: 88%; border-radius: 28px; box-shadow: 0 50px 120px rgba(0,0,0,.56), 0 0 55px rgba(255, 45, 174, .2); }
.orbit { position: absolute; inset: -3%; border: 1px solid rgba(176, 109, 255, .14); border-radius: 50%; animation: rotate 22s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px var(--cyan); }
.orbit::before { top: 14%; left: 15%; }
.orbit::after { bottom: 12%; right: 18%; background: var(--pink); box-shadow: 0 0 22px var(--pink); }
@keyframes rotate { to { transform: rotate(360deg); } }
.floating-card { position: absolute; z-index: 5; padding: 14px 16px; min-width: 190px; border-radius: 16px; border: 1px solid var(--line); background: rgba(11, 8, 23, .84); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.floating-card small { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.floating-card strong { display: block; margin-top: 4px; font-size: .94rem; }
.floating-card--top { top: 8%; right: -2%; }
.floating-card--bottom { left: -3%; bottom: 8%; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { position: relative; padding: 25px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); border-radius: var(--radius); box-shadow: 0 22px 70px rgba(0,0,0,.18); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(87, 174, 255, .06), transparent 35%, rgba(255, 49, 171, .05)); opacity: 0; transition: opacity .3s; }
.card:hover::before { opacity: 1; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, rgba(61,166,255,.16), rgba(255,46,166,.15)); border: 1px solid var(--line); color: #e8d9ff; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 20px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.68; font-size: .92rem; }
.card-badge { display: inline-flex; margin-top: 18px; padding: 7px 10px; border-radius: 999px; color: #d8cced; background: rgba(255,255,255,.05); font-size: .75rem; }

.status-board { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.server-card { min-height: 390px; padding: 34px; border-radius: 30px; position: relative; overflow: hidden; border: 1px solid rgba(202, 168, 255, .18); background: radial-gradient(circle at 75% 20%, rgba(255,46,166,.19), transparent 36%), radial-gradient(circle at 15% 80%, rgba(51,153,255,.17), transparent 42%), #0c0819; box-shadow: var(--shadow); }
.server-card::after { content: "NRP"; position: absolute; right: -20px; bottom: -56px; font-size: 15rem; line-height: 1; font-weight: 950; color: rgba(255,255,255,.025); letter-spacing: -.1em; }
.server-card__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(66,229,158,.2); background: rgba(66,229,158,.08); color: #8bffc9; border-radius: 999px; font-weight: 800; font-size: .78rem; }
.server-card h3 { margin: 80px 0 10px; font-size: clamp(2.2rem,4vw,4.6rem); letter-spacing: -.06em; }
.server-card p { max-width: 600px; color: #b9afc9; line-height: 1.7; }
.server-metrics { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.metric { min-width: 150px; padding: 15px; border-radius: 15px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); }
.metric small { color: var(--muted); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { margin-top: 5px; display: block; font-size: 1.2rem; }
.session-stack { display: grid; gap: 14px; }
.session-card { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.session-card__head { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.session-card h3 { margin: 6px 0 5px; }
.session-card p { color: var(--muted); margin: 0; line-height: 1.55; font-size: .88rem; }
.countdown { padding: 8px 10px; border-radius: 10px; background: rgba(168,85,247,.12); color: #e2c6ff; font-size: .74rem; font-weight: 800; white-space: nowrap; }

.faction-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.faction-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); display: flex; gap: 16px; align-items: center; }
.faction-symbol { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; font-size: 1.35rem; background: rgba(255,255,255,.06); }
.faction-card h3 { margin: 0 0 5px; font-size: 1rem; }
.faction-card p { margin: 0; color: var(--muted); font-size: .82rem; }

.news-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; }
.news-card { min-height: 280px; display: flex; flex-direction: column; justify-content: end; position: relative; padding: 25px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(17,10,34,.95)); }
.news-card:first-child { background: linear-gradient(180deg, rgba(255,46,166,.05), rgba(17,10,34,.96)), radial-gradient(circle at 80% 10%, rgba(255,46,166,.25), transparent 42%); }
.news-card .tag { width: fit-content; margin-bottom: auto; }
.news-card h3 { margin: 18px 0 8px; font-size: 1.4rem; }
.news-card p { color: var(--muted); line-height: 1.6; font-size: .88rem; margin: 0; }
.tag { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: .69rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; background: rgba(168,85,247,.12); color: #debaff; border: 1px solid rgba(168,85,247,.18); }

.team-preview { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.owner-card { min-height: 430px; padding: 30px; display: flex; flex-direction: column; justify-content: end; border-radius: 28px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: radial-gradient(circle at 50% 10%, rgba(255,46,166,.23), transparent 43%), linear-gradient(145deg, #130b25, #090611); }
.owner-card::before { content: "OWNER"; position: absolute; top: 25px; right: -20px; font-size: 5rem; font-weight: 950; color: rgba(255,255,255,.035); transform: rotate(90deg); }
.owner-avatar { width: 82px; height: 82px; margin-bottom: auto; display: grid; place-items: center; border-radius: 23px; background: linear-gradient(135deg, var(--blue), var(--violet), var(--pink)); font-size: 1.6rem; font-weight: 950; box-shadow: 0 0 50px rgba(255,46,166,.22); }
.owner-card h3 { margin: 15px 0 4px; font-size: 1.6rem; }
.owner-card p { margin: 0; color: var(--muted); }
.role-list { display: grid; gap: 10px; }
.role-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 15px 17px; border-radius: 15px; background: rgba(255,255,255,.026); border: 1px solid var(--line); }
.role-row strong { display: block; font-size: .9rem; }
.role-row small { color: var(--muted); font-size: .75rem; }
.role-status { padding: 7px 10px; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.role-status--open { color: #ffd1eb; background: rgba(255,46,166,.11); }
.role-status--filled { color: #96ffd1; background: rgba(66,229,158,.1); }
.role-status--away { color: #ffe6a5; background: rgba(255,209,102,.1); }

.faq-list { display: grid; gap: 10px; max-width: 950px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 16px; overflow: hidden; }
.faq-item button { width: 100%; min-height: 64px; padding: 0 20px; border: 0; background: transparent; display: flex; justify-content: space-between; align-items: center; text-align: left; font-weight: 800; cursor: pointer; }
.faq-item button span:last-child { font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq-item[open] button span:last-child { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 20px; color: var(--muted); line-height: 1.7; }

.cta-panel { min-height: 400px; padding: 60px; display: grid; place-items: center; text-align: center; border-radius: 34px; border: 1px solid rgba(255,255,255,.12); overflow: hidden; position: relative; background: radial-gradient(circle at 50% 0%, rgba(255,46,166,.24), transparent 42%), radial-gradient(circle at 10% 90%, rgba(60,166,255,.18), transparent 38%), #0b0716; box-shadow: var(--shadow); }
.cta-panel::after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.cta-panel > div { position: relative; z-index: 2; }
.cta-panel h2 { max-width: 850px; margin: 12px auto; font-size: clamp(2.4rem, 5vw, 5.2rem); line-height: .95; letter-spacing: -.06em; }
.cta-panel p { max-width: 650px; margin: 0 auto 26px; color: var(--muted); line-height: 1.7; }

.site-footer { padding: 55px 0 28px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(3,3,8,.6); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, .75fr); gap: 35px; }
.footer-grid h4 { margin: 0 0 15px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #ded3eb; }
.footer-grid a, .footer-grid button { display: block; border: 0; padding: 6px 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: #fff; }
.footer-brand p { max-width: 360px; color: var(--muted); line-height: 1.65; font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); color: #777083; font-size: .75rem; }

.page-hero { padding: 90px 0 55px; text-align: center; }
.page-hero h1 { margin: 13px auto 18px; max-width: 950px; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .9; letter-spacing: -.07em; }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.breadcrumbs { display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.breadcrumbs a:hover { color: white; }

.rules-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 28px; align-items: start; }
.rules-nav { position: sticky; top: calc(var(--header) + 20px); padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(10,7,20,.78); backdrop-filter: blur(18px); max-height: calc(100vh - 120px); overflow: auto; }
.rules-nav a { display: block; padding: 10px 11px; border-radius: 10px; color: var(--muted); font-size: .83rem; }
.rules-nav a:hover { color: white; background: rgba(255,255,255,.05); }
.rules-content { display: grid; gap: 18px; }
.rule-section { padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.024); scroll-margin-top: calc(var(--header) + 20px); }
.rule-section h2 { margin: 0 0 10px; font-size: 1.65rem; }
.rule-section > p { color: var(--muted); line-height: 1.7; }
.rule-list { display: grid; gap: 10px; margin-top: 18px; }
.rule { padding: 15px 17px; border-radius: 14px; background: rgba(255,255,255,.027); border: 1px solid rgba(255,255,255,.05); }
.rule strong { display: block; margin-bottom: 5px; }
.rule p { margin: 0; color: var(--muted); line-height: 1.58; font-size: .88rem; }
.rule-note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--pink); background: rgba(255,46,166,.06); color: #d5c7df; border-radius: 0 12px 12px 0; font-size: .86rem; line-height: 1.6; }

.form-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; align-items: start; }
.form-aside { position: sticky; top: calc(var(--header) + 25px); padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 90% 10%, rgba(255,46,166,.13), transparent 40%), var(--panel); }
.form-aside h2 { margin: 12px 0; font-size: 2rem; letter-spacing: -.04em; }
.form-aside p { color: var(--muted); line-height: 1.7; }
.step-list { display: grid; gap: 12px; margin-top: 25px; }
.step { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .85rem; }
.step i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-style: normal; background: rgba(255,255,255,.06); color: white; font-size: .72rem; }
.form-card { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.form-section + .form-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h3 { margin: 0 0 6px; font-size: 1.2rem; }
.form-section > p { margin: 0 0 18px; color: var(--muted); font-size: .85rem; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field span { color: #c9bfd7; font-size: .78rem; font-weight: 700; }
.field small { color: #81798c; line-height: 1.5; }
.input, .select, .textarea { width: 100%; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; outline: none; color: white; background: rgba(4,3,10,.46); transition: border .2s, box-shadow .2s; }
.input, .select { height: 48px; padding: 0 14px; }
.textarea { min-height: 120px; padding: 13px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(168,85,247,.62); box-shadow: 0 0 0 4px rgba(168,85,247,.1); }
.input::placeholder, .textarea::placeholder { color: #625c6c; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.checkbox input { margin-top: 3px; accent-color: var(--pink); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.form-result { margin-top: 20px; padding: 18px; border-radius: 15px; border: 1px solid rgba(66,229,158,.25); background: rgba(66,229,158,.07); color: #baffdd; }
.test-question { padding: 18px; border-radius: 15px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.test-question + .test-question { margin-top: 12px; }
.test-question h4 { margin: 0 0 12px; }
.answer-list { display: grid; gap: 8px; }
.answer { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); cursor: pointer; }
.answer input { accent-color: var(--violet); margin-right: 8px; }

.empty-state { padding: 55px 25px; text-align: center; border-radius: 24px; border: 1px dashed rgba(255,255,255,.17); background: rgba(255,255,255,.018); }
.empty-state .empty-icon { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, rgba(60,166,255,.13), rgba(255,46,166,.13)); font-size: 2rem; }
.empty-state h2, .empty-state h3 { margin: 0 0 9px; }
.empty-state p { max-width: 580px; margin: 0 auto 20px; color: var(--muted); line-height: 1.65; }

.auth-shell { min-height: calc(100vh - var(--header)); display: grid; place-items: center; padding: 70px 20px; }
.auth-card { width: min(100%, 480px); padding: 34px; border-radius: 26px; border: 1px solid var(--line); background: rgba(12,8,25,.9); box-shadow: var(--shadow); backdrop-filter: blur(25px); }
.auth-card__logo { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 24px; object-fit: cover; box-shadow: 0 0 35px rgba(255,46,166,.23); }
.auth-card h1 { margin: 0; text-align: center; font-size: 2.1rem; letter-spacing: -.05em; }
.auth-card > p { text-align: center; color: var(--muted); line-height: 1.6; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 22px 0; padding: 5px; border-radius: 13px; background: rgba(255,255,255,.04); }
.auth-tabs button { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: rgba(255,255,255,.08); color: white; }
.auth-divider { display: flex; gap: 12px; align-items: center; margin: 20px 0; color: #71697d; font-size: .75rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { padding: 12px; border-radius: 11px; background: rgba(255,209,102,.06); border: 1px solid rgba(255,209,102,.13); color: #d5caa8; font-size: .78rem; line-height: 1.55; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0,1fr); background: #080610; }
.portal-sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); background: rgba(8,5,18,.94); overflow: auto; }
.portal-sidebar .brand { padding: 7px 10px 18px; }
.portal-profile { margin: 8px 7px 18px; padding: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 14px; }
.portal-profile strong { display: block; }
.portal-profile span { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.portal-nav-label { padding: 10px 12px 6px; color: #625b6e; font-size: .65rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.portal-nav { display: grid; gap: 3px; }
.portal-nav button { width: 100%; min-height: 43px; padding: 0 12px; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 10px; background: transparent; color: #aaa1b8; cursor: pointer; text-align: left; font-weight: 680; font-size: .83rem; }
.portal-nav button:hover { color: white; background: rgba(255,255,255,.04); }
.portal-nav button.active { color: white; background: linear-gradient(90deg, rgba(91,91,255,.15), rgba(255,46,166,.1)); box-shadow: inset 2px 0 var(--pink); }
.portal-nav button span:first-child { width: 24px; color: #ccb9df; }
.portal-main { min-width: 0; }
.portal-topbar { position: sticky; top: 0; z-index: 50; min-height: 72px; padding: 0 28px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: rgba(8,6,16,.8); backdrop-filter: blur(20px); }
.portal-topbar h1 { margin: 0; font-size: 1.25rem; }
.portal-topbar .spacer { flex: 1; }
.portal-content { padding: 28px; }
.portal-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.stat-card { padding: 20px; border-radius: 17px; border: 1px solid var(--line); background: var(--panel); }
.stat-card small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; margin-top: 9px; font-size: 2rem; letter-spacing: -.05em; }
.portal-panel { margin-top: 18px; padding: 22px; border-radius: 19px; border: 1px solid var(--line); background: var(--panel); }
.portal-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.portal-panel__head h2 { margin: 0; font-size: 1.1rem; }
.portal-panel__head p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.table-wrap { overflow: auto; border-radius: 13px; border: 1px solid rgba(255,255,255,.06); }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .8rem; }
.data-table th { padding: 11px 13px; text-align: left; color: #81798e; background: rgba(255,255,255,.026); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.data-table td { padding: 13px; border-top: 1px solid rgba(255,255,255,.055); color: #c8bfd4; vertical-align: top; }
.data-table tr:hover td { background: rgba(255,255,255,.017); }
.table-actions { display: flex; gap: 6px; }
.status-chip { display: inline-flex; padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.05); color: #d6cbe2; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.status-chip--new { color: #bee1ff; background: rgba(60,166,255,.1); }
.status-chip--open { color: #ffe6a9; background: rgba(255,209,102,.1); }
.status-chip--done { color: #aaffd4; background: rgba(66,229,158,.1); }
.status-chip--rejected { color: #ffb3c0; background: rgba(255,100,124,.1); }
.portal-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.portal-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.timeline { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 10px 1fr; gap: 12px; }
.timeline-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.timeline-item strong { font-size: .82rem; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.demo-banner { padding: 12px 17px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,209,102,.18); background: rgba(255,209,102,.07); color: #e2d6aa; font-size: .78rem; }
.permission-lock { padding: 40px 25px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); }

.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.7); backdrop-filter: blur(9px); }
.modal { width: min(100%, 720px); max-height: calc(100vh - 40px); overflow: auto; padding: 27px; border-radius: 23px; border: 1px solid var(--line-strong); background: #0d0919; box-shadow: var(--shadow); }
.modal--small { max-width: 500px; }
.modal-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 20px; }
.modal-head h2 { margin: 0; }
.modal-close { width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 11px; cursor: pointer; }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 1500; width: min(calc(100% - 36px), 380px); display: grid; gap: 10px; }
.toast { padding: 14px 15px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(13,9,25,.94); box-shadow: var(--shadow); color: #ded5e8; animation: toastIn .2s ease; }
.toast strong { display: block; margin-bottom: 3px; color: white; }
.toast--success { border-color: rgba(66,229,158,.3); }
.toast--error { border-color: rgba(255,100,124,.35); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }

.loading { min-height: 300px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.08); border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > * { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { min-height: 500px; }
  .card-grid--4 { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:first-child { grid-column: 1 / -1; }
  .status-board, .team-preview, .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .portal { grid-template-columns: 86px minmax(0,1fr); }
  .portal-sidebar .brand-copy, .portal-profile, .portal-nav-label, .portal-nav button span:not(:first-child) { display: none; }
  .portal-sidebar .brand { justify-content: center; padding-inline: 0; }
  .portal-nav button { justify-content: center; padding: 0; }
  .portal-nav button span:first-child { width: auto; }
  .portal-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 800px) {
  :root { --header: 68px; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 70px 0; }
  .primary-nav { position: fixed; left: 14px; right: 14px; top: 76px; display: none; padding: 10px; border: 1px solid var(--line-strong); background: rgba(10,7,20,.96); border-radius: 16px; box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; }
  .primary-nav a { padding: 13px; }
  .nav-actions .button--secondary { display: none; }
  .menu-toggle { display: block; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-visual { min-height: 420px; }
  .floating-card { min-width: 160px; padding: 11px 13px; }
  .card-grid, .faction-grid, .news-grid { grid-template-columns: 1fr; }
  .news-card:first-child { grid-column: auto; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-nav { position: static; display: flex; gap: 5px; overflow-x: auto; max-height: none; }
  .rules-nav a { white-space: nowrap; }
  .field-grid, .portal-form-grid, .portal-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-panel { padding: 45px 20px; }
  .portal { display: block; }
  .portal-sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 67px; z-index: 100; padding: 7px 10px; border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; }
  .portal-sidebar .brand { display: none; }
  .portal-nav-label, .portal-profile { display: none; }
  .portal-nav { display: flex; min-width: max-content; }
  .portal-nav button { min-width: 54px; height: 52px; }
  .portal-topbar { padding: 0 15px; }
  .portal-content { padding: 16px 14px 88px; }
  .portal-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .status-strip__inner span:nth-of-type(n+3) { display: none; }
  .hero h1 { font-size: 3.2rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 350px; }
  .floating-card { display: none; }
  .card-grid--4, .portal-grid { grid-template-columns: 1fr; }
  .form-card, .form-aside, .rule-section, .portal-panel { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: grid; }
  .page-hero { padding-top: 65px; }
  .page-hero h1 { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Community portal */
.community-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 34px 0 24px; }
.shortcut-card { min-height: 92px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg,rgba(21,157,255,.06),rgba(255,45,149,.05)); }
.shortcut-card:hover { transform: translateY(-2px); border-color: rgba(255,45,149,.35); box-shadow: 0 12px 35px rgba(0,0,0,.24); }
.shortcut-card span { font-weight: 850; }
.shortcut-card small { color: var(--muted); }
.community-form-stack { display: grid; gap: 22px; }
.community-form-card { padding: 28px; scroll-margin-top: calc(var(--header) + 30px); border: 1px solid var(--line); border-radius: 23px; background: radial-gradient(circle at 95% 0,rgba(168,85,247,.1),transparent 30%),var(--panel); }
.community-form-card__head { margin-bottom: 20px; }
.community-form-card__head h2 { margin: 14px 0 7px; }
.community-form-card__head p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .community-shortcuts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .community-shortcuts { grid-template-columns: 1fr; } .community-form-card { padding: 20px; } }
