@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-1: #050b14;
    --bg-2: #0b1523;
    --panel: rgba(10, 17, 28, 0.8);
    --panel-strong: rgba(14, 22, 35, 0.96);
    --panel-soft: rgba(20, 31, 46, 0.75);
    --line: rgba(145, 166, 190, 0.16);
    --line-strong: rgba(216, 183, 106, 0.36);
    --text: #edf4ff;
    --muted: #a7b8ce;
    --blue: #49a0ff;
    --blue-strong: #1d5ad6;
    --gold: #d8b76a;
    --gold-soft: #f3dd9e;
    --success: #38d39f;
    --danger: #ff615e;
    --shadow: rgba(0, 0, 0, 0.42);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    position: relative;
    background:
        linear-gradient(130deg, rgba(4, 9, 16, 0.88) 0%, rgba(8, 18, 30, 0.86) 48%, rgba(3, 7, 12, 0.94) 100%),
        url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?q=80&w=2064&auto=format&fit=crop') center/cover no-repeat fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(73, 160, 255, 0.08), transparent 18%, transparent 82%, rgba(216, 183, 106, 0.08)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 30px
        );
    pointer-events: none;
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(73, 160, 255, 0.12), transparent 32%);
    z-index: -1;
}

.app-container {
    position: relative;
    display: flex;
    width: 96vw;
    height: 94vh;
    background: rgba(9, 15, 24, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(216, 183, 106, 0.18);
    border-radius: 26px;
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 40px rgba(73, 160, 255, 0.04);
    overflow: hidden;
}

.sidebar {
    width: 350px;
    background: linear-gradient(180deg, rgba(7, 12, 20, 0.96) 0%, rgba(12, 20, 31, 0.9) 100%);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

.brand {
    position: relative;
    padding: 24px 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(216, 183, 106, 0.05), rgba(255,255,255,0.01));
}

.brand::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 183, 106, 0.5), transparent 65%);
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(216, 183, 106, 0.5);
    box-shadow: 0 0 18px rgba(216, 183, 106, 0.2);
    background: rgba(7, 12, 20, 0.75);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-subtitle {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 2px;
    font-weight: 700;
}

.brand-title {
    font-size: 1.08rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sidebar-title {
    font-size: 0.72rem;
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 2.4px;
    padding: 20px 20px 8px 24px;
    font-weight: 700;
}

.menu {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0 18px;
}

.menu::-webkit-scrollbar { width: 6px; }
.menu::-webkit-scrollbar-track { background: transparent; }
.menu::-webkit-scrollbar-thumb { background: rgba(216, 183, 106, 0.22); border-radius: 10px; }
.menu::-webkit-scrollbar-thumb:hover { background: rgba(216, 183, 106, 0.35); }

.menu-item {
    position: relative;
    padding: 12px 18px 12px 22px;
    margin: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--muted);
    border: 1px solid transparent;
    font-weight: 600;
}

.menu-item::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 999px;
    background: transparent;
}

.menu-item.center-item { justify-content: center; }
.menu-item i { width: 20px; text-align: center; font-size: 1rem; transition: transform 0.25s ease; }
.menu-item.locked {
    opacity: 0.48;
    pointer-events: none;
    filter: grayscale(0.3);
}

.login-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 11, 18, 0.36);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow: hidden;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    background: rgba(10, 15, 22, 0.12);
}

.login-panel::before {
    content: "\f3ed";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: clamp(7rem, 18vw, 18rem);
    color: rgba(255, 255, 255, 0.06);
    filter: blur(1.2px);
    pointer-events: none;
    z-index: 0;
}

.login-side {
    position: relative;
    overflow: hidden;
    opacity: 0.9;
}

.login-side-blue {
    background: linear-gradient(180deg, rgba(22, 47, 94, 0.9), rgba(11, 19, 31, 0.94));
}

.login-side-red {
    background: linear-gradient(180deg, rgba(74, 18, 20, 0.9), rgba(18, 9, 12, 0.96));
}

.login-side::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.88;
    animation: sirenPulse 1.3s ease-in-out infinite alternate;
}

.login-side-blue::before {
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.7) 45%, transparent 100%);
}

.login-side-red::before {
    background: linear-gradient(90deg, transparent 0%, rgba(239, 68, 68, 0.7) 45%, transparent 100%);
    animation-delay: 0.8s;
}

@keyframes sirenPulse {
    0% {
        transform: translateX(-12%);
        opacity: 0.25;
    }
    100% {
        transform: translateX(12%);
        opacity: 0.9;
    }
}

.login-card {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100% - 42px));
    background: rgba(10, 17, 25, 0.66);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 28px 26px 22px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1;
}

.login-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c7d4ea;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.69rem;
    letter-spacing: 1.5px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.login-brand-mark {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(216, 183, 106, 0.2), rgba(73, 160, 255, 0.12));
    border: 1px solid rgba(216, 183, 106, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 20px 35px rgba(73, 160, 255, 0.12);
    color: #edf4ff;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.login-brand-mark span {
    transform: translateX(2px);
}

