:root {
    --og-bg: #070809;
    --og-panel: #101214;
    --og-panel-2: #151719;
    --og-border: rgba(212, 175, 55, .24);
    --og-border-soft: rgba(255,255,255,.08);
    --og-gold: #d4af37;
    --og-gold-light: #f1d26d;
    --og-text: #f3f3f3;
    --og-muted: #9ba0a6;
    --og-danger: #ff7d7d;
    --og-success: #7de2a7;
    --og-discord: #5865f2;
    --shadow: 0 24px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 50% -10rem, rgba(212,175,55,.13), transparent 35rem),
        linear-gradient(180deg, #0a0b0c 0%, var(--og-bg) 44rem);
    color: var(--og-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--og-border-soft);
    background: rgba(7,8,9,.82);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--og-gold-light); font-weight: 850; letter-spacing: .03em; }
.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--og-gold);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(212,175,55,.11), rgba(212,175,55,.02));
    color: var(--og-gold-light);
    box-shadow: inset 0 0 25px rgba(212,175,55,.06);
    font-weight: 950;
    letter-spacing: .08em;
}
.brand-mark-small { width: 38px; height: 38px; margin: 0; border-radius: 11px; font-size: .74rem; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--og-muted); font-size: .92rem; transition: .18s ease; }
.main-nav a:hover { color: var(--og-gold-light); }
.user-menu { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.user-menu form { margin: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--og-border); }
.page-shell { min-height: calc(100vh - 136px); padding-block: 42px 64px; }
.hero-card, .module-card, .admin-teaser, .health-strip {
    border: 1px solid var(--og-border);
    background: linear-gradient(180deg, rgba(20,22,24,.97), rgba(11,12,13,.97));
    box-shadow: var(--shadow);
}
.auth-hero {
    width: min(640px, 100%);
    margin: 8vh auto 0;
    padding: 44px;
    border-radius: 24px;
    text-align: center;
}
.auth-hero .brand-mark { margin: 18px auto; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: var(--og-gold-light); font-size: clamp(2.25rem, 7vw, 4.2rem); letter-spacing: -.045em; }
h2 { margin-bottom: 10px; font-size: 1.35rem; }
p { line-height: 1.65; }
.hero-copy { max-width: 520px; margin: 0 auto 26px; color: #d8dadd; }
.eyebrow { color: var(--og-gold); font-size: .72rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.muted { color: var(--og-muted); }
.compact { margin: 16px 0 0; font-size: .88rem; }
.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 760;
    transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button-discord { background: var(--og-discord); color: #fff; box-shadow: 0 13px 32px rgba(88,101,242,.19); }
.button-ghost { border-color: var(--og-border-soft); background: rgba(255,255,255,.025); color: var(--og-muted); }
.button-small { min-height: 34px; padding-inline: 11px; border-radius: 9px; font-size: .82rem; }
.alert { max-width: 760px; margin: 0 auto 22px; padding: 14px 16px; border: 1px solid; border-radius: 12px; text-align: center; }
.alert-error { border-color: rgba(255,125,125,.35); background: rgba(255,125,125,.08); color: #ffc1c1; }
.alert-success { border-color: rgba(125,226,167,.32); background: rgba(125,226,167,.07); color: #bdf2d2; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 14px 0 32px; }
.welcome-row h1 { margin: 4px 0 6px; font-size: clamp(2.2rem, 6vw, 3.7rem); }
.system-badge, .status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; white-space: nowrap; }
.system-badge { padding: 9px 12px; border: 1px solid rgba(125,226,167,.2); background: rgba(125,226,167,.06); color: #bdf2d2; font-size: .8rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--og-success); box-shadow: 0 0 12px rgba(125,226,167,.7); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.module-card { min-height: 270px; padding: 28px; border-radius: 18px; transition: transform .18s ease, border-color .18s ease; }
.module-card:hover { transform: translateY(-3px); border-color: rgba(212,175,55,.48); }
.module-card p { color: var(--og-muted); }
.module-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid var(--og-border); border-radius: 13px; color: var(--og-gold-light); font-size: 1.3rem; }
.status-pill { margin-top: 10px; padding: 6px 10px; border: 1px solid var(--og-border-soft); color: var(--og-muted); font-size: .76rem; }
.status-pill-gold { border-color: var(--og-border); color: var(--og-gold-light); }
.admin-teaser { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 24px 28px; border-radius: 18px; }
.health-strip { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 18px; padding: 15px 20px; border-radius: 14px; box-shadow: none; color: var(--og-muted); font-size: .82rem; }
.health-strip strong { color: var(--og-gold-light); }
.site-footer { min-height: 64px; display: flex; align-items: center; border-top: 1px solid var(--og-border-soft); color: #666d73; font-size: .78rem; }
.site-footer .container { padding-block: 20px; }

@media (max-width: 900px) {
    .header-inner { min-height: 64px; }
    .main-nav { display: none; }
    .user-menu { margin-left: auto; }
    .user-menu > span { display: none; }
    .module-grid { grid-template-columns: 1fr; }
    .module-card { min-height: auto; }
}

@media (max-width: 600px) {
    .container { width: min(100% - 24px, 1180px); }
    .page-shell { padding-top: 28px; }
    .auth-hero { margin-top: 4vh; padding: 30px 22px; border-radius: 18px; }
    .welcome-row { align-items: flex-start; flex-direction: column; }
    .welcome-row h1 { font-size: 2.4rem; }
    .module-card { padding: 22px; }
    .health-strip { flex-direction: column; gap: 8px; }
    .admin-teaser { flex-direction: column; }
}

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