/* ===========================
   Panel Page - Premium Dashboard Experience
   Using main brand color (blue) - NOT accent (purple)
   Target: 90+ UX Score
   =========================== */

/* === Page Container === */
.panel-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(40, 85, 202, 0.06), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(40, 85, 202, 0.04), transparent 45%),
        linear-gradient(165deg, #fafbff 0%, #f4f7ff 35%, #f0f4ff 60%, #eef2ff 100%);
    padding: clamp(1rem, 3vw, 2rem);
    color: var(--color-text-primary);
}

body.dark-theme .panel-page {
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(123, 168, 255, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(40, 85, 202, 0.08), transparent 45%),
        linear-gradient(165deg, #070d18 0%, #0b1426 45%, #0a1220 100%);
}

/* === Welcome Header === */
.panel-welcome {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 20px;
    border: 1px solid rgba(40, 85, 202, 0.1);
    backdrop-filter: blur(12px);
    box-shadow:
        0 4px 24px rgba(40, 85, 202, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

body.dark-theme .panel-welcome {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(123, 168, 255, 0.15);
}

.panel-welcome__greeting {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.panel-welcome__title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.panel-welcome__subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.panel-welcome__quick-stats {
    display: flex;
    gap: 1.5rem;
}

.panel-quick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(40, 85, 202, 0.08), rgba(255, 255, 255, 0.8));
    border-radius: 14px;
    border: 1px solid rgba(40, 85, 202, 0.12);
}

body.dark-theme .panel-quick-stat {
    background: linear-gradient(135deg, rgba(123, 168, 255, 0.12), rgba(40, 85, 202, 0.08));
    border-color: rgba(123, 168, 255, 0.15);
}

.panel-quick-stat__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-blue-primary);
}

body.dark-theme .panel-quick-stat__value {
    color: var(--color-primary);
}

.panel-quick-stat__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
}

/* === Admin Layout === */
.panel-admin {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    margin-top: 0;
}

/* === Sidebar Navigation === */
.panel-admin__nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.03);
    align-self: start;
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    backdrop-filter: blur(8px);
}

body.dark-theme .panel-admin__nav {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.panel-admin__nav-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-tertiary);
    padding: 0 0.5rem;
    margin-bottom: 0.25rem;
}

.panel-admin__nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: none;
    background: transparent;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.panel-admin__nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--brand-blue-primary), var(--brand-blue-dark));
    border-radius: 0 4px 4px 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-admin__nav-item .material-icons {
    font-size: 22px;
    color: var(--color-text-tertiary);
    transition: all 0.25s ease;
}

.panel-admin__nav-item:hover {
    background: var(--neutral-100);
    color: var(--color-text-primary);
}

body.dark-theme .panel-admin__nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.panel-admin__nav-item:hover .material-icons {
    color: var(--brand-blue-primary);
}

.panel-admin__nav-item.is-active {
    background: linear-gradient(135deg, rgba(40, 85, 202, 0.1), rgba(40, 85, 202, 0.06));
    color: var(--brand-blue-dark);
    box-shadow: 0 2px 8px rgba(40, 85, 202, 0.1);
}

body.dark-theme .panel-admin__nav-item.is-active {
    background: linear-gradient(135deg, rgba(123, 168, 255, 0.15), rgba(40, 85, 202, 0.1));
    color: var(--color-primary);
}

.panel-admin__nav-item.is-active::before {
    transform: translateY(-50%) scaleY(1);
}

.panel-admin__nav-item.is-active .material-icons {
    color: var(--brand-blue-primary);
}

body.dark-theme .panel-admin__nav-item.is-active .material-icons {
    color: var(--color-primary);
}

/* === Nav Badge/Count === */
.panel-admin__nav-badge {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 85, 202, 0.1);
    color: var(--brand-blue-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
}

body.dark-theme .panel-admin__nav-badge {
    background: rgba(123, 168, 255, 0.15);
    color: var(--color-primary);
}

/* === Content Area === */
.panel-admin__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

