.fas,
.far,
.fal,
.fab {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-book-open:before { content: "\f02d"; }
.fa-building-columns:before { content: "\f19c"; }
.fa-calendar-check:before { content: "\f274"; }
.fa-calendar-star:before { content: "\f073"; }
.fa-chair:before { content: "\f1b2"; }
.fa-chart-line:before { content: "\f201"; }
.fa-chart-pie:before { content: "\f200"; }
.fa-check-double:before { content: "\f00c"; }
.fa-church:before { content: "\f0f7"; }
.fa-clipboard-list:before { content: "\f0ea"; }
.fa-clock:before { content: "\f017"; }
.fa-cross:before { content: "\f067"; }
.fa-file-excel:before { content: "\f1c3"; }
.fa-file-invoice-dollar:before { content: "\f0f6"; }
.fa-file-pdf:before { content: "\f1c1"; }
.fa-hand-holding-dollar:before,
.fa-hand-holding-usd:before,
.fa-wallet:before { content: "\f0d6"; }
.fa-hand-holding-heart:before { content: "\f004"; }
.fa-hard-hat:before { content: "\f132"; }
.fa-house:before { content: "\f015"; }
.fa-pen:before { content: "\f040"; }
.fa-right-left:before { content: "\f0ec"; }
.fa-shield-alt:before { content: "\f132"; }
.fa-store:before { content: "\f290"; }
.fa-trash-alt:before { content: "\f1f8"; }
.fa-user-check:before { content: "\f058"; }
.fa-user-group:before,
.fa-users-viewfinder:before { content: "\f0c0"; }
.fa-user-lock:before { content: "\f023"; }
.fa-user-shield:before { content: "\f132"; }
.fa-water:before { content: "\f043"; }

:root {
    --font-ui: 'Manrope', 'Segoe UI', sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;

    --ui-bg: #f4efe8;
    --ui-bg-2: #ece5da;
    --ui-surface: rgba(255, 251, 245, 0.8);
    --ui-surface-strong: #fffdfa;
    --ui-surface-soft: #f9f4ed;
    --ui-border: rgba(71, 57, 43, 0.1);
    --ui-border-strong: rgba(71, 57, 43, 0.16);
    --ui-text: #1f1812;
    --ui-text-soft: #6d6257;
    --ui-text-faint: #9f9385;
    --ui-primary: #b0885a;
    --ui-primary-2: #6e5640;
    --ui-secondary: #617384;
    --ui-success: #4a775d;
    --ui-warning: #b27a37;
    --ui-danger: #bc5d56;
    --ui-shadow: 0 30px 80px rgba(43, 32, 22, 0.1);
    --ui-shadow-soft: 0 16px 42px rgba(43, 32, 22, 0.06);
    --ui-radius: 32px;
    --ui-radius-md: 24px;
    --ui-radius-sm: 18px;
    --ui-radius-xs: 14px;
    --ui-glow: 0 0 28px rgba(176, 136, 90, 0.2);

    --sidebar-width: 308px;
    --sidebar-bg: #18130f;
    --sidebar-surface: rgba(255, 250, 243, 0.06);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --nav-item-hover: rgba(255, 248, 240, 0.07);
    --text-cyan: #e3c08d;
}

html[data-app-theme="sable"] {
    --ui-bg: #efe3d2;
    --ui-bg-2: #e2d1bc;
    --ui-surface: rgba(255, 248, 239, 0.88);
    --ui-surface-strong: #fff9f2;
    --ui-surface-soft: #f5eadc;
    --ui-border: rgba(90, 61, 30, 0.12);
    --ui-border-strong: rgba(90, 61, 30, 0.18);
    --ui-text: #22170e;
    --ui-text-soft: #7b6550;
    --ui-text-faint: #ab937c;
    --ui-primary: #cb9350;
    --ui-primary-2: #8f6130;
    --ui-secondary: #7b8ca4;
    --ui-success: #6d8451;
    --ui-warning: #d18d3f;
    --ui-danger: #c66a53;
    --ui-glow: 0 0 28px rgba(203, 147, 80, 0.24);
    --text-cyan: #ffd59d;
}

html[data-app-theme="cedre"] {
    --ui-bg: #dce7de;
    --ui-bg-2: #cad7cc;
    --ui-surface: rgba(244, 250, 245, 0.84);
    --ui-surface-strong: #f8fdf8;
    --ui-surface-soft: #eef6ef;
    --ui-border: rgba(29, 67, 48, 0.12);
    --ui-border-strong: rgba(29, 67, 48, 0.18);
    --ui-text: #102017;
    --ui-text-soft: #54705e;
    --ui-text-faint: #86a291;
    --ui-primary: #2f8f66;
    --ui-primary-2: #235c45;
    --ui-secondary: #4c7d74;
    --ui-success: #3f8f5c;
    --ui-warning: #b78b42;
    --ui-danger: #b45f57;
    --ui-glow: 0 0 28px rgba(47, 143, 102, 0.24);
    --text-cyan: #9de9c3;
}

body.admin-modern {
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at 0% 0%, rgba(176, 136, 90, 0.11), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(97, 115, 132, 0.08), transparent 24%),
        linear-gradient(180deg, #faf6f0 0%, var(--ui-bg) 55%, var(--ui-bg-2) 100%);
    color: var(--ui-text);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

body.admin-modern.sidebar-open {
    overflow: hidden;
}

.admin-modern .text-cyan {
    color: var(--text-cyan) !important;
}

.admin-modern .text-muted {
    color: var(--ui-text-soft) !important;
}

.admin-modern .min-w-0 {
    min-width: 0;
}

.admin-modern a,
.admin-modern button {
    transition: all 0.2s ease;
}

.admin-modern .content-body {
    flex: 1;
    padding: clamp(1rem, 2vw, 1.5rem) 1rem 1.5rem 0;
}

.admin-modern .content-body > .container,
.admin-modern .content-body > .container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-modern .main-panel-custom {
    margin-left: calc(var(--sidebar-width) + 1.75rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.admin-modern .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}

.admin-modern .card,
.admin-modern .surface-card,
.admin-modern .metric-card {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 244, 0.78));
    box-shadow: var(--ui-shadow-soft);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.admin-modern .card-header,
.admin-modern .card-footer {
    background: rgba(255, 251, 247, 0.56);
    border-color: var(--ui-border);
}

.admin-modern .card-header {
    padding: 1rem 1.25rem;
}

.admin-modern .card-footer {
    padding: 1rem 1.25rem;
}

.admin-modern .card-body {
    padding: 1.15rem 1.25rem;
}

.admin-modern .alert {
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: var(--ui-shadow-soft);
}

.admin-modern .alert-success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.16);
    color: #166534;
}

