﻿:root {
    --bg-base: #f1eeff;
    --bg-alt: #ece6ff;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-soft: rgba(124, 104, 255, 0.12);
    --surface-highlight: rgba(124, 104, 255, 0.18);
    --border: rgba(124, 104, 255, 0.18);
    --white: #ffffff;
    --primary: #6e4cff;
    --primary-soft: #8d6dff;
    --text-main: #241b52;
    --text-muted: #7160d7;
    --text-soft: #9388c9;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --shadow: 0 28px 60px rgba(112, 97, 255, 0.18);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

span#toastMessage {
    color: white;
}

main {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

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

.link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.muted {
    color: var(--text-soft);
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 0 auto;
    padding-block: 0rem;
}

#loginForm {
    width: 100%;
}

.auth-wrapper.single-card .auth-card,
.auth-wrapper.single-card .two-step-card {
    max-width: 420px;
    width: 100%;
}

.auth-card,
.two-step-card,
.dashboard-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 28px;
    padding: 24px 32px;
    box-shadow: 0 25px 55px rgba(94, 61, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.auth-card::after,
.two-step-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(148, 114, 255, 0.35);
    pointer-events: none;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.6rem;
}

.step-pill span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.auth-card h2,
.two-step-card h2 {
    font-size: 2rem;
    color: #1e1e49;
    margin-bottom: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

label {
    font-size: 0.95rem;
    color: #6961a2;
}

input,
select,
textarea {
    border: none;
    background: rgba(148, 114, 255, 0.08);
    padding: 0.95rem 1.1rem;
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
    color: #1e1e49;
    outline: 2px solid transparent;
    transition: var(--transition);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(94, 61, 255, 0.35);
    box-shadow: 0 18px 35px rgba(94, 61, 255, 0.18);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 24px 42px rgba(94, 61, 255, 0.45);
}

.primary-btn.compact {
    width: auto;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    box-shadow: 0 16px 28px rgba(94, 61, 255, 0.32);
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.78rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(112, 82, 255, 0.4);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ghost-btn:hover {
    background: rgba(112, 82, 255, 0.12);
    border-color: rgba(112, 82, 255, 0.55);
}

.ghost-btn:focus-visible,
.primary-btn:focus-visible {
    outline: 2px solid rgba(94, 61, 255, 0.6);
    outline-offset: 2px;
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.text-btn {
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: #f04764;
    color: #fff !important;
    font-weight: 600;
    border: 1px solid rgba(240, 71, 100, 0.6);
    transition: var(--transition);
}

.logout-link:hover,
.logout-link:focus-visible {
    background: #d9324c;
    border-color: rgba(217, 50, 76, 0.8);
    color: #fff;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    cursor: pointer;
    color: var(--text-soft);
    transition: color var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(94, 61, 255, 0.4);
    border-radius: 999px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: inline;
}

.error-msg,
.success-msg {
    margin-top: 0.5rem;
    font-size: 0.92rem;
}

.error-msg {
    color: #ff4d6d;
}

.success-msg {
    color: #2f9e44;
}

.code-inputs {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
}

.code-inputs input {
    width: 62px;
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 0.35rem;
    background: rgba(148, 114, 255, 0.12);
}

.two-step-card p {
    color: #6f68a2;
    margin-bottom: 1.4rem;
}

.ranking-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.ranking-section .section-title,
.ranking-section .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.ranking-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    padding: clamp(1.2rem, 4vw, 2rem) clamp(1rem, 3vw, 1.6rem);
    border-radius: 22px;
    color: #1b1243;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(120deg, #fdf2ff, #fce9d2);

}

.ranking-card.rank-1 {
    background: linear-gradient(120deg, #ff914d, #ff4e88);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.ranking-card.rank-2 {
    background: linear-gradient(120deg, #ffe259, #ffa751);
    color: #4a2600;
}

.ranking-card.rank-3 {
    background: linear-gradient(120deg, #b4ec51, #429321);
    color: #0f3700;
}

.ranking-card.rank-default {
    background: linear-gradient(120deg, #eef2ff, #f7f2ff);
}

.ranking-card .rank-number {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
}

.ranking-card.rank-1 .rank-number,
.ranking-card.rank-2 .rank-number,
.ranking-card.rank-3 .rank-number {
    color: inherit;
}

.rank-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-user img {
    width: clamp(52px, 10vw, 72px);
    height: clamp(52px, 10vw, 72px);
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.rank-user h4 {
    margin-bottom: 0.2rem;
}

.rank-stats {
    margin-top: 0.4rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ranking-card.rank-2 .stat-chip,
.ranking-card.rank-3 .stat-chip,
.ranking-card.rank-default .stat-chip {
    color: #4c2b00;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
    border-color: rgba(255, 255, 255, 0.6);
}

.stat-chip strong {
    font-size: 0.95rem;
}

.rank-score {
    text-align: right;
}

.rank-score span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    margin-bottom: 0.2rem;
    opacity: 0.65;
}

.rank-score strong {
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.ranking-wrapper {
    width: min(960px, 100%);
    margin: 0 auto;
}

.ranking-page-content {
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .user-nav {
        position: relative;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.2rem;
        border-radius: 0 0 32px 32px;
        box-shadow: 0 10px 30px rgba(111, 93, 255, 0.22);
        gap: 1rem;
    }

    .sidebar nav,
    .user-nav-dropdown {
        display: flex;
        gap: 0.6rem;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .sidebar nav a,
    .user-nav-dropdown nav a {
        padding: 0.55rem 1rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .main-panel {
        padding: 1.4rem 1rem 2rem;
    }

    .ranking-card {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
        gap: 0.8rem;
    }

    .rank-score {
        align-self: flex-start;
        text-align: right;
    }

    .ranking-card .rank-number {
        font-size: 2rem;
    }

    .stat-chip {
        padding: 0.3rem 0.9rem;
        font-size: 0.75rem;
    }

    .viewer-pill {
        display: none;
    }

    .ranking-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ranking-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rank-user {
        flex-direction: column;
    }

    .rank-score {
        text-align: center;
    }

    .rank-user img {
        width: 70px;
        height: 70px;
    }
}

.ranking-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    background: linear-gradient(115deg, #6d5dfc, #b067ff);
    color: #fff;
    box-shadow: 0 30px 60px rgba(109, 93, 252, 0.25);
}

.ranking-hero .muted {
    color: rgba(255, 255, 255, 0.9);
}

.ranking-hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ranking-hero .ghost-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.ranking-hero .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.viewer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.viewer-pill img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.viewer-pill small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.ranking-section--page {
    margin-top: 0rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    border: 1px dashed rgba(112, 82, 255, 0.35);
}

/* ========= App Shell ========= */
.app-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    border: none;
}

.sidebar {
    position: relative;
    background: linear-gradient(180deg, #6e4cff 0%, #875dff 100%);
    padding: 22px 18px;
    display: flex;

    flex-direction: column;
    border: 0;
    gap: 10px;
    color: #f6f1ff;
}

.sidebar .brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #f7f3ff;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0.5rem 0;
}

.sidebar .brand img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
}

.sidebar-user strong {
    display: block;
    font-size: 1rem;
}

.sidebar-user span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar nav a {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.sidebar nav a.active,
.sidebar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.sidebar nav .logout-link {
    margin-top: auto;
    justify-self: flex-end;
}

.user-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.user-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.2rem 0.75rem 0.2rem 0.3rem;
    background: rgba(12, 6, 46, 0.3);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 24px rgba(35, 21, 85, 0.25);
}

.user-menu-toggle:hover {
    background: rgba(12, 6, 46, 0.45);
}

.user-menu-toggle__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.user-menu-toggle svg {
    transition: transform 0.25s ease;
}

.sidebar.user-nav.is-open .user-menu-toggle svg {
    transform: rotate(180deg);
}

.user-nav-dropdown {
    width: 100%;
}

.user-nav-dropdown nav {
    width: 100%;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-panel {
    padding: 32px 40px;
    justify-content: start;
    display: flex;
    flex-direction: column;
    align-items: self-start;
    gap: 2rem;
    background: linear-gradient(180deg, #f8f6ff 0%, #f3f0ff 100%);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: clamp(1.9rem, 2.3vw, 2.5rem);
}

.page-header .eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    color: var(--text-soft);
    margin-bottom: 0.4rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-actions .primary-btn,
.header-actions .ghost-btn {
    width: auto;
}

.header-actions .ghost-btn {
    background: rgba(148, 114, 255, 0.08);
}

.ghost-btn.compact {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.08rem;
    background: rgba(112, 82, 255, 0.12);
    color: var(--primary);
    text-transform: uppercase;
}

.badge.soft {
    background: rgba(112, 82, 255, 0.16);
    color: var(--primary);
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.card {
    background: var(--surface);
    border-radius: 10px;
    padding: 24px 28px;
    border: 1px solid #a5a5a540;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.card h3 {
    font-size: 1.15rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.card-grid.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.card-grid.dashboard-grid .card {
    min-width: 0;
    width: 100%;
    max-width: 320px;
}

.card-grid .card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #a5a5a540;
}

.card-grid.dashboard-grid .card {
    padding: 28px 32px;
    text-align: left;
}

.card .label {
    font-size: 0.75rem;
    color: #8b7ed0;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 600;
}

.card-grid.dashboard-grid .card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0.4rem 0;
    line-height: 1.2;
}

.card-grid.dashboard-grid .card small {
    color: #7483bb;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 0.6rem;
}

.table-responsive .data-table {
    min-width: 760px;
}

.split-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(124, 108, 255, 0.12), rgba(255, 134, 190, 0.15));
}

.profile-hero__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(19, 32, 74, 0.18);
}

.profile-hero__info h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #1a1a2e;
}

.profile-hero__info p {
    margin: 0.15rem 0 0.5rem;
    color: #7483bb;
    font-weight: 600;
}

.profile-hero__info .honor-chip.large {
    font-size: 0.95rem;
    padding: 0.35rem 1rem;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-honor-card {
    min-height: 160px;
}

.edit-window-card h3 {
    font-size: 1.4rem;
    margin: 0.2rem 0;
}

.profile-hero__meta,
.profile-hero__contact {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.profile-hero__meta span,
.profile-hero__contact span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: #8b97cb;
    margin-bottom: 0.2rem;
}

.profile-hero__meta strong,
.profile-hero__contact strong {
    font-size: 1rem;
    color: #1a1a2e;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.profile-edit-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-edit-note {
    color: #7483bb;
    font-size: 0.85rem;
    margin: 0;
}

.profile-page input[disabled],
.profile-page input[disabled]:hover {
    cursor: not-allowed;
    color: #4f5888;
    background: rgba(116, 131, 187, 0.08);
    border-color: rgba(116, 131, 187, 0.2);
}

.profile-page #profileEditToggle[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-admin-shell .profile-toolbar {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-admin-shell .profile-toolbar .ghost-btn {
    background: #fff;
    border: 1px solid rgba(124, 108, 255, 0.2);
    min-width: 160px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-admin-shell .profile-toolbar .ghost-btn:hover {
    transform: translateY(-1px);
}

.modal-body>label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.admin-profile-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    border: 1px solid rgba(124, 108, 255, 0.2);
    border-radius: 24px;
    padding: 1.8rem;
}

.admin-profile-card__avatar img {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(124, 108, 255, 0.2);
}

.admin-profile-card__body h2 {
    margin: 0;
}

.admin-profile-card__body span {
    color: #7483bb;
}

.admin-profile-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-profile-card__honor {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    color: #1a1a2e;
}

.admin-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.admin-profile-grid .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    margin-bottom: 0.15rem;
    color: #8b97cb;
}

.profile-admin-shell .modal-body label {
    display: block;
    margin-bottom: 1rem;
}

.profile-admin-shell .modal-body input[type="text"],
.profile-admin-shell .modal-body input[type="email"],
.profile-admin-shell .modal-body input[type="password"],
.profile-admin-shell .modal-body input[type="file"] {
    width: 100%;
    margin-top: 0.35rem;
}

.admin-profile-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.insight-card {
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 108, 255, 0.2);
}

.insight-card h4 {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
    color: #1a1a2e;
}

@media (max-width: 680px) {
    .admin-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-profile-card__header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .profile-admin-shell .profile-toolbar {
        flex-direction: column;
    }
}

.profile-page .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-page .form-actions button {
    width: auto;
}

.profile-page #profileEditToggle {
    width: auto;
}

@media (max-width: 680px) {
    .profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-hero__meta,
    .profile-hero__contact {
        grid-column: 1 / -1;
    }

    .profile-hero__avatar img {
        margin: 0 auto;
    }
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-card label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-card input,
.form-card select,
.form-card textarea {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid #a5a5a540;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: 2px solid rgba(124, 108, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.16);
}

.form-card .primary-btn {
    width: auto;
    align-self: flex-start;
    padding-inline: 1.8rem;
}

.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    font-size: 0.92rem;
}

.alert.success {
    background: rgba(61, 217, 178, 0.12);
    border: 1px solid rgba(61, 217, 178, 0.4);
    color: var(--text-main);
}

.alert.error {
    background: rgba(255, 84, 120, 0.12);
    border: 1px solid rgba(255, 84, 120, 0.35);
    color: var(--text-main);
}

/* Announcement Alert */
.announcement-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: #fff5e6;
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.announcement-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff9800;
    border-radius: 50%;
    color: white;
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.4rem;
}

.announcement-message {
    font-size: 0.9rem;
    color: #4a4a5e;
    margin: 0;
    line-height: 1.5;
}

.announcement-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0;
}

.announcement-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a2e;
}

