:root {
    --kiu-green: #006b3f;
    --kiu-green-dark: #004b2d;
    --kiu-green-deep: #073b2a;
    --kiu-green-soft: #e8f5ee;
    --kiu-gold: #f2b705;
    --kiu-gold-dark: #c98f00;
    --kiu-red: #b3261e;
    --ui-green: var(--kiu-green);

    /* =========================
       AUTH TOKENS
    ========================= */
    --admin-bg: var(--kiu-green-dark);
    --admin-bg-2: var(--kiu-green);
    --admin-panel: rgba(0, 75, 45, 0.82);
    --admin-panel-soft: rgba(255, 255, 255, 0.08);
    --admin-panel-border: rgba(255, 255, 255, 0.12);
    --admin-card: rgba(255, 255, 255, 0.92);
    --admin-card-border: rgba(0, 107, 63, 0.12);
    --admin-text: #19352b;
    --admin-text-soft: #5f7469;
    --admin-heading: #073b2a;
    --admin-accent: var(--kiu-gold);
    --admin-accent-2: #ffd95a;
    --admin-accent-dark: var(--kiu-gold-dark);
    --admin-success: #198754;
    --admin-input-bg: #ffffff;
    --admin-input-border: #dbe3ef;
    --admin-input-focus: rgba(212, 175, 55, 0.22);
    --admin-shadow-xl: 0 30px 80px rgba(0, 75, 45, 0.34);
    --admin-shadow-lg: 0 18px 40px rgba(0, 75, 45, 0.16);
    --admin-radius-xl: 34px;
    --admin-radius-lg: 24px;
    --admin-radius-md: 18px;
    --admin-radius-sm: 14px;
    --admin-transition: all 0.28s ease;
    --danger-soft: #fff1f2;
    --danger-border: #fecdd3;
    --danger-text: #7f1d1d;
    --success-soft: #ecfdf5;
    --success-border: #d1fae5;
    --success-text: #065f46;

    /* =========================
       GLOBAL INTERNAL UI TOKENS
    ========================= */
    --ui-bg: #f3f8f5;
    --ui-bg-alt: #f8fbf9;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f7fbf8;
    --ui-surface-dark: var(--kiu-green-dark);

    --ui-text: #17352a;
    --ui-text-soft: #2f594a;
    --ui-muted: #66796f;

    --ui-border: rgba(0, 107, 63, 0.10);
    --ui-border-strong: rgba(0, 107, 63, 0.18);

    --ui-shadow-sm: 0 8px 24px rgba(0, 75, 45, 0.05);
    --ui-shadow-md: 0 16px 40px rgba(0, 75, 45, 0.08);
    --ui-shadow-lg: 0 22px 48px rgba(0, 75, 45, 0.12);

    --ui-radius-xl: 24px;
    --ui-radius-lg: 18px;
    --ui-radius-md: 14px;
    --ui-radius-sm: 12px;

    --ui-transition: all 0.18s ease;

    --ui-hero-bg: linear-gradient(135deg, var(--kiu-green-dark) 0%, var(--kiu-green) 58%, #0a5138 100%);
    --ui-hero-text: #ffffff;
    --ui-hero-text-soft: rgba(255, 255, 255, 0.78);
    --ui-hero-chip-bg: rgba(255, 255, 255, 0.08);
    --ui-hero-chip-border: rgba(255, 255, 255, 0.08);

    --ui-icon-bg: var(--kiu-green);
    --ui-icon-color: #ffffff;
}

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

.admin-stat-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 128px;
    padding: 1rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
}

.admin-stat-card strong {
    color: var(--ui-text);
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 900;
}

.admin-stat-card span:last-child {
    color: var(--ui-muted);
    font-weight: 600;
}

.admin-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--kiu-green);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 107, 63, .14);
}

.admin-stat-icon i {
    color: #ffffff;
    font-size: 1.1rem;
}

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

body {
    background: var(--ui-bg);
    color: var(--ui-text);
}