.admin-modern .alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.16);
    color: #991b1b;
}

.admin-modern .alert-warning {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.18);
    color: #92400e;
}

.admin-modern .table {
    margin-bottom: 0;
}

.admin-modern .table > :not(caption) > * > * {
    border-color: rgba(71, 57, 43, 0.08);
    vertical-align: middle;
}

.admin-modern .table thead th,
.admin-modern .table-modern thead th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ui-text-soft);
    font-weight: 800;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.admin-modern .table tbody td,
.admin-modern .table-modern tbody td {
    color: var(--ui-text);
}

.admin-modern .table-hover tbody tr:hover {
    background: rgba(176, 136, 90, 0.05);
}

.admin-modern .table-light,
.admin-modern .table-light > :not(caption) > * > * {
    background: rgba(249, 244, 237, 0.82);
}

.admin-modern .btn {
    border-radius: 16px;
    font-weight: 700;
    min-height: 46px;
    padding-inline: 1.1rem;
    box-shadow: none;
    letter-spacing: -0.01em;
}

.admin-modern .btn-sm {
    min-height: auto;
    border-radius: 14px;
}

.admin-modern .btn-primary,
.admin-modern .btn-success,
.admin-modern .btn-danger,
.admin-modern .btn-warning {
    border: none;
}

