:root {
    --bg: #070711;
    --card: rgba(255, 255, 255, .06);
    --card2: rgba(255, 255, 255, .08);
    --stroke: rgba(255, 255, 255, .12);
    --text: #F5F7FF;
    --muted: rgba(245, 247, 255, .70);
    --accent1: #ff61d8;
    --accent2: #6ee7ff;
    --accent3: #9b7bff;
    --shadow: 0 18px 60px rgba(0, 0, 0, .45);
    --radius: 18px;
    --radius2: 26px;
    --wrap: 1160px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

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

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 22px;
}

.muted {
    color: var(--muted)
}

b {
    font-weight: 800
}

/* Background */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2
}

.bg-aurora {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(closest-side at 30% 30%, rgba(255, 97, 216, .35), transparent 65%),
        radial-gradient(closest-side at 70% 25%, rgba(110, 231, 255, .32), transparent 60%),
        radial-gradient(closest-side at 55% 75%, rgba(155, 123, 255, .28), transparent 65%),
        radial-gradient(closest-side at 20% 80%, rgba(255, 220, 120, .16), transparent 60%);
    filter: blur(20px);
    animation: drift 12s ease-in-out infinite alternate;
}

.bg-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
    opacity: .08;
    mix-blend-mode: overlay;
}

.bg-sparkles {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 18% 22%, rgba(255, 255, 255, .35), transparent 60%),
        radial-gradient(1px 1px at 62% 38%, rgba(255, 255, 255, .25), transparent 60%),
        radial-gradient(2px 2px at 82% 72%, rgba(255, 255, 255, .25), transparent 60%),
        radial-gradient(1px 1px at 38% 78%, rgba(255, 255, 255, .22), transparent 60%),
        radial-gradient(2px 2px at 48% 54%, rgba(255, 255, 255, .18), transparent 60%);
    opacity: .6;
    animation: twinkle 4.5s ease-in-out infinite alternate;
}

@keyframes drift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(-2deg)
    }

    to {
        transform: translate3d(2%, 1%, 0) scale(1.04) rotate(2deg)
    }
}

@keyframes twinkle {
    from {
        opacity: .35
    }

    to {
        opacity: .75
    }
}

/* Sticky / always-visible top bar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(7, 7, 17, .68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}


/* Optional: slightly tighter height for a cleaner look */
.topbar-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 97, 216, .9), rgba(110, 231, 255, .9), rgba(155, 123, 255, .9));
    box-shadow: 0 10px 30px rgba(255, 97, 216, .18);
}

.brand-name {
    font-weight: 900;
    letter-spacing: .2px
}

.brand-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px
}

.nav a {
    opacity: .82
}

.nav a:hover {
    opacity: 1
}

.nav-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
}

.nav-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, .12);
    margin: 0 6px;
}

.nav-staff {
    font-weight: 900;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    opacity: .85;
}

.nav-staff:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .08);
}




/* Hero */
.hero {
    padding: 34px 0 26px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
    align-items: stretch;
}

.statusline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .35)
}

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 12px;
}

h1 {
    font-size: clamp(42px, 5.2vw, 68px);
    line-height: 1.02;
    margin: 16px 0 12px;
    letter-spacing: -.6px;
}

.accent {
    background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 56ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 18px
}

.btn {
    position: relative;
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-weight: 900;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .22)
}

.btn:active {
    transform: translateY(0px) scale(.99)
}

.btn.primary {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(255, 97, 216, .95), rgba(110, 231, 255, .85), rgba(155, 123, 255, .85));
    box-shadow: 0 18px 50px rgba(255, 97, 216, .18);
}

.btn.primary .btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    filter: blur(18px);
    background: linear-gradient(135deg, rgba(255, 97, 216, .45), rgba(110, 231, 255, .28), rgba(155, 123, 255, .25));
    opacity: .55;
    z-index: -1;
}

.btn.ghost {
    background: rgba(255, 255, 255, .045)
}

.btn.subtle {
    background: transparent;
    border-color: transparent;
    opacity: .9
}

.btn.subtle:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10)
}

.ip-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 16px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .045));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
    margin-top: 12px;
}

.ip-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700
}

.ip-value {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .2px
}

.mini {
    font-weight: 900;
    text-align: right
}

.trust {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.trust-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .10);
}

.trust-num {
    font-weight: 1000
}

.trust-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}

/* Right side */
.showcase-card {
    height: 100%;
    border-radius: var(--radius2);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.showcase-top {
    display: flex;
    gap: 10px;
    padding: 16px 16px 8px;
}

.tag {
    font-size: 12px;
    font-weight: 1000;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}

.tag.ghosty {
    opacity: .9;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.showcase-mid {
    padding: 8px 18px 10px;
}

.big-stat {
    padding: 10px 0 14px
}

.big-num {
    font-size: 54px;
    font-weight: 1000;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.big-label {
    color: var(--muted);
    margin-top: 2px
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, .10);
    margin: 10px 0 14px
}

.mode-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.mode {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
}

.mode-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
}

.mode-name {
    font-weight: 1000
}

.mode-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}