/* =========================
   KIU BACKOFFICE SHELL
========================= */
.body {
    background: linear-gradient(180deg, #fbfdfb 0%, var(--ui-bg) 100%);
}

.header {
    background: #ffffff;
    border-top: 4px solid var(--kiu-green);
    border-bottom: 1px solid rgba(0, 107, 63, 0.14);
    box-shadow: 0 10px 30px rgba(0, 75, 45, 0.07);
}

.header .logo {
    margin-top: 8px;
}

.header .logo img {
    height: 44px;
}

.header .search .form-control,
.header .search .btn {
    border-color: rgba(0, 107, 63, 0.18);
}

.header .search .form-control:focus {
    border-color: rgba(0, 107, 63, 0.48);
    box-shadow: 0 0 0 0.18rem rgba(0, 107, 63, 0.10) !important;
}

.header .search .btn {
    color: var(--kiu-green);
}

.header .separator {
    background-image: linear-gradient(rgba(0, 107, 63, 0.03), rgba(0, 107, 63, 0.18), rgba(0, 107, 63, 0.03));
}

.header .toggle-sidebar-left {
    background: var(--kiu-green);
    color: #ffffff;
}

.userbox .profile-picture {
    background: var(--kiu-green-soft);
    border: 1px solid rgba(0, 107, 63, 0.18);
    color: var(--kiu-green-dark);
}

.userbox .name,
.userbox .custom-caret {
    color: var(--kiu-green-deep);
}

.userbox .role {
    color: var(--ui-muted);
}

.userbox .dropdown-menu {
    border-color: rgba(0, 107, 63, 0.12);
    box-shadow: 0 18px 42px rgba(0, 75, 45, 0.14);
}

.userbox .dropdown-menu a {
    color: var(--ui-text);
}

.userbox .dropdown-menu a:hover {
    color: var(--kiu-green);
    background: var(--kiu-green-soft);
}

.sidebar-left {
    background: linear-gradient(180deg, var(--kiu-green-dark) 0%, var(--kiu-green) 56%, #0b533b 100%);
    box-shadow: 8px 0 30px rgba(0, 75, 45, 0.16);
}

.sidebar-left .nano,
.sidebar-left .nano-content,
.sidebar-left #menu,
.sidebar-left ul.nav-main {
    background: transparent !important;
}

.sidebar-left .sidebar-header .sidebar-title {
    background: rgba(0, 75, 45, 0.76);
    color: rgba(255, 255, 255, 0.76);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-left .sidebar-header .sidebar-toggle {
    background: rgba(2, 62, 39, 0.86);
}

.sidebar-left .sidebar-header .sidebar-toggle i,
.sidebar-left .sidebar-header .sidebar-toggle:hover i {
    color: #ffffff;
}

.sidebar-left ul.nav-main {
    margin: 0;
    padding: 0.55rem 0.65rem;
}

.sidebar-left ul.nav-main > li {
    margin-bottom: 0.25rem;
}

.sidebar-left ul.nav-main li a {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    font-weight: 600;
}

.sidebar-left ul.nav-main li a i,
.sidebar-left ul.nav-main li.nav-parent > a:after {
    color: rgba(255, 255, 255, 0.74);
}

.sidebar-left ul.nav-main > li > a:hover,
.sidebar-left ul.nav-main > li > a:focus {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff;
}

.sidebar-left ul.nav-main > li.nav-expanded > a {
    background: rgba(0, 75, 45, 0.34) !important;
    color: #ffffff;
}

.sidebar-left ul.nav-main > li.nav-active > a {
    background: rgba(242, 183, 5, 0.18) !important;
    box-shadow: 4px 0 0 var(--kiu-gold) inset;
    color: #ffffff;
}

.sidebar-left ul.nav-main > li.nav-active > a:hover {
    color: #ffffff;
}

.sidebar-left ul.nav-main li.nav-active i {
    color: var(--kiu-gold);
}

.sidebar-left ul.nav-main li .nav-children {
    background: rgba(0, 75, 45, 0.36) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0.3rem 0 0.45rem;
}

.sidebar-left ul.nav-main li .nav-children li a {
    background: transparent !important;
}

.sidebar-left ul.nav-main li .nav-children li a:hover,
.sidebar-left ul.nav-main li .nav-children li a:focus {
    background: rgba(255, 255, 255, 0.10) !important;
}

.sidebar-left ul.nav-main li .nav-children li.nav-active > a {
    color: #ffffff;
    background: rgba(242, 183, 5, 0.18) !important;
}

.page-header {
    background: var(--kiu-green-dark);
    border-left-color: rgba(242, 183, 5, 0.35);
    box-shadow: 1px 3px 0 1px rgba(242, 183, 5, 0.42);
}

.page-header h2 {
    border-bottom-color: var(--kiu-gold);
}

.content-body.content-body-modern {
    background:
            radial-gradient(circle at top right, rgba(242, 183, 5, 0.09), transparent 25%),
            linear-gradient(180deg, var(--ui-bg-alt) 0%, var(--ui-bg) 100%);
}

@media only screen and (max-width: 767px) {
    .header .logo-container {
        background: #ffffff;
        border-top: 4px solid var(--kiu-green);
        border-bottom: 1px solid rgba(0, 107, 63, 0.14);
    }

    .header .header-right {
        background: #ffffff;
    }
}

/* =========================
   AUTH LAYOUT
========================= */
body.auth-page {
    margin: 0;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
            linear-gradient(135deg, rgba(0, 75, 45, 0.92), rgba(0, 107, 63, 0.80)),
            url('../../../assets/images/admin-login.jpg') no-repeat center center;
    background-size: cover;
}

body.auth-page::before,
body.auth-page::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

body.auth-page::before {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -120px;
    background: radial-gradient(circle, rgba(242, 183, 5, 0.18), transparent 70%);
    filter: blur(16px);
}

body.auth-page::after {
    width: 380px;
    height: 380px;
    right: -100px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 70%);
    filter: blur(16px);
}

.auth-shell {
    width: 100%;
    max-width: 1220px;
    position: relative;
    z-index: 1;
}

.auth-frame {
    position: relative;
    border-radius: var(--admin-radius-xl);
    overflow: hidden;
    box-shadow: var(--admin-shadow-xl);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.auth-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(135deg, rgba(255,255,255,0.04), transparent 35%),
            linear-gradient(315deg, rgba(242,183,5,0.10), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: auto;
}

.auth-brand-panel {
    position: relative;
    padding: 42px 40px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
            linear-gradient(180deg, rgba(0, 107, 63, 0.58), rgba(0, 75, 45, 0.90)),
            linear-gradient(135deg, rgba(242, 183, 5, 0.12), transparent 42%);
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.9));
    pointer-events: none;
}

.auth-brand-content,
.auth-brand-footer {
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    margin-bottom: 1.4rem;
}

.auth-brand-logo img {
    max-height: 52px;
    width: auto;
    height: auto;
    display: block;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.18);
    color: #f7deb2;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.auth-brand-badge.is-danger {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}

.auth-brand-title {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #fff;
    max-width: 560px;
}

.auth-brand-text {
    margin: 0;
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.76);
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 700px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255,255,255,0.10);
    transition: var(--admin-transition);
}