.admin-modern .btn-primary {
    background: linear-gradient(135deg, #1d1814, #3d2f22);
    color: #fff;
}

.admin-modern .btn-success {
    background: linear-gradient(135deg, #4a775d, #335744);
}

.admin-modern .btn-danger {
    background: linear-gradient(135deg, #d16d66, var(--ui-danger));
}

.admin-modern .btn-warning {
    background: linear-gradient(135deg, #d39a54, var(--ui-warning));
    color: #fff;
}

.admin-modern .btn-outline-primary,
.admin-modern .btn-outline-success,
.admin-modern .btn-outline-danger,
.admin-modern .btn-outline-dark,
.admin-modern .btn-outline-info {
    border-width: 1px;
    background: rgba(255, 251, 245, 0.74);
    border-color: rgba(71, 57, 43, 0.12);
}

.admin-modern .btn-light {
    background: rgba(255, 251, 247, 0.88);
    border: 1px solid var(--ui-border);
    color: var(--ui-text);
}

.admin-modern .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(43, 32, 22, 0.08);
}

.admin-modern .form-control,
.admin-modern .form-select,
.admin-modern .input-group-text {
    border-radius: 16px;
    border-color: rgba(71, 57, 43, 0.12);
    min-height: 50px;
    background: rgba(255, 252, 248, 0.88);
    color: var(--ui-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.admin-modern textarea.form-control {
    min-height: 110px;
}

.admin-modern .form-control:focus,
.admin-modern .form-select:focus {
    border-color: rgba(176, 136, 90, 0.48);
    box-shadow: 0 0 0 0.22rem rgba(176, 136, 90, 0.12);
}

.admin-modern .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ui-text-soft);
    margin-bottom: 0.45rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.admin-modern .input-group-text {
    background: rgba(249, 244, 237, 0.9);
    color: var(--ui-text-soft);
}

.admin-modern .modal-content {
    border-radius: 30px;
    border: 1px solid var(--ui-border);
    box-shadow: 0 34px 70px rgba(32, 24, 17, 0.18);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 238, 0.96));
}

.admin-modern .modal-header {
    border-bottom-color: var(--ui-border);
    padding: 1.1rem 1.35rem;
}

.admin-modern .modal-footer {
    border-top-color: var(--ui-border);
    padding: 1rem 1.35rem 1.2rem;
}

.admin-modern .badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-modern .badge.bg-primary-subtle,
.admin-modern .badge.bg-soft-primary {
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--ui-primary) !important;
}

.admin-modern .badge.bg-success-subtle,
.admin-modern .badge.bg-soft-success {
    background: rgba(22, 163, 74, 0.12) !important;
    color: var(--ui-success) !important;
}

.admin-modern .badge.bg-danger-subtle,
.admin-modern .badge.bg-soft-danger {
    background: rgba(220, 38, 38, 0.12) !important;
    color: var(--ui-danger) !important;
}

.admin-modern .badge.bg-warning-subtle,
.admin-modern .badge.bg-soft-warning {
    background: rgba(217, 119, 6, 0.14) !important;
    color: var(--ui-warning) !important;
}

.admin-modern .badge.bg-info-subtle,
.admin-modern .badge.bg-soft-info {
    background: rgba(6, 182, 212, 0.12) !important;
    color: #0891b2 !important;
}

.admin-modern .badge.bg-soft-secondary {
    background: rgba(148, 163, 184, 0.16) !important;
    color: #475569 !important;
}

.admin-modern .pagination .page-link {
    border-radius: 14px;
    margin: 0 3px;
    border-color: var(--ui-border);
    color: var(--ui-text-soft);
    background: rgba(255, 251, 245, 0.72);
}

.admin-modern .pagination .active > .page-link {
    background: linear-gradient(135deg, #1d1814, #3d2f22);
    border-color: transparent;
    color: #fff;
}

.admin-modern .progress {
    background: #e2e8f0;
    border-radius: 999px;
}

.admin-modern .dropdown-menu {
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.1);
}

.login-modern {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(176, 136, 90, 0.2), transparent 26%),
        radial-gradient(circle at bottom right, rgba(97, 115, 132, 0.12), transparent 24%),
        linear-gradient(180deg, #1a1511 0%, #201914 58%, #110e0c 100%);
}

.login-modern .glass-panel {
    background: rgba(255, 251, 245, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(14px);
}

.login-modern,
.auth-modern {
    margin: 0;
    font-family: var(--font-ui);
    color: #fff;
}

.auth-shell {
    width: min(1240px, calc(100% - 2.5rem));
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2.25rem) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: clamp(1rem, 2vw, 1.35rem);
    align-items: center;
}

.auth-aside,
.auth-panel {
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(9, 7, 5, 0.28);
}

.auth-aside {
    position: relative;
    padding: clamp(1.75rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(145deg, #1b1510 0%, #2b221a 56%, #705339 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-aside::after {
    content: '';
    position: absolute;
    inset: auto -12% -18% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(10px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.auth-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: rgba(255, 245, 230, 0.12);
    border: 1px solid rgba(227, 192, 141, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.auth-kicker,
.auth-panel__kicker {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
}

.auth-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.auth-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.6vw, 3.65rem);
    line-height: 0.95;
    font-weight: 700;
    max-width: 11ch;
    margin: 0;
    letter-spacing: -0.04em;
}

.auth-copy {
    margin-top: 1rem;
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.8);
}

.auth-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.auth-stat {
    min-width: 150px;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 248, 240, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-stat__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.auth-stat__value {
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 800;
}

.auth-panel {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(250, 245, 238, 0.96));
    border: 1px solid rgba(71, 57, 43, 0.08);
    backdrop-filter: blur(18px);
    color: var(--ui-text);
}

.auth-panel__header {
    margin-bottom: 1.5rem;
}

.auth-panel__kicker {
    color: var(--ui-primary);
}

.auth-panel__title {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.auth-panel__copy {
    margin-top: 0.7rem;
    color: var(--ui-text-soft);
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ui-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(71, 57, 43, 0.12);
    background: rgba(255, 251, 246, 0.88);
    color: var(--ui-text);
    padding: 0.9rem 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: var(--ui-text-faint);
}

.auth-input:focus {
    border-color: rgba(176, 136, 90, 0.52);
    box-shadow: 0 0 0 0.22rem rgba(176, 136, 90, 0.12);
}

.auth-password-field {
    position: relative;
}

.auth-password-field .auth-input {
    padding-right: 7rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(61, 47, 34, 0.08);
    color: var(--ui-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: rgba(61, 47, 34, 0.14);
    color: var(--ui-text);
    outline: none;
}

.auth-hint {
    font-size: 0.82rem;
    color: var(--ui-text-faint);
}

.auth-input--code {
    text-align: center;
    letter-spacing: 0.32em;
    font-size: 1.05rem;
    font-weight: 800;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ui-text-soft);
    font-size: 0.92rem;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
    border: 0;
    background: linear-gradient(135deg, #1d1814, #3d2f22);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(43, 32, 22, 0.22);
}

.auth-link {
    color: var(--ui-primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-link:hover {
    color: var(--ui-text);
}

.auth-note {
    margin-top: 1rem;
    color: var(--ui-text-soft);
    font-size: 0.9rem;
}

.auth-alert {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 0.92rem;
}

.auth-alert--danger {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(188, 93, 86, 0.18);
    color: #8e3f39;
}

.auth-alert--success {
    background: rgba(74, 119, 93, 0.1);
    border-color: rgba(74, 119, 93, 0.16);
    color: #31503f;
}

.auth-error {
    color: var(--ui-danger);
    font-size: 0.85rem;
    margin-top: -0.15rem;
}

.auth-illustration {
    width: min(320px, 100%);
    height: 320px;
    margin-top: 1.5rem;
}

.auth-illustration--compact {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
}

/* -------------------------------------------------------------------------- */
/* Shared page system                                                         */
/* -------------------------------------------------------------------------- */
.admin-modern .page-shell,
.admin-modern .dashboard-shell,
.admin-modern .editor-shell {
    max-width: 1600px;
    margin: 0 auto;
}

.admin-modern .dashboard-shell {
    --hero-from: #18130f;
    --hero-mid: #2f251d;
    --hero-to: #7d6145;
}

.admin-modern .dashboard-shell--pasteur {
    --hero-mid: #243a28;
    --hero-to: #5f7251;
}

.admin-modern .dashboard-shell--membre {
    --hero-mid: #223241;
    --hero-to: #60717f;
}

.admin-modern .dashboard-shell--secretariat {
    --hero-mid: #2b3437;
    --hero-to: #707f81;
}

.admin-modern .hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    padding: clamp(1.55rem, 2.3vw, 2.2rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 55%, var(--hero-to) 100%);
    color: #fff;
    box-shadow: 0 28px 72px rgba(28, 21, 15, 0.2);
}

.admin-modern .hero-panel::after {
    content: '';
    position: absolute;
    inset: auto 1.5rem 1.1rem auto;
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 235, 208, 0.7), transparent);
}

.admin-modern .hero-panel__eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(250, 233, 209, 0.72);
}

.admin-modern .hero-panel__title {
    font-family: var(--font-display);
    font-size: clamp(2.45rem, 3.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-top: 0.35rem;
    line-height: 0.94;
}

.admin-modern .hero-panel__description {
    color: rgba(247, 238, 227, 0.74);
    max-width: 66ch;
    margin-top: 0.95rem;
    font-size: 0.96rem;
}

.admin-modern .hero-panel__stat-label {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 233, 212, 0.62);
    font-weight: 700;
}

.admin-modern .hero-panel__stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 0.28rem;
}

.admin-modern .page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(71, 57, 43, 0.08);
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--ui-shadow-soft);
}

