:root {
  --bg: #07100c;
  --bg-deep: #040806;
  --surface: #0d1712;
  --surface-2: #111e17;
  --surface-3: #16251c;
  --line: rgba(220, 255, 233, .10);
  --line-strong: rgba(220, 255, 233, .17);
  --text: #f5fffa;
  --muted: #9daaa1;
  --muted-2: #6f7d74;
  --green: #66d17f;
  --green-strong: #3dbb61;
  --green-dark: #123a21;
  --amber: #d6a84f;
  --discord: #5865f2;
  --danger: #ee7777;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::selection { background: rgba(102, 209, 127, .25); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
code { padding: .16em .42em; color: #ccefd4; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 5px; font-size: .85em; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; background: white; color: #08100b; border-radius: 8px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3 { font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 78px; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; }
.site-header.scrolled { background: rgba(5, 10, 7, .88); border-color: var(--line); backdrop-filter: blur(18px); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; font-size: .98rem; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .59rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a { color: #c0cac3; font-size: .79rem; font-weight: 650; text-decoration: none; transition: color .2s ease; }
.main-nav > a:hover { color: white; }
.main-nav .nav-login { padding: 10px 15px; color: #eaffee; background: rgba(102, 209, 127, .08); border: 1px solid rgba(102, 209, 127, .28); border-radius: 9px; }
.main-nav .nav-login:hover { color: white; background: rgba(102, 209, 127, .14); }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.menu-button span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 5px 0; background: white; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: .79rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #06110a; background: var(--green); box-shadow: 0 14px 35px rgba(61, 187, 97, .16); }
.button-primary:hover { background: #79df90; }
.button-ghost { color: #e2e9e4; background: rgba(255,255,255,.025); border-color: var(--line-strong); }
.button-ghost:hover { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.24); }
.button-discord { color: white; background: var(--discord); }
.button-discord:hover { background: #6874f6; }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: #d9f9e0; font-size: .82rem; font-weight: 750; text-decoration: none; }
.text-link span { color: var(--green); }

.hero { position: relative; min-height: 870px; display: flex; align-items: center; padding: 138px 0 92px; overflow: hidden; background:
  linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
  radial-gradient(circle at 16% 30%, rgba(48, 158, 77, .13), transparent 34%),
  linear-gradient(180deg, #07100c, #08110d 72%, #09120e);
  background-size: 44px 44px, 44px 44px, auto, auto;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-glow { position: absolute; width: 580px; height: 580px; right: -180px; top: 70px; border-radius: 50%; background: rgba(72, 182, 103, .08); filter: blur(60px); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .88fr) minmax(590px, 1.12fr); align-items: center; gap: 65px; }
.hero-copy { max-width: 650px; }
.status-line { width: fit-content; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 32px; padding: 7px 10px; color: #b8c6bc; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 7px; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-line span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(102, 209, 127, .09); }
.hero h1 { max-width: 740px; margin: 0; font-size: clamp(3.5rem, 6.2vw, 6.9rem); line-height: .96; letter-spacing: -.065em; }
.hero h1 em { display: block; color: #aab7ae; font-style: normal; font-weight: 600; }
.hero-text { max-width: 620px; margin: 29px 0 0; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 50px 0 0; padding-top: 23px; border-top: 1px solid var(--line); }
.hero-stats div { padding-right: 20px; }
.hero-stats div + div { padding-left: 25px; border-left: 1px solid var(--line); }
.hero-stats dt { font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; font-size: 1.18rem; font-weight: 800; }
.hero-stats dd { margin: 2px 0 0; color: var(--muted-2); font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }

.dashboard-preview { overflow: hidden; background: #0b130f; border: 1px solid rgba(220,255,233,.13); border-radius: 18px; box-shadow: 0 35px 100px rgba(0,0,0,.48); transform: perspective(1300px) rotateY(-3deg) rotateX(1deg); }
.dashboard-topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; background: #101a14; border-bottom: 1px solid var(--line); }
.dashboard-brand { display: flex; align-items: center; gap: 10px; }
.dashboard-brand > div { display: grid; line-height: 1.2; }
.dashboard-brand strong { font-size: .72rem; }
.dashboard-brand small { color: var(--muted-2); font-size: .56rem; }
.online-badge { display: inline-flex; align-items: center; gap: 7px; color: #a8b4ac; font-size: .57rem; font-weight: 700; }
.online-badge i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.dashboard-body { min-height: 420px; display: grid; grid-template-columns: 125px 1fr; }
.dashboard-side { padding: 20px 12px; background: #09100c; border-right: 1px solid var(--line); }
.dashboard-side span { display: block; margin-bottom: 6px; padding: 9px 10px; color: #647067; border-radius: 6px; font-size: .57rem; font-weight: 700; }
.dashboard-side span.active { color: #d6f5dc; background: rgba(102,209,127,.09); }
.dashboard-content { padding: 24px; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dashboard-heading > div { display: grid; }
.dashboard-heading small { color: var(--muted-2); font-size: .58rem; }
.dashboard-heading strong { margin-top: 2px; font-size: .95rem; }
.dashboard-heading > span { width: 30px; height: 30px; display: grid; place-items: center; color: #09110c; background: var(--green); border-radius: 8px; font-size: .62rem; font-weight: 850; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-row article { padding: 16px; background: #111c16; border: 1px solid var(--line); border-radius: 10px; }
.metric-row small { display: block; color: var(--muted-2); font-size: .54rem; }
.metric-row strong { display: block; margin: 6px 0 3px; font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; font-size: 1.45rem; }
.metric-row span { color: #7a887e; font-size: .52rem; }
.metric-row .positive { color: #68c77d; }
.work-panel { margin-top: 12px; padding: 16px; background: #0f1913; border: 1px solid var(--line); border-radius: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head strong { font-size: .67rem; }
.panel-head small { color: var(--muted-2); font-size: .52rem; }
.work-row { min-height: 58px; display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); }
.work-row .state { width: 6px; height: 6px; border-radius: 50%; }
.state.live { background: var(--green); }
.state.planned { background: var(--amber); }
.state.open { background: #6f7b73; }
.work-row > div { display: grid; }
.work-row strong { font-size: .61rem; }
.work-row small { color: var(--muted-2); font-size: .51rem; }
.work-row b { color: #9ca9a0; font-size: .53rem; font-weight: 700; }

.trust-strip { position: relative; z-index: 4; border-block: 1px solid var(--line); background: #09120e; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid span { padding: 23px 15px; color: #8c9b91; text-align: center; font-size: .66rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.trust-grid span + span { border-left: 1px solid var(--line); }

.section { padding: 125px 0; }
.section-heading { display: grid; grid-template-columns: 1.06fr .94fr; gap: 90px; align-items: end; margin-bottom: 58px; }
.section-heading h2 { max-width: 690px; margin: 0; font-size: clamp(2.3rem, 4.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p { max-width: 560px; margin: 0 0 6px; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 95px; }
.project-story { position: relative; padding-top: 20px; }
.section-number { position: absolute; top: 0; right: 0; color: rgba(255,255,255,.08); font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; font-size: 7rem; font-weight: 800; line-height: 1; }
.project-story h3 { position: relative; max-width: 570px; margin: 0 0 24px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.18; letter-spacing: -.04em; }
.project-story p { max-width: 610px; color: var(--muted); }
.project-story .text-link { margin-top: 20px; }
.principles { border-top: 1px solid var(--line-strong); }
.principles article { display: grid; grid-template-columns: 50px 1fr; gap: 22px; padding: 29px 0; border-bottom: 1px solid var(--line-strong); }
.principles article > span { color: var(--green); font-size: .7rem; font-weight: 800; }
.principles h3 { margin: 0; font-size: 1.05rem; }
.principles p { margin: 8px 0 0; color: var(--muted); font-size: .87rem; }

.section-system { background: #09120e; border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.feature-card { min-height: 350px; padding: 30px; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); }
.feature-card + .feature-card { border-left: 1px solid var(--line-strong); }
.feature-card > span { color: var(--muted-2); font-size: .62rem; font-weight: 800; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 35px 0 27px; color: var(--green); background: rgba(102,209,127,.07); border: 1px solid rgba(102,209,127,.18); border-radius: 11px; font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; font-weight: 800; }
.feature-card h3 { margin: 0; font-size: 1.1rem; }
.feature-card p { min-height: 90px; margin: 13px 0 25px; color: var(--muted); font-size: .84rem; }
.feature-card small { color: #56635a; font-size: .58rem; font-weight: 800; letter-spacing: .1em; }

.news-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.news-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.news-featured { grid-row: span 2; padding: 0; overflow: hidden; }
.news-visual { aspect-ratio: 16 / 8.3; overflow: hidden; background: #101a14; border-bottom: 1px solid var(--line); }
.news-visual img { width: 100%; height: 100%; object-fit: cover; }
.news-copy { padding: 31px; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: .61rem; font-weight: 750; letter-spacing: .08em; }
.news-meta span { color: var(--green); }
.news-card h3 { margin: 22px 0 12px; font-size: 1.25rem; line-height: 1.3; }
.news-featured h3 { max-width: 720px; font-size: clamp(1.65rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.news-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.news-copy a { display: inline-flex; gap: 10px; margin-top: 22px; color: #d9f5df; font-size: .75rem; font-weight: 750; text-decoration: none; }
.news-copy a span { color: var(--green); }

.section-gallery { background: #09120e; border-block: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 310px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #101a14; cursor: pointer; }
.gallery-wide { grid-column: span 2; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(2,6,3,.9)); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.gallery-item:hover img { transform: scale(1.035); filter: brightness(1.05); }
.gallery-item > span { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: grid; text-align: left; }
.gallery-item small { color: var(--green); font-size: .57rem; font-weight: 800; letter-spacing: .11em; color: #f5fffa;}
.gallery-item strong { margin-top: 3px; font-size: .93rem; color: #f5fffa;}

.member-section { background:
  radial-gradient(circle at 18% 30%, rgba(72,182,103,.10), transparent 28%),
  linear-gradient(180deg, #07100c, #0a1510);
}
.member-layout { display: grid; grid-template-columns: 1.05fr .75fr; gap: 110px; align-items: center; }
.member-copy h2 { max-width: 720px; margin: 0; font-size: clamp(2.6rem, 5vw, 5.1rem); line-height: 1.02; letter-spacing: -.06em; }
.member-copy > p:not(.eyebrow) { max-width: 660px; color: var(--muted); }
.check-list { display: grid; gap: 11px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: #c1cbc4; font-size: .84rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.login-card { padding: 32px; background: rgba(13, 23, 18, .94); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.login-kicker { margin: 0 0 7px; color: var(--green); font-size: .61rem; font-weight: 850; letter-spacing: .14em; }
.login-card h3 { margin: 0; font-size: 1.35rem; }
.login-card > p { color: var(--muted); }
.lock-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); background: rgba(102,209,127,.07); border: 1px solid rgba(102,209,127,.18); border-radius: 9px; font-size: .5rem; }
.login-form { display: grid; }
.login-form label { margin: 0 0 7px; color: #aeb9b1; font-size: .69rem; font-weight: 700; }
.login-form input { width: 100%; height: 48px; margin-bottom: 17px; padding: 0 13px; color: white; background: #0a120e; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; transition: border-color .2s, box-shadow .2s; }
.login-form input:focus { border-color: rgba(102,209,127,.55); box-shadow: 0 0 0 3px rgba(102,209,127,.08); }
.password-field { position: relative; }
.password-field input { padding-right: 85px; }
.password-toggle { position: absolute; top: 0; right: 0; height: 48px; padding: 0 13px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: .65rem; font-weight: 750; }
.login-note { display: flex; align-items: center; gap: 8px; margin: 17px 0 0 !important; color: var(--muted-2) !important; font-size: .64rem; }
.login-note span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.login-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; font-weight: 850; }
.success-icon { color: #07100c; background: var(--green); }
.quiet-link { display: block; margin-top: 16px; color: var(--muted); text-align: center; font-size: .72rem; text-decoration: none; }

.discord-section { padding: 35px 0 95px; background: #0a1510; }
.discord-panel { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; padding: 48px; overflow: hidden; background: linear-gradient(115deg, #121c17, #111813 70%, rgba(88,101,242,.12)); border: 1px solid rgba(88,101,242,.28); border-radius: var(--radius); }
.discord-panel::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -170px; border-radius: 50%; background: rgba(88,101,242,.18); filter: blur(25px); }
.discord-copy, .discord-action { position: relative; z-index: 2; }
.discord-copy h2 { max-width: 780px; margin: 0; font-size: clamp(2rem, 3.8vw, 4rem); line-height: 1.04; letter-spacing: -.05em; }
.discord-copy > p:last-child { max-width: 740px; margin-bottom: 0; color: var(--muted); }
.discord-action { min-width: 240px; display: grid; gap: 10px; }
.discord-action > span { color: var(--muted-2); font-size: .6rem; font-weight: 850; letter-spacing: .11em; }
.discord-action small { color: var(--muted-2); font-size: .64rem; }

.site-footer { padding: 65px 0 23px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.9fr repeat(3, .75fr); gap: 50px; }
.footer-main p { max-width: 390px; color: var(--muted-2); font-size: .83rem; }
.footer-grid > div:not(.footer-main) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid h3 { margin: 2px 0 12px; color: #b8c2bb; font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(.footer-main) a { color: var(--muted-2); font-size: .76rem; text-decoration: none; }
.footer-grid > div:not(.footer-main) a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 18px; color: #4f5a52; border-top: 1px solid var(--line); font-size: .66rem; }

.lightbox { width: min(1100px, calc(100% - 30px)); padding: 0; color: white; background: #08100c; border: 1px solid var(--line-strong); border-radius: 13px; overflow: hidden; box-shadow: 0 35px 120px rgba(0,0,0,.65); }
.lightbox::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 16px 20px; border-top: 1px solid var(--line); font-weight: 700; }
.lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; color: white; background: rgba(5,10,7,.82); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; cursor: pointer; font-size: 1.25rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Login */
.auth-page { min-height: 100vh; background: #07100c; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-brand-panel { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px, 5vw, 72px); overflow: hidden; background:
  linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
  radial-gradient(circle at 35% 40%, rgba(61,187,97,.18), transparent 35%),
  #08120d;
  background-size: 44px 44px, 44px 44px, auto, auto;
  border-right: 1px solid var(--line);
}
.auth-brand-panel::after { content: "ALD"; position: absolute; right: -35px; bottom: -65px; color: rgba(255,255,255,.025); font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; font-size: clamp(14rem, 34vw, 35rem); font-weight: 800; line-height: 1; }
.auth-brand-panel > * { position: relative; z-index: 2; }
.auth-message { max-width: 670px; margin: auto 0; padding: 80px 0; }
.auth-message h1 { margin: 0; font-size: clamp(3.1rem, 6.5vw, 7rem); line-height: .97; letter-spacing: -.065em; }
.auth-message > p:last-of-type { max-width: 620px; color: var(--muted); font-size: 1rem; }
.auth-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 29px; color: #bcc8c0; font-size: .7rem; font-weight: 700; }
.auth-points span { display: inline-flex; align-items: center; gap: 8px; }
.auth-points i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.auth-legal { color: var(--muted-2); font-size: .65rem; }
.auth-form-panel { display: grid; place-items: center; padding: 50px; background: #0a130f; }
.auth-form-wrap { width: min(100%, 440px); }
.auth-form-wrap .back-link { display: inline-block; margin-bottom: 70px; color: var(--muted); font-size: .72rem; text-decoration: none; }
.auth-form-wrap h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -.055em; }
.auth-subtitle { margin: 12px 0 30px; color: var(--muted); }
.login-form-large input { height: 52px; margin-bottom: 20px; }
.login-form-large .password-toggle { height: 52px; }
.login-form-large .button { margin-top: 4px; }
.form-alert { margin-bottom: 22px; padding: 13px 15px; color: #ffd4d4; background: rgba(238,119,119,.07); border: 1px solid rgba(238,119,119,.24); border-radius: 9px; font-size: .75rem; }
.login-help { margin-top: 21px; color: var(--muted-2); font-size: .7rem; text-align: center; }
.login-help a { color: #cfe9d4; }

/* Member portal */
.portal-page { min-height: 100vh; background: #07100c; }
.portal-header { position: fixed; z-index: 20; inset: 0 0 auto; height: 74px; background: rgba(7,16,12,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.portal-header-inner { width: min(calc(100% - 36px), 1500px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.portal-user { display: flex; align-items: center; gap: 13px; }
.portal-user > div { display: grid; text-align: right; line-height: 1.2; }
.portal-user small { color: var(--muted-2); font-size: .55rem; }
.portal-user strong { font-size: .7rem; }
.portal-user > span { width: 34px; height: 34px; display: grid; place-items: center; color: #07100c; background: var(--green); border-radius: 8px; font-size: .62rem; font-weight: 850; }
.portal-user > a { margin-left: 8px; color: var(--muted); font-size: .65rem; text-decoration: none; }
.portal-layout { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; padding-top: 74px; }
.portal-sidebar { position: fixed; top: 74px; bottom: 0; width: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px 16px; background: #080f0b; border-right: 1px solid var(--line); }
.portal-sidebar nav { display: grid; gap: 6px; }
.portal-sidebar nav a { min-height: 45px; display: flex; align-items: center; gap: 11px; padding: 0 12px; color: #738078; border: 1px solid transparent; border-radius: 8px; font-size: .7rem; font-weight: 700; text-decoration: none; }
.portal-sidebar nav a span { width: 23px; height: 23px; display: grid; place-items: center; color: #8b978f; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 6px; font-size: .57rem; }
.portal-sidebar nav a.active { color: #d9eee0; background: rgba(102,209,127,.07); border-color: rgba(102,209,127,.16); }
.portal-sidebar nav a.active span { color: var(--green); border-color: rgba(102,209,127,.2); }
.sidebar-status { display: flex; align-items: center; gap: 10px; padding: 13px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 9px; }
.sidebar-status > i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.sidebar-status > div { display: grid; }
.sidebar-status strong { font-size: .63rem; }
.sidebar-status small { color: var(--muted-2); font-size: .53rem; }
.portal-main { grid-column: 2; width: min(calc(100% - 60px), 1240px); margin: 0 auto; padding: 62px 0 85px; }
.portal-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.portal-title-row h1 { margin: 0; font-size: clamp(2.6rem, 4.5vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.portal-title-row > div > p:last-child { margin: 18px 0 0; color: var(--muted); }
.portal-notice { display: grid; grid-template-columns: 38px 1fr; gap: 15px; margin-top: 45px; padding: 19px; background: rgba(214,168,79,.055); border: 1px solid rgba(214,168,79,.19); border-radius: 10px; }
.notice-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--amber); background: rgba(214,168,79,.08); border: 1px solid rgba(214,168,79,.18); border-radius: 8px; font-weight: 850; }
.portal-notice strong { font-size: .76rem; }
.portal-notice p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.portal-tools { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 30px 0 16px; }
.search-field { position: relative; width: min(100%, 430px); }
.search-field span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search-field input { width: 100%; height: 46px; padding: 0 15px 0 40px; color: white; background: #0b1510; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.search-field input:focus { border-color: rgba(102,209,127,.42); }
.mod-count { display: flex; align-items: baseline; gap: 8px; }
.mod-count strong { font-size: 1.2rem; }
.mod-count span { color: var(--muted-2); font-size: .65rem; }
.mod-list { display: grid; gap: 12px; }
.mod-card { display: grid; grid-template-columns: 58px 1fr auto; gap: 21px; align-items: center; padding: 23px; background: #0d1712; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .2s; }
.mod-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mod-file-icon { width: 56px; height: 64px; display: grid; place-items: center; color: var(--green); background: rgba(102,209,127,.06); border: 1px solid rgba(102,209,127,.17); border-radius: 9px; font-size: .58rem; font-weight: 850; letter-spacing: .08em; }
.mod-title-line { display: flex; align-items: center; gap: 10px; }
.mod-category { color: var(--green); font-size: .56rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.mod-status { display: inline-flex; align-items: center; gap: 5px; color: #829087; font-size: .54rem; }
.mod-status i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.mod-info h2 { margin: 7px 0 3px; font-size: 1.08rem; }
.mod-info > p { margin: 0; color: var(--muted); font-size: .73rem; }
.mod-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 15px 0 0; }
.mod-meta div { display: grid; }
.mod-meta dt { color: var(--muted-2); font-size: .51rem; text-transform: uppercase; letter-spacing: .07em; }
.mod-meta dd { margin: 2px 0 0; color: #aeb9b1; font-size: .61rem; }
.mod-action { min-width: 175px; display: grid; justify-items: stretch; gap: 8px; }
.mod-action .button { min-height: 43px; }
.mod-action small { color: var(--muted-2); font-size: .52rem; text-align: center; }
.no-results { padding: 30px; color: var(--muted); text-align: center; border: 1px dashed var(--line-strong); border-radius: 10px; }
.portal-help { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 48px; padding: 34px; background: linear-gradient(110deg, #111b16, rgba(88,101,242,.08)); border: 1px solid rgba(88,101,242,.2); border-radius: 13px; }
.portal-help h2 { margin: 0; font-size: 1.55rem; }
.portal-help p:not(.eyebrow) { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: .76rem; }

/* Legal */
.legal-page { min-height: 100vh; padding: 110px 0 80px; background: var(--bg); }
.legal-card { max-width: 900px; padding: clamp(28px,5vw,58px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.legal-card h1 { margin: 0 0 30px; font-size: clamp(2.5rem,6vw,5rem); line-height: 1; letter-spacing: -.05em; }
.legal-card h2 { margin-top: 37px; font-size: 1.25rem; }
.legal-card p { color: var(--muted); }
.legal-card a { color: var(--green); }
.legal-alert { padding: 15px 18px; color: #c9d1cb !important; background: rgba(216,171,86,.07); border: 1px solid rgba(216,171,86,.25); border-radius: 8px; }
.legal-card .back-link { display: inline-block; margin-bottom: 28px; color: var(--green); font-weight: 750; text-decoration: none; }

@media (max-width: 1120px) {
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .dashboard-preview { max-width: 850px; transform: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-strong); }
  .feature-card:nth-child(4) { border-top: 1px solid var(--line-strong); }
  .member-layout { gap: 60px; }
  .auth-shell { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 860px) {
  .section { padding: 92px 0; }
  .menu-button { display: block; z-index: 101; }
  .main-nav { position: fixed; inset: 0 0 auto; display: grid; gap: 4px; padding: 92px 20px 22px; background: rgba(5,10,7,.98); border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform .3s ease; }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a { padding: 11px 5px; }
  .main-nav .nav-login { justify-self: start; padding: 10px 14px; }
  .section-heading, .project-grid, .member-layout { grid-template-columns: 1fr; gap: 38px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-column: span 2; grid-row: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-column: span 1; }
  .discord-panel { grid-template-columns: 1fr; gap: 30px; padding: 35px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 450px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-message { padding: 80px 0 30px; }
  .auth-form-wrap .back-link { margin-bottom: 45px; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { display: none; }
  .portal-main { grid-column: 1; width: min(calc(100% - 36px), 1240px); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { padding: 118px 0 78px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .hero-stats div, .hero-stats div + div { padding: 0; border-left: 0; }
  .dashboard-preview { overflow-x: auto; }
  .dashboard-topbar, .dashboard-body { width: 680px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-grid span:nth-child(4) { border-top: 1px solid var(--line); }
  .feature-grid, .news-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-card + .feature-card { border-left: 0; border-top: 1px solid var(--line-strong); }
  .news-featured { grid-column: auto; }
  .gallery-grid { grid-auto-rows: 245px; }
  .discord-section { padding-bottom: 60px; }
  .discord-panel { padding: 27px 22px; }
  .footer-bottom { flex-direction: column; }
  .auth-brand-panel { min-height: 390px; padding: 28px 22px; }
  .auth-message { padding-top: 55px; }
  .auth-message h1 { font-size: 3.25rem; }
  .auth-form-panel { padding: 42px 22px 65px; }
  .portal-header-inner { width: min(calc(100% - 24px), 1500px); }
  .portal-user > div, .portal-user > a { display: none; }
  .portal-main { width: min(calc(100% - 24px), 1240px); padding-top: 42px; }
  .portal-title-row, .portal-tools, .portal-help { align-items: stretch; flex-direction: column; }
  .portal-title-row .button { align-self: flex-start; }
  .mod-card { grid-template-columns: 48px 1fr; padding: 18px; }
  .mod-file-icon { width: 46px; height: 54px; }
  .mod-action { grid-column: 1 / -1; min-width: 0; }
  .mod-meta { gap: 16px; }
}

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


/* Statische HTML-Anmeldung */
body.portal-page[data-auth-pending="true"] { visibility: hidden; }
.static-login-notice { margin-top: 18px; padding: 13px 15px; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 9px; font-size: .68rem; line-height: 1.65; }
.login-form button:disabled { cursor: wait; opacity: .72; }
