/* ===========================
   Design tokens (compartilhado site + admin)
   =========================== */
:root {
    --ds-bg: #fafafa;
    --ds-surface: #ffffff;
    --ds-border: rgba(0, 0, 0, 0.06);
    --ds-border-strong: rgba(0, 0, 0, 0.1);
    --ds-text: #0a0a0a;
    --ds-text-muted: #71717a;
    --ds-text-subtle: #a1a1aa;
    --ds-accent: #0a0a0a;
    --ds-success: #10b981;
    --ds-warning: #f59e0b;
    --ds-danger: #ef4444;
    --ds-info: #3b82f6;
    --ds-primary: #6366f1;
    --ds-brand: #16a765;
    --ds-brand-strong: #0abf73;

    --ds-radius-sm: 8px;
    --ds-radius: 12px;
    --ds-radius-lg: 16px;
    --ds-radius-pill: 999px;

    --ds-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --ds-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
    --ds-shadow-lg: 0 18px 40px -10px rgba(29, 48, 72, 0.12);
    --ds-shadow-brand: 0 18px 40px -12px rgba(17, 88, 54, 0.22);

    --ds-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--ds-bg);
    color: var(--ds-text);
    font-family: 'Inter', 'SN Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 1rem;
    letter-spacing: -0.01em;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}

a { text-decoration: none; cursor: pointer !important; transition: color 0.2s var(--ds-ease); }

.navbar { box-shadow: var(--ds-shadow-sm); }
.main-container { min-height: 80vh; }

.dropdown-menu {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: 0 10px 32px -8px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    padding: 6px;
}
.dropdown-item {
    border-radius: var(--ds-radius-sm);
    margin: 0;
    padding: 7px 10px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ds-text-muted);
    transition: background 0.15s var(--ds-ease), color 0.15s var(--ds-ease);
}
.dropdown-item:hover { background: rgba(0, 0, 0, 0.04); color: var(--ds-text); }

.rounded-4 { border-radius: var(--ds-radius-lg) !important; }
.navbar-brand { letter-spacing: -0.01em; font-weight: 700; }

/* Gradientes Modernos */
.bg-gradient-primary { background: linear-gradient(135deg, #6366f1, #4338ca); }
.bg-gradient-success { background: linear-gradient(135deg, #10b981, #047857); }
.bg-gradient-info    { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-gradient-danger  { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-gradient-dark    { background: linear-gradient(135deg, #1e293b, #0f172a); }

.stat-card { transition: transform 0.25s var(--ds-ease), box-shadow 0.25s var(--ds-ease); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow); }

.stat-icon { font-size: 2.25rem; opacity: 0.18; position: absolute; right: 16px; top: 16px; }
.hover-opacity-100:hover { opacity: 1 !important; }

.btn-icon-sm {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    border-radius: var(--ds-radius-sm);
}

.table thead th {
    border-top: none;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ds-text-muted);
}

#liveToast {
    width: 220px;
    min-width: 220px;
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow-lg);
}

.toast-body i { font-size: 1.2rem; }

.hover-lift { transition: transform 0.25s var(--ds-ease), box-shadow 0.25s var(--ds-ease); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.12) !important; }

.product-card .product-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(22, 167, 101, 0.18);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s var(--ds-ease);
}
.product-card:hover .product-overlay { opacity: 1; }
.transition-all { transition: all 0.25s var(--ds-ease); }

/* ===========================
   Client app
   =========================== */
.client-ui {
    padding-bottom: 6.5rem !important;
}

.client-bottom-nav {
    left: 50%;
    right: auto;
    bottom: 0.85rem;
    width: min(92vw, 460px);
    transform: translateX(-50%);
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-pill);
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 18px 42px rgba(28, 55, 92, 0.16) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    overflow: visible;
}

.client-bottom-nav .nav-link {
    min-height: 58px;
    border-radius: var(--ds-radius-pill);
    color: var(--ds-text-muted) !important;
    transition: transform 0.2s var(--ds-ease), background 0.2s var(--ds-ease), color 0.2s var(--ds-ease);
    justify-content: center;
    gap: 0.18rem;
    font-weight: 600 !important;
}

.client-bottom-nav .nav-link.active {
    color: var(--ds-brand) !important;
    background: rgba(22, 167, 101, 0.1);
}

.client-bottom-nav .nav-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 0 !important;
    font-size: 1.05rem !important;
    line-height: 1;
}

.client-bottom-nav .nav-link.active i { color: var(--ds-brand) !important; }

.client-bottom-nav .nav-label {
    font-size: 0.82rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

.client-home-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--ds-radius-lg);
    margin: 0 0 1.2rem;
    padding: 1.1rem 1.2rem;
    color: var(--ds-text);
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow-sm);
}