@media (max-width: 680px) {
    .announcement-alert {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .announcement-icon {
        width: 32px;
        height: 32px;
    }

    .announcement-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table thead {
    background: rgba(112, 82, 255, 0.08);
}

.data-table thead th {
    color: #5a4aca;
    font-weight: 700;
    letter-spacing: 0.05rem;
}

.data-table th,
.data-table td {
    padding: 0.85rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(124, 104, 255, 0.12);
}

.data-table tbody tr:nth-child(odd) {
    background: rgba(248, 245, 255, 0.7);
}

.data-table tbody tr:hover {
    background: rgba(124, 104, 255, 0.16);
}

.data-table strong {
    font-weight: 600;
}

.inline {
    display: inline;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.action-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-soft);
    width: 32px;
    height: 32px;
}

.action-icon:hover {
    background: rgba(124, 108, 255, 0.1);
    color: var(--primary);
    transform: scale(1.1);
}

.action-icon.view-icon:hover {
    background: rgba(61, 178, 255, 0.1);
    color: #3db2ff;
}

.action-icon.edit-icon:hover {
    background: rgba(249, 185, 73, 0.1);
    color: #f9b949;
}

.action-icon.delete-icon:hover {
    background: rgba(255, 84, 120, 0.1);
    color: var(--danger);
}

.action-icon svg {
    width: 16px;
    height: 16px;
}

.text-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    transition: var(--transition);
    text-decoration: underline;
}