/* === Panel Section === */
.panel-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
}

body.dark-theme .panel-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.panel-section.is-hidden {
    display: none;
}

.panel-section--flush {
    padding: 1.5rem 0;
    box-shadow: none;
    background: transparent;
    border: none;
}

/* === Section Header === */
.panel-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.panel-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    background: var(--neutral-100);
    color: var(--neutral-600);
    border-radius: 999px;
    border: 1px solid var(--neutral-200);
}

body.dark-theme .panel-section__badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
}

.panel-section__badge--pill {
    background: linear-gradient(135deg, rgba(40, 85, 202, 0.08), rgba(40, 85, 202, 0.04));
    color: var(--brand-blue-primary);
    border-color: rgba(40, 85, 202, 0.15);
}

body.dark-theme .panel-section__badge--pill {
    background: linear-gradient(135deg, rgba(123, 168, 255, 0.12), rgba(123, 168, 255, 0.08));
    color: var(--color-primary);
    border-color: rgba(123, 168, 255, 0.2);
}

.panel-section__header h2,
.panel-section__header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

.panel-section__lead {
    color: var(--color-text-secondary);
    margin-top: 0.35rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.panel-section__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Manifest List === */
.manifest-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.manifest-load-more {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.manifest-load-more .btn {
    min-width: 180px;
}

/* === Manifest Card - Premium Design === */
.manifest-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

body.dark-theme .manifest-card {
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

.manifest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue-primary), var(--brand-blue-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.manifest-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(40, 85, 202, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(40, 85, 202, 0.12);
}

.manifest-card:hover::before {
    opacity: 1;
}

.manifest-card:focus-visible {
    outline: 3px solid var(--brand-blue-primary);
    outline-offset: 2px;
}

.manifest-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.manifest-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.manifest-card__description {
    color: var(--color-text-secondary);
    line-height: 1.55;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manifest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--neutral-100);
}

body.dark-theme .manifest-meta {
    border-color: rgba(255, 255, 255, 0.06);
}

.manifest-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: var(--neutral-50);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
}

body.dark-theme .manifest-meta__item {
    background: rgba(255, 255, 255, 0.05);
}

.manifest-meta__item .material-icons {
    font-size: 16px;
    color: var(--brand-blue-primary);
}

body.dark-theme .manifest-meta__item .material-icons {
    color: var(--color-primary);
}

/* === Manifest Card Actions === */
.manifest-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.manifest-card:hover .manifest-card__actions {
    opacity: 1;
    transform: translateY(0);
}

.manifest-card__action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.manifest-card__action--view {
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-dark));
    color: white;
}

.manifest-card__action--view:hover {
    box-shadow: 0 4px 12px rgba(40, 85, 202, 0.3);
}

.manifest-card__action--edit {
    background: var(--neutral-100);
    color: var(--color-text-primary);
}

body.dark-theme .manifest-card__action--edit {
    background: rgba(255, 255, 255, 0.1);
}

.manifest-card__action--edit:hover {
    background: var(--neutral-200);
}

body.dark-theme .manifest-card__action--edit:hover {
    background: rgba(255, 255, 255, 0.15);
}

.manifest-card__action .material-icons {
    font-size: 16px;
}