/* Faixa lateral verde discreta (acento da marca) */
.client-home-hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ds-brand) 0%, var(--ds-brand-strong) 100%);
    opacity: 0.85;
}

.client-hero-top,
.client-hero-content,
.client-hero-note {
    position: relative;
    z-index: 1;
}

.client-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--ds-text-muted);
    background: var(--ds-bg);
    border: 1px solid var(--ds-border);
    box-shadow: none;
    transition: background 0.2s var(--ds-ease), border-color 0.2s var(--ds-ease), color 0.2s var(--ds-ease), transform 0.2s var(--ds-ease);
}

.client-icon-btn:hover {
    background: var(--ds-surface);
    border-color: var(--ds-border-strong);
    color: var(--ds-text);
    transform: translateY(-1px);
}

.client-icon-btn--brand {
    color: #fff;
    background: var(--ds-brand);
    border-color: transparent;
    box-shadow: 0 4px 12px -4px rgba(22, 167, 101, 0.5);
}

.client-icon-btn--brand:hover {
    color: #fff;
    background: var(--ds-brand-strong);
    border-color: transparent;
}

.client-hero-kicker {
    color: var(--ds-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.client-hero-value {
    font-size: clamp(1.15rem, 1vw, 1.5rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ds-text);
}

.client-full-hero .client-hero-value { font-size: 1.35rem; }

.client-hero-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ds-text);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.client-hero-subtitle {
    font-size: 0.82rem;
    color: var(--ds-text-muted);
    font-weight: 500;
    line-height: 1.35;
    margin-top: 2px;
}

.client-hero-note {
    margin-top: 1rem;
    border-radius: var(--ds-radius);
    padding: 0.85rem 1rem;
    background: var(--ds-bg);
    border: 1px solid var(--ds-border);
    color: var(--ds-text-muted);
    font-size: 0.85rem;
}

/* ===== Status da feira (pill no hero) ===== */
.client-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 5px 12px 5px 10px;
    border-radius: var(--ds-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: background 0.2s var(--ds-ease);
}

.client-hero-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
}

.client-hero-status--open {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.22);
}

.client-hero-status--open .status-dot {
    background: var(--ds-success);
    animation: ds-pulse 2.2s infinite;
}

.client-hero-status--closed {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

.client-hero-status--closed .status-dot { background: var(--ds-danger); }

/* Hero "full" agora também é um card limpo (sem sangrar até as bordas da viewport) */
.partner-home-hero,
.client-full-hero {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.partner-home-hero .client-hero-note { margin-top: 1rem; }

.client-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.client-metric {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
}

.client-metric-bar {
    width: 4px;
    align-self: stretch;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-success);
}

.client-metric-bar.blue { background: var(--ds-info); }
.client-metric-bar.red { background: var(--ds-danger); }

.client-soft-card {
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-lg) !important;
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow) !important;
    transition: border-color 0.25s var(--ds-ease), box-shadow 0.25s var(--ds-ease), transform 0.25s var(--ds-ease);
}

.client-soft-card:hover {
    border-color: var(--ds-border-strong) !important;
    box-shadow: 0 12px 28px -8px rgba(30, 43, 67, 0.12) !important;
    transform: translateY(-2px);
}

.client-round-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(22, 167, 101, 0.1);
    color: var(--ds-brand);
}

/* ===========================
   Site login (estilo original com refino sutil)
   =========================== */
.site-login-shell {
    padding: 0.2rem 0 2rem;
    background: #f6f8f7;
}

.site-login-phone {
    max-width: 470px;
    margin: 0 auto;
}

.site-login-hero {
    position: relative;
    margin: 0 0 1rem;
    padding: 0.45rem 1rem 0.15rem;
    text-align: center;
}

.site-login-hero-top,
.site-login-moon {
    position: relative;
    z-index: 1;
}

.site-login-hero-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-login-moon {
    width: 116px;
    height: 116px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 16px 36px -10px rgba(17, 88, 54, 0.18);
}

.site-login-logo {
    width: 108px;
    height: 108px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #ffffff;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(22, 167, 101, 0.1);
}

.site-login-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(17, 88, 54, 0.18));
}

.site-login-hero > p {
    max-width: 22rem;
    margin: 0.9rem auto 0;
    color: #526071;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.005em;
}

.site-login-card {
    overflow: hidden;
    border-radius: 1.45rem;
    background: #ffffff;
    box-shadow: 0 16px 38px -12px rgba(29, 48, 72, 0.12);
}

.site-login-card-body {
    padding: 1.15rem;
}

.site-login-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #526071;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-login-input {
    border-radius: 1rem;
    background: #f3f7f5;
    transition: box-shadow 0.2s var(--ds-ease), background 0.2s var(--ds-ease);
}