.admin-modern .page-heading__content {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
}

.admin-modern .page-heading__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(176, 136, 90, 0.14), rgba(97, 115, 132, 0.08));
    color: var(--ui-primary-2);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.admin-modern .page-heading__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ui-primary);
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.admin-modern .page-heading__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 2.4vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    margin: 0;
    line-height: 0.96;
}

.admin-modern .page-heading__subtitle {
    color: var(--ui-text-soft);
    margin: 0.5rem 0 0;
    max-width: 70ch;
    font-size: 0.95rem;
}

.admin-modern .page-heading__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-modern .page-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-modern .page-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-modern .metric-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 1.3rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 246, 240, 0.82));
    --metric-accent: var(--ui-primary);
}

.admin-modern .metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 1.3rem;
    width: 82px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--metric-accent), transparent 100%);
    opacity: 0.96;
}

.admin-modern .metric-card--primary::after {
    --metric-accent: var(--ui-primary);
}

.admin-modern .metric-card--success::after {
    --metric-accent: var(--ui-success);
}

.admin-modern .metric-card--danger::after {
    --metric-accent: var(--ui-danger);
}

.admin-modern .metric-card--warning::after {
    --metric-accent: var(--ui-warning);
}

.admin-modern .metric-card--info::after {
    --metric-accent: var(--ui-secondary);
}