.text-btn:hover {
    opacity: 0.8;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: #3c2f80;
    background: rgba(112, 82, 255, 0.18);
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #a56e0b;
}

.status-badge.in-progress {
    background: rgba(104, 182, 255, 0.18);
    color: #2160b5;
}

.status-badge.completed,
.status-badge.approved {
    background: rgba(52, 211, 153, 0.18);
    color: #147a52;
}

.status-badge.rejected {
    background: rgba(248, 113, 113, 0.2);
    color: #c13434;
}

.status-badge.missed,
.status-badge.danger {
    background: rgba(244, 67, 54, 0.18);
    color: #c13434;
}

.status-badge.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #a86b00;
}

.status-badge.not-submitted {
    background: rgba(112, 82, 255, 0.1);
    color: var(--text-soft);
}

.status-badge.neutral {
    background: rgba(112, 82, 255, 0.12);
    color: #4b3aa8;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.status-chip.pending {
    background: rgba(249, 185, 73, 0.18);
    color: #fdd785;
}

.status-chip.in-progress {
    background: rgba(61, 178, 255, 0.18);
    color: #7fd0ff;
}

.status-chip.completed {
    background: rgba(61, 217, 178, 0.18);
    color: #8ff0d3;
}

.timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.timeline li {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.project-block {
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 114, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-block .task-mini {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.project-block .task-mini li {
    display: grid;
    grid-template-columns: 0.7fr 1.2fr auto;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.muted-card {
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.kanban {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Onboarding Horizontal Scroll Layout */
.onboarding-scroll {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.onboarding-scroll::-webkit-scrollbar {
    height: 8px;
}

.onboarding-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.onboarding-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 114, 255, 0.3);
    border-radius: 4px;
}

.onboarding-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 114, 255, 0.5);
}

.onboarding-project-card {
    min-width: 320px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: auto;
    align-self: flex-start;
}

.onboarding-card-header {
    padding: 1rem 1.25rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.onboarding-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.onboarding-card-header .total-tasks {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.95;
}

.onboarding-tasks-list {
    padding: 1rem;
    display: flex;
    border: 1px solid #a5a5a540;
    flex-direction: column;
    gap: 0.75rem;
}

.onboarding-task-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 0.75rem;
}

.onboarding-task-item.task-assigned {
    background: rgba(148, 114, 255, 0.08);
    border-color: rgba(148, 114, 255, 0.2);
}

.onboarding-task-item.task-other {
    background: rgba(0, 0, 0, 0.02);
    opacity: 0.7;
}

.task-number {
    font-weight: 700;
    font-size: 1rem;
    color: #667eea;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.task-title {
    font-size: 0.95rem;
    color: #1a1a2e;
    flex: 1;
}

.task-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.task-status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #f57c00;
}

.task-status-badge.in-progress {
    background: rgba(59, 130, 246, 0.2);
    color: #1976d2;
}

.task-status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #388e3c;
}

.task-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.task-desc {
    font-size: 0.85rem;
    color: #4a4a4a;
    line-height: 1.4;
}

.task-meta-split {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
}

.task-meta-left,
.task-meta-right {
    flex: 1;
}

.task-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.task-meta-item {
    color: #666;
}

.task-meta-item strong {
    color: #333;
    font-weight: 600;
}

.task-doc-link {
    margin-top: 0.25rem;
}

.task-doc-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.task-doc-link a:hover {
    text-decoration: underline;
}

.task-rejection {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    border-left: 3px solid #f44336;
}

.task-rejection strong {
    color: #f44336;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.task-rejection p {
    color: #1a1a2e;
    font-size: 0.85rem;
    margin: 0;
}

.task-minimal {
    margin-top: 0.25rem;
}

.muted-text {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.kanban-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(148, 114, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.task-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 114, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.task-card.highlight {
    border-color: rgba(94, 61, 255, 0.55);
    box-shadow: 0 14px 28px rgba(94, 61, 255, 0.2);
}

.task-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.note {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    min-width: 260px;
    max-width: 320px;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: rgba(13, 18, 34, 0.95);
    color: var(--text-main);
    box-shadow: 0 20px 40px rgba(10, 14, 32, 0.55);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast--error {
    border-left: 4px solid var(--danger);
}

.toast--success {
    border-left: 4px solid var(--success);
}

.toast button {
    border: none;
    background: #00000000;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2vh 1.5rem;
    z-index: 1000;
    overflow-y: auto;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.65);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: 90vh;
    background: #ffffff;
    border: 1px solid rgba(148, 114, 255, 0.2);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(112, 97, 255, 0.25);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    overflow: hidden;
}

.modal.is-open .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(148, 114, 255, 0.1);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.35rem;
    color: #1a1a2e;
    font-weight: 700;
}

.modal-close {
    border: none;
    background: transparent;
    color: #8b7ed0;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(148, 114, 255, 0.1);
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    flex: 1;
    padding: 28px 32px;
    min-height: 0;
    max-height: calc(90vh - 180px);
    scroll-behavior: smooth;
}

.modal form::-webkit-scrollbar {
    width: 6px;
}

.modal form::-webkit-scrollbar-track {
    background: #f8f6ff;
    border-radius: 10px;
}

.modal form::-webkit-scrollbar-thumb {
    background: rgba(148, 114, 255, 0.3);
    border-radius: 10px;
}

.modal form::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 114, 255, 0.5);
}