/* === Badge Styles === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.badge--success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border-color: #a7f3d0;
}

body.dark-theme .badge--success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge--neutral {
    background: var(--neutral-100);
    color: var(--neutral-600);
    border-color: var(--neutral-200);
}

body.dark-theme .badge--neutral {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

.badge--warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fcd34d;
}

body.dark-theme .badge--warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge--accent {
    background: linear-gradient(135deg, rgba(40, 85, 202, 0.08), rgba(40, 85, 202, 0.04));
    color: var(--brand-blue-primary);
    border-color: rgba(40, 85, 202, 0.15);
}

body.dark-theme .badge--accent {
    background: rgba(123, 168, 255, 0.12);
    color: var(--color-primary);
    border-color: rgba(123, 168, 255, 0.2);
}

/* === Profile Hero - Enhanced === */
.profile-hero {
    background: linear-gradient(135deg,
            rgba(40, 85, 202, 0.06) 0%,
            rgba(40, 85, 202, 0.04) 50%,
            rgba(40, 85, 202, 0.02) 100%);
    border: 1px solid rgba(40, 85, 202, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    box-shadow:
        0 4px 20px rgba(40, 85, 202, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

body.dark-theme .profile-hero {
    background: linear-gradient(135deg,
            rgba(123, 168, 255, 0.12) 0%,
            rgba(40, 85, 202, 0.08) 50%,
            rgba(123, 168, 255, 0.04) 100%);
    border-color: rgba(123, 168, 255, 0.15);
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(40, 85, 202, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.profile-hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 2px solid rgba(40, 85, 202, 0.15);
    display: grid;
    place-items: center;
    font-size: 2.25rem;
    color: var(--color-text-primary);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(40, 85, 202, 0.12);
    position: relative;
}

body.dark-theme .profile-hero__avatar {
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
}

.profile-hero__avatar .profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-hero__info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-hero__info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-hero__meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    opacity: 0.8;
}

.profile-hero__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.profile-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* === Chip Component === */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--neutral-200);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    backdrop-filter: blur(4px);
}

body.dark-theme .chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.chip--accent {
    background: linear-gradient(135deg, rgba(40, 85, 202, 0.1), rgba(40, 85, 202, 0.05));
    border-color: rgba(40, 85, 202, 0.15);
    color: var(--brand-blue-primary);
}

body.dark-theme .chip--accent {
    background: rgba(123, 168, 255, 0.12);
    border-color: rgba(123, 168, 255, 0.2);
    color: var(--color-primary);
}

/* === Profile Columns Layout === */
.profile-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

/* === Profile Card === */
.profile-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

body.dark-theme .profile-card {
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

.profile-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-card__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
}

.profile-card__header h4 {
    font-size: 1.1rem;
    margin-top: 0.25rem;
    font-weight: 700;
}

.profile-card--side {
    height: 100%;
}

/* === Profile Badge === */
.profile-badge {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.dark-theme .profile-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.profile-badge--inactive {
    background: var(--neutral-100);
    color: var(--neutral-600);
    border-color: var(--neutral-300);
}

body.dark-theme .profile-badge--inactive {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-tertiary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* === Profile Grid === */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.profile-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--neutral-100);
    border-radius: 14px;
    background: var(--neutral-50);
    transition: all 0.2s ease;
}

body.dark-theme .profile-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.profile-item:hover {
    border-color: rgba(40, 85, 202, 0.15);
    box-shadow: 0 2px 8px rgba(40, 85, 202, 0.06);
}

.profile-item .material-icons {
    font-size: 20px;
    color: var(--brand-blue-primary);
    background: rgba(40, 85, 202, 0.08);
    padding: 0.4rem;
    border-radius: 10px;
}

body.dark-theme .profile-item .material-icons {
    background: rgba(123, 168, 255, 0.12);
    color: var(--color-primary);
}

.profile-item__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
}

.profile-item__value {
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

/* === Profile Links === */
.profile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 0;
}