.admin-modern .metric-card--dark::after {
    --metric-accent: #1f1812;
}

.admin-modern .metric-card__label {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ui-text-soft);
    font-weight: 800;
    margin-top: 0.25rem;
}

.admin-modern .metric-card__value {
    font-size: clamp(1.6rem, 2.2vw, 2.05rem);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0.5rem;
}

.admin-modern .metric-card__meta {
    font-size: 0.9rem;
    color: var(--ui-text-soft);
    margin-top: 0.7rem;
    max-width: 34ch;
}

.admin-modern .metric-card--primary .metric-card__value {
    color: var(--ui-primary-2);
}

.admin-modern .metric-card--success .metric-card__value {
    color: var(--ui-success);
}

.admin-modern .metric-card--danger .metric-card__value {
    color: var(--ui-danger);
}

.admin-modern .metric-card--warning .metric-card__value {
    color: var(--ui-warning);
}

.admin-modern .metric-card--info .metric-card__value {
    color: var(--ui-secondary);
}

.admin-modern .metric-card--dark .metric-card__value {
    color: var(--ui-text);
}

.admin-modern .surface-card {
    padding: 1.25rem;
}

.admin-modern .surface-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-modern .surface-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.admin-modern .surface-card__copy {
    font-size: 0.9rem;
    color: var(--ui-text-soft);
    margin: 0.35rem 0 0;
}

.admin-modern .ui-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.82rem;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-modern .ui-pill--primary {
    background: rgba(37, 99, 235, 0.12);
    color: var(--ui-primary);
}

.admin-modern .ui-pill--success {
    background: rgba(22, 163, 74, 0.12);
    color: var(--ui-success);
}

.admin-modern .ui-pill--danger {
    background: rgba(220, 38, 38, 0.12);
    color: var(--ui-danger);
}

.admin-modern .ui-pill--warning {
    background: rgba(217, 119, 6, 0.14);
    color: var(--ui-warning);
}

.admin-modern .ui-pill--dark {
    background: rgba(31, 24, 18, 0.08);
    color: var(--ui-text);
}

.admin-modern .inline-avatar {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(176, 136, 90, 0.16), rgba(255, 255, 255, 0.9));
    color: var(--ui-primary-2);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.admin-modern .form-stage {
    border: 1px solid rgba(71, 57, 43, 0.08);
    border-radius: 24px;
    padding: 1.15rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(250, 245, 238, 0.9) 100%);
}

.admin-modern .form-stage__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.35rem;
}

.admin-modern .form-stage__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(176, 136, 90, 0.12);
    color: var(--ui-primary-2);
    flex-shrink: 0;
}

.admin-modern .form-stage__title {
    font-weight: 800;
    color: var(--ui-text);
}