.auth-feature:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.10);
}

.auth-feature-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,0.24), rgba(212,175,55,0.10));
    color: #f6df9d;
    font-size: 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.auth-feature-icon.is-danger {
    background: linear-gradient(135deg, rgba(239,68,68,0.24), rgba(239,68,68,0.10));
    color: #fecaca;
}

.auth-feature h6 {
    margin: 0 0 0.25rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
}

.auth-feature p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.70);
}

.auth-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.68);
    font-size: 0.88rem;
}

.auth-footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    font-size: 0.76rem;
    font-weight: 600;
}

.auth-form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,255,255,0.96));
    border-left: 1px solid rgba(255,255,255,0.16);
}

.auth-form-card {
    width: 100%;
    max-width: 460px;
    border-radius: 28px;
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--admin-card-border);
    box-shadow: var(--admin-shadow-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--admin-accent), var(--admin-accent-2));
}

.auth-form-card.is-danger::before {
    background: linear-gradient(90deg, #ef4444, #fca5a5);
}

.auth-card-header {
    margin-bottom: 1.4rem;
}

.auth-card-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    background: rgba(0, 107, 63, 0.08);
    border: 1px solid rgba(0, 107, 63, 0.10);
    color: var(--kiu-green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.auth-card-eyebrow.is-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.auth-card-title {
    margin: 0 0 0.45rem;
    color: var(--admin-heading);
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.auth-card-subtitle {
    margin: 0;
    color: var(--admin-text-soft);
    font-size: 0.85rem;
    line-height: 1.35;
}

.auth-main-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    font-size: 2rem;
}

.auth-alert,
.auth-alert-noscript {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.auth-alert-warning,
.auth-alert-noscript {
    background: #fff7db;
    color: #8a6500;
    border: 1px solid rgba(212, 175, 55, 0.20);
}

.auth-alert-danger {
    background: var(--danger-soft);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.auth-alert-success {
    background: var(--success-soft);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7fbf8;
    border: 1px solid rgba(0, 107, 63, 0.10);
    color: var(--kiu-green);
    z-index: 2;
    transition: var(--admin-transition);
}

.auth-form-control {
    width: 100%;
    height: 54px;
    border-radius: 18px;
    border: 1px solid var(--admin-input-border);
    background: var(--admin-input-bg);
    padding: 0.95rem 3.4rem 0.95rem 4.3rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--admin-text);
    box-shadow: none;
    transition: var(--admin-transition);
}

.auth-form-control::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.auth-form-control:focus {
    outline: none;
    border-color: rgba(0, 107, 63, 0.55);
    box-shadow: 0 0 0 4px var(--admin-input-focus);
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--kiu-green-dark);
    background: rgba(0, 107, 63, 0.10);
    border-color: rgba(0, 107, 63, 0.22);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: var(--admin-transition);
}

.auth-password-toggle:hover {
    color: var(--admin-heading);
    background: rgba(15, 23, 42, 0.05);
}

.auth-code-input {
    text-align: center;
    letter-spacing: 0.24em;
    font-size: 1.02rem;
    font-weight: 600;
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.2rem 0 1.4rem;
}

.auth-help-text {
    margin: 0;
    color: var(--admin-text-soft);
    font-size: 0.84rem;
    line-height: 1.25;
}

.auth-link {
    color: var(--admin-accent-dark);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--admin-transition);
}

.auth-link:hover {
    color: #8d6814;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    height: 45px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-2));
    color: #1f2937;
    font-size: 0.90rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    box-shadow: 0 18px 34px rgba(212, 175, 55, 0.28);
    transition: var(--admin-transition);
    text-decoration: none;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(212, 175, 55, 0.34);
    color: #1f2937;
}

.auth-submit:disabled {
    opacity: 0.82;
    cursor: not-allowed;
    transform: none;
}

.auth-inline-note {
    margin-top: 0.1rem;
    padding: 0.9rem 1rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: center;
}

.auth-card-footer {
    margin-top: 1.1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.84rem;
}

.auth-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.auth-loader img {
    height: 14px;
    width: auto;
}

/* =========================
   INTERNAL PAGE LAYOUT
========================= */
.content-body.content-body-modern {
    min-height: 100vh;
    background:
            radial-gradient(circle at top right, rgba(0, 0, 0, 0.03), transparent 24%),
            linear-gradient(180deg, var(--ui-bg-alt) 0%, var(--ui-bg) 100%);
    padding-bottom: 2rem;
}

.page-shell,
.dash-shell {
    padding: 1.25rem;
}

.page-grid,
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.page-main-grid,
.dash-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

/* =========================
   HERO / PAGE INTRO
========================= */
.page-hero,
.dash-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--ui-radius-xl);
    background: var(--ui-hero-bg);
    box-shadow: var(--ui-shadow-lg);
    color: var(--ui-hero-text);
    margin-bottom: 1.25rem;
}