.profile-links li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-100);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-theme .profile-links li {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.profile-links li:hover {
    background: rgba(40, 85, 202, 0.06);
    border-color: rgba(40, 85, 202, 0.12);
    transform: translateX(4px);
}

body.dark-theme .profile-links li:hover {
    background: rgba(123, 168, 255, 0.08);
    border-color: rgba(123, 168, 255, 0.15);
}

.profile-links .material-icons {
    font-size: 20px;
    color: var(--brand-blue-primary);
}

body.dark-theme .profile-links .material-icons {
    color: var(--color-primary);
}

/* === Profile Stats Card === */
.profile-stats-card {
    margin-top: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

body.dark-theme .profile-stats-card {
    background: linear-gradient(145deg, rgba(20, 30, 50, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

.profile-stats__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-stats__header h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-stats__link {
    color: var(--brand-blue-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-stats__link:hover {
    color: var(--brand-blue-dark);
}

body.dark-theme .profile-stats__link {
    color: var(--color-primary);
}

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

/* === Profile Stat Item - Gamification Enhanced === */
.profile-stat {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--neutral-50) 0%, #ffffff 100%);
    border: 1px solid var(--neutral-100);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

body.dark-theme .profile-stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

.profile-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 85, 202, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.profile-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(40, 85, 202, 0.15);
    box-shadow: 0 4px 16px rgba(40, 85, 202, 0.08);
}

.profile-stat:hover::before {
    opacity: 1;
}

.profile-stat .material-icons {
    font-size: 24px;
    color: var(--brand-blue-primary);
    background: linear-gradient(135deg, rgba(40, 85, 202, 0.1), rgba(40, 85, 202, 0.05));
    padding: 0.6rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(40, 85, 202, 0.12);
}

body.dark-theme .profile-stat .material-icons {
    background: linear-gradient(135deg, rgba(123, 168, 255, 0.15), rgba(123, 168, 255, 0.08));
    color: var(--color-primary);
}

.profile-stat__label {
    color: var(--color-text-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-stat__value {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

/* === Highlight Grid === */
.panel-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* === Highlight Card - Inspiration Cards === */
.panel-highlight-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #fafbff 40%, #f5f8ff 100%);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .panel-highlight-card {
    background: linear-gradient(165deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

.panel-highlight-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 12px 32px rgba(40, 85, 202, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.panel-highlight-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(40, 85, 202, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.panel-highlight-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.panel-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-dark));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(40, 85, 202, 0.25);
}

.panel-pill .material-icons {
    font-size: 14px;
    color: white;
}

.panel-pill--light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-secondary);
    border: 1px solid var(--neutral-200);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

body.dark-theme .panel-pill--light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.panel-highlight-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-dark));
    color: white;
    box-shadow:
        0 8px 24px rgba(40, 85, 202, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 0.75rem;
}

.panel-highlight-card__icon .material-icons {
    font-size: 28px;
    color: white;
}

.panel-highlight-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.panel-highlight-card__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.panel-highlight-card__body p {
    color: var(--color-text-secondary);
    line-height: 1.55;
    font-size: 0.9rem;
    margin-bottom: auto;
}

.panel-highlight-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-tertiary);
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--neutral-100);
}

body.dark-theme .panel-highlight-card__meta {
    border-color: rgba(255, 255, 255, 0.06);
}

.panel-highlight-card__meta .material-icons {
    font-size: 16px;
    color: var(--brand-blue-primary);
}

body.dark-theme .panel-highlight-card__meta .material-icons {
    color: var(--color-primary);
}

/* === Button Variants === */
.btn-ghost--faded {
    border: 1px solid var(--neutral-200);
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

body.dark-theme .btn-ghost--faded {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-ghost--faded:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
    color: var(--color-text-primary);
}

body.dark-theme .btn-ghost--faded:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === Empty State === */
.panel-empty {
    padding: 3rem 2rem;
    border: 2px dashed var(--neutral-200);
    border-radius: 20px;
    text-align: center;
    color: var(--color-text-secondary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(250, 251, 255, 0.6));
}

body.dark-theme .panel-empty {
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.5), rgba(20, 30, 50, 0.3));
    border-color: rgba(255, 255, 255, 0.1);
}

.panel-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(40, 85, 202, 0.1), rgba(40, 85, 202, 0.05));
    border-radius: 20px;
    display: grid;
    place-items: center;
}

body.dark-theme .panel-empty__icon {
    background: linear-gradient(135deg, rgba(123, 168, 255, 0.15), rgba(123, 168, 255, 0.08));
}

.panel-empty__icon .material-icons {
    font-size: 32px;
    color: var(--brand-blue-primary);
}

body.dark-theme .panel-empty__icon .material-icons {
    color: var(--color-primary);
}

