/* Hide auth UI until boot classes + full auth JS finish hydrating */
html.discord-boot #discord-btn {
    visibility: hidden;
}

html.discord-boot.discord-ready #discord-btn {
    visibility: visible;
}

/* Keep main nav links always visible; only Staff is gated */
.top-nav > .nav-item:not([data-staff-nav]):not(#discord-btn) {
    display: inline !important;
    visibility: visible !important;
}

/* Staff nav: only for staff — no flash of Staff for members */
[data-staff-nav] {
    display: none !important;
}

html.discord-staff [data-staff-nav] {
    display: inline !important;
}

html.discord-staff a.btn[data-staff-nav] {
    display: inline-flex !important;
}

/* Staff page: skip lock-card flash when already staff */
html.discord-boot.discord-staff #lock-card {
    display: none !important;
}

html.discord-boot.discord-staff #workspace {
    display: grid !important;
}

/* Ticket page: hide login gate flash when already allowed */
html.discord-boot.discord-authed #login-gate {
    display: none !important;
}