.login-card h1 {
    font-size: clamp(1.8rem, 2vw, 2.3rem);
    color: #edf4ff;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.login-card p {
    color: #a7b8ce;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
}

.discord-login-btn {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(59, 130, 246, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.discord-login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 22px 36px rgba(59, 130, 246, 0.26);
}

.login-footer {
    display: block;
    margin-top: 18px;
    color: #8ea5c0;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.04);
    transform: translateX(3px);
}
.menu-item:hover i { transform: scale(1.12); }
.menu-item.active {
    background: linear-gradient(90deg, rgba(73, 160, 255, 0.16), rgba(216, 183, 106, 0.08));
    border: 1px solid rgba(73, 160, 255, 0.35);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(216, 183, 106, 0.08), 0 12px 24px rgba(13, 23, 35, 0.4);
}
.menu-item.active::before {
    background: linear-gradient(180deg, var(--gold), var(--blue));
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 26px 34px 30px;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 18, 29, 0.65), rgba(8, 13, 20, 0.88));
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(13, 22, 31, 0.9), rgba(18, 27, 35, 0.8));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 8px 12px 8px 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 24px rgba(0,0,0,0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-profile.hidden {
    display: none;
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 10px 18px rgba(73, 160, 255, 0.16);
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.user-role {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 2px;
    white-space: nowrap;
}

.user-meta strong {
    font-size: 0.89rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.user-meta small {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 2px;
}

.header-badge,
.header-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
}

.header-badge {
    background: linear-gradient(135deg, rgba(216, 183, 106, 0.12), rgba(73, 160, 255, 0.08));
    border-color: rgba(216, 183, 106, 0.2);
    color: var(--gold-soft);
}

.header-status {
    color: var(--success);
}

.btn-discord {
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 45%, #a97d2b 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #101a27;
    padding: 11px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.28s ease;
    box-shadow: 0 10px 24px rgba(216, 183, 106, 0.22);
}
.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(216, 183, 106, 0.28);
}

.dashboard-panel {
    flex: 1;
    background: linear-gradient(180deg, rgba(9, 15, 24, 0.86), rgba(13, 19, 29, 0.96));
    border-radius: 22px;
    border: 1px solid var(--line);
    padding: 26px 28px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.dashboard-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--blue), transparent);
}

.panel-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.03em;
}
.panel-desc {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 0.88rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.inner-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}
.inner-content::-webkit-scrollbar { width: 6px; }
.inner-content::-webkit-scrollbar-thumb { background: rgba(216, 183, 106, 0.2); border-radius: 10px; }

.info-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(7,11,18,0.12));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.info-card h3 {
    font-size: 1.08rem;
    color: var(--gold-soft);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #dfeaf9;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(5, 10, 18, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 9px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.role-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(11,17,27,0.26));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 112px;
}

.role-label {
    color: var(--gold-soft);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-weight: 700;
}

.role-card:nth-child(3n + 1) .role-label {
    color: #8dccff;
}

.role-card:nth-child(3n + 2) .role-label {
    color: #f3d788;
}

.role-card:nth-child(3n + 3) .role-label {
    color: #a7f0d0;
}

.role-name {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.45;
}

.role-card small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.code-item {
    background: rgba(10, 15, 24, 0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 110px;
}

.code-item.accent-blue { border-left-color: var(--blue); }
.code-item.accent-red { border-left-color: var(--danger); }
.code-item.accent-gold { border-left-color: var(--gold); }
.code-item.accent-slate { border-left-color: #7aa0c9; }

.code-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(73,160,255,0.12);
    color: var(--gold-soft);
    font-size: 0.67rem;
    letter-spacing: 1px;
    font-weight: 800;
}

.code-item strong {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
}

.code-item small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.mdt-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 620px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.form-group label {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.form-group input, .form-group select, .form-group textarea {
    background: rgba(6, 12, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: rgba(73, 160, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(73, 160, 255, 0.14);
}
.btn-submit {
    background: linear-gradient(135deg, #44a5ff, #234fc2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(28, 79, 195, 0.28);
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(28, 79, 195, 0.35);
}

.welcome-box {
    text-align: center;
    color: var(--muted);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(11,17,27,0.18));
    padding: 46px 28px;
    border-radius: 18px;
    border: 1px dashed rgba(216, 183, 106, 0.22);
    margin: auto;
    max-width: 480px;
    box-shadow: inset 0 0 18px rgba(73, 160, 255, 0.03);
}
.welcome-box i {
    font-size: 52px;
    color: var(--gold-soft);
    margin-bottom: 16px;
    text-shadow: 0 0 18px rgba(216, 183, 106, 0.2);
}
.welcome-box h2 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.25rem;
}
.welcome-box p {
    font-size: 0.85rem;
    line-height: 1.6;
}