.showcase-bottom {
    padding: 14px 16px 16px;
    background: rgba(0, 0, 0, .18);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.hint {
    color: var(--muted);
    font-size: 13px
}

.floating-badges {
    position: relative;
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.badge {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
    animation: floaty 3.6s ease-in-out infinite alternate;
}

.badge:nth-child(2) {
    animation-duration: 4.2s
}

.badge:nth-child(3) {
    animation-duration: 4.8s
}

@keyframes floaty {
    from {
        transform: translateY(0px)
    }

    to {
        transform: translateY(-4px)
    }
}

/* Sections */
.section {
    padding: 62px 0
}

.section.soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.section-head {
    margin-bottom: 18px
}

.section-head h2 {
    font-size: 34px;
    margin: 0 0 8px;
    letter-spacing: -.4px
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.card {
    padding: 18px 18px;
    border-radius: var(--radius2);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 14px 45px rgba(0, 0, 0, .25);
}

.card-icon {
    font-size: 22px
}

.card h3 {
    margin: 10px 0 6px
}

.card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65
}

.list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted)
}

.list li {
    margin: 6px 0
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature {
    padding: 18px 18px;
    border-radius: var(--radius2);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .10);
}

.feature h3 {
    margin: 0 0 6px
}

.feature p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 16px;
    border-radius: var(--radius2);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .10);
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 1000;
}

.join-strip {
    margin-top: 16px;
    padding: 18px 18px;
    border-radius: var(--radius2);
    background: linear-gradient(90deg, rgba(255, 97, 216, .16), rgba(110, 231, 255, .10), rgba(155, 123, 255, .12));
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.join-title {
    font-weight: 1000
}

.join-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* Footer */
.footer {
    padding: 34px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.foot-brand {
    font-weight: 1000
}

.foot-right {
    display: flex;
    gap: 14px;
    color: var(--muted)
}

.foot-right a:hover {
    color: var(--text)
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(10, 10, 18, .75);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 520px) {
    .nav {
        display: none
    }

    .steps {
        grid-template-columns: 1fr
    }

    .ip-card {
        flex-direction: column;
        align-items: flex-start
    }

    .mini {
        text-align: left
    }
}



/* ==========================================================
   SIMPLE HERO (LESS CROWDED, ONE FOCUS)
========================================================== */

.hero-min {
    padding: 84px 0 58px;
}

.hero-min-wrap {
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.hero-min-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
}

.hero-min-title {
    margin: 6px 0 0;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1.0;
    letter-spacing: -1px;
}

.hero-min-lead {
    margin: 0;
    max-width: 60ch;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

.hero-min-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.hero-min-ip {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
}

.hero-min-ip-value {
    font-weight: 1000;
    letter-spacing: .2px;
}

.hero-min-scroll {
    margin-top: 18px;
    color: var(--muted);
    opacity: .9;
}

.hero-min-scroll:hover {
    opacity: 1;
}

/* Optional: make top nav quieter */
.nav a {
    opacity: .7
}

.nav a:hover {
    opacity: 1
}

/* Optional: hide right-side showcase completely (if still in HTML somewhere) */
.hero-right {
    display: none !important;
}

.hero-grid {
    grid-template-columns: 1fr !important;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Offset sections so sticky header doesn't cover headings */
#join,
#modes,
#features,
#howto {
    scroll-margin-top: 92px;
    /* tweak if your header height changes */
}

body {
    padding-top: 70px;
}


/* ==========================================================
   RIGHT-SIDE QUICK ACTIONS + STATUS DRAWER
========================================================== */

.quick-rail {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
    letter-spacing: .2px;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.quick-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .07);
}

.quick-ic {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    font-size: 16px;
}

.quick-tx {
    font-size: 13px;
    opacity: .95;
}

/* Backdrop + drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    z-index: 1200;
}

.drawer {
    position: fixed;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 340px;
    max-width: calc(100vw - 36px);
    border-radius: 22px;
    background: rgba(10, 10, 18, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .55);
    z-index: 1300;
    overflow: hidden;
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.drawer-title {
    font-weight: 1000;
}

.drawer-sub {
    font-size: 12px;
    margin-top: 2px;
}

.drawer-close {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    border-radius: 14px;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.drawer-body {
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-foot {
    padding: 12px 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: flex-end;
}

.server-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .10);
}

.server-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.server-name {
    font-weight: 1000;
}

.server-meta {
    font-size: 12px;
    color: var(--muted);
}

.server-pill {
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 1000;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07);
}

/* Mobile: hide quick rail (or keep, your call) */
@media (max-width: 640px) {
    .quick-rail {
        display: none;
    }
}

/* ===== TOP BAR FIX (LOGO SAFE) ===== */
:root {
    --topbar-h: 64px;
}

/* Make sure the page starts at the very top */
html,
body {
    margin: 0;
    padding: 0;
}

/* TOPBAR: pinned to top of viewport */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    height: var(--topbar-h);
    display: flex;
    align-items: center;

    background: rgba(10, 10, 18, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, .08);
}


.topbar-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Brand (logo + text) */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    height: 34px;
    width: 34px;
    /* keeps it stable */
    object-fit: contain;
    display: block;
    /* removes baseline spacing */
    border-radius: 10px;
    flex: 0 0 auto;
}