.page-hero::before,
.dash-welcome::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -50px;
    top: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.page-hero-left,
.page-hero-right,
.dash-welcome-left,
.dash-welcome-right {
    position: relative;
    z-index: 1;
}

.page-hero-left,
.dash-welcome-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.page-badge,
.dash-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: var(--ui-hero-chip-bg);
    border: 1px solid var(--ui-hero-chip-border);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.page-title,
.dash-welcome-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ui-hero-text);
}

.page-subtitle,
.dash-welcome-subtitle {
    margin: 0.38rem 0 0;
    color: var(--ui-hero-text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 680px;
}

.page-top-actions,
.dash-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

/* =========================
   AVATAR
========================= */
.ui-avatar,
.dash-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ui-avatar img,
.dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   BUTTONS
========================= */
.ui-btn,
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.78rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: var(--ui-transition);
    white-space: nowrap;
    cursor: pointer;
}

.ui-btn-primary,
.dash-btn-dark {
    background: #ffffff;
    color: #111111;
    border: 1px solid #ffffff;
}

.ui-btn-primary:hover,
.dash-btn-dark:hover {
    color: #111111;
    background: #f1f1f1;
    transform: translateY(-1px);
}

.ui-btn-soft,
.dash-btn-soft {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.ui-btn-soft:hover,
.dash-btn-soft:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

/* =========================
   CARDS
========================= */
.ui-card,
.dash-card {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-xl);
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
}

.ui-card-header,
.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.1rem 0;
}

.ui-card-title,
.dash-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ui-text);
}

.ui-card-subtitle,
.dash-card-subtitle {
    margin: 0.28rem 0 0;
    font-size: 0.92rem;
    color: var(--ui-muted);
    line-height: 1.6;
}

.ui-card-body,
.dash-card-body {
    padding: 1.1rem;
}

/* =========================
   STATS
========================= */
.ui-stats,
.dash-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.ui-stat,
.dash-stat {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ui-stat:hover,
.dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow-md);
    border-color: var(--ui-border-strong);
}

.ui-stat-top,
.dash-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.ui-stat-icon,
.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-icon-bg);
    color: var(--ui-icon-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ui-stat-value,
.dash-stat-value {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 800;
    color: var(--ui-text);
    letter-spacing: -0.03em;
}

.ui-stat-label,
.dash-stat-label {
    margin: 0.35rem 0 0;
    color: var(--ui-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* =========================
   ACTION CARDS
========================= */
.ui-actions-grid,
.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.ui-action,
.dash-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 72px;
    padding: 0.95rem;
    border-radius: var(--ui-radius-lg);
    border: 1px solid var(--ui-border);
    background: #ffffff;
    color: var(--ui-text);
    text-decoration: none;
    transition: var(--ui-transition);
}

.ui-action:hover,
.dash-action:hover {
    color: var(--ui-text);
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow-md);
    border-color: var(--ui-border-strong);
}

.ui-action-icon,
.dash-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ui-icon-bg);
    color: var(--ui-icon-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.92rem;
}

.ui-action-title,
.dash-action-title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
}

/* =========================
   MODULE CARDS / FEATURE TILES
========================= */
.ui-modules-grid,
.dash-modules-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.ui-module-link,
.dash-module-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ui-module,
.dash-module-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    padding: 1.05rem;
    border-radius: var(--ui-radius-lg);
    border: 1px solid var(--ui-border);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ui-module:hover,
.dash-module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ui-shadow-md);
    border-color: var(--ui-border-strong);
}