.site-login-input:focus-within {
    background: #eef5f1;
    box-shadow: 0 0 0 3px rgba(22, 167, 101, 0.14);
}

.site-login-input .input-group-text,
.site-login-input .form-control,
.site-login-input .btn {
    min-height: 56px;
    border: 0;
}

.site-login-input .input-group-text {
    padding-left: 1rem;
    padding-right: 0.85rem;
    border-radius: 1rem 0 0 1rem;
    background: transparent;
    color: var(--ds-brand);
}

.site-login-input .form-control {
    background: transparent;
    color: #1f2733;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: none;
}

.site-login-input .form-control:focus {
    background: transparent;
    box-shadow: none;
}

.site-login-submit {
    width: 58px;
    border-radius: 1rem !important;
    color: #ffffff;
    background: var(--ds-brand);
    transition: background 0.2s var(--ds-ease);
}

.site-login-submit:hover { background: var(--ds-brand-strong); color: #fff; }

.site-login-full-submit {
    min-height: 52px;
    border-radius: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ds-brand-strong), var(--ds-brand));
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 18px -6px rgba(22, 167, 101, 0.45);
    transition: transform 0.2s var(--ds-ease), box-shadow 0.2s var(--ds-ease);
}

.site-login-full-submit:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(22, 167, 101, 0.55);
}

.site-login-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.site-login-action {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 62px;
    padding: 0.75rem;
    border-radius: 1rem;
    background: #f7f9f8;
    color: #1f2733;
    transition: background 0.2s var(--ds-ease), transform 0.2s var(--ds-ease);
}

.site-login-action:hover {
    background: #eef5f1;
    transform: translateY(-1px);
    color: #1f2733;
}

.site-login-action span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e8f8ef;
    color: var(--ds-brand);
}

.site-login-action strong {
    font-size: 0.92rem;
    line-height: 1.1;
    letter-spacing: -0.005em;
}

.site-login-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.85rem 1.15rem 1.15rem;
    background: #fbfcfb;
}

.site-login-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border-radius: 999px;
    background: #ffffff;
    color: #526071;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 14px -4px rgba(30, 43, 67, 0.08);
    transition: transform 0.2s var(--ds-ease), box-shadow 0.2s var(--ds-ease);
}

.site-login-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px -6px rgba(30, 43, 67, 0.12);
    color: #526071;
}

.site-login-contact .fa-whatsapp { color: var(--ds-brand); }
.site-login-contact .fa-instagram { color: #d83f79; }

.site-login-seals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: fit-content;
    max-width: 100%;
    margin: 1rem auto 0;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 24px -8px rgba(30, 43, 67, 0.1);
}

.site-login-seals img {
    width: 46px;
    background: transparent;
}

@media (min-width: 768px) {
    .client-home-hero {
        padding: 1.35rem 1.5rem;
    }

    .site-login-shell {
        display: flex;
        align-items: center;
    }

    .site-login-hero {
        padding-top: 0.65rem;
    }
}

@media (max-width: 420px) {
    .client-metric-strip {
        gap: 0.55rem;
    }

    .client-metric {
        gap: 0.48rem;
    }

    .client-metric .small {
        font-size: 0.72rem;
    }

    .site-login-moon {
        width: 108px;
        height: 108px;
    }

    .site-login-logo {
        width: 100px;
        height: 100px;
    }

    .site-login-logo img {
        width: 92px;
        height: 92px;
    }

    .site-login-hero > p {
        font-size: 0.9rem;
    }
}