.brand-text {
    font-weight: 1000;
    font-size: 16px;
    color: rgba(255, 255, 255, .95);
    line-height: 1;
    /* prevents pushing navbar */
    white-space: nowrap;
}

/* Nav */
.topnav {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Make sure buttons/links don't inherit weird line-height */
.navbtn {
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(245, 247, 255, .78);
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    /* key fix */
    padding: 10px 10px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
}

.navbtn:hover {
    color: rgba(255, 255, 255, .95);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
}

/* Staff pill */
.navbtn.pill {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
}

/* Mobile: hide brand text (optional) */
@media (max-width: 560px) {
    .brand-text {
        display: none;
    }

    .topnav {
        gap: 8px;
    }

    .navbtn {
        padding: 10px 8px;
    }
}

html {
    scroll-behavior: smooth;
}

/* if you use a fixed topbar */
:root {
    --topbar-h: 64px;
}

.section {
    scroll-margin-top: calc(var(--topbar-h) + 16px);
}


/* main pill state */
.pill.online {
    background: rgba(110, 231, 255, .16);
    border: 1px solid rgba(110, 231, 255, .35);
}

.pill.offline {
    background: rgba(255, 97, 216, .12);
    border: 1px solid rgba(255, 97, 216, .30);
}

/* drawer rows (if not already present) */
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 10px;
}

.status-row-name {
    font-weight: 1000;
}

.status-row-meta {
    font-size: 12px;
    margin-top: 2px;
}

/* Keep the quick rail compact (prevents stretching) */
.quick-rail{
  align-items: flex-end; /* right align the buttons */
}

/* ONLY the Server Status button gets the special “pill + subtext” layout */
#openStatus{
  display:flex;
  align-items:center;
  gap:10px;
}

#openStatus .quick-tx{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  line-height:1.05;
}

/* Title + sub text inside the button */
#openStatus .quick-title{
  font-size: 13px;
  font-weight: 900;
  opacity: .95;
}

#openStatus .quick-sub{
  font-size: 11px;
  font-weight: 800;
  opacity: .75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Push the pill to the right INSIDE this one button only */
#openStatus #statusBtnPill{
  margin-left: auto;
}

.pill.neutral{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

/* Make all quick buttons the same width so Server Status matches */
.quick-rail .quick-btn{
  width: 190px;
}

/* Keep the status pill from changing button height */
#openStatus .pill{
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1;
}

/* ===============================
   QUICK RAIL — readability fix
================================ */

/* Give the rail buttons a bit more room */
.quick-rail .quick-btn{
  width: 230px;              /* was too tight */
  padding: 12px 14px;
}

/* Make the label area behave nicely */
.quick-rail .quick-tx{
  min-width: 0;              /* allows truncation correctly */
  flex: 1 1 auto;            /* let text take available space */
}

/* Only for the Server Status button: better readable title/sub */
#openStatus .quick-title{
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .1px;
  line-height: 1.1;
}

#openStatus .quick-sub{
  font-size: 11.5px;
  font-weight: 800;
  opacity: .8;
  line-height: 1.1;

  /* keep it readable: allow a wrap instead of squishing */
  white-space: normal;
}

/* Keep the pill compact so it doesn't steal space */
#openStatus #statusBtnPill{
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1;
  margin-left: 10px;
}

/* ===============================
   QUICK RAIL — icon + alignment fix
================================ */

/* Prevent the icon from squishing */
.quick-rail .quick-ic{
  flex: 0 0 34px;     /* lock width */
  width: 34px;
  height: 34px;
}

/* Make ALL quick buttons center nicely */
.quick-rail .quick-btn{
  display: flex;
  align-items: center;   /* vertical align everything */
}

/* Specifically balance the Server Status button row */
#openStatus{
  align-items: center;
}

#openStatus .quick-tx{
  display: flex;
  flex-direction: column;
  justify-content: center; /* centers title/sub vertically relative to icon/pill */
}

/* Keep the OFFLINE pill perfectly centered on the right */
#openStatus #statusBtnPill{
  align-self: center;
}

/* Optional: tighten subtext so it sits nicely under the title */
#openStatus .quick-sub{
  margin-top: 2px;
  line-height: 1.1;
}

/* Make Server Status match the other quick buttons */
#openStatus .quick-sub{
  display: none; /* hide the extra "Offline" line */
}

/* Standardize pill sizing inside the quick rail */
.quick-rail .pill{
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  line-height: 26px; /* vertically centers text */
  border-radius: 999px;
  flex: 0 0 auto;
}

.quick-rail .quick-btn{
  height: 54px;           /* same height for all */
  padding: 10px 14px;
  align-items: center;
}

#openStatus[aria-label] { position: relative; }