.ui-module-head,
.dash-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.ui-module-icon,
.dash-module-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
}

.ui-theme-1,
.dash-theme-1 { background: #111111; }

.ui-theme-2,
.dash-theme-2 { background: #1f1f1f; }

.ui-theme-3,
.dash-theme-3 { background: #2b2b2b; }

.ui-theme-4,
.dash-theme-4 { background: #000000; }

.ui-theme-5,
.dash-theme-5 { background: #374151; }

.ui-theme-6,
.dash-theme-6 { background: #4b5563; }

.ui-module-title,
.dash-module-title {
    margin: 0 0 0.55rem;
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ui-text);
}

.ui-module-text,
.dash-module-text {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.ui-module-footer,
.dash-module-footer {
    margin-top: auto;
    padding-top: 0.95rem;
}

.ui-module-cta,
.dash-module-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #111111;
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 0.18s ease;
}

.ui-module:hover .ui-module-cta,
.dash-module-card:hover .dash-module-cta {
    transform: translateX(3px);
}

/* =========================
   ACTIVITY / LIST ITEMS
========================= */
.ui-activity-list,
.dash-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ui-activity-item,
.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: #ffffff;
}

.ui-activity-icon,
.dash-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ui-icon-bg);
    color: var(--ui-icon-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.88rem;
}

.ui-activity-title,
.dash-activity-title {
    margin: 0;
    color: var(--ui-text);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
}

.ui-activity-meta,
.dash-activity-meta {
    margin: 0.22rem 0 0;
    color: var(--ui-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

/* =========================
   LINKS / BREADCRUMBS
========================= */
.ui-link-inline,
.dash-link-inline {
    color: #111111;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.ui-link-inline:hover,
.dash-link-inline:hover {
    color: #000000;
    text-decoration: none;
}

.ui-breadcrumbs,
.dash-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--ui-muted);
    white-space: nowrap;
}

.ui-breadcrumbs .separator,
.dash-breadcrumbs .separator {
    opacity: 0.5;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
    .ui-stats,
    .dash-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ui-actions-grid,
    .dash-actions-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ui-modules-grid,
    .dash-modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .page-main-grid,
    .dash-main-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
        align-items: start;
    }
}

@media (min-width: 1400px) {
    .ui-modules-grid,
    .dash-modules-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .page-hero,
    .dash-welcome {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-top-actions,
    .dash-top-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1100px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 34px 28px 26px;
    }

    .auth-form-panel {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
}

@media (max-width: 767.98px) {
    body.auth-page {
        padding: 14px;
    }

    .auth-frame {
        border-radius: 24px;
    }

    .auth-brand-panel,
    .auth-form-panel {
        padding: 22px 18px;
    }

    .auth-form-card {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .auth-brand-title {
        font-size: 1.9rem;
    }

    .auth-card-title {
        font-size: 1.6rem;
    }

    .auth-feature-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand-footer,
    .auth-form-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-form-control {
        height: 56px;
    }

    .page-shell,
    .dash-shell {
        padding: 1rem;
    }

    .page-hero,
    .dash-welcome {
        padding: 1rem;
        border-radius: 20px;
    }

    .page-hero-left,
    .dash-welcome-left {
        align-items: flex-start;
    }


    .page-title,
    .dash-welcome-title {
        font-size: 1.25rem;
    }

    .ui-stats,
    .dash-stats,
    .ui-actions-grid,
    .dash-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-card-header,
    .ui-card-body,
    .dash-card-header,
    .dash-card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ui-module,
    .dash-module-card {
        min-height: 200px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-brand-logo {
        border-radius: 50px;
    }

    .auth-brand-logo img {
        max-height: 36px;
    }

    .auth-brand-title {
        font-size: 1.65rem;
    }

    .auth-card-title {
        font-size: 1.4rem;
    }
}

/* =========================
   INTERNAL PAGE FOUNDATION
========================= */

body {
    background: var(--ui-bg);
    color: var(--ui-text);
}

.content-body.content-body-modern {
    min-height: 100vh;
    background:
            radial-gradient(circle at top right, rgba(0, 0, 0, 0.03), transparent 24%),
            linear-gradient(180deg, var(--ui-bg-alt) 0%, var(--ui-bg) 100%);
    padding-bottom: 2rem;
}

/* =========================
   PROFILE PAGE LAYOUT
========================= */

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 1200px) {
    .profile-layout {
        grid-template-columns: 360px minmax(0, 1fr);
        align-items: start;
    }
}

.profile-stack,
.profile-section-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-sidebar-panel {
    position: sticky;
    top: 88px;
}

/* =========================
   PROFILE SUMMARY / NOTES
========================= */

.profile-summary-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ui-border);
}

.profile-summary-meta {
    min-width: 0;
}

.profile-summary-name {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--ui-text);
    letter-spacing: -0.02em;
}

.profile-summary-role {
    margin: 0.25rem 0 0;
    color: var(--ui-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.profile-summary-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;   /* 🔥 prevents stacking */
    align-items: center;
}

.profile-summary-actions .ui-btn {
    flex: 0 0 auto;      /* prevents stretching */
}

.profile-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border: 1px dashed var(--ui-border-strong);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface-soft);
}

.profile-note-title {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ui-text);
}