.admin-modern .form-stage__copy {
    color: var(--ui-text-soft);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.admin-modern .info-note {
    border-radius: 20px;
    background: rgba(249, 244, 237, 0.82);
    border: 1px solid rgba(71, 57, 43, 0.08);
    padding: 1rem;
}

.admin-modern .info-note__label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ui-text-soft);
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.admin-modern .summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-radius: 22px;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, #1d1814, #382c20);
    color: #fff;
}

.admin-modern .sticky-panel {
    position: sticky;
    top: 96px;
}

.admin-modern .search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-modern .result-card {
    height: 100%;
    padding: 1.15rem;
}

.admin-modern .result-card__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-modern .result-card__count {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--ui-primary-2);
    background: rgba(176, 136, 90, 0.14);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
}

.admin-modern .result-entry {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(71, 57, 43, 0.08);
}

.admin-modern .result-entry:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-modern .shell-card {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 246, 240, 0.8));
    box-shadow: var(--ui-shadow-soft);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.admin-modern .shell-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.3rem;
    border-bottom: 1px solid rgba(71, 57, 43, 0.08);
    background: rgba(255, 251, 245, 0.64);
}

.admin-modern .shell-card__body {
    padding: 1.15rem 1.25rem 1.3rem;
}

.admin-modern .shell-card__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(71, 57, 43, 0.08);
    background: rgba(249, 244, 237, 0.68);
}

.admin-modern .shell-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.admin-modern .shell-card__copy {
    margin: 0.25rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.88rem;
}

.admin-modern .chart-frame {
    position: relative;
    min-height: 220px;
}

.admin-modern .chart-frame--md {
    min-height: 280px;
}

.admin-modern .chart-frame--lg {
    min-height: 340px;
}

.admin-modern .empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ui-text-soft);
}

.admin-modern .empty-state__media {
    width: 120px;
    max-width: 100%;
    margin: 0 auto 1rem;
    display: block;
    opacity: 0.78;
}

.admin-modern .table-truncate {
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-modern .segmented-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-modern .segmented-choice__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-modern .segmented-choice__label {
    min-height: 92px;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 244, 237, 0.88));
    color: var(--ui-text);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-modern .segmented-choice__label i {
    font-size: 1.1rem;
}

.admin-modern .segmented-choice__label:hover {
    transform: translateY(-1px);
    border-color: rgba(176, 136, 90, 0.28);
}

.admin-modern .segmented-choice__input:checked + .segmented-choice__label {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #1d1814, #3d2f22);
    box-shadow: 0 16px 36px rgba(43, 32, 22, 0.18);
}

