:root {
    --panel-bg: #071111;
    --panel-bg-soft: rgba(9, 18, 19, 0.78);
    --panel-bg-strong: rgba(8, 16, 17, 0.92);
    --panel-border: rgba(100, 142, 127, 0.28);
    --panel-border-strong: rgba(121, 179, 159, 0.46);
    --panel-text: #edf7f1;
    --panel-muted: #9cafaa;
    --panel-cyan: #53d6ff;
    --panel-blue: #1d92ff;
    --panel-green: #55dd9c;
    --panel-emerald: #1dbb82;
    --panel-amber: #ffb347;
    --panel-orange: #ff7a1b;
    --panel-violet: #8b7dff;
    --panel-danger: #ff6d77;
    --panel-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(95, 159, 139, 0.45) rgba(7, 17, 17, 0.4);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(7, 17, 17, 0.45);
}

*::-webkit-scrollbar-thumb {
    background: rgba(95, 159, 139, 0.45);
    border-radius: 999px;
}

html,
body {
    min-height: 100%;
}

body.panel-body {
    position: relative;
    margin: 0;
    color: var(--panel-text);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    background:
        radial-gradient(circle at top, rgba(80, 197, 255, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 122, 27, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(4, 8, 9, 0.22), rgba(3, 6, 7, 0.78)),
        url('/static/branding/panel-bg.jpg') center/cover fixed no-repeat;
}

.panel-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4, 8, 9, 0.42) 0%, rgba(4, 8, 9, 0.14) 24%, rgba(4, 8, 9, 0.18) 76%, rgba(4, 8, 9, 0.48) 100%),
        linear-gradient(180deg, rgba(3, 8, 10, 0.16), rgba(3, 8, 10, 0.42));
}

.font-display {
    font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
}

.panel-sidebar {
    position: relative;
    z-index: 40;
    width: 100%;
    max-width: 22rem;
    background: linear-gradient(180deg, rgba(5, 12, 13, 0.95) 0%, rgba(6, 13, 14, 0.9) 60%, rgba(4, 10, 11, 0.96) 100%);
    border-right: 1px solid rgba(104, 149, 132, 0.18);
    box-shadow: 12px 0 44px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
    transition: width 0.24s ease, max-width 0.24s ease, opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease;
}


.panel-shell {
    position: relative;
}

.panel-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    background: rgba(1, 5, 6, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.panel-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.panel-sidebar-header-copy {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(150, 213, 190, 0.78);
}

.panel-sidebar-close,
.panel-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(103, 166, 145, 0.28);
    background: linear-gradient(180deg, rgba(11, 20, 21, 0.92), rgba(7, 13, 14, 0.88));
    color: #f4fbf7;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.panel-sidebar-close {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1rem;
    flex: 0 0 auto;
}

.panel-sidebar-toggle {
    padding: 0.78rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-sidebar-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.panel-topbar-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

.panel-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.panel-main {
    transition: padding 0.24s ease;
}

.panel-main-inner {
    width: 100%;
    max-width: 1720px;
    margin-inline: auto;
}



.panel-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(83, 214, 255, 0.05), transparent 16%, transparent 84%, rgba(255, 122, 27, 0.05));
    pointer-events: none;
}

.panel-sidebar-scroll {
    position: relative;
    height: 100%;
    overflow-y: auto;
    padding: 1.25rem;
}

.panel-brand-card {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(9, 18, 19, 0.92), rgba(7, 14, 15, 0.86));
    box-shadow: var(--panel-shadow);
}

.panel-brand-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 8;
}

.panel-brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.panel-brand-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 6, 7, 0.05), rgba(3, 6, 7, 0.25) 48%, rgba(3, 6, 7, 0.7) 100%);
}

.panel-brand-copy {
    padding: 1rem 1rem 1.1rem;
}

.panel-brand-kicker,
.panel-topbar-kicker,
.login-kicker,
.login-panel-kicker,
.panel-nav-divider {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(150, 213, 190, 0.78);
}

.panel-brand-title,
.panel-topbar-title {
    margin-top: 0.45rem;
    font-size: 1.45rem;
    line-height: 1.05;
    color: #ffffff;
}