.panel-empty strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.panel-empty p {
    max-width: 320px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.panel-empty__cta {
    margin-top: 0.5rem;
}

/* === Loading State === */
.panel-loading {
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 251, 255, 0.8));
    border: 1px solid var(--neutral-100);
}

body.dark-theme .panel-loading {
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.5), rgba(20, 30, 50, 0.4));
    border-color: rgba(255, 255, 255, 0.06);
}

.panel-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--brand-blue-primary);
    border-radius: 999px;
    animation: panel-spin 0.8s linear infinite;
}

body.dark-theme .panel-loading .spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
}

@keyframes panel-spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Error State === */
.panel-error {
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: linear-gradient(135deg, #fff1f2, #fee2e2);
    border: 1px solid #fecdd3;
    color: #9f1239;
}

body.dark-theme .panel-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.panel-error .material-icons {
    font-size: 24px;
    color: #e11d48;
    flex-shrink: 0;
}

body.dark-theme .panel-error .material-icons {
    color: #fb7185;
}

.panel-error strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* === Skeleton Loading === */
.skeleton {
    background: linear-gradient(90deg,
            var(--neutral-100) 25%,
            var(--neutral-200) 50%,
            var(--neutral-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

body.dark-theme .skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 180px;
    border-radius: 18px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text--short {
    width: 60%;
}

/* === Utility Classes === */
.is-hidden {
    display: none !important;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .panel-admin {
        grid-template-columns: 220px 1fr;
        gap: 1rem;
    }

    .profile-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .panel-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-admin {
        grid-template-columns: 1fr;
    }

    .panel-admin__nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem;
    }

    .panel-admin__nav-title {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .panel-admin__nav-item {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
        justify-content: center;
    }

    .panel-admin__nav-item::before {
        display: none;
    }

    .profile-hero {
        grid-template-columns: auto 1fr;
    }

    .profile-hero__actions {
        justify-content: flex-start;
        grid-column: 1 / -1;
    }

    .panel-welcome {
        flex-direction: column;
        text-align: center;
    }

    .panel-welcome__quick-stats {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .panel-page {
        padding: 0.75rem;
    }

    .panel-section {
        padding: 1rem;
        border-radius: 18px;
    }

    .manifest-list {
        grid-template-columns: 1fr;
    }

    .panel-highlight-card,
    .manifest-card {
        padding: 1rem;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-hero__avatar {
        margin: 0 auto;
    }

    .profile-hero__tags {
        justify-content: center;
    }

    .profile-hero__actions {
        justify-content: center;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .panel-welcome__quick-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .panel-quick-stat {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .panel-admin__nav-item {
        min-width: 100%;
    }
}

/* === Print Styles === */
@media print {
    .panel-page {
        background: white;
    }

    .panel-admin__nav,
    .panel-welcome__quick-stats,
    .manifest-card__actions,
    .panel-highlight-grid {
        display: none;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {

    .manifest-card,
    .panel-highlight-card,
    .profile-stat,
    .profile-item,
    .profile-links li {
        transition: none;
    }

    .manifest-card:hover,
    .panel-highlight-card:hover {
        transform: none;
    }

    .skeleton {
        animation: none;
    }

    .panel-loading .spinner {
        animation-duration: 1.5s;
    }
}

/* === High Contrast Mode === */
@media (prefers-contrast: high) {

    .manifest-card,
    .panel-section,
    .profile-card {
        border-width: 2px;
        border-color: var(--color-text-primary);
    }

    .badge,
    .chip,
    .panel-pill {
        border-width: 2px;
    }
}

/* === Focus Visible States === */
.panel-admin__nav-item:focus-visible,
.manifest-card:focus-visible,
.profile-links li:focus-visible {
    outline: 3px solid var(--brand-blue-primary);
    outline-offset: 2px;
}

body.dark-theme .panel-admin__nav-item:focus-visible,
body.dark-theme .manifest-card:focus-visible,
body.dark-theme .profile-links li:focus-visible {
    outline-color: var(--color-primary);
}