.profile-note-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ui-muted);
}

/* =========================
   ALERTS
========================= */

.ui-alert,
.profile-alert {
    padding: 1rem;
    border-radius: var(--ui-radius-lg);
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--ui-text-soft);
}

.ui-alert strong,
.profile-alert strong {
    color: var(--ui-text);
}

.ui-alert-muted,
.profile-alert-muted {
    background: linear-gradient(180deg, #fafafa 0%, #f6f6f7 100%);
}

.ui-alert-success,
.profile-alert-success {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    border-color: var(--ui-border-strong);
}

/* =========================
   BUTTON EXTENSIONS
========================= */

.ui-btn-danger,
.profile-btn-danger {
    background: #1f1f1f;
    border: 1px solid #1f1f1f;
    color: #ffffff;
}

.ui-btn-danger:hover,
.profile-btn-danger:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}

.ui-btn-light,
.profile-btn-light {
    background: #ffffff;
    border: 1px solid var(--ui-border-strong);
    color: var(--ui-text);
}

.ui-btn-light:hover,
.profile-btn-light:hover {
    background: var(--ui-surface-soft);
    color: var(--ui-text);
    transform: translateY(-1px);
}

.ui-btn[disabled],
.ui-btn.disabled,
.profile-btn[disabled],
.profile-btn.disabled {
    opacity: 0.65;
    pointer-events: none;
}

/* =========================
   FORM SYSTEM
========================= */

.ui-form-grid,
.profile-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ui-form-row,
.profile-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .ui-form-row,
    .profile-form-row {
        grid-template-columns: 180px minmax(0, 1fr);
        align-items: start;
    }
}

.ui-label,
.profile-label {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ui-text-soft);
    padding-top: 0.8rem;
}

.ui-label-inline,
.profile-label-inline {
    padding-top: 0;
}

.ui-field,
.profile-field {
    width: 100%;
}

.ui-control,
.ui-select,
.profile-control,
.profile-select {
    width: 100%;
    min-height: 48px;
    padding: 0.78rem 0.95rem;
    border-radius: var(--ui-radius-sm);
    border: 1px solid var(--ui-border);
    background: #ffffff;
    color: var(--ui-text);
    font-size: 0.92rem;
    box-shadow: none;
    transition: border-color var(--ui-transition), box-shadow var(--ui-transition), background var(--ui-transition);
}

.ui-control:focus,
.ui-select:focus,
.profile-control:focus,
.profile-select:focus {
    outline: none;
    border-color: var(--ui-border-strong);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.04);
}

.ui-input-group,
.profile-input-group {
    display: flex;
    align-items: stretch;
    border-radius: var(--ui-radius-sm);
    overflow: hidden;
    border: 1px solid var(--ui-border);
    background: #ffffff;
}

.ui-input-group .ui-control,
.profile-input-group .profile-control {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ui-input-group .ui-control:focus,
.profile-input-group .profile-control:focus {
    box-shadow: none;
}

.ui-password-toggle,
.profile-password-toggle {
    min-width: 54px;
    border: 0;
    border-left: 1px solid var(--ui-border);
    background: #ffffff;
    color: var(--ui-text);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--ui-transition);
}

.ui-password-toggle:hover,
.profile-password-toggle:hover {
    background: var(--ui-surface-soft);
}

/* =========================
   PASSWORD STRENGTH
========================= */

.profile-strength {
    height: 4px;
    width: 100%;
    background: #e5e7eb;
    margin-top: 0.65rem;
    border-radius: 999px;
    overflow: hidden;
}

.profile-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.25s ease;
}

.strength-weak {
    background: #9ca3af;
}

.strength-medium {
    background: #6b7280;
}

.strength-strong {
    background: #111111;
}

/* =========================
   TOGGLES / ACTION ALIGNMENT
========================= */

.profile-card-toggle {
    color: var(--ui-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--ui-transition);
}

.profile-card-toggle:hover {
    color: var(--ui-text);
    text-decoration: none;
}