.modal #viewUserContent {
    overflow-y: auto;
    flex: 1;
    padding: 0 32px;
    min-height: 0;
    max-height: calc(90vh - 180px);
    scroll-behavior: smooth;
}

.modal #viewUserContent::-webkit-scrollbar {
    width: 6px;
}

.modal #viewUserContent::-webkit-scrollbar-track {
    background: #f8f6ff;
    border-radius: 10px;
}

.modal #viewUserContent::-webkit-scrollbar-thumb {
    background: rgba(148, 114, 255, 0.3);
    border-radius: 10px;
}

.modal #viewUserContent::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 114, 255, 0.5);
}

.modal #viewUserContent .view-user-details {
    padding: 28px 0;
}

.modal .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.2rem;
}

.modal .form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #7483bb;
    font-weight: 600;
}

.modal .form-grid label input,
.modal .form-grid label select,
.modal .form-grid label textarea {
    background: #f8f6ff;
    border: 1px solid rgba(148, 114, 255, 0.2);
    color: #1a1a2e;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.modal .form-grid label input::placeholder,
.modal .form-grid label textarea::placeholder {
    color: #a5a5a5;
}

.modal .form-grid label input:focus,
.modal .form-grid label select:focus,
.modal .form-grid label textarea:focus {
    outline: 2px solid rgba(124, 108, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.16);
}

.modal .actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 20px 32px;
    border-top: 1px solid rgba(148, 114, 255, 0.1);
    flex-shrink: 0;
    margin-top: 0;
}