.admin-modern .segmented-choice__input--danger:checked + .segmented-choice__label {
    background: linear-gradient(135deg, #d16d66, var(--ui-danger));
    box-shadow: 0 16px 36px rgba(188, 93, 86, 0.18);
}

.admin-modern .surface-card hr {
    border-color: rgba(71, 57, 43, 0.08);
    opacity: 1;
}

.admin-modern .form-hint {
    display: block;
    margin-top: 0.45rem;
    color: var(--ui-text-soft);
    font-size: 0.82rem;
}

.admin-modern .btn-white {
    background: rgba(255, 251, 245, 0.9);
    border: 1px solid rgba(71, 57, 43, 0.1);
    color: var(--ui-text);
    box-shadow: var(--ui-shadow-soft);
}

.admin-modern .btn-white:hover {
    background: #fff;
    transform: translateY(-1px);
}

.admin-modern .action-btn {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-modern .border-left-success {
    border-left: 4px solid var(--ui-success) !important;
}

.admin-modern .badge-soft-success {
    background: rgba(74, 119, 93, 0.12);
    color: #2f5540;
}

.admin-modern .badge-soft-danger {
    background: rgba(188, 93, 86, 0.12);
    color: #8a403a;
}

.admin-modern .sidebar-inline-note {
    margin: 0.75rem 0.75rem 0;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b2a598;
    font-size: 0.78rem;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                    */
/* -------------------------------------------------------------------------- */
.admin-modern .sidebar-modern {
    width: var(--sidebar-width);
    top: 1rem;
    left: 1rem;
    bottom: 1rem;
    height: calc(100vh - 2rem) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(227, 192, 141, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(24, 19, 15, 0.98) 0%, rgba(30, 24, 19, 0.98) 100%);
    border: 1px solid var(--sidebar-border);
    border-right: 1px solid var(--sidebar-border);
    border-radius: 34px;
    box-shadow: 0 34px 84px rgba(17, 12, 8, 0.28);
    z-index: 1000;
}

.admin-modern .sidebar-header {
    border-bottom: 1px solid var(--sidebar-border);
    padding-bottom: 1.6rem !important;
}

.admin-modern .sidebar-header h5 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: -0.05em;
}

.admin-modern .logo-box {
    width: 46px;
    height: 46px;
    background: rgba(227, 192, 141, 0.08);
    border: 1px solid rgba(227, 192, 141, 0.16);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-modern .badge-status {
    font-size: 0.65rem;
    color: var(--text-cyan);
    background: rgba(227, 192, 141, 0.1);
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.admin-modern .sidebar-content {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.admin-modern .menu-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #8f8275;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 1.45rem 0 0.75rem 0.95rem;
}

.admin-modern .menu-section + .menu-section {
    margin-top: 0.3rem;
}

.admin-modern .nav-item-modern {
    display: flex;
    align-items: center;
    gap: 0.88rem;
    padding: 0.92rem 1rem;
    color: #ece4d8;
    text-decoration: none;
    border-radius: 18px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.25rem;
    position: relative;
    border: 1px solid transparent;
}

.admin-modern .nav-item-modern i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--text-cyan);
}

.admin-modern .nav-item-modern:hover {
    background: var(--nav-item-hover);
    color: #fff9f1;
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.04);
}

.admin-modern .nav-item-modern.active {
    background: linear-gradient(90deg, rgba(227, 192, 141, 0.14), rgba(255, 255, 255, 0.05));
    color: #fffaf3;
    border-color: rgba(227, 192, 141, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-modern .nav-item-modern.active::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 22%;
    height: 56%;
    width: 2px;
    background: var(--text-cyan);
    border-radius: 999px;
    box-shadow: var(--ui-glow);
}

.admin-modern .nav-item-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.admin-modern .sidebar-footer {
    border-top: 1px solid var(--sidebar-border);
}

.admin-modern .profile-card {
    background: var(--sidebar-surface);
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.admin-modern .profile-card h6 {
    color: #fffaf3;
}

.admin-modern .avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #e3c08d, #a97d47);
    color: #1b1510;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.admin-modern .logout-btn {
    color: #d7b6a2;
    cursor: pointer;
}

.admin-modern .logout-btn:hover {
    color: #fff4e6;
    transform: scale(1.06);
}

/* -------------------------------------------------------------------------- */
/* Topbar                                                                     */
/* -------------------------------------------------------------------------- */
.admin-modern .navbar-premium {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 0 1.4rem;
    position: sticky;
    top: 1rem;
    z-index: 997;
    backdrop-filter: blur(18px);
    background: rgba(255, 251, 245, 0.78);
    border: 1px solid rgba(71, 57, 43, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 46px rgba(43, 32, 22, 0.07);
}

.admin-modern .topbar-toggle {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(71, 57, 43, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ui-text);
    display: none;
    align-items: center;
    justify-content: center;
}

.admin-modern .topbar-context {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.admin-modern .topbar-overline {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ui-primary);
    font-weight: 800;
}

.admin-modern .topbar-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 700;
    color: var(--ui-text);
    letter-spacing: -0.04em;
    line-height: 0.96;
}

.admin-modern .search-container {
    position: relative;
    width: min(380px, 100%);
}

.admin-modern .search-icon {
    position: absolute;
    left: 14px;
    color: var(--ui-text-faint);
    top: 50%;
    transform: translateY(-50%);
}

.admin-modern .modern-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(71, 57, 43, 0.08);
    border-radius: 18px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    color: var(--ui-text);
    font-size: 0.9rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.admin-modern .modern-search-input::placeholder {
    color: var(--ui-text-faint);
}

.admin-modern .notification-wrapper {
    position: relative;
    color: #cbd5e1;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.admin-modern .notification-dot {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #f43f5e;
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(8, 15, 28, 0.92);
}

.admin-modern .profile-layout {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--ui-text);
    padding: 0.45rem 0.7rem;
    border-radius: 18px;
    border: 1px solid transparent;
}

.admin-modern .profile-layout:hover {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(71, 57, 43, 0.08);
}

.admin-modern .avatar-box {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, rgba(176, 136, 90, 0.14), rgba(255, 255, 255, 0.84));
    border: 1px solid rgba(176, 136, 90, 0.16);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ui-primary-2);
    font-size: 0.8rem;
}