.profile-actions-end {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199.98px) {
    .profile-sidebar-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .profile-summary-top {
        align-items: flex-start;
    }

    .profile-summary-actions,
    .profile-actions-end {
        flex-direction: column;
        align-items: stretch;
    }

    .ui-btn,
    .profile-btn {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .profile-summary-actions {
        flex-wrap: wrap; /* allow wrap only on very small screens */
    }
}

.ui-inline-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* =========================
   PAGE FOUNDATION
========================= */

body {
    background: var(--ui-bg);
    color: var(--ui-text);
}

.content-body.content-body-modern {
    min-height: 100vh;
    background:
            radial-gradient(circle at top right, rgba(0, 0, 0, 0.03), transparent 24%),
            linear-gradient(180deg, var(--ui-bg-alt) 0%, var(--ui-bg) 100%);
    padding-bottom: 2rem;
}

/* =========================
   PAGE SHELL
========================= */

/* =========================
   HERO → USE GLOBAL
========================= */

/* REMOVE .admin-hero */
/* Use: .page-hero */

/* =========================
   TOOLBAR
========================= */

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* =========================
   FILTER GRID
========================= */

.admin-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 992px) {
    .admin-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
        align-items: end;
    }
}

/* =========================
   FORM SYSTEM (UNIFIED)
========================= */

.admin-field {
    width: 100%;
}

.admin-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ui-text-soft);
}

.admin-control {
    /* 🔥 now just alias */
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border-radius: var(--ui-radius-sm);
    border: 1px solid var(--ui-border);
    background: #ffffff;
    color: var(--ui-text);
    font-size: 0.92rem;
}

.admin-control:focus {
    outline: none;
    border-color: var(--ui-border-strong);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.04);
}

/* =========================
   RESULT BAR
========================= */

.admin-result-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.05rem;
    margin-bottom: 1rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.admin-result-title {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--ui-text);
}

/* =========================
   TABLE
========================= */

.admin-table-wrap {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    background: #ffffff;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    color: var(--ui-text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-table tbody td {
    padding: .35rem;
    border-bottom: 1px solid var(--ui-border);
    color: var(--ui-text-soft);
    font-size: 0.92rem;
}

.admin-table tbody tr:hover {
    background: #fcfcfc;
}

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

.admin-meta {
    color: var(--ui-muted);
}

.admin-account-status-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}

.admin-account-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 30px;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-account-status-active {
    background: rgba(22, 163, 74, .12);
    color: #166534;
    border: 1px solid rgba(22, 163, 74, .2);
}

.admin-account-status-inactive {
    background: rgba(107, 114, 128, .12);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, .2);
}

.admin-account-status-locked {
    background: rgba(220, 38, 38, .12);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, .22);
}

.admin-account-attempts {
    color: #991b1b;
    font-size: .78rem;
    font-weight: 800;
}

/* =========================
   ACTION BUTTONS
========================= */

.admin-actions {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--ui-border);
    background: #ffffff;
    color: var(--ui-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-action-btn:hover {
    background: var(--ui-surface-soft);
    border-color: var(--ui-border-strong);
    transform: translateY(-1px);
}

.admin-action-unlock {
    color: #166534;
    border-color: rgba(22, 163, 74, .24);
    background: rgba(22, 163, 74, .08);
}

.admin-action-unlock:hover {
    color: #ffffff;
    border-color: #166534;
    background: #166534;
}

/* =========================
   EMPTY STATE
========================= */

.admin-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ui-muted);
    font-size: 0.95rem;
}

/* =========================
   RESPONSIVE TABLE
========================= */

@media (max-width: 767.98px) {
    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.28rem;
        color: var(--ui-muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }
}

.admin-pages-table {
    table-layout: fixed;
}

.admin-pages-table td,
.admin-pages-table th {
    vertical-align: middle;
}

.admin-page-title-wrap {
    min-width: 0;
}

.admin-page-title-wrap .admin-name {
    display: inline-block;
    max-width: 220px;
    line-height: 1.35;
}

.admin-image-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.admin-image-thumb-actions {
    margin-top: 0.55rem;
    display: flex;
    justify-content: center;
}

.admin-pagination {
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .admin-page-title-wrap .admin-name {
        max-width: 100%;
    }


    .admin-image-thumb-actions {
        justify-content: flex-start;
    }
}

.admin-image-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-image-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui-help {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--ui-muted);
}

.ui-actions-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =========================
   KIU ACTIONS / PAGINATION
========================= */
.ui-btn-primary,
.profile-btn-primary,
.dash-btn-dark,
.admin-btn-dark,
html .btn-primary,
html .btn-dark,
body .btn-primary,
body .btn-dark,
button.btn-primary,
button.btn-dark,
a.btn-primary,
a.btn-dark {
    background: var(--kiu-green) !important;
    border-color: var(--kiu-green) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(0, 107, 63, 0.18) !important;
}

.ui-btn-primary:hover,
.ui-btn-primary:focus,
.profile-btn-primary:hover,
.profile-btn-primary:focus,
.dash-btn-dark:hover,
.dash-btn-dark:focus,
.admin-btn-dark:hover,
.admin-btn-dark:focus,
html .btn-primary:hover,
html .btn-primary:focus,
html .btn-dark:hover,
html .btn-dark:focus,
body .btn-primary:hover,
body .btn-primary:focus,
body .btn-dark:hover,
body .btn-dark:focus,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-dark:hover,
button.btn-dark:focus,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-dark:hover,
a.btn-dark:focus {
    background: var(--kiu-green-dark) !important;
    border-color: var(--kiu-green-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(0, 75, 45, 0.22) !important;
    transform: translateY(-1px);
}

.page-hero .ui-btn-primary,
.dash-welcome .dash-btn-dark {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--kiu-green-dark) !important;
    box-shadow: 0 12px 24px rgba(0, 75, 45, 0.14) !important;
}