.modal .actions .ghost-btn,
.modal .actions .primary-btn {
    width: auto;
}

.view-user-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.view-user-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 114, 255, 0.2);
}

.view-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(148, 114, 255, 0.2);
}

.view-user-header h4 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: #1a1a2e;
    font-weight: 700;
}

.view-user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 114, 255, 0.15);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.9rem;
    color: #7483bb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.info-value {
    font-size: 0.95rem;
    color: #1a1a2e;
    font-weight: 500;
}

.honor-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(124, 108, 255, 0.15);
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.85rem;
}

.honor-chip.small {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
}

.honor-chip.danger {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.honor-score-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.honor-score-stats {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.honor-score-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a2e;
}

.honor-score-total {
    color: #7483bb;
    font-weight: 600;
}

.honor-score-progress {
    height: 8px;
    background: rgba(124, 108, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.honor-score-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c6cff, #ff7fb0);
}

.blocked-page {
    background: radial-gradient(circle at top, rgba(124, 108, 255, 0.15), rgba(20, 30, 60, 0.95));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.blocked-wrapper {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.blocked-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    width: min(480px, 100%);
    text-align: center;
    box-shadow: 0 40px 80px rgba(21, 40, 124, 0.2);
}

.blocked-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 1rem;
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blocked-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media (max-width: 1280px) {
    .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 190px minmax(0, 1fr);
        margin: 0;
        border-radius: 0;
    }

    .sidebar {
        padding: 28px 22px;
    }

    .main-panel {
        padding: 28px 24px;
    }

    .card-grid.dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        gap: 1.2rem;
    }

    .card-grid.dashboard-grid .card {
        max-width: 100%;
    }

    .user-menu-toggle {
        display: inline-flex;
    }

    .sidebar.user-nav .user-nav-dropdown nav {
        display: none;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 20px 40px rgba(23, 7, 68, 0.35);
        backdrop-filter: blur(14px);
        animation: dropdownFade 0.18s ease;
    }

    .sidebar.user-nav.is-open .user-nav-dropdown nav {
        display: flex;
    }

    .sidebar.user-nav nav a {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 880px) {
    .app-shell {
        grid-template-columns: 100%;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(148, 114, 255, 0.12);
    }

    .sidebar nav {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .sidebar nav a {
        flex: 1;
        justify-content: center;
    }

    .sidebar.user-nav {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: none;
        border-right: none;
    }

    .sidebar.user-nav nav {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .sidebar.user-nav nav a {
        flex: initial;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .app-shell {
        margin: 0;
    }

    .auth-wrapper.single-card .auth-card,
    .auth-wrapper.single-card .two-step-card {
        max-width: 90vw;
        width: 100%;
    }

    .auth-card,
    .two-step-card {
        padding: 1.8rem;
    }

    .main-panel {
        padding: 24px 18px;
    }

    .modal {
        padding: 4vh 1rem;
    }

    .modal-dialog {
        padding: 24px 20px;
    }

    .modal .form-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .card-grid.dashboard-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1rem;
    }

    .card-grid.dashboard-grid .card {
        max-width: 100%;
        padding: 24px 28px;
    }
}