:root {
    --cw-navy: #0f2440;
    --cw-navy2: #1a3a5c;
    --cw-blue: #2563eb;
    --cw-bg: #f8fafc;
    --cw-text: #0f172a;
    --cw-muted: #64748b;
    --cw-border: #e2e8f0;
    --cw-radius: 14px;
    --cw-font: 'Inter', system-ui, sans-serif;
    --cw-display: 'Plus Jakarta Sans', var(--cw-font);
}

* { box-sizing: border-box; }
body { font-family: var(--cw-font); color: var(--cw-text); background: var(--cw-bg); margin: 0; line-height: 1.6; }
a { color: var(--cw-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.cw-container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Public topbar ===== */
.cw-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid rgba(15, 36, 64, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 32px rgba(15, 36, 64, 0.06);
}
.cw-nav::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--cw-navy) 0%, var(--cw-blue) 55%, #60a5fa 100%);
}
.cw-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 72px;
    padding: .65rem 0;
}
.cw-logo {
    flex-shrink: 0;
    color: var(--cw-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.cw-logo:hover { text-decoration: none; }
.cw-logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.cw-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 0.1rem;
}
.cw-logo-name {
    font-family: var(--cw-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--cw-navy) 0%, var(--cw-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cw-logo-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.01em;
}
@media (max-width: 768px) {
    .cw-logo-img { height: 42px; }
    .cw-logo-name { font-size: 0.92rem; }
    .cw-logo-tagline { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .cw-logo-text { display: none; }
    .cw-logo-img { height: 44px; }
}
.cw-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--cw-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.cw-nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--cw-navy);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.cw-nav-panel {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}
.cw-nav-menu {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin-right: auto;
    margin-left: 1rem;
}
.cw-nav-menu a {
    position: relative;
    color: var(--cw-muted);
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    padding: .5rem .85rem .65rem;
    border-radius: 0;
    transition: color .15s;
    white-space: nowrap;
}
.cw-nav-menu a:hover {
    color: var(--cw-navy);
    background: transparent;
    text-decoration: none;
}
.cw-nav-menu a.active {
    color: var(--cw-navy);
    background: transparent;
}
.cw-nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: calc(100% - 1.4rem);
    height: 3px;
    border-radius: 999px;
    background: var(--cw-blue);
}
.cw-nav-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding-left: 1rem;
    border-left: 1px solid var(--cw-border);
    flex-shrink: 0;
}

@media (min-width: 993px) {
    .cw-nav-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }
    .cw-nav-panel {
        display: contents;
    }
    .cw-nav-menu {
        justify-self: center;
        margin: 0;
    }
    .cw-nav-actions {
        justify-self: end;
        border-left: none;
        padding-left: 0;
    }
}