.page-hero .ui-btn-primary:hover,
.page-hero .ui-btn-primary:focus,
.dash-welcome .dash-btn-dark:hover,
.dash-welcome .dash-btn-dark:focus {
    background: var(--kiu-gold) !important;
    border-color: var(--kiu-gold) !important;
    color: var(--kiu-green-dark) !important;
}

.ui-btn-danger,
.profile-btn-danger,
.btn-danger,
button.btn-danger,
a.btn-danger {
    background: var(--kiu-red) !important;
    border-color: var(--kiu-red) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(179, 38, 30, 0.16) !important;
}

.ui-btn-danger:hover,
.ui-btn-danger:focus,
.profile-btn-danger:hover,
.profile-btn-danger:focus,
.btn-danger:hover,
.btn-danger:focus,
button.btn-danger:hover,
button.btn-danger:focus,
a.btn-danger:hover,
a.btn-danger:focus {
    background: #8f1f18 !important;
    border-color: #8f1f18 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(143, 31, 24, 0.22) !important;
    transform: translateY(-1px);
}

.ui-btn-light,
.profile-btn-light,
.btn-light,
button.btn-light,
a.btn-light {
    background: #ffffff !important;
    border-color: rgba(0, 107, 63, 0.22) !important;
    color: var(--kiu-green-dark) !important;
}

.ui-btn-light:hover,
.ui-btn-light:focus,
.profile-btn-light:hover,
.profile-btn-light:focus,
.btn-light:hover,
.btn-light:focus,
button.btn-light:hover,
button.btn-light:focus,
a.btn-light:hover,
a.btn-light:focus {
    background: var(--kiu-green-soft) !important;
    border-color: rgba(0, 107, 63, 0.34) !important;
    color: var(--kiu-green-dark) !important;
}

.admin-pagination .pagination,
.pagination {
    gap: 0.35rem;
}

.admin-pagination .pagination > li > a,
.admin-pagination .pagination > li > span,
.admin-pagination .pagination .page-link,
.pagination > li > a,
.pagination > li > span,
.pagination .page-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border: 1px solid rgba(0, 107, 63, 0.18) !important;
    background: #ffffff !important;
    color: var(--kiu-green-dark) !important;
    font-weight: 700;
    box-shadow: none !important;
}

.admin-pagination .pagination > li > a:hover,
.admin-pagination .pagination > li > span:hover,
.admin-pagination .pagination .page-link:hover,
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination .page-link:hover,
.admin-pagination .pagination > li > a:focus,
.admin-pagination .pagination > li > span:focus,
.admin-pagination .pagination .page-link:focus,
.pagination > li > a:focus,
.pagination > li > span:focus,
.pagination .page-link:focus {
    border-color: var(--kiu-green) !important;
    background: var(--kiu-green-soft) !important;
    color: var(--kiu-green-dark) !important;
    box-shadow: 0 0 0 0.18rem rgba(242, 183, 5, 0.22) !important;
}

.admin-pagination .pagination > .active > a,
.admin-pagination .pagination > .active > span,
.admin-pagination .pagination > li.active > a,
.admin-pagination .pagination > li.active > span,
.admin-pagination .pagination .page-item.active .page-link,
.pagination > .active > a,
.pagination > .active > span,
.pagination > li.active > a,
.pagination > li.active > span,
.pagination .page-item.active .page-link {
    background: var(--kiu-green) !important;
    border-color: var(--kiu-green) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(0, 107, 63, 0.22) !important;
}

.admin-pagination .pagination > .active > a:hover,
.admin-pagination .pagination > .active > span:hover,
.admin-pagination .pagination > li.active > a:hover,
.admin-pagination .pagination > li.active > span:hover,
.admin-pagination .pagination .page-item.active .page-link:hover,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > li.active > a:hover,
.pagination > li.active > span:hover,
.pagination .page-item.active .page-link:hover {
    background: var(--kiu-green-dark) !important;
    border-color: var(--kiu-green-dark) !important;
    color: #ffffff !important;
}

.admin-pagination .pagination > .disabled > a,
.admin-pagination .pagination > .disabled > span,
.admin-pagination .pagination .page-item.disabled .page-link,
.pagination > .disabled > a,
.pagination > .disabled > span,
.pagination .page-item.disabled .page-link {
    background: #f4f8f6 !important;
    border-color: rgba(0, 107, 63, 0.10) !important;
    color: rgba(0, 75, 45, 0.42) !important;
    box-shadow: none !important;
}