.admin-modern .user-info-horizontal {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.admin-modern .user-name {
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--ui-text);
}

.admin-modern .user-sep {
    color: rgba(71, 57, 43, 0.2);
    font-size: 0.8rem;
}

.admin-modern .user-status {
    font-size: 0.76rem;
    color: var(--ui-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-modern .nav-divider {
    width: 1px;
    height: 26px;
    background: rgba(71, 57, 43, 0.08);
}

.admin-modern .dropdown-glass-menu {
    background: rgba(255, 251, 245, 0.94);
    border: 1px solid rgba(71, 57, 43, 0.08);
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 20px 44px rgba(43, 32, 22, 0.12);
    margin-top: 0.8rem;
}

.admin-modern .dropdown-glass-menu .dropdown-item {
    color: var(--ui-text);
    font-size: 0.86rem;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
}

.admin-modern .dropdown-glass-menu .dropdown-item:hover {
    background: rgba(176, 136, 90, 0.08);
    color: var(--ui-text);
}

.admin-modern .theme-switcher {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.admin-modern .theme-switcher__label {
    color: var(--ui-text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-modern .theme-switcher__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.admin-modern .theme-chip {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ui-text-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-modern .theme-chip:hover {
    border-color: var(--ui-border-strong);
    color: var(--ui-text);
    transform: translateY(-1px);
}

.admin-modern .theme-chip.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    color: #fff;
    box-shadow: 0 14px 28px rgba(43, 32, 22, 0.14);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.admin-modern .footer-modern {
    background: transparent;
    border-top: 1px solid rgba(71, 57, 43, 0.08);
    padding: 1rem 1.25rem 1.4rem 0;
    width: 100%;
}

.admin-modern .footer-copyright {
    font-size: 0.82rem;
    color: var(--ui-text-soft);
    font-weight: 600;
}

.admin-modern .brand-accent {
    color: var(--ui-primary-2);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-modern .sep {
    margin: 0 0.45rem;
    color: rgba(100, 116, 139, 0.35);
}

.admin-modern .footer-link {
    color: var(--ui-text-soft);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    position: relative;
}

.admin-modern .footer-link:hover,
.admin-modern .text-cyan-hover:hover {
    color: var(--ui-primary-2) !important;
}

.admin-modern .footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--ui-primary);
    transition: width 0.3s ease;
}

.admin-modern .footer-link:hover::after {
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .admin-modern .search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }

    .auth-aside {
        order: 2;
    }

    .auth-title {
        max-width: none;
    }

    .admin-modern .main-panel-custom {
        margin-left: 0;
        padding: 0 0.75rem 0.75rem;
    }

    .admin-modern .sidebar-modern {
        left: 0.75rem;
        top: 0.75rem;
        bottom: 0.75rem;
        height: calc(100vh - 1.5rem) !important;
        width: min(var(--sidebar-width), calc(100vw - 1.5rem));
        transform: translateX(-104%);
        transition: transform 0.28s ease;
        box-shadow: 0 24px 54px rgba(15, 23, 42, 0.35);
    }

    body.admin-modern.sidebar-open .sidebar-modern {
        transform: translateX(0);
    }

    body.admin-modern.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-modern .topbar-toggle {
        display: inline-flex;
    }

    .admin-modern .navbar-premium {
        padding-inline: 1rem;
        top: 0.75rem;
    }

    .admin-modern .sticky-panel {
        position: static;
    }

    .admin-modern .content-body {
        padding: 1rem 0 0;
    }
}

@media (max-width: 768px) {
    .admin-modern .search-container {
        display: none;
    }

    .admin-modern .page-heading {
        padding: 1rem;
    }

    .admin-modern .page-heading__content {
        width: 100%;
    }

    .admin-modern .user-info-horizontal {
        display: none;
    }

    .admin-modern .footer-modern {
        text-align: center;
        padding: 1rem;
    }

    .admin-modern .footer-nav ul {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .auth-shell {
        width: min(100%, calc(100% - 1rem));
    }

    .auth-aside,
    .auth-panel {
        border-radius: 24px;
    }

    .admin-modern .search-results-grid {
        grid-template-columns: 1fr;
    }

    .admin-modern .hero-panel,
    .admin-modern .page-heading {
        border-radius: 22px;
    }

    .admin-modern .surface-card,
    .admin-modern .metric-card,
    .admin-modern .card {
        border-radius: 18px;
    }
}