.panel-brand-subtitle,
.panel-topbar-subtitle {
    margin-top: 0.55rem;
    color: var(--panel-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.panel-user-card {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 1.3rem;
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(11, 20, 21, 0.82), rgba(7, 13, 14, 0.72));
    padding: 0.95rem;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.panel-logout-link {
    display: inline-flex;
    margin-top: 0.8rem;
    color: #ffb8be;
    font-size: 0.78rem;
    font-weight: 600;
}

.panel-nav-divider {
    margin-top: 1rem;
    margin-bottom: 0.55rem;
    padding: 0.85rem 0.4rem 0 0.4rem;
    border-top: 1px solid rgba(104, 149, 132, 0.16);
}

.panel-nav-link {
    display: block;
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 0.82rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(228, 241, 234, 0.9);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.panel-nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(103, 166, 145, 0.34);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.panel-nav-link.is-active {
    border-color: rgba(84, 187, 162, 0.38);
    background: linear-gradient(135deg, rgba(18, 96, 118, 0.62), rgba(18, 58, 64, 0.6) 55%, rgba(255, 122, 27, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 32px rgba(0, 0, 0, 0.22);
}

.panel-topbar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(102, 152, 137, 0.28);
    background: linear-gradient(135deg, rgba(7, 14, 15, 0.76), rgba(10, 21, 21, 0.74));
    padding: 1.25rem 1.35rem;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(14px);
}

.panel-topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(83, 214, 255, 0.08), transparent 35%, transparent 65%, rgba(255, 122, 27, 0.08)),
        url('/static/branding/lurifix-banner.jpg') center/cover no-repeat;
    opacity: 0.16;
}

.panel-topbar > * {
    position: relative;
    z-index: 1;
}

.panel-topbar-logo {
    display: none;
    width: min(32vw, 300px);
    max-width: 300px;
    border-radius: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.panel-content-wrap {
    position: relative;
}

.panel-content-wrap h1,
.panel-content-wrap h2,
.panel-content-wrap h3,
.panel-content-wrap h4 {
    color: #f5fbf7;
}

.login-body {
    background-position: center top;
}

.login-shell {
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.login-hero {
    position: relative;
    overflow: hidden;
}

.login-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 6, 7, 0.16), rgba(3, 6, 7, 0.64) 66%, rgba(3, 6, 7, 0.84)),
        linear-gradient(90deg, rgba(3, 6, 7, 0.18), rgba(3, 6, 7, 0.04) 48%, rgba(255, 122, 27, 0.12));
}

.login-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.login-discord-btn {
    background: linear-gradient(135deg, var(--panel-blue), #5163f1 50%, var(--panel-cyan));
    box-shadow: 0 16px 38px rgba(29, 146, 255, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-discord-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 20px 44px rgba(29, 146, 255, 0.32);
}

.login-feature-card {
    border-radius: 1rem;
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(12, 21, 22, 0.85), rgba(8, 14, 15, 0.7));
    padding: 0.85rem 1rem;
    color: #d9e7df;
}

.bg-zinc-950 {
    background-color: rgba(7, 17, 17, 0.84) !important;
}

.bg-zinc-900 {
    background: linear-gradient(180deg, rgba(11, 20, 21, 0.86), rgba(8, 15, 16, 0.82)) !important;
    backdrop-filter: blur(16px);
}

.bg-zinc-800,
.bg-zinc-800\/70,
.hover\:bg-zinc-800:hover,
.hover\:bg-zinc-700:hover {
    background: linear-gradient(180deg, rgba(18, 30, 31, 0.94), rgba(12, 20, 21, 0.92)) !important;
}

.border-zinc-800,
.border-zinc-700,
.divide-zinc-800 > :not([hidden]) ~ :not([hidden]),
.border-t.border-zinc-800,
.border-b.border-zinc-800,
.border-r.border-zinc-800 {
    border-color: var(--panel-border) !important;
}

.text-zinc-500,
.text-zinc-400 {
    color: var(--panel-muted) !important;
}

.text-zinc-300 {
    color: #c9dad1 !important;
}

.text-zinc-100,
.text-white {
    color: #f4fbf7 !important;
}

.text-green-400 {
    color: #7ff0b0 !important;
}

.rounded-xl {
    border-radius: 1rem !important;
}

.rounded-2xl {
    border-radius: 1.25rem !important;
}

.shadow-2xl,
.shadow-xl {
    box-shadow: var(--panel-shadow) !important;
}

button,
a.rounded-xl,
a.rounded-2xl,
input,
select,
textarea {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

button:hover,
a.rounded-xl:hover,
a.rounded-2xl:hover {
    transform: translateY(-1px);
}

input,
select,
textarea {
    color: #f1f8f4 !important;
    background: linear-gradient(180deg, rgba(8, 14, 15, 0.96), rgba(6, 11, 12, 0.94)) !important;
    border-color: rgba(98, 140, 126, 0.3) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

input::placeholder,
textarea::placeholder {
    color: rgba(167, 187, 177, 0.72);
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: rgba(83, 214, 255, 0.62) !important;
    box-shadow: 0 0 0 3px rgba(83, 214, 255, 0.12), 0 0 0 1px rgba(83, 214, 255, 0.22) !important;
}

button,
a.bg-green-600,
a.bg-blue-600,
a.bg-violet-600,
a.bg-yellow-600,
a.bg-zinc-800,
a.bg-indigo-500,
a.bg-rose-500,
a.bg-amber-500,
a.bg-green-500,
a.bg-blue-500,
a.bg-violet-500,
a.bg-yellow-500 {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.bg-green-600,
.bg-green-500,
.hover\:bg-green-500:hover,
.hover\:bg-green-400:hover {
    background: linear-gradient(135deg, #0d8c6f, #1cbc7c 52%, #4de0a3) !important;
    color: white !important;
}

.bg-blue-600,
.bg-blue-500,
.hover\:bg-blue-500:hover,
.hover\:bg-blue-400:hover,
.bg-indigo-500,
.bg-indigo-400,
.hover\:bg-indigo-400:hover {
    background: linear-gradient(135deg, #1676d4, #2a9dff 50%, #58d8ff) !important;
    color: white !important;
}

.bg-violet-600,
.bg-violet-500,
.hover\:bg-violet-500:hover {
    background: linear-gradient(135deg, #4c61e8, #6b75ff 52%, #9384ff) !important;
    color: white !important;
}

.bg-yellow-600,
.bg-yellow-500,
.hover\:bg-yellow-500:hover,
.bg-amber-500,
.hover\:bg-amber-500:hover {
    background: linear-gradient(135deg, #e07d18, #ff9f2f 50%, #ffc76f) !important;
    color: #1d1204 !important;
}

.bg-rose-500,
.bg-rose-400,
.hover\:bg-rose-400:hover {
    background: linear-gradient(135deg, #cb4259, #ff5c78 55%, #ff7f96) !important;
    color: white !important;
}

.bg-emerald-950\/50,
.bg-emerald-900\/30,
.bg-emerald-500\/10 {
    background: rgba(12, 110, 78, 0.22) !important;
}

.bg-amber-950\/50,
.bg-amber-900\/30,
.bg-amber-500\/10 {
    background: rgba(170, 106, 20, 0.18) !important;
}

.bg-rose-500\/10 {
    background: rgba(183, 58, 85, 0.18) !important;
}

.overflow-hidden.rounded-2xl.border,
.rounded-2xl.border,
.rounded-xl.border {
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
}

.table,
table {
    border-collapse: collapse;
}

thead {
    backdrop-filter: blur(12px);
}

tbody tr {
    transition: background-color 0.16s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

code {
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.12rem 0.4rem;
}

@media (min-width: 1024px) {
    .panel-topbar-logo {
        display: block;
    }

    .panel-sidebar {
        flex: 0 0 min(22rem, 30vw);
    }

    .panel-sidebar-scroll {
        padding: 1.4rem;
    }

    .panel-sidebar-close {
        display: none;
    }

    body.sidebar-collapsed .panel-sidebar {
        width: 0 !important;
        max-width: 0 !important;
        min-width: 0 !important;
        opacity: 0;
        transform: translateX(-1.5rem);
        margin-right: 0;
        border-right-width: 0;
        box-shadow: none;
        overflow: hidden;
    }

    body.sidebar-collapsed .panel-sidebar-scroll {
        overflow: hidden;
        padding: 0;
    }
}

@media (max-width: 1023px) {
    .panel-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 22rem);
        max-width: min(88vw, 22rem);
        border-right: 1px solid rgba(104, 149, 132, 0.18);
        border-bottom: 0;
        transform: translateX(calc(-100% - 1rem));
        opacity: 0;
        pointer-events: none;
    }

    body.sidebar-mobile-open .panel-sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-mobile-open .panel-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    .panel-topbar {
        padding: 1rem 1.1rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-topbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .panel-brand-title,
    .panel-topbar-title {
        font-size: 1.25rem;
    }
}