.cw-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.15rem; border-radius: 10px; font-weight: 700; font-size: .875rem; border: none; cursor: pointer; text-decoration: none; transition: all .2s; white-space: nowrap; }
.cw-btn-sm { padding: .5rem 1rem; font-size: .82rem; border-radius: 999px; }
.cw-btn-primary { background: linear-gradient(135deg, var(--cw-navy), var(--cw-blue)); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.22); }
.cw-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; color: #fff; box-shadow: 0 6px 20px rgba(37,99,235,.32); }
.cw-btn-ghost { background: transparent; border: 1.5px solid var(--cw-border); color: var(--cw-navy); }
.cw-btn-ghost:hover { border-color: var(--cw-blue); color: var(--cw-blue); background: rgba(37, 99, 235, 0.04); text-decoration: none; }
.cw-btn-outline { background: #fff; border: 1.5px solid var(--cw-border); color: var(--cw-navy); }
.cw-btn-outline:hover { border-color: var(--cw-blue); color: var(--cw-blue); text-decoration: none; }

@media (max-width: 992px) {
    .cw-nav-inner { min-height: 64px; }
    .cw-nav-toggle { display: inline-flex; }
    .cw-nav-panel {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .75rem 1.25rem 1.25rem;
        background: #fff;
        border-bottom: 1px solid var(--cw-border);
        box-shadow: 0 16px 40px rgba(15, 36, 64, 0.1);
    }
    .cw-nav.open .cw-nav-panel { display: flex; }
    .cw-nav.open .cw-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .cw-nav.open .cw-nav-toggle-bar:nth-child(2) { opacity: 0; }
    .cw-nav.open .cw-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .cw-nav-menu {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        gap: .15rem;
    }
    .cw-nav-menu a {
        padding: .75rem .85rem .85rem;
        border-radius: 0;
    }
    .cw-nav-menu a.active::after {
        display: block;
        bottom: 0.35rem;
        width: 2rem;
    }
    .cw-nav-actions {
        flex-direction: column;
        align-items: stretch;
        border-left: none;
        border-top: 1px solid var(--cw-border);
        padding: .85rem 0 0;
        margin-top: .65rem;
        gap: .55rem;
    }
    .cw-nav-actions .cw-btn { justify-content: center; width: 100%; }
}

.cw-hero { background: linear-gradient(135deg, var(--cw-navy) 0%, var(--cw-navy2) 50%, var(--cw-blue) 100%); color: #fff; border-radius: 20px; padding: 3rem 2rem; margin: 2rem 0; }
.cw-hero h1 { font-family: var(--cw-display); font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0 0 1rem; line-height: 1.15; }
.cw-hero p { font-size: 1.05rem; opacity: .85; max-width: 560px; margin: 0 0 1.5rem; }

.cw-section { padding: 3rem 0; }
.cw-section-title { font-family: var(--cw-display); font-size: 1.75rem; font-weight: 800; margin: 0 0 .5rem; }
.cw-section-sub { color: var(--cw-muted); margin: 0 0 2rem; }

.cw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .cw-grid-3 { grid-template-columns: 1fr; } }

.cw-card { background: #fff; border: 1px solid var(--cw-border); border-radius: var(--cw-radius); padding: 1.5rem; box-shadow: 0 1px 4px rgba(15,36,64,.05); }
.cw-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }

.cw-form-card { background: #fff; border: 1px solid var(--cw-border); border-radius: var(--cw-radius); padding: 2rem; max-width: 640px; margin: 0 auto; }
.cw-field { margin-bottom: 1.1rem; }
.cw-field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.cw-field input, .cw-field select, .cw-field textarea { width: 100%; border: 1.5px solid var(--cw-border); border-radius: 10px; padding: .6rem .85rem; font: inherit; }
.cw-field input:focus, .cw-field select:focus, .cw-field textarea:focus { outline: none; border-color: var(--cw-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.cw-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.cw-alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.cw-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.cw-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cw-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== CMS Admin Shell (portal-inspired) ===== */
:root {
    --admin-sidebar-width: 265px;
    --admin-topbar-height: 62px;
}

.admin-body {
    background: #f0f4f8;
    min-height: 100vh;
    margin: 0;
}

.admin-shell {
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--admin-sidebar-width);
    height: 100vh;
    background: #1e293b;
    color: #e2e8f0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }

.admin-sidebar-brand {
    padding: 1rem 0.9rem 0.85rem;
    background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.admin-sidebar-lockup {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    margin-bottom: 0.35rem;
}
.admin-sidebar-lockup:hover { text-decoration: none; }
.admin-cms-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 12px;
    background: linear-gradient(145deg, #8baed4 0%, #5a7fb2 55%, #4a6fa0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.admin-cms-icon-md { width: 42px; height: 42px; font-size: 1.15rem; border-radius: 11px; }
.admin-cms-icon-lg { width: 64px; height: 64px; font-size: 1.75rem; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.admin-cms-icon-sm { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 11px; }
.admin-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.admin-sidebar-brand-name {
    font-family: var(--cw-display);
    font-weight: 800;
    font-size: 0.72rem;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.admin-sidebar-brand-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 0.1rem;
}
.admin-sidebar-title {
    margin: 0;
    font-family: var(--cw-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}
.admin-sidebar-sub {
    margin: 0.2rem 0 0;
    font-size: 0.68rem;
    opacity: 0.78;
    color: #cbd5e1;
}

.admin-sidebar-user {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.admin-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.admin-sidebar-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
}
.admin-sidebar-user-role {
    font-size: 0.67rem;
    color: #94a3b8;
}
.admin-sidebar-online {
    display: inline-block;
    color: #22c55e;
    font-size: 0.58rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.admin-sidebar-nav {
    flex: 1;
    padding-bottom: 1.5rem;
}
.admin-sidebar-section {
    padding: 0.85rem 1rem 0.25rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #475569;
    font-weight: 700;
}
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.48rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.81rem;
    border-left: 3px solid transparent;
    transition: all 0.18s;
    white-space: nowrap;
}
.admin-sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.admin-sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}
.admin-sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0.04));
    border-left-color: #3b82f6;
    color: #fff;
    font-weight: 600;
}
.admin-sidebar-nav a.active i { color: #fff !important; }

/* Main area — full viewport width */
.admin-main {
    margin-left: var(--admin-sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--admin-sidebar-width));
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Topbar */
.admin-topbar {
    background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    height: var(--admin-topbar-height);
    flex-shrink: 0;
    padding: 0 1.25rem 0 0;
}
.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-left: 1.25rem;
    height: 100%;
}
.admin-topbar-title {
    font-weight: 700;
    font-size: 0.97rem;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.admin-topbar-crumb {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.1rem;
}
.admin-topbar-crumb a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}
.admin-topbar-crumb a:hover { color: #fff; }
.admin-topbar-sep { color: rgba(255, 255, 255, 0.35); font-size: 0.65rem; }

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    color: #1a3a5c;
    transition: all 0.2s;
    white-space: nowrap;
}
.admin-topbar-btn:hover {
    background: #fff;
    color: #0f2440;
    text-decoration: none;
    transform: translateY(-1px);
}
.admin-topbar-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.admin-topbar-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.admin-topbar-btn-logout {
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.admin-topbar-btn-logout:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #fff;
}
.admin-topbar-logout { margin: 0; }

/* User profile dropdown (portal-style) */
.admin-user-menu {
    position: relative;
    margin-left: 0.25rem;
}
.admin-tb-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.45rem 0.3rem 0.3rem;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
    font-family: inherit;
}
.admin-tb-user:hover,
.admin-user-menu.open .admin-tb-user {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}
.admin-tb-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
    position: relative;
}
.admin-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}
.admin-tb-user-info {
    display: none;
    text-align: left;
}
@media (min-width: 768px) {
    .admin-tb-user-info { display: block; }
}
.admin-tb-user-name {
    font-weight: 600;
    font-size: 0.78rem;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}
.admin-tb-user-role {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-tb-caret {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.62rem;
    transition: transform 0.2s;
    display: none;
}
@media (min-width: 768px) {
    .admin-tb-caret { display: inline-block; }
}
.admin-user-menu.open .admin-tb-caret {
    transform: rotate(180deg);
}

.admin-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 255px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.13), 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 0.45rem;
    z-index: 1100;
    animation: adminDropIn 0.18s ease-out;
}
.admin-user-menu.open .admin-user-dropdown {
    display: block;
}
@keyframes adminDropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-dh-card {
    background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 100%);
    border-radius: 10px;
    padding: 0.9rem;
    margin-bottom: 0.3rem;
    color: #fff;
}
.admin-dh-name {
    font-weight: 700;
    font-size: 0.88rem;
}
.admin-dh-email {
    font-size: 0.7rem;
    opacity: 0.82;
    margin-top: 0.15rem;
}
.admin-dh-role {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.12rem 0.48rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.admin-dropdown-item:hover {
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
}
.admin-dropdown-item i {
    width: 17px;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.admin-dropdown-item-danger {
    color: #dc2626;
}
.admin-dropdown-item-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}
.admin-dropdown-badge {
    margin-left: auto;
    background: #dc2626;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}
.admin-dropdown-divider {
    margin: 0.2rem 0.45rem;
    border: none;
    border-top: 1px solid #f1f5f9;
}

.admin-mob-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
}

.admin-content {
    flex: 1;
    width: 100%;
    padding: 1.5rem 2rem 2rem;
    box-sizing: border-box;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-kpi {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}
.admin-kpi strong { display: block; font-size: 1.75rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th, .admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #e2e8f0; text-align: left; }
.admin-table th { background: #f8fafc; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cw-muted); }
.admin-alert-list { margin: 0; padding-left: 1.2rem; }

.badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-synced { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-failed { background: #fee2e2; color: #991b1b; }

@media (max-width: 992px) {
    .admin-sidebar {
        left: calc(-1 * var(--admin-sidebar-width));
    }
    .admin-sidebar.open {
        left: 0;
    }
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
    .admin-mob-toggle {
        display: inline-flex;
    }
    .admin-topbar-actions .admin-topbar-btn span.label-hide {
        display: none;
    }
    .admin-content {
        padding: 1rem 1.25rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .admin-topbar-actions {
        gap: 0.35rem;
    }
    .admin-topbar-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.72rem;
    }
    .admin-topbar-btn i { margin: 0; }
    .admin-topbar-btn .btn-text { display: none; }
}