/* ===========================
   Admin UI - aqui é o novo.
   =========================== 
*/

        .dashboard-wrapper {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            letter-spacing: -0.01em;
            padding-top: 1rem;
        }

        .dashboard-wrapper * {
            font-feature-settings: 'cv11', 'ss01', 'ss03';
        }

        /* ============ DELIVERY BAR ============ */
        .ds-delivery-bar {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border-radius: 16px;
            padding: 14px 18px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
        }

        .ds-delivery-bar::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at 80% 100%, rgba(16, 185, 129, 0.1), transparent 50%);
            pointer-events: none;
        }

        .ds-delivery-bar > * {
            position: relative;
            z-index: 1;
        }

        .ds-delivery-label {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fff;
            font-weight: 600;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding-right: 18px;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            margin-right: 6px;
        }

        .ds-delivery-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            background: rgba(99, 102, 241, 0.2);
            color: #a5b4fc;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
        }

        .ds-delivery-chip {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 6px 14px 6px 6px;
            transition: all 0.2s ease;
        }

        .ds-delivery-chip:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }

        .ds-delivery-avatar {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
        }

        .ds-delivery-name {
            color: #fff;
            font-weight: 600;
            font-size: 0.8rem;
            line-height: 1.1;
        }

        .ds-delivery-value {
            color: #34d399;
            font-weight: 700;
            font-size: 0.78rem;
            line-height: 1.1;
            font-variant-numeric: tabular-nums;
        }

        /* ============ KPI CARDS ============ */
        .ds-kpi-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
        }

        @media (max-width: 1199px) {
            .ds-kpi-grid { grid-template-columns: repeat(3, 1fr); }
        }
        @media (max-width: 767px) {
            .ds-kpi-grid { grid-template-columns: repeat(2, 1fr); }
        }

        .ds-kpi {
            background: var(--ds-surface);
            border: 1px solid var(--ds-border);
            border-radius: 16px;
            padding: 16px;
            position: relative;
            overflow: hidden;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: default;
        }

        .ds-kpi:hover {
            transform: translateY(-2px);
            border-color: var(--ds-border-strong);
            box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.1), 0 2px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .ds-kpi::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            opacity: 0.04;
            background: currentColor;
            transform: translate(30%, -30%);
            transition: all 0.4s ease;
        }

        .ds-kpi:hover::after {
            transform: translate(20%, -20%) scale(1.2);
            opacity: 0.06;
        }

        .ds-kpi-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
        }

        .ds-kpi-label {
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--ds-text-muted);
            margin: 0;
        }

        .ds-kpi-icon {
            width: 30px;
            height: 30px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.78rem;
            transition: transform 0.25s ease;
        }

        .ds-kpi:hover .ds-kpi-icon {
            transform: rotate(-8deg) scale(1.05);
        }

        .ds-kpi-value {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--ds-text);
            letter-spacing: -0.025em;
            line-height: 1.1;
            margin-bottom: 8px;
            font-variant-numeric: tabular-nums;
        }

        .ds-kpi-meta {
            font-size: 0.7rem;
            color: var(--ds-text-subtle);
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .ds-kpi-meta::before {
            content: '';
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: currentColor;
            opacity: 0.4;
        }

        /* Color variants */
        .ds-kpi--success { color: var(--ds-success); }
        .ds-kpi--warning { color: var(--ds-warning); }
        .ds-kpi--danger  { color: var(--ds-danger); }
        .ds-kpi--primary { color: var(--ds-primary); }
        .ds-kpi--dark    { color: var(--ds-text); }
        .ds-kpi--info    { color: var(--ds-info); }

        .ds-kpi--success .ds-kpi-icon { background: rgba(16, 185, 129, 0.1); }
        .ds-kpi--warning .ds-kpi-icon { background: rgba(245, 158, 11, 0.1); }
        .ds-kpi--danger  .ds-kpi-icon { background: rgba(239, 68, 68, 0.1); }
        .ds-kpi--primary .ds-kpi-icon { background: rgba(99, 102, 241, 0.1); }
        .ds-kpi--dark    .ds-kpi-icon { background: rgba(0, 0, 0, 0.06); }
        .ds-kpi--info    .ds-kpi-icon { background: rgba(59, 130, 246, 0.1); }

        /* Spark line at bottom */
        .ds-kpi-spark {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: currentColor;
            opacity: 0.8;
            transform-origin: left;
            transform: scaleX(0.3);
            transition: transform 0.4s ease;
        }

        .ds-kpi:hover .ds-kpi-spark {
            transform: scaleX(1);
        }

        /* ============ PANELS ============ */
        .ds-panel {
            background: var(--ds-surface);
            border: 1px solid var(--ds-border);
            border-radius: 16px;
            overflow: hidden;
            height: 100%;
            transition: all 0.25s ease;
            display: flex;
            flex-direction: column;
        }

        .ds-panel:hover {
            border-color: var(--ds-border-strong);
            box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06);
        }

        .ds-panel-head {
            padding: 16px 18px 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid var(--ds-border);
        }

        .ds-panel-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        .ds-panel-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--ds-text);
            margin: 0;
            letter-spacing: -0.01em;
        }

        .ds-panel-subtitle {
            font-size: 0.72rem;
            color: var(--ds-text-muted);
            font-weight: 500;
        }

        .ds-panel-badge {
            margin-left: auto;
            background: rgba(59, 130, 246, 0.08);
            color: var(--ds-info);
            font-size: 0.7rem;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 100px;
            font-variant-numeric: tabular-nums;
        }

        .ds-panel-body {
            padding: 6px 0;
            flex: 1;
            overflow: hidden;
        }

        .ds-panel-body--padded {
            padding: 12px 16px 16px;
        }

        /* ============ LIST ITEMS ============ */
        .ds-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 18px;
            text-decoration: none;
            color: inherit;
            transition: all 0.15s ease;
            position: relative;
            border-left: 2px solid transparent;
        }

        .ds-item:hover {
            background: rgba(0, 0, 0, 0.02);
            border-left-color: var(--ds-text);
            color: inherit;
            text-decoration: none;
        }

        .ds-item-main {
            min-width: 0;
            flex: 1;
            padding-right: 10px;
        }

        .ds-item-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--ds-text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.25;
        }

        .ds-item-sub {
            font-size: 0.7rem;
            color: var(--ds-text-muted);
            font-weight: 500;
            margin-top: 2px;
        }

        .ds-item-code {
            display: inline-block;
            font-family: 'JetBrains Mono', ui-monospace, monospace;
            font-size: 0.65rem;
            color: var(--ds-text-muted);
            background: var(--ds-bg);
            border: 1px solid var(--ds-border);
            padding: 1px 6px;
            border-radius: 4px;
            margin-top: 3px;
        }

        .ds-pill {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 100px;
            font-size: 0.74rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .ds-pill--success { background: rgba(16, 185, 129, 0.1); color: #047857; }
        .ds-pill--warning { background: rgba(245, 158, 11, 0.1); color: #b45309; }
        .ds-pill--primary { background: rgba(99, 102, 241, 0.1); color: #4338ca; }
        .ds-pill--danger  { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }

        /* ============ EMPTY STATE ============ */
        .ds-empty {
            padding: 36px 16px;
            text-align: center;
            color: var(--ds-text-subtle);
            font-size: 0.8rem;
        }

        .ds-empty::before {
            content: '';
            display: block;
            width: 32px;
            height: 32px;
            margin: 0 auto 10px;
            border-radius: 50%;
            background: var(--ds-bg);
            border: 2px dashed var(--ds-border-strong);
        }

        /* ============ RANK ITEMS ============ */
        .ds-rank {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 16px;
            transition: background 0.15s ease;
        }

        .ds-rank:hover {
            background: rgba(0, 0, 0, 0.02);
        }

        .ds-rank-num {
            width: 24px;
            height: 24px;
            border-radius: 8px;
            background: var(--ds-bg);
            border: 1px solid var(--ds-border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.72rem;
            color: var(--ds-text-muted);
            flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }

        .ds-rank:nth-child(1) .ds-rank-num {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
        }

        .ds-rank:nth-child(2) .ds-rank-num {
            background: linear-gradient(135deg, #e5e7eb, #9ca3af);
            color: #fff;
            border-color: transparent;
        }

        .ds-rank:nth-child(3) .ds-rank-num {
            background: linear-gradient(135deg, #fb923c, #c2410c);
            color: #fff;
            border-color: transparent;
        }

        .ds-rank-body {
            min-width: 0;
            flex: 1;
        }

        .ds-rank-name {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--ds-text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.2;
        }

        .ds-rank-value {
            font-size: 0.72rem;
            font-weight: 700;
            margin-top: 2px;
            font-variant-numeric: tabular-nums;
        }

        /* ============ FREIGHT ROW ============ */
        .ds-freight {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 14px;
            border-radius: 12px;
            background: var(--ds-bg);
            border: 1px solid var(--ds-border);
            transition: all 0.2s ease;
        }

        .ds-freight:hover {
            background: #fff;
            border-color: var(--ds-border-strong);
            transform: translateX(2px);
        }

        .ds-freight-label {
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 600;
            color: var(--ds-text-muted);
        }

        .ds-freight-value {
            font-size: 1rem;
            font-weight: 700;
            margin-top: 2px;
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
        }

        .ds-freight-icon {
            width: 30px;
            height: 30px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }

        /* ============ WHATSAPP BUTTON ============ */
        .ds-wa-btn {
            width: 30px;
            height: 30px;
            border-radius: 9px;
            background: #25d366;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            transition: all 0.2s ease;
            text-decoration: none;
            box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
        }

        .ds-wa-btn:hover {
            color: #fff;
            transform: scale(1.08);
            box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
        }

        /* ============ NEW BADGE ============ */
        .ds-new-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--ds-warning);
            margin-left: 6px;
            box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
            animation: ds-pulse 2s infinite;
            vertical-align: middle;
        }

        @keyframes ds-pulse {
            0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
            70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
            100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
        }

        /* ============ ANIMATION ============ */
        @keyframes ds-fade-up {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .ds-animate {
            animation: ds-fade-up 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
        }

        .ds-animate:nth-child(1) { animation-delay: 0.05s; }
        .ds-animate:nth-child(2) { animation-delay: 0.1s; }
        .ds-animate:nth-child(3) { animation-delay: 0.15s; }
        .ds-animate:nth-child(4) { animation-delay: 0.2s; }
        .ds-animate:nth-child(5) { animation-delay: 0.25s; }
        .ds-animate:nth-child(6) { animation-delay: 0.3s; }

        /* Section spacing */
        .ds-section {
            margin-bottom: 18px;
        }

        .ds-grid {
            display: grid;
            gap: 14px;
        }

        .ds-grid--4 {
            grid-template-columns: repeat(4, 1fr);
        }

        @media (max-width: 1199px) {
            .ds-grid--4 { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 767px) {
            .ds-grid--4 { grid-template-columns: 1fr; }
        }


    body.admin-ui {
        padding-top: 64px;
    }

    /* ============ NAVBAR ============ */
    .admin-navbar {
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid var(--ds-border);
        min-height: 64px;
        padding: 0;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    }

    .admin-navbar-shell {
        min-height: 64px;
    }

    /* ============ BRAND ============ */
    .admin-brand {
        color: var(--ds-text) !important;
        font-size: 0.95rem;
        font-weight: 700 !important;
        letter-spacing: -0.02em;
        
        border-radius: 10px;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .admin-brand:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    .admin-brand i {
        background: linear-gradient(135deg, #10b981, #059669);
        color: #fff;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    }

    /* ============ NAV LINKS ============ */
    .navbar-nav .admin-nav-link {
        color: var(--ds-text-muted) !important;
        font-size: 0.85rem;
        font-weight: 600 !important;
        padding: 8px 14px !important;
        border-radius: 10px;
        margin: 0 2px;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        position: relative;
    }

    .navbar-nav .admin-nav-link:hover {
        color: var(--ds-text) !important;
        background: rgba(0, 0, 0, 0.04);
    }

    .navbar-nav .admin-nav-link.active {
        color: var(--ds-text) !important;
        background: rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .admin-nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 18px;
        height: 2px;
        border-radius: 100px;
        background: var(--ds-text);
    }

    .navbar-nav .admin-nav-link .fa-solid,
    .navbar-nav .admin-nav-link .fas {
        font-size: 0.78rem;
        opacity: 0.7;
    }

    .dropdown-toggle::after {
        margin-left: 6px;
        border-top-width: 4px;
        border-right-width: 4px;
        border-left-width: 4px;
        opacity: 0.5;
    }

    /* ============ DROPDOWN MENU ============ */
    .admin-dropdown-menu {
        border: 1px solid var(--ds-border) !important;
        box-shadow: 0 10px 32px -8px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06) !important;
        border-radius: 14px !important;
        padding: 6px !important;
        margin-top: 8px !important;
        animation: ds-drop 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes ds-drop {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .admin-dropdown-menu .dropdown-item {
        border-radius: 8px;
        padding: 7px 10px !important;
        font-size: 0.82rem !important;
        font-weight: 500;
        color: var(--ds-text-muted);
        transition: all 0.15s ease;
        display: flex;
        align-items: center;
    }

    .admin-dropdown-menu .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.04);
        color: var(--ds-text);
    }

    .admin-dropdown-menu .dropdown-item.fw-bold,
    .admin-dropdown-menu .dropdown-item.text-primary {
        color: var(--ds-text) !important;
        background: rgba(99, 102, 241, 0.06);
    }

    .admin-dropdown-menu .dropdown-item.text-danger {
        color: var(--ds-danger) !important;
    }

    .admin-dropdown-menu .dropdown-item.text-danger:hover {
        background: rgba(239, 68, 68, 0.08);
    }

    .admin-dropdown-menu .dropdown-divider {
        margin: 4px 0 !important;
        border-color: var(--ds-border);
    }

    .admin-dropdown-menu .dropdown-item .fa-circle-dot {
        color: var(--ds-text-subtle) !important;
        font-size: 0.4rem !important;
    }

    .admin-dropdown-menu .dropdown-item.fw-bold .fa-circle-dot {
        color: var(--ds-primary) !important;
    }

    /* ============ SEARCH ============ */
    .admin-search {
        background: var(--ds-bg);
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid var(--ds-border);
        transition: all 0.2s ease;
    }

    .admin-search:focus-within {
        background: #fff;
        border-color: var(--ds-text);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    }

    .admin-search .input-group-text {
        background: transparent !important;
        border: none !important;
        padding-left: 12px;
        padding-right: 4px;
    }

    .admin-search .input-group-text i {
        font-size: 0.75rem;
        color: var(--ds-text-subtle);
    }

    .admin-search .form-control {
        background: transparent !important;
        border: none !important;
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--ds-text);
        padding-left: 6px;
        box-shadow: none !important;
    }

    .admin-search .form-control::placeholder {
        color: var(--ds-text-subtle);
        font-weight: 500;
    }

    .admin-search .form-control:focus {
        box-shadow: none !important;
    }

    .admin-search .btn-success {
        background: var(--ds-text) !important;
        border: none !important;
        font-weight: 600;
        font-size: 0.78rem;
        padding: 4px 14px;
        border-radius: 0;
    }

    .admin-search .btn-outline-secondary {
        background: transparent !important;
        border: none !important;
        color: var(--ds-text-subtle) !important;
        padding: 4px 10px;
    }

    .admin-search .btn-outline-secondary:hover {
        color: var(--ds-text) !important;
        background: rgba(0, 0, 0, 0.04) !important;
    }

    /* ============ AVATAR ============ */
    .admin-user-avatar {
        background: linear-gradient(135deg, #0a0a0a 0%, #404040 100%);
        color: #fff !important;
        border-radius: 50% !important;
        position: relative;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
        letter-spacing: 0;
    }

    .admin-user-avatar::after {
        content: '';
        position: absolute;
        right: -2px;
        bottom: -2px;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--ds-success);
        border: 2px solid #fff;
    }

    .dropdown:hover .admin-user-avatar,
    a:hover .admin-user-avatar {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* ============ MOBILE SEARCH BUTTON ============ */
    .navbar .btn-light {
        background: var(--ds-bg) !important;
        border-color: var(--ds-border) !important;
        transition: all 0.2s ease;
    }

    .navbar .btn-light:hover {
        background: #fff !important;
        border-color: var(--ds-border-strong) !important;
    }

    /* ============ NAVBAR TOGGLER ============ */
    .navbar-toggler {
        border: 1px solid var(--ds-border) !important;
        background: var(--ds-bg);
        border-radius: 10px !important;
        padding: 6px 10px !important;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2810,10,10, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.1em;
        height: 1.1em;
    }

    /* ============ MOBILE SEARCH PANEL ============ */
    #mobileSearch {
        background: #fff !important;
        border-top: 1px solid var(--ds-border) !important;
        box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.08);
    }

    /* ============ PAGE HEAD ============ */
    .admin-content {
        margin-top: 8px;
    }

    .admin-page-head {
        border-bottom: 1px solid var(--ds-border) !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
        margin-bottom: 12px !important;
    }

    .admin-module-title {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--ds-text);
        letter-spacing: -0.02em;
    }

    .admin-module-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: linear-gradient(135deg, #0a0a0a, #2d2d2d);
        color: #fff;
        font-size: 0.85rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    /* ============ BUTTONS ============ */
    .admin-btn-primary {
        background: var(--ds-text) !important;
        color: #fff !important;
        border: none !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        padding: 7px 14px !important;
        border-radius: 10px !important;
        transition: all 0.2s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
        letter-spacing: -0.01em;
    }

    .admin-btn-primary:hover {
        background: #1a1a1a !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        color: #fff !important;
    }

    .admin-btn-soft {
        background: var(--ds-bg) !important;
        border: 1px solid var(--ds-border) !important;
        color: var(--ds-text-muted) !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        padding: 7px 14px !important;
        border-radius: 10px !important;
        transition: all 0.2s ease;
        box-shadow: none !important;
    }

    .admin-btn-soft:hover {
        background: #fff !important;
        border-color: var(--ds-border-strong) !important;
        color: var(--ds-text) !important;
    }

    /* ============ ALERT ============ */
    .alert {
        border: 1px solid var(--ds-border) !important;
        border-radius: 12px !important;
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
        font-weight: 500;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
        animation: ds-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes ds-slide-in {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .alert-success {
        background: rgba(16, 185, 129, 0.08) !important;
        color: #047857 !important;
        border-color: rgba(16, 185, 129, 0.2) !important;
    }

    .alert-danger {
        background: rgba(239, 68, 68, 0.08) !important;
        color: #b91c1c !important;
        border-color: rgba(239, 68, 68, 0.2) !important;
    }

    .alert-warning {
        background: rgba(245, 158, 11, 0.08) !important;
        color: #b45309 !important;
        border-color: rgba(245, 158, 11, 0.2) !important;
    }

    .alert-info {
        background: rgba(59, 130, 246, 0.08) !important;
        color: #1d4ed8 !important;
        border-color: rgba(59, 130, 246, 0.2) !important;
    }

    .alert-primary {
        background: rgba(99, 102, 241, 0.08) !important;
        color: #4338ca !important;
        border-color: rgba(99, 102, 241, 0.2) !important;
    }

    .alert .btn-close {
        opacity: 0.5;
        font-size: 0.75rem;
    }

    /* ============ MOBILE ADJUSTS ============ */
    @media (max-width: 991px) {
        .navbar-collapse {
            background: #fff;
            margin: 8px -12px -8px;
            padding: 12px 16px 16px;
            border-top: 1px solid var(--ds-border);
            box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.06);
        }

        .navbar-nav .admin-nav-link {
            padding: 10px 12px !important;
            margin: 2px 0;
        }

        .navbar-nav .admin-nav-link.active::after {
            display: none;
        }

        .navbar-nav .admin-nav-link.active {
            background: rgba(0, 0, 0, 0.06);
        }
    }

    /* ============ SHELL ============ */
    .admin-shell {
        max-width: 1400px;
    }

    /* ============ ADMIN FORMS ============ */
    .admin-form-card {
        background: var(--ds-surface);
        border: 1px solid var(--ds-border);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    .admin-form-section {
        padding: 22px 24px;
        border-bottom: 1px solid var(--ds-border);
    }

    .admin-form-section:last-of-type { border-bottom: 0; }

    .admin-form-section-head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .admin-form-section-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        background: rgba(99, 102, 241, 0.1);
        color: var(--ds-primary);
        flex-shrink: 0;
    }

    .admin-form-section-icon--neutral {
        background: rgba(0, 0, 0, 0.05);
        color: var(--ds-text);
    }

    .admin-form-section-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--ds-text);
        letter-spacing: -0.01em;
        margin: 0;
        line-height: 1.2;
    }

    .admin-form-section-subtitle {
        font-size: 0.74rem;
        color: var(--ds-text-muted);
        font-weight: 500;
        margin-top: 2px;
    }

    /* Inputs estilo design system */
    .admin-field {
        position: relative;
    }

    .admin-field-label {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--ds-text-muted);
        margin-bottom: 6px;
    }

    .admin-input {
        width: 100%;
        background: var(--ds-bg) !important;
        border: 1px solid var(--ds-border) !important;
        border-radius: 10px !important;
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        color: var(--ds-text) !important;
        transition: border-color 0.2s var(--ds-ease), box-shadow 0.2s var(--ds-ease), background 0.2s var(--ds-ease);
        box-shadow: none !important;
    }

    .admin-input::placeholder { color: var(--ds-text-subtle); font-weight: 500; }

    .admin-input:focus {
        background: var(--ds-surface) !important;
        border-color: var(--ds-text) !important;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
        outline: none;
    }

    /* Cabeçalho de grupo de permissões */
    .admin-perm-group {
        border: 1px solid var(--ds-border);
        border-radius: 14px;
        background: var(--ds-bg);
        overflow: hidden;
    }

    .admin-perm-group + .admin-perm-group { margin-top: 14px; }

    .admin-perm-group-head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: var(--ds-surface);
        border-bottom: 1px solid var(--ds-border);
    }

    .admin-perm-group-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.78rem;
        background: rgba(0, 0, 0, 0.05);
        color: var(--ds-text);
        flex-shrink: 0;
    }

    .admin-perm-group-title {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--ds-text);
        letter-spacing: -0.005em;
    }

    .admin-perm-group-count {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--ds-text-muted);
        font-variant-numeric: tabular-nums;
    }

    .admin-perm-toggle-all {
        margin-left: auto;
        background: transparent;
        border: 1px solid var(--ds-border);
        color: var(--ds-text-muted);
        font-size: 0.72rem;
        font-weight: 600;
        padding: 5px 10px;
        border-radius: 8px;
        transition: all 0.15s var(--ds-ease);
    }

    .admin-perm-toggle-all:hover {
        background: var(--ds-surface);
        border-color: var(--ds-border-strong);
        color: var(--ds-text);
    }

    .admin-perm-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 8px;
        padding: 12px;
    }

    .admin-perm-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        background: var(--ds-surface);
        border: 1px solid var(--ds-border);
        border-radius: 10px;
        cursor: pointer;
        transition: border-color 0.15s var(--ds-ease), background 0.15s var(--ds-ease), transform 0.15s var(--ds-ease);
        margin: 0;
    }

    .admin-perm-card:hover {
        border-color: var(--ds-border-strong);
        transform: translateY(-1px);
    }

    .admin-perm-card-label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--ds-text);
        letter-spacing: -0.005em;
        line-height: 1.2;
    }

    .admin-perm-card .form-check-input {
        margin: 0;
        width: 2.2em;
        height: 1.2em;
        flex-shrink: 0;
        background-color: var(--ds-bg);
        border-color: var(--ds-border-strong);
        cursor: pointer;
        transition: background-color 0.2s var(--ds-ease), border-color 0.2s var(--ds-ease);
    }

    .admin-perm-card .form-check-input:checked {
        background-color: var(--ds-text);
        border-color: var(--ds-text);
    }

    .admin-perm-card:has(.form-check-input:checked) {
        border-color: var(--ds-text);
        background: #fafafa;
    }

    .admin-form-footer {
        padding: 16px 24px;
        background: var(--ds-bg);
        border-top: 1px solid var(--ds-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .admin-form-footer-hint {
        font-size: 0.74rem;
        color: var(--ds-text-muted);
        font-weight: 500;
    }

    .admin-form-footer .actions {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }

    @media (max-width: 575px) {
        .admin-form-section { padding: 18px 16px; }
        .admin-form-footer  { padding: 14px 16px; }
        .admin-perm-grid    { grid-template-columns: 1fr; }
    }        