:root {
    --admin-green-950: var(--avium-ink-950, #102c1e);
    --admin-green-900: var(--avium-ink-900, #183b2f);
    --admin-green-800: var(--avium-ink-800, #24533f);
    --admin-green-600: var(--avium-green-600, #3e7c61);
    --admin-lime: var(--avium-mint-100, #ddeee5);
    --admin-mint: var(--avium-green-500, #4f9475);
    --admin-brand-primary: #24533f;
    --admin-brand-secondary: #3e7c61;
    --admin-brand-accent: #ddeee5;
    --admin-brand-hover: #183c2e;
    --accent: var(--admin-brand-secondary);
}

body.admin-shell { font-family: 'Plus Jakarta Sans', sans-serif; }
.admin-shell .sidebar { background: radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--admin-brand-accent) 24%, transparent), transparent 15rem), linear-gradient(165deg, var(--admin-brand-primary), var(--admin-brand-hover)); border-right-color: color-mix(in srgb, var(--admin-brand-accent) 28%, transparent); }
.admin-shell .sidebar::before { background: color-mix(in srgb, var(--admin-brand-accent) 12%, transparent); }
.admin-shell .sidebar::after { background: color-mix(in srgb, var(--admin-brand-secondary) 14%, transparent); }
.admin-shell .brand-caption, .admin-shell .nav-label { color: var(--admin-brand-accent); }
.admin-shell .nav-hq a.active, .admin-shell .btn-hq-main, .admin-shell .btn-success { background: linear-gradient(135deg, var(--admin-brand-secondary), var(--admin-brand-primary)); color: #fff !important; }
.admin-shell .nav-hq a:hover, .admin-shell .text-success, .admin-shell h2 { color: var(--admin-brand-secondary) !important; }
.admin-shell .nav-hq a.active i { color: #fff; }
.admin-shell .quick-icon { color: var(--admin-brand-primary); background: color-mix(in srgb, var(--admin-brand-accent) 30%, #fff); }
.admin-shell .btn-outline-success { color: var(--admin-brand-primary); border-color: var(--admin-brand-secondary); }
.admin-shell .btn-outline-success:hover, .admin-shell .btn-action:hover, .settings-nav-link.active, .settings-subnav a.active { color: #fff !important; background: var(--admin-brand-secondary) !important; border-color: var(--admin-brand-secondary) !important; }
.admin-shell .input-hq:focus, .admin-shell .search-bar input:focus { border-color: var(--admin-brand-secondary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--admin-brand-accent) 28%, transparent); }
.admin-shell .badge-success { color: var(--admin-brand-primary); background: color-mix(in srgb, var(--admin-brand-accent) 22%, #fff); border-color: var(--admin-brand-accent); }
.admin-shell .sidebar-collapse { color: var(--admin-brand-primary); }

.diagnostics-hero{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;margin-bottom:22px;padding:24px;color:#fff;background:linear-gradient(135deg,var(--admin-green-800),var(--admin-green-900));border:1px solid rgba(255,255,255,.14);border-radius:var(--avium-radius-lg,24px);box-shadow:var(--avium-shadow-sm)}
.diagnostics-hero.needs-attention{background:linear-gradient(135deg,#6f4314,#3d2a12)}
.diagnostics-hero-icon{width:54px;height:54px;display:grid;place-items:center;font-size:24px;color:var(--admin-green-900);background:#e4f5e9;border-radius:17px}
.diagnostics-hero.needs-attention .diagnostics-hero-icon{color:#754615;background:#fff0c7}
body.admin-shell .diagnostics-hero h4{margin:3px 0 7px;color:#fff!important;font-weight:800}body.admin-shell .diagnostics-hero p{max-width:750px;margin:0;color:rgba(255,255,255,.82)!important}
body.admin-shell .diagnostics-eyebrow{font-size:11px;font-weight:900;letter-spacing:.13em;color:#d8f0df!important}.diagnostics-refresh{white-space:nowrap}
.diagnostics-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.diagnostics-summary-card{display:grid;grid-template-columns:42px 1fr;align-items:center;column-gap:12px;padding:18px 20px;background:#fff;border:1px solid #dce9e1;border-radius:18px;box-shadow:0 10px 28px rgba(16,44,30,.06)}
.diagnostics-summary-card i{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:13px}.diagnostics-summary-card strong{font-size:24px;line-height:1;color:#193f2f}.diagnostics-summary-card span{font-size:12px;color:#6c8176}
.diagnostics-summary-card.is-passed i{color:#176b40;background:#e1f4e8}.diagnostics-summary-card.is-warning i{color:#8a5a06;background:#fff1ca}.diagnostics-summary-card.is-failed i{color:#a5251d;background:#fde8e6}
.diagnostics-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.diagnostics-group{padding:22px!important}.diagnostics-group h5{margin:0 0 15px;color:#183f2e;font-weight:800}
.diagnostics-check{display:grid;grid-template-columns:34px 1fr;gap:11px;align-items:start;padding:13px 0;border-top:1px solid #e4ece7}.diagnostics-check:first-child{border-top:0}.diagnostics-check-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;font-size:12px}.diagnostics-check strong,.diagnostics-check small{display:block}.diagnostics-check strong{color:#234636;font-size:13px}.diagnostics-check small{margin-top:3px;color:#72847b;line-height:1.45}.diagnostics-check.is-passed .diagnostics-check-icon{color:#176b40;background:#e1f4e8}.diagnostics-check.is-warning .diagnostics-check-icon{color:#8a5a06;background:#fff1ca}.diagnostics-check.is-failed .diagnostics-check-icon{color:#a5251d;background:#fde8e6}
.diagnostics-note{margin:22px 0 0;padding:15px 17px;color:#486457;background:#edf5f0;border:1px solid #d7e8de;border-radius:14px;font-size:12px;line-height:1.55}.diagnostics-note i{margin-right:7px;color:#2f765b}
@media(max-width:900px){.diagnostics-hero{grid-template-columns:auto 1fr}.diagnostics-refresh{grid-column:1/-1}.diagnostics-groups{grid-template-columns:1fr}}
@media(max-width:560px){.diagnostics-hero{grid-template-columns:1fr}.diagnostics-summary{grid-template-columns:1fr}}

body.admin-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% -10%, rgba(53, 211, 200, .14), transparent 32rem),
        radial-gradient(circle at 32% 110%, rgba(126, 231, 135, .09), transparent 36rem),
        #06110d;
}

.admin-listing-placeholder { object-fit: contain !important; padding: 9px; background: linear-gradient(145deg, #fff, #e8f3ec); }
.admin-shell .footer-signature {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 18px;
    color:#E8F5EE;
    background: linear-gradient(135deg,#102C1E,#1B4D34);
    border:1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(26,77,51,.08);
}
.admin-shell .footer-signature-mark {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #45b874, #1e7b4b);
    border-radius: 14px;
    box-shadow: 0 9px 20px rgba(35,142,82,.22);
}
.admin-shell .footer-signature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.35;
}
.admin-shell .footer-signature-copy strong {
    color: #214c38;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .025em;
}
.admin-shell .footer-signature-copy span {
    margin-top: 2px;
    color: #71877c;
    font-size: 11px;
}
.admin-shell .site-credits {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #AFC8BC;
    font-size: 11px;
}
.admin-shell .site-credits-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 34px;
    background: rgba(255,255,255,.18);
}
.admin-shell .site-credits .fa-heart {
    margin: 0 3px;
    color: #e63946;
}
.admin-shell .site-credits a {
    color:#F5D76E;
    font-weight: 800;
    text-decoration: none;
}
.admin-shell.admin-login .login-credit {
    margin-top: 12px;
}
.admin-shell.admin-login .footer-signature {
    width: fit-content;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 15px;
    box-shadow: 0 9px 24px rgba(9, 45, 29, .12);
}
.admin-shell.admin-login .footer-signature-copy {
    display: none;
}
.admin-shell.admin-login .footer-signature-mark { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.admin-shell.admin-login .footer-signature-copy strong { font-size: 9px; }
.admin-shell.admin-login .footer-signature-copy span { font-size: 8px; }
.admin-shell.admin-login .site-credits { gap: 4px; font-size: 9px; white-space: nowrap; }
.admin-shell.admin-login .site-credits-divider { display: none; }
@media (max-width: 760px) {
    .admin-shell .footer-signature {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    .admin-shell .footer-signature-copy {
        flex: 1;
    }
    .admin-shell .site-credits {
        width: 100%;
        flex-wrap: wrap;
        padding-top: 12px;
        border-top: 1px solid #dce9e1;
    }
    .admin-shell .site-credits-divider {
        display: none;
    }
    .admin-shell.admin-login .footer-signature { width: fit-content; max-width: calc(100vw - 24px); flex-wrap: nowrap; gap: 7px; padding: 8px 9px; }
    .admin-shell.admin-login .site-credits { width: auto; flex: 0 1 auto; padding-top: 0; border-top: 0; white-space: normal; line-height: 1.25; }
    .admin-shell.admin-login .footer-signature-copy span { display: none; }
}

.admin-shell .sidebar {
    width: 292px;
    overflow: hidden;
    padding: 26px 18px 22px;
    background:
        radial-gradient(circle at 12% 8%, rgba(126, 231, 135, .22), transparent 15rem),
        linear-gradient(165deg, #123f2d 0%, #08291d 42%, #041a12 100%);
    border-right: 1px solid rgba(126, 231, 135, .14);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .32);
}

.admin-shell .sidebar::before,
.admin-shell .sidebar::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.admin-shell .sidebar::before {
    width: 210px;
    height: 210px;
    right: -120px;
    top: 18%;
    background: rgba(53, 211, 200, .08);
    filter: blur(2px);
}

.admin-shell .sidebar::after {
    width: 170px;
    height: 170px;
    left: -100px;
    bottom: 2%;
    background: rgba(126, 231, 135, .08);
}

.admin-shell .brand-block {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(16px);
}

.admin-shell .brand-block img {
    width: 54px;
    height: 54px;
    padding: 7px;
    object-fit: contain;
    border-radius: 17px;
    background: #fff;
}

.admin-shell .brand-title { font-size: 14px; font-weight: 800; color: #fff; }
.admin-shell .brand-caption { margin-top: 3px; font-size: 10px; color: #9dd7ba; letter-spacing: .13em; text-transform: uppercase; }

.admin-shell .nav-label {
    position: relative;
    z-index: 1;
    padding: 0 14px;
    margin: 18px 0 9px;
    color: #76a68f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-shell .nav-hq { position: relative; z-index: 1; }
.admin-shell .nav-hq a {
    min-height: 52px;
    margin-bottom: 6px;
    padding: 14px 16px;
    color: #b9d3c6;
    border: 1px solid transparent;
    border-radius: 17px;
}

.admin-shell .nav-hq a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .09);
    transform: translateX(3px);
}

.admin-shell .nav-hq a.active {
    color: #042417;
    background: linear-gradient(120deg, var(--admin-lime), #45d08a 48%, var(--admin-mint));
    box-shadow: 0 14px 30px rgba(53, 211, 200, .2);
}

.admin-shell .nav-hq a.active::before { display: none; }
.admin-shell .nav-hq a.active i { color: #063b27; }
.admin-shell .nav-hq i { display: grid; place-items: center; width: 25px; margin-right: 11px; }

.admin-shell .nav-hq .nav-logout {
    margin-top: 22px;
    color: #ff9c9c !important;
    background: rgba(230, 57, 70, .07);
    border-color: rgba(230, 57, 70, .12);
}

.admin-shell .main { margin-left: 292px; padding: 42px clamp(24px, 4vw, 64px) 60px; color: #dcece4; }

.admin-shell .main p,
.admin-shell .main td,
.admin-shell .main label,
.admin-shell .main .modal-body { color: #dcece4; }
.admin-shell .text-muted { color: #a9c4b6 !important; }
.admin-shell .opacity-50 { color: #9fb9ac !important; opacity: .88 !important; }
.admin-shell .opacity-75 { color: #c4d8ce !important; opacity: .92 !important; }
.admin-shell .table-hq td { color: #dcece4; }
.admin-shell .input-hq::placeholder,
.admin-shell .search-bar input::placeholder { color: #91aa9e; opacity: 1; }
.admin-shell .modal-content p,
.admin-shell .modal-content label { color: #d4e6dd; }

.admin-shell .admin-topbar {
    padding: 15px 18px 15px 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background: rgba(10, 30, 22, .72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
    backdrop-filter: blur(18px);
}

.admin-shell .glass-card {
    border-color: rgba(126, 231, 135, .09);
    background: linear-gradient(145deg, rgba(18, 48, 36, .82), rgba(8, 25, 18, .78));
    box-shadow: 0 24px 55px rgba(0, 0, 0, .22);
}

.admin-shell .glass-card:hover { border-color: rgba(126, 231, 135, .19); }
.admin-shell .btn-hq-main { background: linear-gradient(120deg, #73df91, #35bd72 52%, #249c5a); }
.admin-shell .input-hq { background-color: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .1); }

.admin-shell .metric-card { min-height: 156px; display: flex; align-items: center; gap: 16px; padding: 24px; text-align: left; }
.metric-icon { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; font-size: 21px; }
.metric-icon-birds { color: #168957; background: #e5f7ec; }
.metric-icon-leads { color: #08783d; background: #dff7e9; }
.metric-icon-views { color: #236d57; background: #e1f2ed; }
.metric-copy { min-width: 0; display: flex; flex-direction: column; }
.metric-label { margin-bottom: 3px; color: #567164; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.metric-value { color: #173d2c; font-size: clamp(28px, 3vw, 38px); line-height: 1; letter-spacing: -.04em; }
.metric-copy small { margin-top: 8px; color: #71897d; font-size: 11px; }

.settings-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.settings-sidebar {
    position: sticky;
    top: 24px;
    padding: 16px;
    border: 1px solid rgba(126,231,135,.11);
    border-radius: 28px;
    background: linear-gradient(155deg, rgba(21,70,49,.9), rgba(6,29,20,.94));
    box-shadow: 0 22px 50px rgba(0,0,0,.24);
}
.settings-sidebar-title {
    padding: 10px 12px 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #bcd4c8 !important;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    transition: .25s ease;
}
.settings-nav-link i { width: 22px; text-align: center; color: #7cbd98; }
.settings-nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.08);
    transform: translateX(3px);
}
.settings-nav-link.active {
    color: #073320 !important;
    background: linear-gradient(120deg, #8be89c, #53d482);
    box-shadow: 0 12px 25px rgba(69,208,138,.18);
}
.settings-nav-link.active i { color: #0a4b2e; }
.settings-subnav {
    display: grid;
    gap: 4px;
    padding: 4px 0 10px 44px;
}
.settings-subnav a {
    padding: 7px 10px;
    border-left: 2px solid rgba(126,231,135,.18);
    color: #91b7a4;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}
.settings-subnav a:hover,
.settings-subnav a.active { color: #8be89c; border-left-color: #65d48d; }
.settings-content { min-width: 0; }
.settings-content > .glass-card:first-child { margin-top: 0; }
.gallery-admin-item { transition: opacity .2s ease, transform .2s ease; }
.gallery-admin-item.sortable-ghost { opacity: .28; }
.gallery-admin-item.sortable-chosen { transform: scale(.98); }
.gallery-admin-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #dce9e1; border-radius: 12px; background: #edf5f0; }
.gallery-admin-photo img, .gallery-admin-photo video { width: 100%; height: 100%; object-fit: cover; }
.gallery-admin-play { position: absolute; inset: 50% auto auto 50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; transform: translate(-50%, -50%); color: #143b2c; background: rgba(255,255,255,.92); box-shadow: 0 10px 25px rgba(0,0,0,.2); font-size: 18px; pointer-events: none; }
.gallery-admin-type { position: absolute; left: 48px; top: 10px; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(8,41,29,.82); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gallery-drag-handle, .gallery-delete { position: absolute; top: 7px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #fff; cursor: pointer; }
.gallery-drag-handle { left: 7px; background: rgba(16,58,40,.82); cursor: grab; }
.gallery-drag-handle:active { cursor: grabbing; }
.gallery-delete { right: 7px; background: rgba(195,45,58,.9); }
.activity-list { display: grid; }
.activity-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e3ece6; }
.activity-row:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #39a765; box-shadow: 0 0 0 4px #e3f5ea; }
.activity-row strong { color: #214b37; font-size: 12px; }
.activity-row p { color: #577064 !important; font-size: 12px; }
.activity-row time { color: #789084; font-size: 10px; white-space: nowrap; }

.admin-shell .mobile-header {
    background: linear-gradient(110deg, #123f2d, #08291d 60%, #075245);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

@media (max-width: 992px) {
    .admin-shell .sidebar { left: -310px; width: min(292px, 86vw); }
    .admin-shell .sidebar.active { left: 0; }
    .admin-shell .main { margin-left: 0; padding: 86px 16px 34px; }
    .admin-shell .admin-topbar { align-items: flex-start !important; gap: 14px; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-sidebar { position: static; display: flex; gap: 8px; overflow-x: auto; border-radius: 20px; }
    .settings-sidebar-title, .settings-subnav { display: none; }
    .settings-nav-link { flex: 0 0 auto; margin: 0; white-space: nowrap; }
}

@media (max-width: 576px) {
    .admin-shell .admin-topbar { flex-direction: column; }
    .admin-shell .admin-topbar .btn { width: 100%; }
    .admin-shell .glass-card { padding: 22px; border-radius: 24px; }
}

/* Light administrative workspace */
body.admin-panel {
    --bg: #eef5f1;
    --card: #ffffff;
    --border: #dce9e1;
    --text: #AFC8BC;
    color: #173d2c;
    background: linear-gradient(145deg, #f5faf7 0%, #e8f2ec 100%) !important;
}
body.admin-panel .main { color: #264b3a; }
body.admin-panel .admin-topbar,
body.admin-panel .glass-card {
    color: #264b3a;
    background: rgba(255,255,255,.94);
    border-color: #dce9e1;
    box-shadow: 0 18px 45px rgba(30,76,53,.09);
}
body.admin-panel h1,
body.admin-panel h3,
body.admin-panel h4,
body.admin-panel h5,
body.admin-panel h6 { color: #173d2c; }
body.admin-panel h2 { color: #278452 !important; }
body.admin-panel .main p,
body.admin-panel .main td,
body.admin-panel .main label,
body.admin-panel .main .modal-body { color: #385e4c; }
body.admin-panel .text-muted { color: #688276 !important; }
body.admin-panel .opacity-50 { color: #718b7e !important; opacity: 1 !important; }
body.admin-panel .opacity-75 { color: #527064 !important; opacity: 1 !important; }
body.admin-panel .table-hq tr { background: #fff; }
body.admin-panel .table-hq tr:hover { background: #f4faf6; }
body.admin-panel .table-hq td { color: #315746; border-color: #e3eee7; }
body.admin-panel .input-hq,
body.admin-panel .search-bar input {
    color: #173d2c;
    background: #f7fbf8;
    border-color: #d7e7dd;
}
body.admin-panel .input-hq:focus,
body.admin-panel .search-bar input:focus { background: #fff; }
body.admin-panel .input-hq::placeholder,
body.admin-panel .search-bar input::placeholder { color: #789184; }
body.admin-panel select.input-hq option { color: #173d2c; background: #fff; }
body.admin-panel .modal-content {
    color: #264b3a;
    background: #fff;
    border-color: #dce9e1;
    box-shadow: 0 35px 90px rgba(25,66,46,.2);
}
body.admin-panel .modal-header { background: #f5faf7; border-color: #dce9e1; }
body.admin-panel .modal-header .modal-title,
body.admin-panel .modal-content h4,
body.admin-panel .modal-content h5 { color: #1d6742; }
body.admin-panel .modal-content p,
body.admin-panel .modal-content label { color: #456657; }
body.admin-panel .quick-action { color: #274e3c !important; background: #f7fbf8; border-color: #dce9e1; }
body.admin-panel .quick-action:hover { background: #edf7f1; }
body.admin-panel hr { border-color: #dce9e1 !important; }
body.admin-panel footer { color: #557065; }
body.admin-panel .btn-action {
    color: #1f5b3d;
    background: #edf7f1;
    border-color: #cfe4d7;
}
body.admin-panel .btn-action:hover,
body.admin-panel .btn-action:focus {
    color: #fff !important;
    background: #2d9b61;
    border-color: #2d9b61;
}
body.admin-panel .btn-action.text-danger { color: #c73535 !important; background: #fff0f0; border-color: #f2cbcb; }
body.admin-panel .btn-action.text-danger:hover { color: #fff !important; background: #d63b3b; border-color: #d63b3b; }
body.admin-panel .btn-action.text-success { color: #1f8a51 !important; }
body.admin-panel .btn-action.text-warning { color: #9a6a00 !important; background: #fff7dc; border-color: #eadb9f; }
.btn-action.btn-sale { color: #17673f !important; background: #e5f7ec; border-color: #b9e2c8; }
.btn-action.btn-sale:hover { color: #fff !important; background: #238654; border-color: #238654; }
.sale-modal-content { overflow: hidden; border: 1px solid #d7e7dd !important; border-radius: 24px !important; background: #fff !important; }
.sale-modal-content .modal-header { align-items: flex-start; padding: 24px 26px; background: linear-gradient(145deg, #f5faf7, #e7f4ec) !important; border-color: #dce9e1 !important; }
.sale-modal-content .modal-title { color: #173d2c !important; }
.sale-modal-content .close { margin: -5px -5px 0 0; opacity: .65; }
.sale-modal-content .modal-body { padding: 27px; }
.sale-modal-bird { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 15px; border: 1px solid #dce9e1; border-radius: 16px; background: #f7fbf8; }
.sale-modal-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #3baa6b, #17633f); }
.sale-modal-bird small, .sale-modal-bird strong { display: block; }
.sale-modal-bird small { margin-bottom: 3px; color: #708278; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sale-modal-bird strong { color: #173d2c; font-size: 16px; }
.sale-modal-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 13px; background: #edf8f1; color: #3e5d4d; font-size: 12px; line-height: 1.55; }
.sale-modal-note i { margin-top: 3px; color: #2b965d; }
.sale-details-panel { padding: 18px 18px 3px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--secondary-color) 6%, transparent); }
.sale-meta-pill { display: inline-flex; align-items: center; gap: 5px; margin: 3px 5px 0 0; padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 10px; font-weight: 700; }
.sale-modal-empty { padding: 12px 4px 4px; text-align: center; }
.sale-modal-empty > i { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; color: #22764b; background: #e5f7ec; font-size: 22px; }
.sale-modal-empty h6 { color: #173d2c; font-weight: 800; }
.sale-modal-empty p { margin: 8px auto 20px; max-width: 350px; color: #64766c; font-size: 13px; line-height: 1.6; }
body.admin-panel .btn-action.text-success:hover,
body.admin-panel .btn-action.text-warning:hover { color: #fff !important; }
body.admin-panel .badge-success {
    color: #146d3f;
    background: #e7f7ed;
    border-color: #bee8cc;
}
body.admin-panel .badge-warning {
    color: #7a5600;
    background: #fff4c6;
    border-color: #ead785;
}
body.admin-panel .badge-danger {
    color: #a6222b;
    background: #ffe8ea;
    border-color: #f5c2c7;
}

/* Unified administrative components */
body.admin-panel h1,
body.admin-panel h2,
body.admin-panel h3,
body.admin-panel h4,
body.admin-panel h5,
body.admin-panel h6,
body.admin-panel .btn,
body.admin-panel .nav-label { letter-spacing: 0; }

body.admin-panel .admin-topbar {
    min-height: 72px;
    margin-bottom: 28px !important;
    padding: 16px 20px;
    border-radius: 8px;
}

body.admin-panel .glass-card {
    padding: clamp(20px, 2.2vw, 32px);
    border-radius: 8px;
    margin-bottom: 24px;
}

body.admin-panel .input-hq,
body.admin-panel .search-bar input {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

body.admin-panel textarea.input-hq { min-height: 112px; }
body.admin-panel select.input-hq { padding-right: 42px; background-position: right 14px center; }
body.admin-panel label.small { display: block; margin-bottom: 8px; line-height: 1.35; }

body.admin-panel .btn-hq-main,
body.admin-panel .btn-success,
body.admin-panel .btn-outline-success,
body.admin-panel .btn-outline-danger,
body.admin-panel .btn-outline-light {
    min-height: 44px;
    border-radius: 8px;
    letter-spacing: 0;
}

body.admin-panel .btn-outline-light {
    color: #225c3e;
    background: #fff;
    border-color: #bcd6c7;
}
body.admin-panel .btn-outline-light:hover { color: #fff; background: #287c50; border-color: #287c50; }

body.admin-panel .main > .d-flex.justify-content-between.align-items-center.flex-wrap.mb-4 {
    min-height: 72px;
    padding: 16px 18px;
    border: 1px solid #dce9e1;
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 30px rgba(30,76,53,.07);
}

body.admin-panel .table-responsive {
    border: 1px solid #dce9e1;
    border-radius: 8px;
    background: #fff;
}
body.admin-panel .glass-card .table-responsive { border: 0; }
body.admin-panel .table-hq { margin: 0; border-spacing: 0; }
body.admin-panel .table-hq th {
    padding: 12px 16px;
    color: #5f7b6d;
    background: #f5faf7;
    border-bottom: 1px solid #dce9e1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
body.admin-panel .table-hq td { padding: 16px; }
body.admin-panel .table-hq td:first-child,
body.admin-panel .table-hq td:last-child { border-radius: 0; }
body.admin-panel .table-hq tr:last-child td { border-bottom: 0; }

body.admin-panel .empty-state { padding: 44px 20px; color: #668075; opacity: 1; }
body.admin-panel .empty-state i { color: #64a981; font-size: 36px; }

body.admin-panel .settings-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
body.admin-panel .settings-sidebar { padding: 12px; border-radius: 8px; }
@media (min-width: 993px) {
    body.admin-panel .settings-sidebar {
        max-height: calc(100vh - 48px);
        max-height: calc(100dvh - 48px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
}
body.admin-panel .settings-nav-link { min-height: 46px; padding: 10px 12px; border-radius: 8px; }
body.admin-panel .settings-subnav { padding-left: 38px; }
body.admin-panel .settings-subnav a { border-radius: 6px; }
body.admin-panel .settings-content { width: 100%; }
body.admin-panel .settings-content > .glass-card { width: 100%; }

body.admin-panel .char-counter { margin-top: 7px; }
body.admin-panel .badge-hq { border-radius: 6px; letter-spacing: 0; }
body.admin-panel .btn-action { border-radius: 8px; }

.menu-editor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.menu-editor-item { padding: 18px; border: 1px solid #dce9e1; border-radius: 8px; background: #102C1E; }
.menu-editor-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.menu-editor-heading > div:nth-child(2) { min-width: 0; flex: 1; }
.menu-editor-heading strong { display: block; color: #173d2c; font-size: 13px; }
.menu-editor-heading small { display: block; margin-top: 3px; color: #688276; font-size: 11px; }
.menu-editor-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; color: #21774a; background: #e3f4e9; border-radius: 8px; }
.menu-toggle { position: relative; flex: 0 0 46px; width: 46px; height: 26px; margin: 0 !important; cursor: pointer; }
.menu-toggle input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.menu-toggle span { position: absolute; inset: 0; border-radius: 999px; background: #bccbc3; transition: .2s ease; }
.menu-toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: .2s ease; }
.menu-toggle input:checked + span { background: #2fac68; }
.menu-toggle input:checked + span::after { transform: translateX(20px); }
.menu-toggle input:focus-visible + span { outline: 3px solid rgba(47,172,104,.25); outline-offset: 2px; }

@media (max-width: 767px) {
    .menu-editor-list { grid-template-columns: 1fr; }
    .menu-editor-item { padding: 15px; }
}

/* Collapsible desktop sidebar */
.sidebar-collapse {
    position: absolute;
    top: 50%;
    right: -18px;
    z-index: 1005;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff !important;
    background: rgba(23, 74, 54, .96);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
    cursor: pointer;
    transform: translateY(-50%);
    transition: .25s ease;
}
.sidebar-collapse i { color: #fff !important; }
.sidebar-collapse:hover,
.sidebar-collapse:focus-visible { color: #173d2c !important; background: rgba(255,255,255,.96); border-color: #b9d4c4; outline: none; transform: translateY(-50%) scale(1.06); }
.sidebar-collapse:hover i,
.sidebar-collapse:focus-visible i { color: #173d2c !important; }
.admin-panel .sidebar {
    z-index: 1100;
    height: 100vh;
    height: 100dvh;
    overflow: visible;
}
.admin-panel .sidebar > .nav-hq {
    max-height: calc(100vh - 164px);
    max-height: calc(100dvh - 164px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(126,231,135,.35) transparent;
    padding-right: 4px;
}
.admin-panel .main { position: relative; z-index: 1; }
.sidebar, .main { transition: width .3s ease, margin-left .3s ease, padding .3s ease, left .3s ease; }

.sidebar-collapsed .sidebar { width: 92px; padding-left: 13px; padding-right: 13px; overflow: visible; }
.sidebar-collapsed .main { margin-left: 92px; }
.sidebar-collapsed .brand-block { justify-content: center; padding: 8px; }
.sidebar-collapsed .brand-block > div,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-text { display: none; }
.sidebar-collapsed .nav-hq a { position: relative; justify-content: center; padding: 13px 10px; }
.sidebar-collapsed .nav-hq i { width: 26px; margin: 0; font-size: 19px; }
.sidebar-collapsed .nav-badge { position: absolute; top: 5px; right: 5px; padding: 1px 5px; }
.sidebar-collapsed .sidebar-collapse i { transform: rotate(180deg); }
.sidebar-collapsed .nav-hq a::after { display: none; }
.sidebar-icon-tooltip {
    position: fixed;
    z-index: 5000;
    max-width: 240px;
    padding: 9px 12px;
    color: #fff;
    background: #102f24;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(6px,-50%);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.sidebar-icon-tooltip.is-visible { opacity: 1; visibility: visible; transform: translate(0,-50%); }

.sidebar-backdrop { display: none; }
.close-sidebar-mobile { display: none; }
.mobile-admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 800; }
.mobile-admin-brand img { padding: 4px 7px; border-radius: 10px; background: #fff; }

@media (max-width: 992px) {
    .sidebar-collapse { display: none; }
    body.admin-menu-open { overflow: hidden; }
    .admin-panel .sidebar { width: min(330px, 92vw); left: -350px; height: 100vh; height: 100dvh; max-height: none; padding: 64px 14px max(18px, env(safe-area-inset-bottom)); border-radius: 0 22px 22px 0; overflow: hidden; }
    .admin-panel .sidebar.active { left: 0; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 1090; border: 0; background: rgba(2,16,10,.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
    .sidebar-backdrop.active { display: block; opacity: 1; pointer-events: auto; }
    .close-sidebar-mobile { position: absolute; display: grid; place-items: center; top: 17px; right: 17px; width: 42px; height: 42px; z-index: 2; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; }
    .sidebar-collapsed .sidebar { width: min(330px, 92vw); padding: 64px 14px max(18px, env(safe-area-inset-bottom)); overflow: hidden; }
    .admin-panel .sidebar > .nav-hq,
    .sidebar-collapsed .sidebar > .nav-hq { max-height: calc(100vh - 82px); max-height: calc(100dvh - 82px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .sidebar-collapsed .main { margin-left: 0; }
    .sidebar-collapsed .brand-block > div,
    .sidebar-collapsed .nav-text { display: initial; }
    .sidebar-collapsed .nav-label { display: block; }
    .sidebar-collapsed .nav-hq a { justify-content: flex-start; padding: 14px 16px; }
    .sidebar-collapsed .nav-hq i { width: 25px; margin-right: 11px; }
    .sidebar-collapsed .nav-hq a::after { display: none; }
    .sidebar-collapsed .nav-hq .nav-submenu { display: block; }
    .admin-shell .nav-label { margin: 12px 0 6px; }
    .admin-shell .nav-hq a,
    .sidebar-collapsed .nav-hq a { min-height: 44px; margin-bottom: 4px; padding: 10px 13px; border-radius: 13px; }
    .admin-shell .nav-hq .nav-logout { margin-top: 12px; }
    .admin-shell .nav-hq .nav-submenu { margin-left: 26px; margin-bottom: 6px; }
    .admin-shell .nav-hq .nav-submenu a { min-height: 36px; padding: 7px 10px; }
    .admin-shell .mobile-header { min-height: 64px; padding: 10px 14px; }
    .admin-shell .main { padding-top: 82px; }
    .admin-shell .admin-topbar { flex-direction: column; }
    .admin-shell .admin-topbar .btn { width: 100%; }
    .admin-shell .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-shell .table-hq {
        min-width: 680px;
    }
    .admin-shell .d-inline-flex {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .settings-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; overflow: visible; background: #fff; border-color: #dce9e1; box-shadow: 0 14px 35px rgba(30,76,53,.08); }
    .settings-nav-link { min-width: 0; min-height: 48px; padding: 10px; white-space: normal; color: #3d6552 !important; background: #f3f8f5; }
    .settings-nav-link i { flex: 0 0 20px; color: #41815e; }
    .settings-nav-link.active { color: #073320 !important; }
    .settings-subnav { grid-column: 1 / -1; display: flex; gap: 6px; padding: 2px 2px 8px; overflow-x: auto; }
    .settings-subnav a { flex: 0 0 auto; padding: 8px 12px; color: #527363; background: #edf5f0; border: 0; border-radius: 10px; }
    .settings-subnav a.active { color: #fff; background: #2d9b61; }
}

@media (max-width: 480px) {
    .settings-sidebar { grid-template-columns: 1fr; }
    .settings-nav-link { font-size: 12px; }
    .admin-shell .table-hq td { padding: 14px 10px; }
    .admin-shell .btn-action { width: 38px; height: 38px; }
    .admin-shell .metric-card { min-height: 124px; padding: 20px; }
    .admin-shell .main { padding-left: 12px; padding-right: 12px; }
    .admin-shell .btn-hq-main,
    .admin-shell .btn-outline-success,
    .admin-shell .btn-success,
    .admin-shell .btn-outline-light {
        width: 100%;
        margin-bottom: 8px;
        white-space: normal;
    }
    .admin-shell .search-bar,
    .admin-shell .search-bar input {
        max-width: none;
        width: 100%;
    }
    .admin-shell .glass-card { padding: 18px; }
}

@media (min-width: 993px) and (max-height: 850px) {
    .admin-shell .sidebar { padding-top: 18px; padding-bottom: 18px; }
    .admin-shell .brand-block { padding: 9px; margin-bottom: 14px; }
    .admin-shell .brand-block img { width: 44px; height: 44px; }
    .admin-shell .nav-label { margin: 10px 0 5px; }
    .admin-shell .nav-hq a { min-height: 42px; margin-bottom: 3px; padding: 9px 13px; border-radius: 13px; }
    .admin-shell .nav-hq .nav-logout { margin-top: 10px; }
    .admin-shell .nav-hq .nav-submenu a { min-height: 32px; padding: 6px 10px; }
    .admin-panel .sidebar > .nav-hq { max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); }
}

@media (max-width: 992px) and (max-height: 700px) {
    .admin-panel .sidebar,
    .sidebar-collapsed .sidebar { padding-top: 58px; }
    .close-sidebar-mobile { top: 10px; right: 12px; width: 38px; height: 38px; }
    .admin-shell .nav-label { margin-top: 8px; }
    .admin-shell .nav-hq a,
    .sidebar-collapsed .nav-hq a { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
}

/* ===== Admin experience refresh 2026 ===== */
body.admin-panel .main{max-width:none}
.admin-welcome{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:34px 38px;border:1px solid #d9e8df;border-radius:30px;background:linear-gradient(135deg,#173f31 0%,#285f49 62%,#39775d 100%);box-shadow:0 24px 60px rgba(24,59,47,.18)}
.admin-welcome:after{content:"";position:absolute;right:-80px;top:-120px;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.08)}
.admin-welcome-copy,.admin-welcome-actions{position:relative;z-index:1}.admin-welcome-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;color:#d9f0e3;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.admin-welcome h1{margin:0 0 8px!important;color:#fff!important;font-size:clamp(24px,3vw,36px)!important;letter-spacing:-.035em}.admin-welcome p{margin:0;color:#e5f3eb!important;font-size:15px}.admin-welcome-actions{display:flex;flex-wrap:wrap;gap:10px}.btn-admin-ghost,.btn-admin-highlight{padding:12px 18px;border-radius:14px;font-weight:800}.btn-admin-ghost{color:#fff!important;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08)}.btn-admin-ghost:hover{color:#173f31!important;background:#fff}.btn-admin-highlight{color:#17351f!important;border:1px solid #e6c64b;background:#e6c64b}.btn-admin-highlight:hover{color:#102c1e!important;background:#f1d86d}
.admin-secondary-metrics .mini-stat{height:100%;display:flex;align-items:center;gap:13px;padding:17px 18px;border:1px solid #dce9e1;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(24,59,47,.06)}.admin-secondary-metrics .mini-stat i{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;color:#285f49;background:#e9f5ed}.admin-secondary-metrics .mini-stat strong{display:block;color:#173f31;font-size:22px;line-height:1}.admin-secondary-metrics .mini-stat span{display:block;margin-top:5px;color:#61786c;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.panel-eyebrow{display:block;margin-bottom:7px;color:#477a62;font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.dashboard-chart-card{min-height:390px}
body.admin-panel .admin-topbar{position:sticky;top:14px;z-index:50;padding:13px 16px!important;border:1px solid rgba(220,233,225,.9)!important;border-radius:20px!important;background:rgba(255,255,255,.9)!important;backdrop-filter:blur(16px);box-shadow:0 12px 34px rgba(24,59,47,.08)!important}
body.admin-panel .table-hq tr{transition:.18s ease}body.admin-panel .table-hq tr:hover{background:#f4faf6;transform:none}body.admin-panel .btn-action{border-radius:12px!important}.admin-shell .empty-state{opacity:1!important;padding:46px 24px!important;border:1px dashed #c9ddd1;border-radius:22px;background:#f8fcf9}.admin-shell .empty-state i{color:#477a62}.admin-shell .empty-state p{color:#587064!important}
@media(max-width:992px){.admin-welcome{align-items:flex-start;flex-direction:column;padding:28px}.admin-welcome-actions{width:100%}.admin-welcome-actions .btn{flex:1}}
@media(max-width:576px){.admin-welcome{padding:24px 20px;border-radius:24px}.admin-welcome-actions{flex-direction:column}.admin-welcome-actions .btn{width:100%}.admin-secondary-metrics .mini-stat{padding:14px}.admin-secondary-metrics .mini-stat i{width:36px;height:36px}.admin-secondary-metrics .mini-stat strong{font-size:19px}}

/* ===== Correções de contraste dos créditos — v6.2 ===== */
.admin-shell .footer-signature,
.admin-shell .admin-credit-signature,
.admin-shell .login-credit.footer-signature {
    color: #f4fbf7 !important;
    background: linear-gradient(135deg, #0b2c1d 0%, #17452f 100%) !important;
    border-color: rgba(255,255,255,.16) !important;
    box-shadow: 0 14px 38px rgba(3,24,15,.22) !important;
}
.admin-shell .footer-signature-copy strong,
.admin-shell .footer-signature-copy span,
.admin-shell .site-credits,
.admin-shell .site-credits span,
.admin-shell .site-credits strong {
    color: #f4fbf7 !important;
}
.admin-shell .footer-signature-copy span,
.admin-shell .site-credits {
    color: #cbe3d5 !important;
}
.admin-shell .site-credits a {
    color: #f5d76e !important;
}
.admin-shell .site-credits a:hover {
    color: #fff0a8 !important;
}
@media (max-width:760px) {
    .admin-shell .site-credits {
        border-top-color: rgba(255,255,255,.18) !important;
    }
}

/* =========================================================
   v6.3 — revisão de contraste dos estados hover do painel
   ========================================================= */
body.admin-panel a,
body.admin-panel button,
body.admin-panel .btn,
body.admin-panel .btn-action,
body.admin-panel .quick-action,
body.admin-panel .settings-nav-link {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* Hover sobre fundos verdes/escuros: texto e ícones claros */
body.admin-panel .btn-hq-main:hover,
body.admin-panel .btn-hq-main:focus,
body.admin-panel .btn-success:hover,
body.admin-panel .btn-success:focus,
body.admin-panel .btn-outline-success:hover,
body.admin-panel .btn-outline-success:focus,
body.admin-panel .btn-outline-light:hover,
body.admin-panel .btn-outline-light:focus,
body.admin-panel .btn-action:hover,
body.admin-panel .btn-action:focus,
body.admin-panel .quick-action:hover,
body.admin-panel .quick-action:focus,
body.admin-panel .sidebar-collapse:hover,
body.admin-panel .sidebar-collapse:focus {
    color: #ffffff !important;
}
body.admin-panel .btn-hq-main:hover *,
body.admin-panel .btn-hq-main:focus *,
body.admin-panel .btn-success:hover *,
body.admin-panel .btn-success:focus *,
body.admin-panel .btn-outline-success:hover *,
body.admin-panel .btn-outline-success:focus *,
body.admin-panel .btn-outline-light:hover *,
body.admin-panel .btn-outline-light:focus *,
body.admin-panel .btn-action:hover *,
body.admin-panel .btn-action:focus *,
body.admin-panel .quick-action:hover *,
body.admin-panel .quick-action:focus *,
body.admin-panel .sidebar-collapse:hover *,
body.admin-panel .sidebar-collapse:focus * {
    color: #ffffff !important;
}

body.admin-panel .quick-action:hover,
body.admin-panel .quick-action:focus {
    background: #287c50 !important;
    border-color: #287c50 !important;
}

/* Variações de ações */
body.admin-panel .btn-action.text-danger:hover,
body.admin-panel .btn-action.text-danger:focus {
    color: #fff !important;
    background: #c9343f !important;
    border-color: #c9343f !important;
}
body.admin-panel .btn-action.text-success:hover,
body.admin-panel .btn-action.text-success:focus {
    color: #fff !important;
    background: #218a52 !important;
    border-color: #218a52 !important;
}
body.admin-panel .btn-action.text-warning:hover,
body.admin-panel .btn-action.text-warning:focus {
    color: #1b2b21 !important;
    background: #f2cf52 !important;
    border-color: #e4bd2e !important;
}
body.admin-panel .btn-action.text-warning:hover *,
body.admin-panel .btn-action.text-warning:focus * {
    color: #1b2b21 !important;
}

/* Sidebar escura */
body.admin-panel .nav-hq a:hover,
body.admin-panel .nav-hq a:focus,
body.admin-panel .settings-nav-link:hover,
body.admin-panel .settings-nav-link:focus {
    color: #ffffff !important;
}
body.admin-panel .nav-hq a:hover i,
body.admin-panel .nav-hq a:focus i,
body.admin-panel .settings-nav-link:hover i,
body.admin-panel .settings-nav-link:focus i {
    color: #ffffff !important;
}

/* Links em áreas claras: hover escuro e legível */
body.admin-panel .main a:not(.btn):not(.btn-action):not(.quick-action):not(.settings-nav-link):hover,
body.admin-panel .main a:not(.btn):not(.btn-action):not(.quick-action):not(.settings-nav-link):focus {
    color: #145c38 !important;
}

/* Tabelas: texto não perde contraste ao passar o mouse */
body.admin-panel .table-hq tbody tr:hover,
body.admin-panel .table-hq tbody tr:focus-within {
    background: #eaf5ee !important;
}
body.admin-panel .table-hq tbody tr:hover td,
body.admin-panel .table-hq tbody tr:focus-within td,
body.admin-panel .table-hq tbody tr:hover td a:not(.btn):not(.btn-action),
body.admin-panel .table-hq tbody tr:focus-within td a:not(.btn):not(.btn-action) {
    color: #244d39 !important;
}

/* Cards clicáveis */
body.admin-panel .glass-card a:hover h1,
body.admin-panel .glass-card a:hover h2,
body.admin-panel .glass-card a:hover h3,
body.admin-panel .glass-card a:hover h4,
body.admin-panel .glass-card a:hover h5,
body.admin-panel .glass-card a:hover h6,
body.admin-panel .glass-card a:focus h1,
body.admin-panel .glass-card a:focus h2,
body.admin-panel .glass-card a:focus h3,
body.admin-panel .glass-card a:focus h4,
body.admin-panel .glass-card a:focus h5,
body.admin-panel .glass-card a:focus h6 {
    color: inherit !important;
}

/* Botão dourado mantém texto escuro */
body.admin-panel .btn-admin-highlight:hover,
body.admin-panel .btn-admin-highlight:focus,
body.admin-panel .btn-admin-highlight:hover *,
body.admin-panel .btn-admin-highlight:focus * {
    color: #102c1e !important;
}

/* =========================================================
   V6.4 — REVISÃO GLOBAL DE CONTRASTE DO PAINEL
   ========================================================= */
body.admin-panel {
    --admin-dark: #101d17;
    --admin-dark-2: #182a21;
    --admin-light: #f4f8f5;
    --admin-text: #21382d;
    --admin-muted: #60746a;
    --admin-on-dark: #ffffff;
    --admin-muted-dark: #d2e2d8;
}

/* Sidebar e regiões realmente escuras */
body.admin-panel :is(.sidebar,.mobile-header,.admin-welcome,.admin-footer,.site-credits,.modal-header) {
    color: var(--admin-on-dark) !important;
}
body.admin-panel :is(.sidebar,.mobile-header,.admin-welcome,.admin-footer,.site-credits,.modal-header) :is(h1,h2,h3,h4,h5,h6,strong,label) {
    color: #fff !important;
}
body.admin-panel :is(.sidebar,.mobile-header,.admin-welcome,.admin-footer,.site-credits,.modal-header) :is(p,small,span,.text-muted) {
    color: var(--admin-muted-dark) !important;
}
body.admin-panel .sidebar .nav-hq a {
    color: rgba(255,255,255,.82) !important;
}
body.admin-panel .sidebar .nav-hq a i { color: rgba(255,255,255,.68) !important; }
body.admin-panel .sidebar .nav-hq a:hover,
body.admin-panel .sidebar .nav-hq a:focus-visible {
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.16) !important;
}
body.admin-panel .sidebar .nav-hq a:hover i,
body.admin-panel .sidebar .nav-hq a:focus-visible i { color: #fff !important; }
body.admin-panel .sidebar .nav-hq a.active {
    color: #173b2e !important;
    background: rgba(255,255,255,.94) !important;
    border-color: rgba(255,255,255,.94) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.2) !important;
}
body.admin-panel .sidebar .nav-hq a.active i,
body.admin-panel .sidebar .nav-hq a.active .nav-text { color: #173b2e !important; }
body.admin-panel .sidebar .nav-hq a.active::before { background: #fff !important; box-shadow: none !important; }
body.admin-panel .sidebar .nav-logout:hover { background: rgba(218,67,78,.2) !important; }

/* Conteúdo claro */
body.admin-panel :is(.main,.glass-card,.stat-card,.table-wrap,.settings-card,.content-panel,.modal-content:not(.modal-header),.dropdown-menu) {
    color: var(--admin-text);
}
body.admin-panel :is(.glass-card,.stat-card,.table-wrap,.settings-card,.content-panel,.modal-content,.dropdown-menu) :is(h1,h2,h3,h4,h5,h6,strong,label) {
    color: var(--admin-text);
}
body.admin-panel :is(.glass-card,.stat-card,.table-wrap,.settings-card,.content-panel,.modal-content,.dropdown-menu) :is(p,small,.text-muted,.form-text) {
    color: var(--admin-muted) !important;
}

/* Não deixar regra de marca transformar títulos em verde claro sobre fundo claro */
body.admin-panel .main h2,
body.admin-panel .main .text-success:not(.btn):not(.badge) { color: #245a42 !important; }

/* Navegação de configurações */
body.admin-panel .settings-nav-link,
body.admin-panel .settings-subnav a {
    color: #344f42 !important;
}
body.admin-panel .settings-nav-link i,
body.admin-panel .settings-subnav a i { color: #557064 !important; }
body.admin-panel .settings-nav-link:hover,
body.admin-panel .settings-nav-link:focus-visible,
body.admin-panel .settings-subnav a:hover,
body.admin-panel .settings-subnav a:focus-visible {
    color: #fff !important;
    background: #2e5e4e !important;
    border-color: #2e5e4e !important;
}
body.admin-panel .settings-nav-link:hover *,
body.admin-panel .settings-nav-link:focus-visible *,
body.admin-panel .settings-subnav a:hover *,
body.admin-panel .settings-subnav a:focus-visible * { color: #fff !important; }
body.admin-panel .settings-nav-link.active,
body.admin-panel .settings-subnav a.active {
    color: #173b2e !important;
    background: #e5f1e9 !important;
    border-color: #bcd5c5 !important;
}
body.admin-panel .settings-nav-link.active *,
body.admin-panel .settings-subnav a.active * { color: #173b2e !important; }

/* Hover consistente para botões */
body.admin-panel :is(.btn-success,.btn-primary,.btn-hq-main):hover,
body.admin-panel :is(.btn-success,.btn-primary,.btn-hq-main):focus-visible {
    color: #fff !important;
    background: #214f3c !important;
    border-color: #214f3c !important;
}
body.admin-panel :is(.btn-success,.btn-primary,.btn-hq-main):hover *,
body.admin-panel :is(.btn-success,.btn-primary,.btn-hq-main):focus-visible * { color: #fff !important; }
body.admin-panel .btn-outline-success:hover,
body.admin-panel .btn-outline-success:focus-visible {
    color: #fff !important;
    background: #2e5e4e !important;
    border-color: #2e5e4e !important;
}
body.admin-panel .btn-outline-success:hover *,
body.admin-panel .btn-outline-success:focus-visible * { color: #fff !important; }
body.admin-panel :is(.btn-light,.btn-outline-light):hover,
body.admin-panel :is(.btn-light,.btn-outline-light):focus-visible {
    color: #173b2e !important;
    background: #fff !important;
    border-color: #fff !important;
}

/* Quick actions: texto nunca some no hover */
body.admin-panel .quick-action { color: #294638 !important; }
body.admin-panel .quick-action :is(h1,h2,h3,h4,h5,h6,strong,span,i) { color: inherit !important; }
body.admin-panel .quick-action:hover,
body.admin-panel .quick-action:focus-visible {
    color: #fff !important;
    background: linear-gradient(135deg,#2e5e4e,#214638) !important;
    border-color: #2e5e4e !important;
}
body.admin-panel .quick-action:hover *,
body.admin-panel .quick-action:focus-visible * { color: #fff !important; }
body.admin-panel .quick-action:hover .quick-icon,
body.admin-panel .quick-action:focus-visible .quick-icon {
    color: #173b2e !important;
    background: #fff !important;
}

/* Tabelas */
body.admin-panel .table-hq thead th { color: #496257 !important; }
body.admin-panel .table-hq tbody td { color: #294238 !important; }
body.admin-panel .table-hq tbody tr:hover,
body.admin-panel .table-hq tbody tr:focus-within { background: #e5f1e9 !important; }
body.admin-panel .table-hq tbody tr:hover :is(td,span,strong,small),
body.admin-panel .table-hq tbody tr:focus-within :is(td,span,strong,small) { color: #203b2f !important; }
body.admin-panel .table-hq tbody tr:hover .badge,
body.admin-panel .table-hq tbody tr:focus-within .badge { color: inherit !important; }

/* Inputs e placeholders */
body.admin-panel :is(input,textarea,select,.form-control,.input-hq) {
    color: #20382d !important;
    background: #fff !important;
    border-color: #c8d8ce !important;
}
body.admin-panel :is(input,textarea,.form-control,.input-hq)::placeholder { color: #71847a !important; opacity: 1; }
body.admin-panel :is(input,textarea,select,.form-control,.input-hq):focus {
    color: #20382d !important;
    background: #fff !important;
    border-color: #477a62 !important;
}

/* Créditos do painel */
body.admin-panel :is(.admin-footer,.site-credits) {
    background: linear-gradient(135deg,#102c1e,#173f31) !important;
    border-color: rgba(255,255,255,.12) !important;
}
body.admin-panel :is(.admin-footer,.site-credits),
body.admin-panel :is(.admin-footer,.site-credits) * { color: #dcebe2 !important; }
body.admin-panel :is(.admin-footer,.site-credits) strong,
body.admin-panel :is(.admin-footer,.site-credits) a { color: #fff !important; }
body.admin-panel :is(.admin-footer,.site-credits) a:hover { color: #fff !important; text-decoration: underline; }

/* Modais escuros no cabeçalho, corpo claro */
body.admin-panel .modal-header,
body.admin-panel .modal-header * { color: #fff !important; }
body.admin-panel .modal-body,
body.admin-panel .modal-footer { color: var(--admin-text) !important; background: #fff !important; }

/* Foco visível e acessível */
body.admin-panel a:focus-visible,
body.admin-panel button:focus-visible,
body.admin-panel input:focus-visible,
body.admin-panel select:focus-visible,
body.admin-panel textarea:focus-visible {
    outline: 3px solid #9bc8ae !important;
    outline-offset: 2px;
}

/* =========================================================
   V6.5 — CORREÇÃO DEFINITIVA DE CONTRASTE EM SUBMENUS
   ========================================================= */
body.admin-panel .settings-sidebar {
    color: #fff !important;
    background: linear-gradient(155deg,#173f31 0%,#0f2b20 58%,#091b14 100%) !important;
    border-color: rgba(255,255,255,.12) !important;
}
body.admin-panel .settings-sidebar-title { color:#fff !important; }
body.admin-panel .settings-sidebar .settings-nav-link {
    color: rgba(255,255,255,.84) !important;
    background: transparent !important;
    border-color: transparent !important;
}
body.admin-panel .settings-sidebar .settings-nav-link i,
body.admin-panel .settings-sidebar .settings-nav-link span { color: inherit !important; }
body.admin-panel .settings-sidebar .settings-nav-link:hover,
body.admin-panel .settings-sidebar .settings-nav-link:focus-visible {
    color:#fff !important;
    background:rgba(255,255,255,.11) !important;
    border-color:rgba(255,255,255,.16) !important;
}
body.admin-panel .settings-sidebar .settings-nav-link.active {
    color:#15382b !important;
    background:rgba(255,255,255,.94) !important;
    border-color:rgba(255,255,255,.94) !important;
    box-shadow:0 10px 25px rgba(0,0,0,.2) !important;
}
body.admin-panel .settings-sidebar .settings-nav-link.active i,
body.admin-panel .settings-sidebar .settings-nav-link.active span { color:#15382b !important; }

body.admin-panel .settings-sidebar .settings-subnav {
    margin:2px 0 10px 18px !important;
    padding:7px !important;
    border:1px solid rgba(255,255,255,.09) !important;
    border-radius:10px !important;
    background:rgba(255,255,255,.055) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important;
}
body.admin-panel .settings-sidebar .settings-subnav a {
    display:block !important;
    padding:9px 11px !important;
    border:1px solid transparent !important;
    border-left:0 !important;
    border-radius:7px !important;
    color:rgba(255,255,255,.78) !important;
    background:transparent !important;
    line-height:1.35 !important;
}
body.admin-panel .settings-sidebar .settings-subnav a:hover,
body.admin-panel .settings-sidebar .settings-subnav a:focus-visible {
    color:#fff !important;
    background:rgba(255,255,255,.11) !important;
    border-color:rgba(255,255,255,.12) !important;
}
body.admin-panel .settings-sidebar .settings-subnav a.active {
    color:#15382b !important;
    background:rgba(255,255,255,.93) !important;
    border-color:rgba(255,255,255,.93) !important;
    font-weight:800 !important;
}

/* Submenus da navegação principal */
body.admin-panel .sidebar .nav-hq .nav-submenu {
    padding:6px !important;
    border-left:0 !important;
    border:1px solid rgba(255,255,255,.08) !important;
    border-radius:10px !important;
    background:rgba(255,255,255,.045) !important;
}
body.admin-panel .sidebar .nav-hq .nav-submenu a {
    color:rgba(255,255,255,.76) !important;
    background:transparent !important;
    border:1px solid transparent !important;
}
body.admin-panel .sidebar .nav-hq .nav-submenu a:hover,
body.admin-panel .sidebar .nav-hq .nav-submenu a:focus-visible {
    color:#fff !important;
    background:rgba(255,255,255,.11) !important;
    border-color:rgba(255,255,255,.12) !important;
}
body.admin-panel .sidebar .nav-hq .nav-submenu a.active {
    color:#15382b !important;
    background:rgba(255,255,255,.93) !important;
    border-color:rgba(255,255,255,.93) !important;
}
body.admin-panel .sidebar .nav-hq .nav-submenu a.active * { color:#15382b !important; }

/* Containers escuros da área de configurações nunca usam texto escuro */
body.admin-panel .menu-editor-item {
    color:#e8f2ec !important;
    background:linear-gradient(145deg,#143a2b,#0e281e) !important;
    border-color:rgba(255,255,255,.10) !important;
}
body.admin-panel .menu-editor-item :is(h1,h2,h3,h4,h5,h6,strong,label) {
    color:#fff !important;
}
body.admin-panel .menu-editor-item :is(p,small,span,.text-muted,.form-text) {
    color:#cfe0d6 !important;
}

@media (max-width: 992px) {
    body.admin-panel .settings-sidebar {
        background:#fff !important;
        border-color:#dce9e1 !important;
    }
    body.admin-panel .settings-sidebar-title { color:#294638 !important; }
    body.admin-panel .settings-sidebar .settings-nav-link {
        color:#294638 !important;
        background:#f3f8f5 !important;
        border-color:#dce9e1 !important;
    }
    body.admin-panel .settings-sidebar .settings-nav-link.active {
        color:#fff !important;
        background:#2e5e4e !important;
        border-color:#2e5e4e !important;
    }
    body.admin-panel .settings-sidebar .settings-nav-link.active i,
    body.admin-panel .settings-sidebar .settings-nav-link.active span { color:#fff !important; }
    body.admin-panel .settings-sidebar .settings-subnav {
        background:#f6faf7 !important;
        border-color:#dce9e1 !important;
    }
    body.admin-panel .settings-sidebar .settings-subnav a { color:#365447 !important; }
    body.admin-panel .settings-sidebar .settings-subnav a:hover,
    body.admin-panel .settings-sidebar .settings-subnav a:focus-visible {
        color:#fff !important;
        background:#2e5e4e !important;
    }
    body.admin-panel .settings-sidebar .settings-subnav a.active {
        color:#fff !important;
        background:#244f3e !important;
        border-color:#244f3e !important;
    }
}

/* ===== Avium Pro v7 — contraste, busca, tema e produtividade ===== */
.admin-shell .admin-topbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.admin-shell .admin-tool-btn{min-height:40px;display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.07);color:#f7fff9;font-size:12px;font-weight:800;transition:.22s ease}
.admin-shell .admin-tool-btn:hover,.admin-shell .admin-tool-btn:focus{background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.28);outline:none;transform:translateY(-1px)}
.admin-shell .admin-tool-btn kbd{padding:2px 6px;border:1px solid rgba(255,255,255,.16);border-radius:6px;background:rgba(0,0,0,.2);color:#dff6e8;font-size:9px}
.admin-shell .admin-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.admin-shell .admin-health-card{display:flex;align-items:center;gap:14px;min-height:92px;padding:16px 18px;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));color:#fff!important;text-decoration:none!important;box-shadow:0 16px 35px rgba(0,0,0,.14);transition:.22s ease}
.admin-shell .admin-health-card:hover{background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.055));border-color:rgba(126,231,135,.34);transform:translateY(-3px)}
.admin-shell .admin-health-card>div:nth-child(2){min-width:0;flex:1}.admin-shell .admin-health-card span{display:block;color:#fff;font-weight:800;font-size:13px}.admin-shell .admin-health-card small{display:block;margin-top:4px;color:#a9cdbb!important;font-size:10px}.admin-shell .admin-health-card>i{color:#9fd8b8}
.admin-shell .health-icon,.admin-shell .health-ring{flex:0 0 54px;width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:rgba(126,231,135,.12);color:#7ee787;font-size:19px}
.admin-shell .health-ring{border-radius:50%;background:conic-gradient(#7ee787 calc(var(--score)*1%),rgba(255,255,255,.09) 0);position:relative}.admin-shell .health-ring:before{content:"";position:absolute;inset:5px;border-radius:50%;background:#0b2117}.admin-shell .health-ring strong{position:relative;color:#fff;font-size:11px}
html.command-palette-open,body.command-palette-open{overflow:hidden!important;overscroll-behavior:none}.command-palette{position:fixed;inset:0;z-index:99999;display:none;align-items:flex-start;justify-content:center;padding:7vh 18px 30px}.command-palette.is-open{display:flex}.command-palette-backdrop{position:absolute;inset:0;border:0;background:rgba(3,15,10,.68);backdrop-filter:blur(14px) saturate(.8)}.command-palette-panel{position:relative;display:flex;flex-direction:column;width:min(720px,100%);max-height:86vh;overflow:hidden;border:1px solid rgba(166,222,188,.2);border-radius:28px;background:#0b2a1d;box-shadow:0 38px 120px rgba(0,0,0,.48),0 0 0 1px rgba(255,255,255,.03)}
.command-palette-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px 14px;background:linear-gradient(135deg,#164934,#0b2a1d);color:#fff!important}.command-palette-brand{display:flex;align-items:center;gap:13px}.command-palette-brand>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:rgba(126,231,135,.14);color:#8df09a;box-shadow:inset 0 0 0 1px rgba(126,231,135,.13)}.command-palette-brand strong,.command-palette-brand small{display:block}.command-palette-brand strong{color:#fff!important;font-size:15px}.command-palette-brand small{margin-top:2px;color:#a9cbbb!important;font-size:11px}.command-palette-header>button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(255,255,255,.06);color:#d9eee3;cursor:pointer;transition:.2s}.command-palette-header>button:hover{background:rgba(255,255,255,.14);color:#fff;transform:rotate(4deg)}
.command-search{display:flex;align-items:center;gap:13px;margin:0 20px 8px;padding:13px 15px;border:1px solid rgba(153,211,176,.22);border-radius:16px;background:#f6fbf8;color:#2c7250;box-shadow:0 10px 28px rgba(0,0,0,.14)}body.admin-shell .command-palette .command-search input[type="search"]{flex:1;min-width:0;height:auto!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#173c2b!important;-webkit-text-fill-color:#173c2b!important;font:750 15px 'Plus Jakarta Sans',sans-serif!important}body.admin-shell .command-palette .command-search input[type="search"]::placeholder{color:#718b7e!important;-webkit-text-fill-color:#718b7e!important;opacity:1}.command-search kbd,.command-palette footer kbd{padding:4px 7px;border:1px solid rgba(32,76,55,.14);border-radius:7px;background:#e9f3ed;color:#355f4b;font-size:9px}.command-results-label{display:flex;align-items:center;justify-content:space-between;padding:5px 23px 7px;color:#a9cbbb;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.command-results-label small{color:#719786!important;font-size:9px;letter-spacing:0}
.command-results{min-height:0;max-height:54vh;overflow:auto;padding:4px 12px 12px;scrollbar-width:thin;scrollbar-color:#3f765b #0b2a1d}.command-results::-webkit-scrollbar{width:8px}.command-results::-webkit-scrollbar-track{background:#0b2a1d}.command-results::-webkit-scrollbar-thumb{border:2px solid #0b2a1d;border-radius:999px;background:#3f765b}.command-results a{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;margin:3px 0;padding:12px 14px;border:1px solid transparent;border-radius:16px;color:#effbf3!important;text-decoration:none!important;transition:.18s ease}.command-results a>i{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(126,231,135,.1);color:#7ee787;transition:.18s}.command-results a span{display:flex;min-width:0;flex-direction:column}.command-results a strong{overflow:hidden;color:#fff!important;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.command-results a small{overflow:hidden;margin-top:3px;color:#8fb4a2!important;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.command-results a em{padding:5px 8px;border:1px solid rgba(144,201,167,.16);border-radius:999px;color:#88b49f;font-size:8px;font-style:normal;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.command-results a:hover,.command-results a.is-selected{border-color:rgba(126,231,135,.18);background:linear-gradient(90deg,rgba(126,231,135,.16),rgba(126,231,135,.07));transform:translateX(3px)}.command-results a:hover>i,.command-results a.is-selected>i{background:#7ee787;color:#103d27}.command-results a.is-current:not(.is-selected):after{content:"ATUAL";color:#70c98c;font-size:8px;font-weight:900;letter-spacing:.08em}.command-empty{display:grid;place-items:center;min-height:230px;padding:32px;text-align:center;color:#fff}.command-empty[hidden]{display:none}.command-empty i{display:grid;place-items:center;width:52px;height:52px;margin-bottom:13px;border-radius:17px;background:rgba(126,231,135,.1);color:#7ee787}.command-empty strong{color:#fff!important}.command-empty span{max-width:330px;margin-top:6px;color:#8fb4a2!important;font-size:11px;line-height:1.6}.command-palette footer{display:flex;align-items:center;gap:18px;padding:12px 20px;border-top:1px solid rgba(255,255,255,.08);background:#082219;color:#87aa98;font-size:10px}.command-palette footer span{display:flex;align-items:center;gap:5px}.command-palette footer kbd{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#d9eee3}@media(max-width:600px){.command-palette{padding:18px 10px}.command-palette-panel{max-height:calc(100vh - 36px);border-radius:22px}.command-palette-header{padding:16px}.command-search{margin:0 14px 7px}.command-results a{grid-template-columns:40px minmax(0,1fr)}.command-results a em,.command-results a.is-current:not(.is-selected):after{display:none}.command-palette footer span:last-child{display:none}}
/* Correção global de contraste no painel escuro */
.admin-shell:not(.admin-light) .glass-card,.admin-shell:not(.admin-light) .modal-content,.admin-shell:not(.admin-light) .settings-subnav,.admin-shell:not(.admin-light) .settings-sidebar-card{color:#eefaf3}
.admin-shell:not(.admin-light) .glass-card p,.admin-shell:not(.admin-light) .glass-card li,.admin-shell:not(.admin-light) .glass-card label,.admin-shell:not(.admin-light) .glass-card .form-text,.admin-shell:not(.admin-light) .glass-card small:not(.badge):not(.metric-label){color:#b4cebf!important}
.admin-shell:not(.admin-light) .glass-card strong,.admin-shell:not(.admin-light) .glass-card h1,.admin-shell:not(.admin-light) .glass-card h2,.admin-shell:not(.admin-light) .glass-card h3,.admin-shell:not(.admin-light) .glass-card h4,.admin-shell:not(.admin-light) .glass-card h5,.admin-shell:not(.admin-light) .glass-card h6{color:#fff!important}
.admin-shell:not(.admin-light) .nav-hq .nav-submenu a{color:#d8ece1!important;background:transparent!important}.admin-shell:not(.admin-light) .nav-hq .nav-submenu a:hover{color:#fff!important;background:rgba(255,255,255,.11)!important}.admin-shell:not(.admin-light) .nav-hq .nav-submenu a.active{color:#0c3825!important;background:rgba(255,255,255,.92)!important}.admin-shell:not(.admin-light) .nav-hq .nav-submenu a.active i{color:#0c3825!important}
.admin-shell:not(.admin-light) .settings-tabs a,.admin-shell:not(.admin-light) .settings-subnav a{color:#d5e9df!important}.admin-shell:not(.admin-light) .settings-tabs a:hover,.admin-shell:not(.admin-light) .settings-subnav a:hover{color:#fff!important;background:rgba(255,255,255,.1)!important}.admin-shell:not(.admin-light) .settings-tabs a.active,.admin-shell:not(.admin-light) .settings-subnav a.active{color:#0b3925!important;background:#fff!important}
.admin-shell:not(.admin-light) .table-hq td,.admin-shell:not(.admin-light) .table-hq th{color:#eaf7ef!important}.admin-shell:not(.admin-light) .table-hq tr:hover td{color:#fff!important}.admin-shell:not(.admin-light) .input-hq,.admin-shell:not(.admin-light) .form-control{color:#fff!important;background:rgba(255,255,255,.055)!important}.admin-shell:not(.admin-light) .input-hq::placeholder,.admin-shell:not(.admin-light) .form-control::placeholder{color:#91aa9e!important}.admin-shell:not(.admin-light) .dropdown-menu{background:#10291d;border-color:rgba(255,255,255,.12)}.admin-shell:not(.admin-light) .dropdown-item{color:#e5f4eb}.admin-shell:not(.admin-light) .dropdown-item:hover{background:rgba(255,255,255,.1);color:#fff}
/* Tema claro persistente */
body.admin-shell.admin-light{background:#edf5f0!important;background-image:radial-gradient(circle at 85% 0,rgba(46,94,78,.12),transparent 32rem)!important;color:#183729!important}.admin-light .main{color:#183729}.admin-light .glass-card,.admin-light .admin-topbar,.admin-light .admin-welcome,.admin-light .mini-stat,.admin-light .quick-action{background:rgba(255,255,255,.9)!important;border-color:#d8e7de!important;color:#183729!important;box-shadow:0 18px 45px rgba(26,77,51,.08)!important}.admin-light h1,.admin-light h2,.admin-light h3,.admin-light h4,.admin-light h5,.admin-light h6,.admin-light .glass-card strong,.admin-light .glass-card p,.admin-light .glass-card label,.admin-light .table-hq td{color:#183729!important}.admin-light .text-muted,.admin-light small,.admin-light .opacity-50{color:#61796d!important;opacity:1!important}.admin-light .input-hq,.admin-light .form-control{background:#f5faf7!important;border-color:#cfe0d6!important;color:#183729!important}.admin-light .input-hq::placeholder,.admin-light .form-control::placeholder{color:#738b7f!important}.admin-light .table-hq tr{background:#fff!important}.admin-light .table-hq tr:hover{background:#f0f8f3!important}.admin-light .table-hq tr:hover td{color:#102f21!important}.admin-light .admin-tool-btn{background:#fff;color:#214c38;border-color:#d3e3da}.admin-light .admin-tool-btn:hover{background:#eaf5ee;color:#123b29}.admin-light .admin-tool-btn kbd{background:#eef5f1;color:#345a47;border-color:#d4e2da}.admin-light .admin-health-card{background:#fff;color:#183729!important;border-color:#d8e7de}.admin-light .admin-health-card span{color:#183729}.admin-light .admin-health-card small{color:#61796d!important}.admin-light .health-ring:before{background:#fff}.admin-light .health-ring strong{color:#183729}
@media(max-width:1000px){.admin-shell .admin-health-grid{grid-template-columns:1fr}.admin-shell .admin-tool-btn span,.admin-shell .admin-tool-btn kbd{display:none}}

/* =========================================================
   v7.1 — auditoria final de contraste no painel claro
   Evita texto claro em superfícies claras e texto escuro em blocos escuros.
   ========================================================= */
body.admin-panel {
    --admin-surface: #ffffff;
    --admin-surface-soft: #f4f9f6;
    --admin-surface-muted: #eaf3ed;
    --admin-ink: #173d2c;
    --admin-ink-soft: #466858;
    --admin-on-dark: #f5fbf7;
}

/* Componentes internos que ainda tinham fundo escuro com tipografia pensada para fundo claro */
body.admin-panel .menu-editor-item {
    color: var(--admin-ink) !important;
    background: var(--admin-surface-soft) !important;
    border-color: #d7e7dd !important;
}
body.admin-panel .menu-editor-heading strong {
    color: var(--admin-ink) !important;
}
body.admin-panel .menu-editor-heading small {
    color: var(--admin-ink-soft) !important;
}

/* Superfícies claras: neutraliza utilitários Bootstrap que forçavam branco */
body.admin-panel .main .bg-white,
body.admin-panel .main .card,
body.admin-panel .main .list-group-item,
body.admin-panel .main .dropdown-menu,
body.admin-panel .main .popover,
body.admin-panel .main .alert-light,
body.admin-panel .main .table-responsive,
body.admin-panel .main .admin-secondary-metrics .mini-stat,
body.admin-panel .main .empty-state {
    color: var(--admin-ink) !important;
}
body.admin-panel .main .bg-white .text-white,
body.admin-panel .main .card .text-white,
body.admin-panel .main .list-group-item .text-white,
body.admin-panel .main .dropdown-menu .text-white,
body.admin-panel .main .table-responsive .text-white,
body.admin-panel .main .admin-secondary-metrics .text-white,
body.admin-panel .main .empty-state .text-white {
    color: var(--admin-ink) !important;
}

/* Links e itens interativos em fundos claros */
body.admin-panel .main a:not(.btn):not(.quick-action):not(.btn-action):not(.settings-nav-link) {
    color: #236f49;
}
body.admin-panel .main a:not(.btn):not(.quick-action):not(.btn-action):not(.settings-nav-link):hover,
body.admin-panel .main a:not(.btn):not(.quick-action):not(.btn-action):not(.settings-nav-link):focus {
    color: #164a31;
}
body.admin-panel .dropdown-item { color: var(--admin-ink) !important; }
body.admin-panel .dropdown-item:hover,
body.admin-panel .dropdown-item:focus,
body.admin-panel .dropdown-item.active {
    color: #17452f !important;
    background: #e5f3eb !important;
}

/* Inputs, addons e opções */
body.admin-panel .input-group-text,
body.admin-panel .custom-file-label,
body.admin-panel .form-control,
body.admin-panel .custom-select {
    color: var(--admin-ink) !important;
    background: #f8fbf9 !important;
    border-color: #d7e7dd !important;
}
body.admin-panel .form-control:disabled,
body.admin-panel .form-control[readonly],
body.admin-panel .custom-select:disabled {
    color: #627d70 !important;
    background: #eaf2ed !important;
}

/* Modal claro: botão fechar e textos utilitários não podem permanecer brancos */
body.admin-panel .modal-content .close,
body.admin-panel .modal-content .close.text-white {
    color: #315746 !important;
    opacity: .72;
}
body.admin-panel .modal-content .close:hover { color: #b32632 !important; opacity: 1; }
body.admin-panel .modal-content .text-white:not(.btn):not(.badge) { color: var(--admin-ink) !important; }

/* Tabelas claras */
body.admin-panel .table-hq th,
body.admin-panel .table-hq td,
body.admin-panel .table-hq td strong,
body.admin-panel .table-hq td span:not(.badge),
body.admin-panel .table-hq td small {
    color: #315746;
}
body.admin-panel .table-hq td small { color: #688276 !important; }
body.admin-panel .table-hq tr:hover td,
body.admin-panel .table-hq tr:hover td strong,
body.admin-panel .table-hq tr:hover td span:not(.badge) { color: #214b37; }

/* Cards de métricas: eram claros, mas podiam herdar texto branco do container antigo */
body.admin-panel .metric-card,
body.admin-panel .metric-card *:not(i),
body.admin-panel .mini-stat,
body.admin-panel .mini-stat *:not(i) { color: var(--admin-ink); }
body.admin-panel .metric-label,
body.admin-panel .metric-copy small,
body.admin-panel .mini-stat span { color: #61786c !important; }

/* Blocos realmente escuros mantêm tipografia clara */
body.admin-panel .admin-welcome,
body.admin-panel .footer-signature,
body.admin-panel .admin-credit-signature,
body.admin-panel .sidebar,
body.admin-panel .mobile-header {
    color: var(--admin-on-dark) !important;
}
body.admin-panel .admin-welcome h1,
body.admin-panel .admin-welcome p,
body.admin-panel .admin-welcome span,
body.admin-panel .footer-signature strong,
body.admin-panel .footer-signature span,
body.admin-panel .sidebar span,
body.admin-panel .mobile-header span { color: inherit; }

/* Submenus de configurações em desktop: contraste previsível */
@media (min-width: 993px) {
    body.admin-panel .settings-sidebar { color: var(--admin-on-dark) !important; }
    body.admin-panel .settings-sidebar-title { color: #ffffff !important; }
    body.admin-panel .settings-nav-link { color: #d7e9df !important; }
    body.admin-panel .settings-nav-link i { color: #a9d4bc !important; }
    body.admin-panel .settings-nav-link:hover { color: #ffffff !important; background: rgba(255,255,255,.10) !important; }
    body.admin-panel .settings-nav-link:hover i { color: #ffffff !important; }
    body.admin-panel .settings-nav-link.active {
        color: #123d29 !important;
        background: rgba(255,255,255,.92) !important;
        border-color: rgba(255,255,255,.65) !important;
    }
    body.admin-panel .settings-nav-link.active i { color: #1c6843 !important; }
    body.admin-panel .settings-subnav a { color: #bed8ca !important; }
    body.admin-panel .settings-subnav a:hover { color: #ffffff !important; background: rgba(255,255,255,.08) !important; }
    body.admin-panel .settings-subnav a.active {
        color: #17452f !important;
        background: rgba(255,255,255,.92) !important;
        border-left-color: #ffffff !important;
    }
}

/* Botões: garante contraste conforme o fundo */
body.admin-panel .btn-hq-main,
body.admin-panel .btn-success,
body.admin-panel .btn-danger,
body.admin-panel .btn-primary,
body.admin-panel .btn-info { color: #ffffff !important; }
body.admin-panel .btn-warning { color: #2d2600 !important; }
body.admin-panel .btn-light { color: #214b37 !important; }

/* Estado de foco acessível */
body.admin-panel a:focus-visible,
body.admin-panel button:focus-visible,
body.admin-panel input:focus-visible,
body.admin-panel select:focus-visible,
body.admin-panel textarea:focus-visible {
    outline: 3px solid rgba(47,172,104,.32);
    outline-offset: 2px;
}

/* v7.4 — revisão final de contraste do painel */
body.admin-panel .main,
body.admin-panel .main-content,
body.admin-panel .glass-card,
body.admin-panel .card,
body.admin-panel .bg-white,
body.admin-panel .modal-content,
body.admin-panel .dropdown-menu,
body.admin-panel .list-group-item,
body.admin-panel .table-responsive {
    --panel-readable-text: #183729;
    --panel-readable-muted: #61796d;
}
body.admin-panel .main :is(.glass-card,.card,.bg-white,.modal-content,.dropdown-menu,.list-group-item,.table-responsive,.gallery-admin-item) :is(h1,h2,h3,h4,h5,h6,strong,label,p,span,small):not(.badge):not(.btn *):not(.text-light) {
    color: var(--panel-readable-text) !important;
}
body.admin-panel .main :is(.glass-card,.card,.bg-white,.modal-content,.dropdown-menu,.list-group-item,.table-responsive,.gallery-admin-item) :is(.text-muted,small,.help-text,.form-text) {
    color: var(--panel-readable-muted) !important;
    opacity: 1 !important;
}
body.admin-panel .gallery-admin-item {
    color: #183729 !important;
    background: #ffffff !important;
    border-color: #d7e7dd !important;
}
body.admin-panel .gallery-admin-item label,
body.admin-panel .gallery-admin-item span {
    color: #183729 !important;
}
body.admin-panel .gallery-admin-item .gallery-drag-handle,
body.admin-panel .gallery-admin-item .gallery-delete,
body.admin-panel .gallery-admin-item .gallery-drag-handle i,
body.admin-panel .gallery-admin-item .gallery-delete i {
    color: #ffffff !important;
}
body.admin-panel .main .btn,
body.admin-panel .main .badge,
body.admin-panel .main .alert-success,
body.admin-panel .main .alert-danger,
body.admin-panel .main .alert-warning,
body.admin-panel .main .alert-info {
    isolation: isolate;
}
body.admin-panel .main .btn-success,
body.admin-panel .main .btn-primary,
body.admin-panel .main .btn-danger,
body.admin-panel .main .btn-info,
body.admin-panel .main .btn-hq-main,
body.admin-panel .main .btn-success *,
body.admin-panel .main .btn-primary *,
body.admin-panel .main .btn-danger *,
body.admin-panel .main .btn-info *,
body.admin-panel .main .btn-hq-main * {
    color: #ffffff !important;
}


/* v7.7 — camada final de contraste para superfícies claras do painel */
body.admin-panel .main :is(.glass-card,.card,.bg-white,.table-responsive,.gallery-admin-item,.menu-editor-item,.modal-content,.dropdown-menu,.list-group-item,.empty-state){
    color:#183729!important;
}
body.admin-panel .main :is(.glass-card,.card,.bg-white,.table-responsive,.gallery-admin-item,.menu-editor-item,.modal-content,.dropdown-menu,.list-group-item,.empty-state) :is(h1,h2,h3,h4,h5,h6,strong,label,legend,p,span,small,i):not(.btn *):not(.badge):not(.alert *):not(.text-warning):not(.text-danger):not(.text-success){
    color:#183729!important;
    opacity:1!important;
}
body.admin-panel .main :is(.glass-card,.card,.bg-white,.table-responsive,.gallery-admin-item,.menu-editor-item,.modal-content,.dropdown-menu,.list-group-item,.empty-state) :is(.text-muted,.opacity-50,.opacity-75,.help-text,.form-text,small){
    color:#61796d!important;
    opacity:1!important;
}
body.admin-panel .main :is(input,textarea,select,.input-hq,.form-control,.custom-select){
    color:#183729!important;
    background:#f8fbf9!important;
    border-color:#cadcd1!important;
}
body.admin-panel .main :is(input,textarea,.input-hq,.form-control)::placeholder{color:#789084!important;opacity:1!important}

/* Theme Studio: miniature preview of the actual surface hierarchy. */
.avium-theme-preview{
    height:168px;
    display:grid;
    grid-template-rows:34px 1fr 38px;
    gap:0;
    padding:0;
    background:var(--b);
    border:1px solid color-mix(in srgb,var(--t) 13%,transparent);
}
.avium-theme-preview .theme-mini-header{
    display:flex;
    align-items:center;
    gap:6px;
    padding:6px 8px;
    background:var(--h);
}
.avium-theme-preview .theme-mini-header .theme-mini-logo{
    width:26px;height:20px;margin-right:auto;border-radius:5px;background:var(--hl)!important;
}
.avium-theme-preview .theme-mini-header .theme-mini-nav{
    width:23px;height:8px;border-radius:999px;background:color-mix(in srgb,var(--ht) 28%,transparent)!important;
}
.avium-theme-preview .theme-mini-header .theme-mini-nav.active{
    background:color-mix(in srgb,var(--ht) 18%,transparent)!important;
    outline:1px solid color-mix(in srgb,var(--ht) 30%,transparent);
}
.avium-theme-preview .theme-mini-header .theme-mini-action{
    width:34px;height:16px;border-radius:999px;background:var(--hb)!important;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--hbt) 12%,transparent);
}
.avium-theme-preview .theme-mini-hero{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:3px;
    padding:12px 15px;
    background:linear-gradient(120deg,var(--p),var(--hero));
    color:var(--herot)!important;
}
.avium-theme-preview .theme-mini-hero small{
    color:var(--herot)!important;font-size:6px;font-weight:900;letter-spacing:.13em;opacity:.82;
}
.avium-theme-preview .theme-mini-hero strong{
    color:var(--herot)!important;font-size:17px;line-height:1;text-transform:uppercase;
}
.avium-theme-preview .theme-mini-hero span{
    width:auto!important;height:auto!important;background:transparent!important;color:var(--herot)!important;font-size:7px;opacity:.78;
}
.avium-theme-preview .theme-mini-cards{
    display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:7px 9px;background:var(--b);
}
.avium-theme-preview .theme-mini-cards span{
    height:24px!important;background:var(--c)!important;border:1px solid color-mix(in srgb,var(--t) 12%,transparent);
    box-shadow:0 3px 8px color-mix(in srgb,var(--t) 8%,transparent);
}

/* Schema editor feedback. */
.schema-health-card{
    padding:18px;
    border:1px solid #d7e7dd;
    border-radius:18px;
    background:linear-gradient(145deg,#f8fcf9,#edf6f0);
}
body.admin-panel .main .schema-health-card .schema-health-score{
    min-width:58px;padding:8px 11px;border-radius:999px;background:#dff4e6;color:#17623d!important;
    font-size:13px;font-weight:900;text-align:center;
}
.schema-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.admin-panel .main .schema-check-grid span{
    display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:10px;background:#fff;color:#7a6258;
    border:1px solid #e4ece7;font-size:10px;font-weight:800;
}
body.admin-panel .main .schema-check-grid span i{color:#b7791f!important}
body.admin-panel .main .schema-check-grid span.is-complete{color:#285440!important}
body.admin-panel .main .schema-check-grid span.is-complete i{color:#238653!important}
@media(max-width:767px){.schema-check-grid{grid-template-columns:1fr}.avium-theme-preview{height:158px}}
body.admin-panel .main select option{color:#183729!important;background:#fff!important}
body.admin-panel .main .table-hq :is(th,td,td strong,td span:not(.badge),td small){color:#315746!important}
body.admin-panel .main .table-hq td small{color:#657f72!important}
body.admin-panel .main .modal-header{background:linear-gradient(135deg,#174b35,#236d4b)!important}
body.admin-panel .main .modal-header :is(h1,h2,h3,h4,h5,h6,span,i,.close){color:#fff!important}
body.admin-panel .main :is(.btn-success,.btn-primary,.btn-danger,.btn-info,.btn-hq-main),
body.admin-panel .main :is(.btn-success,.btn-primary,.btn-danger,.btn-info,.btn-hq-main) *{color:#fff!important}
body.admin-panel .main .btn-warning,body.admin-panel .main .btn-warning *{color:#302600!important}
body.admin-panel .main .btn-light,body.admin-panel .main .btn-light *{color:#183729!important}
body.admin-panel .main .badge-success,body.admin-panel .main .badge-danger,body.admin-panel .main .badge-primary,body.admin-panel .main .badge-info{color:#fff!important}
body.admin-panel .main .alert-success,body.admin-panel .main .alert-success *{color:#155b35!important}
body.admin-panel .main .alert-warning,body.admin-panel .main .alert-warning *{color:#5f4a00!important}
body.admin-panel .main .alert-danger,body.admin-panel .main .alert-danger *{color:#842029!important}
body.admin-panel .main .alert-info,body.admin-panel .main .alert-info *{color:#18566b!important}

/* =========================================================
   v7.8 — CONTRASTE DEFINITIVO DO DASHBOARD
   ========================================================= */
body.admin-panel .admin-welcome,
body.admin-panel.admin-light .admin-welcome{
    color:#fff!important;
    background:linear-gradient(135deg,#173f31 0%,#285f49 62%,#39775d 100%)!important;
    border-color:#315f4c!important;
    box-shadow:0 24px 60px rgba(24,59,47,.18)!important;
}
body.admin-panel .admin-welcome :is(h1,h2,h3,h4,h5,h6,strong){color:#fff!important}
body.admin-panel .admin-welcome :is(p,small,span){color:#e5f3eb!important}
body.admin-panel .admin-welcome .admin-welcome-kicker{color:#d9f0e3!important}

body.admin-panel .metric-card,
body.admin-panel.admin-light .metric-card,
body.admin-panel .admin-secondary-metrics .mini-stat,
body.admin-panel.admin-light .admin-secondary-metrics .mini-stat,
body.admin-panel .dashboard-chart-card,
body.admin-panel.admin-light .dashboard-chart-card,
body.admin-panel .main>.glass-card,
body.admin-panel.admin-light .main>.glass-card{
    color:#173d2c!important;
    background:#fff!important;
    border-color:#d8e7de!important;
}
body.admin-panel .metric-card .metric-label{color:#567164!important}
body.admin-panel .metric-card .metric-value{color:#173d2c!important}
body.admin-panel .metric-card small{color:#71897d!important}
body.admin-panel .admin-secondary-metrics .mini-stat strong{color:#173f31!important}
body.admin-panel .admin-secondary-metrics .mini-stat span{color:#61786c!important}
body.admin-panel .dashboard-chart-card :is(h1,h2,h3,h4,h5,h6,strong){color:#173d2c!important}
body.admin-panel .dashboard-chart-card :is(p,small,.text-muted){color:#61786c!important}
body.admin-panel .dashboard-chart-card .panel-eyebrow{color:#477a62!important}

body.admin-panel .quick-action,
body.admin-panel.admin-light .quick-action{
    color:#173d2c!important;
    background:#fff!important;
    border-color:#d8e7de!important;
}
body.admin-panel .quick-action strong{color:#173d2c!important}
body.admin-panel .quick-action small,
body.admin-panel .quick-action .opacity-50{color:#667e72!important;opacity:1!important}
body.admin-panel .main>.row .col-md-3>h6.opacity-50{color:#526d5f!important;opacity:1!important}

body.admin-panel .activity-list .activity-row,
body.admin-panel .activity-list .activity-row strong,
body.admin-panel .activity-list .activity-row p{color:#294438!important}
body.admin-panel .activity-list .activity-row time{color:#6d8378!important}
body.admin-panel .main>.glass-card :is(h1,h2,h3,h4,h5,h6,strong){color:#173d2c!important}
body.admin-panel .main>.glass-card :is(p,small,.text-muted){color:#61786c!important}

/* Os cartões de saúde ficam claros no tema claro e escuros no tema padrão, sempre legíveis */
body.admin-panel.admin-light .admin-health-card{
    color:#173d2c!important;
    background:#fff!important;
    border-color:#d8e7de!important;
}
body.admin-panel.admin-light .admin-health-card span,
body.admin-panel.admin-light .admin-health-card strong{color:#173d2c!important}
body.admin-panel.admin-light .admin-health-card small{color:#61786c!important}
body.admin-panel.admin-light .health-ring:before{background:#fff!important}
body.admin-panel.admin-light .health-ring strong{color:#173d2c!important}

/* v7.9 — contraste definitivo dos cartões de saúde do dashboard */
body.admin-shell.admin-panel .admin-health-grid .admin-health-card,
body.admin-shell.admin-panel.admin-light .admin-health-grid .admin-health-card{
    background:#ffffff!important;
    color:#173d2c!important;
    border:1px solid #d5e4db!important;
    box-shadow:0 14px 34px rgba(24,59,47,.09)!important;
}
body.admin-shell.admin-panel .admin-health-grid .admin-health-card:hover,
body.admin-shell.admin-panel.admin-light .admin-health-grid .admin-health-card:hover{
    background:#f7fbf8!important;
    border-color:#9fc8b2!important;
}
body.admin-shell.admin-panel .admin-health-grid .admin-health-card span,
body.admin-shell.admin-panel .admin-health-grid .admin-health-card strong,
body.admin-shell.admin-panel.admin-light .admin-health-grid .admin-health-card span,
body.admin-shell.admin-panel.admin-light .admin-health-grid .admin-health-card strong{
    color:#173d2c!important;
    opacity:1!important;
}
body.admin-shell.admin-panel .admin-health-grid .admin-health-card small,
body.admin-shell.admin-panel.admin-light .admin-health-grid .admin-health-card small{
    color:#5d7569!important;
    opacity:1!important;
}
body.admin-shell.admin-panel .admin-health-grid .admin-health-card>i,
body.admin-shell.admin-panel.admin-light .admin-health-grid .admin-health-card>i{
    color:#48745f!important;
}
body.admin-shell.admin-panel .admin-health-grid .health-icon,
body.admin-shell.admin-panel.admin-light .admin-health-grid .health-icon{
    background:#e7f3eb!important;
    color:#2e694c!important;
}
body.admin-shell.admin-panel .admin-health-grid .health-ring,
body.admin-shell.admin-panel.admin-light .admin-health-grid .health-ring{
    background:conic-gradient(#3f8a63 calc(var(--score)*1%),#dce9e1 0)!important;
}
body.admin-shell.admin-panel .admin-health-grid .health-ring:before,
body.admin-shell.admin-panel.admin-light .admin-health-grid .health-ring:before{
    background:#fff!important;
}
body.admin-shell.admin-panel .admin-health-grid .health-ring strong,
body.admin-shell.admin-panel.admin-light .admin-health-grid .health-ring strong{
    color:#173d2c!important;
}

/* =========================================================
   v8.0 — cabeçalho claro e hovers consistentes no painel
   ========================================================= */
/* A barra superior é sempre uma superfície clara. */
body.admin-shell.admin-panel .admin-topbar,
body.admin-shell.admin-panel.admin-light .admin-topbar {
    color:#173d2c!important;
    background:rgba(255,255,255,.96)!important;
    border-color:#d5e4db!important;
}
body.admin-shell.admin-panel .admin-topbar h5,
body.admin-shell.admin-panel.admin-light .admin-topbar h5 {
    color:#173d2c!important;
}
body.admin-shell.admin-panel .admin-topbar small,
body.admin-shell.admin-panel.admin-light .admin-topbar small {
    color:#61796d!important;
    opacity:1!important;
}

/* Pesquisa, atalho e tema: fundo claro, texto escuro e hover suave. */
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn,
body.admin-shell.admin-panel.admin-light .admin-topbar .admin-tool-btn {
    color:#214c38!important;
    background:#f7fbf8!important;
    border-color:#d3e3da!important;
    box-shadow:none!important;
}
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn i,
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn span,
body.admin-shell.admin-panel.admin-light .admin-topbar .admin-tool-btn i,
body.admin-shell.admin-panel.admin-light .admin-topbar .admin-tool-btn span {
    color:#214c38!important;
}
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn kbd,
body.admin-shell.admin-panel.admin-light .admin-topbar .admin-tool-btn kbd {
    color:#345a47!important;
    background:#edf5f0!important;
    border-color:#d4e2da!important;
}
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn:hover,
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn:focus,
body.admin-shell.admin-panel.admin-light .admin-topbar .admin-tool-btn:hover,
body.admin-shell.admin-panel.admin-light .admin-topbar .admin-tool-btn:focus {
    color:#123b29!important;
    background:#e7f3eb!important;
    border-color:#9fc8b2!important;
    box-shadow:0 8px 20px rgba(24,59,47,.10)!important;
    transform:translateY(-1px);
}
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn:hover i,
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn:hover span,
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn:focus i,
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn:focus span {
    color:#123b29!important;
}
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn:hover kbd,
body.admin-shell.admin-panel .admin-topbar .admin-tool-btn:focus kbd {
    color:#214c38!important;
    background:#fff!important;
    border-color:#bcd4c6!important;
}

/* Em superfícies claras, hover não deve virar bloco escuro. */
body.admin-shell.admin-panel .main .glass-card:hover,
body.admin-shell.admin-panel .main .card:hover,
body.admin-shell.admin-panel .main .mini-stat:hover,
body.admin-shell.admin-panel .main .admin-health-card:hover {
    background:#f7fbf8!important;
    border-color:#b8d5c5!important;
}
body.admin-shell.admin-panel .main .table-hq tbody tr:hover,
body.admin-shell.admin-panel .main .table-hq tbody tr:focus-within {
    background:#edf7f1!important;
}
body.admin-shell.admin-panel .main .dropdown-item:hover,
body.admin-shell.admin-panel .main .dropdown-item:focus {
    color:#17452f!important;
    background:#e7f3eb!important;
}

/* Mantém hover escuro exclusivamente na navegação lateral. */
body.admin-shell.admin-panel .sidebar .nav-hq a:hover,
body.admin-shell.admin-panel .sidebar .nav-hq a:focus {
    color:#fff!important;
}

/* =========================================================
   v8.1 — painel fixo claro, sem alternador de tema
   ========================================================= */
body.admin-shell.admin-panel,
body.admin-shell.admin-panel.admin-light{
    background:#edf5f0!important;
    color:#183729!important;
}
body.admin-shell.admin-panel .main :is(.glass-card,.card,.admin-topbar,.admin-health-card,.mini-stat,.quick-action,.modal-content,.dropdown-menu,.table-hq,.settings-panel){
    color:#183729;
}
body.admin-shell.admin-panel .main :is(.glass-card,.card,.admin-topbar,.admin-health-card,.mini-stat,.quick-action,.modal-content,.dropdown-menu,.settings-panel) :is(h1,h2,h3,h4,h5,h6,strong,label,.form-label){
    color:#173d2c!important;
}
body.admin-shell.admin-panel .main :is(.glass-card,.card,.admin-topbar,.admin-health-card,.mini-stat,.quick-action,.modal-content,.dropdown-menu,.settings-panel) :is(p,small,.text-muted,.help-text){
    color:#60786b!important;
    opacity:1!important;
}
body.admin-shell.admin-panel .main :is(.bg-dark,.surface-dark,.admin-welcome,.command-palette-header) :is(h1,h2,h3,h4,h5,h6,strong,p,small,span,label,i){
    color:#fff!important;
}
body.admin-shell.admin-panel .main .admin-tool-btn:hover,
body.admin-shell.admin-panel .main .btn-outline-success:hover,
body.admin-shell.admin-panel .main .dropdown-item:hover,
body.admin-shell.admin-panel .main .settings-nav-link:hover{
    background:#e7f3eb!important;
    color:#17452f!important;
    border-color:#aacdb9!important;
}


/* Contraste final do controle da barra lateral. */
body.admin-shell.admin-panel .sidebar .sidebar-collapse {
    color:#fff!important;
    background:rgba(23,74,54,.96)!important;
    border-color:rgba(255,255,255,.72)!important;
}
body.admin-shell.admin-panel .sidebar .sidebar-collapse i { color:#fff!important; }
body.admin-shell.admin-panel .sidebar .sidebar-collapse:hover,
body.admin-shell.admin-panel .sidebar .sidebar-collapse:focus-visible {
    color:#173d2c!important;
    background:rgba(255,255,255,.98)!important;
    border-color:#9fc5ae!important;
}
body.admin-shell.admin-panel .sidebar .sidebar-collapse:hover i,
body.admin-shell.admin-panel .sidebar .sidebar-collapse:focus-visible i { color:#173d2c!important; }

/* Sidebars fluidos: ocupam a altura disponível sem criar rolagem interna. */
@media (min-width:993px) {
    body.admin-shell.admin-panel .sidebar {
        display:flex;
        flex-direction:column;
        padding:clamp(12px,2.2dvh,24px) 14px clamp(10px,1.8dvh,20px)!important;
        overflow:visible!important;
    }
    body.admin-shell.admin-panel .sidebar .brand-block {
        flex:0 0 auto;
        min-height:0;
        margin-bottom:clamp(5px,1.3dvh,16px);
        padding:clamp(7px,1.2dvh,12px);
        border-radius:clamp(14px,2dvh,20px);
    }
    body.admin-shell.admin-panel .sidebar .brand-block img {
        width:clamp(38px,5.6dvh,50px);
        height:clamp(38px,5.6dvh,50px);
        padding:clamp(4px,.7dvh,7px);
        border-radius:clamp(11px,1.8dvh,16px);
    }
    body.admin-shell.admin-panel .sidebar > .nav-hq {
        flex:1 1 auto;
        min-height:0;
        max-height:none!important;
        display:flex;
        flex-direction:column;
        overflow:visible!important;
        padding-right:0!important;
    }
    body.admin-shell.admin-panel .sidebar .nav-label {
        flex:0 0 auto;
        margin:clamp(3px,.65dvh,8px) 0 clamp(2px,.45dvh,5px);
        padding:0 12px;
        font-size:clamp(8px,1.05dvh,10px);
        line-height:1.2;
    }
    body.admin-shell.admin-panel .sidebar .nav-hq > a {
        flex:0 1 auto;
        min-height:clamp(38px,5.2dvh,46px);
        margin-bottom:clamp(1px,.28dvh,3px);
        padding:clamp(7px,1dvh,11px) 13px;
        border-radius:clamp(11px,1.5dvh,15px);
        font-size:clamp(12px,1.65dvh,14px);
        line-height:1.15;
    }
    body.admin-shell.admin-panel .sidebar .nav-hq > a i {
        font-size:clamp(15px,2.1dvh,18px);
    }
    body.admin-shell.admin-panel .sidebar .nav-hq > .nav-logout {
        margin-top:auto!important;
        margin-bottom:0;
    }
    body.admin-shell.admin-panel.sidebar-collapsed .sidebar .nav-hq > a,
    html.sidebar-collapsed body.admin-shell.admin-panel .sidebar .nav-hq > a {
        justify-content:center;
        padding-left:8px;
        padding-right:8px;
    }

    body.admin-panel .settings-sidebar {
        max-height:none!important;
        overflow:visible!important;
        padding:clamp(8px,1.3dvh,12px)!important;
    }
    body.admin-panel .settings-sidebar-title {
        padding:clamp(5px,.9dvh,10px) 10px clamp(7px,1.2dvh,13px);
        font-size:clamp(9px,1.2dvh,11px);
    }
    body.admin-panel .settings-sidebar .settings-nav-link {
        min-height:clamp(39px,5dvh,45px)!important;
        margin-bottom:clamp(2px,.4dvh,4px);
        padding:clamp(7px,1dvh,10px) 11px!important;
        gap:9px;
        font-size:clamp(11px,1.55dvh,13px);
        line-height:1.15;
    }
    body.admin-panel .settings-sidebar .settings-subnav {
        grid-template-columns:1fr;
        gap:3px!important;
        margin:2px 0 5px 10px!important;
        padding:4px!important;
    }
    body.admin-panel .settings-sidebar .settings-subnav a {
        min-width:0;
        padding:clamp(5px,.75dvh,7px) 8px!important;
        font-size:clamp(10px,1.3dvh,11px);
        line-height:1.15!important;
        white-space:normal;
    }
}

@media (min-width:993px) and (max-height:620px) {
    body.admin-shell.admin-panel .sidebar .brand-block { gap:8px; }
    body.admin-shell.admin-panel .sidebar .brand-caption { display:none; }
    body.admin-shell.admin-panel .sidebar .nav-label { display:none; }
    body.admin-shell.admin-panel .sidebar .nav-hq > a { min-height:35px; padding-top:5px; padding-bottom:5px; font-size:12px; }
    body.admin-panel .settings-sidebar .settings-nav-link { min-height:35px!important; padding-top:5px!important; padding-bottom:5px!important; font-size:11px; }
    body.admin-panel .settings-sidebar .settings-subnav a { padding-top:4px!important; padding-bottom:4px!important; font-size:9px; }
}

@media (min-width:993px) and (max-height:520px) {
    body.admin-shell.admin-panel .sidebar .brand-block { padding:4px; margin-bottom:3px; }
    body.admin-shell.admin-panel .sidebar .brand-block img { width:34px; height:34px; }
    body.admin-shell.admin-panel .sidebar .brand-block > div { display:none; }
    body.admin-shell.admin-panel .sidebar .nav-label { display:none; }
    body.admin-shell.admin-panel .sidebar .nav-hq > a { min-height:32px; margin-bottom:1px; font-size:11px; }
}

@media (min-width:993px) and (max-height:440px) {
    body.admin-shell.admin-panel .sidebar { padding-top:7px!important; padding-bottom:7px!important; }
    body.admin-shell.admin-panel .sidebar .brand-block { display:none!important; }
    body.admin-shell.admin-panel .sidebar .nav-hq > a { min-height:25px; padding-top:2px; padding-bottom:2px; }
    body.admin-panel .settings-sidebar-title { display:none; }
    body.admin-panel .settings-sidebar .settings-nav-link { min-height:27px!important; padding-top:3px!important; padding-bottom:3px!important; }
    body.admin-panel .settings-sidebar .settings-subnav a { padding-top:3px!important; padding-bottom:3px!important; }
}

@media (max-width:992px) {
    body.admin-shell.admin-panel .sidebar {
        display:flex;
        flex-direction:column;
        padding:clamp(52px,9dvh,64px) 12px max(10px,env(safe-area-inset-bottom))!important;
    }
    body.admin-shell.admin-panel .sidebar > .nav-hq {
        flex:1 1 auto;
        min-height:0;
        max-height:none!important;
        overflow:visible!important;
        padding-right:0!important;
    }
    body.admin-shell.admin-panel .sidebar .nav-label {
        margin:clamp(3px,.8dvh,8px) 0 clamp(2px,.5dvh,5px);
        font-size:9px;
    }
    body.admin-shell.admin-panel .sidebar .nav-hq > a,
    body.admin-shell.admin-panel.sidebar-collapsed .sidebar .nav-hq > a {
        min-height:clamp(32px,5.4dvh,42px);
        margin-bottom:clamp(1px,.35dvh,3px);
        padding:clamp(5px,.9dvh,9px) 12px;
        font-size:clamp(11px,2dvh,13px);
    }
    body.admin-shell.admin-panel .sidebar .nav-hq > .nav-logout { margin-top:auto!important; }

    body.admin-panel .settings-sidebar {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        overflow:visible!important;
    }
    body.admin-panel .settings-sidebar .settings-subnav {
        grid-column:1/-1;
        display:grid!important;
        grid-template-columns:1fr;
        gap:5px!important;
        margin:2px 0 6px!important;
        padding:5px!important;
        overflow:visible!important;
    }
    body.admin-panel .settings-sidebar .settings-subnav a {
        min-width:0;
        padding:8px 10px!important;
        text-align:left;
        white-space:normal;
    }
}

@media (max-width:992px) and (max-height:620px) {
    body.admin-shell.admin-panel .sidebar .nav-label { display:none; }
    body.admin-shell.admin-panel .sidebar .nav-hq > a,
    body.admin-shell.admin-panel.sidebar-collapsed .sidebar .nav-hq > a {
        min-height:31px;
        margin-bottom:1px;
        padding-top:4px;
        padding-bottom:4px;
    }
}

@media (max-width:992px) and (max-height:480px) {
    body.admin-shell.admin-panel .sidebar { padding-top:48px!important; padding-bottom:6px!important; }
    body.admin-shell.admin-panel .sidebar .nav-hq > a,
    body.admin-shell.admin-panel.sidebar-collapsed .sidebar .nav-hq > a {
        min-height:27px;
        padding-top:2px;
        padding-bottom:2px;
        font-size:10px;
    }
}

@media (max-width:420px) {
    body.admin-panel .settings-sidebar { gap:5px!important; padding:7px!important; }
    body.admin-panel .settings-sidebar .settings-nav-link {
        min-height:42px!important;
        padding:7px!important;
        gap:6px;
        font-size:10px;
    }
    body.admin-panel .settings-sidebar .settings-subnav { grid-template-columns:1fr; }
}

/* Contraste definitivo dos submenus dentro de Configurações. */
@media (min-width:993px) {
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a:hover,
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a:focus-visible {
        color:#fff!important;
        background:rgba(255,255,255,.15)!important;
        border-color:rgba(255,255,255,.22)!important;
        box-shadow:inset 3px 0 0 #7ee787!important;
    }
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a:hover *,
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a:focus-visible * {
        color:#fff!important;
    }
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a.active {
        color:#173d2c!important;
        background:#fff!important;
        border-color:#fff!important;
        box-shadow:none!important;
    }
}

@media (max-width:992px) {
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a:hover,
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a:focus-visible {
        color:#fff!important;
        background:#24533f!important;
        border-color:#24533f!important;
        box-shadow:none!important;
    }
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a:hover *,
    body.admin-shell.admin-panel .main .settings-sidebar .settings-subnav a:focus-visible * {
        color:#fff!important;
    }
}

/* Estados de hover isolados da Dashboard: superfícies claras sempre usam conteúdo escuro. */
body.admin-section-dashboard .main .quick-action:hover,
body.admin-section-dashboard .main .quick-action:focus-visible {
    color:#17452f!important;
    background:#e7f3eb!important;
    border-color:#9fc8b2!important;
    box-shadow:0 12px 28px rgba(24,59,47,.11)!important;
}
body.admin-section-dashboard .main .quick-action:hover :is(strong,span,small,i),
body.admin-section-dashboard .main .quick-action:focus-visible :is(strong,span,small,i) {
    color:#17452f!important;
}
body.admin-section-dashboard .main .quick-action:hover .quick-icon,
body.admin-section-dashboard .main .quick-action:focus-visible .quick-icon {
    color:#17452f!important;
    background:#d6eadf!important;
}

body.admin-section-dashboard .main .admin-health-card:hover,
body.admin-section-dashboard .main .admin-health-card:focus-visible,
body.admin-section-dashboard .main .metric-card:hover,
body.admin-section-dashboard .main .mini-stat:hover,
body.admin-section-dashboard .main .dashboard-chart-card:hover {
    color:#173d2c!important;
    background:#f2f8f4!important;
    border-color:#a9cdb9!important;
}
body.admin-section-dashboard .main .admin-health-card:hover :is(span,strong,small,i),
body.admin-section-dashboard .main .admin-health-card:focus-visible :is(span,strong,small,i),
body.admin-section-dashboard .main .metric-card:hover :is(span,strong,small,i),
body.admin-section-dashboard .main .mini-stat:hover :is(span,strong,small,i),
body.admin-section-dashboard .main .dashboard-chart-card:hover :is(span,strong,small,i,h1,h2,h3,h4,h5,h6,p) {
    color:#173d2c!important;
}
body.admin-section-dashboard .main .admin-health-card:hover .health-icon,
body.admin-section-dashboard .main .admin-health-card:focus-visible .health-icon,
body.admin-section-dashboard .main .mini-stat:hover > i,
body.admin-section-dashboard .main .metric-card:hover .metric-icon {
    color:#245f43!important;
    background:#dceee3!important;
}

body.admin-section-dashboard .admin-welcome .btn-admin-ghost:hover,
body.admin-section-dashboard .admin-welcome .btn-admin-ghost:focus-visible {
    color:#173d2c!important;
    background:#fff!important;
    border-color:#fff!important;
}
body.admin-section-dashboard .admin-welcome .btn-admin-ghost:hover *,
body.admin-section-dashboard .admin-welcome .btn-admin-ghost:focus-visible * {
    color:#173d2c!important;
}
body.admin-section-dashboard .admin-welcome .btn-admin-highlight:hover,
body.admin-section-dashboard .admin-welcome .btn-admin-highlight:focus-visible,
body.admin-section-dashboard .admin-welcome .btn-admin-highlight:hover *,
body.admin-section-dashboard .admin-welcome .btn-admin-highlight:focus-visible * {
    color:#17351f!important;
}
body.admin-section-dashboard .main .btn-outline-success:hover,
body.admin-section-dashboard .main .btn-outline-success:focus-visible,
body.admin-section-dashboard .main .btn-outline-success:hover *,
body.admin-section-dashboard .main .btn-outline-success:focus-visible * {
    color:#17452f!important;
}

/* Anonymous audience and most visited content. */
body.admin-panel .admin-traffic-card{padding:30px;background:#fff!important;border-color:#d9e8df!important;color:#173d2c!important;box-shadow:0 18px 45px rgba(25,75,50,.08)!important}
.admin-traffic-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.admin-traffic-heading h5{color:#173d2c!important;font-weight:850}.admin-traffic-heading p{color:#657b6f!important;font-size:13px}.traffic-privacy-note{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #d5e7dc;border-radius:999px;background:#edf7f1;color:#286449!important;font-size:10px;font-weight:850;letter-spacing:.04em;white-space:nowrap}
.admin-traffic-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.admin-traffic-metrics article{display:flex;align-items:center;gap:14px;min-height:104px;padding:18px;border:1px solid #dce9e1;border-radius:22px;background:linear-gradient(145deg,#f7fbf8,#edf6f0)}.traffic-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:16px;background:#dcefe4;color:#266a4a;font-size:18px}.admin-traffic-metrics span,.admin-traffic-metrics small{display:block;color:#62796d!important}.admin-traffic-metrics span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.admin-traffic-metrics strong{display:inline-block;margin:4px 6px 0 0;color:#173d2c!important;font-size:30px;line-height:1}.admin-traffic-metrics small{display:inline;font-size:10px}
.admin-traffic-details{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:18px}.traffic-chart-wrap,.traffic-content-wrap{min-width:0;padding:20px;border:1px solid #dce9e1;border-radius:22px;background:#fbfdfc}.traffic-subheading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.traffic-subheading strong,.traffic-subheading small{display:block}.traffic-subheading strong{color:#173d2c!important;font-size:13px}.traffic-subheading small{margin-top:2px;color:#71877b!important;font-size:10px}.traffic-subheading>i{color:#4a8668}.traffic-canvas{position:relative;height:210px}.traffic-content-list{margin:0;padding:0;list-style:none}.traffic-content-list li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #e2ece6}.traffic-content-list li:first-child{border-top:0}.traffic-rank{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#e2f1e8;color:#276247!important;font-size:10px;font-weight:900}.traffic-content-list strong,.traffic-content-list small{display:block}.traffic-content-list strong{overflow:hidden;color:#234c39!important;font-size:11px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.traffic-content-list small{margin-top:2px;color:#75887e!important;font-size:9px}.traffic-content-list em{min-width:28px;padding:5px 7px;border-radius:9px;background:#286649;color:#fff!important;font-size:10px;font-style:normal;font-weight:900;text-align:center}.traffic-empty{min-height:190px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;color:#6d8277}.traffic-empty i{font-size:22px;color:#87aa97}.traffic-empty p{max-width:240px;margin:0;color:#6d8277!important;font-size:11px;line-height:1.5}
@media(max-width:1050px){.admin-traffic-details{grid-template-columns:1fr}}@media(max-width:760px){body.admin-panel .admin-traffic-card{padding:20px}.admin-traffic-heading{display:block}.traffic-privacy-note{margin-top:14px}.admin-traffic-metrics{grid-template-columns:1fr}.admin-traffic-metrics article{min-height:88px}.traffic-chart-wrap,.traffic-content-wrap{padding:16px}.traffic-canvas{height:190px}}

/* Avium Pro Theme Studio */
.avium-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.avium-theme-card{padding:15px;border:1px solid #dbe7df;border-radius:18px;background:#fff;transition:.25s;box-shadow:0 8px 24px rgba(22,55,42,.05)}.avium-theme-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(22,55,42,.12)}.avium-theme-card.active{border:2px solid var(--admin-brand-secondary);box-shadow:0 0 0 4px color-mix(in srgb,var(--admin-brand-accent) 42%,transparent)}.avium-theme-preview{height:112px;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,var(--p),var(--s));display:grid;grid-template-columns:1fr 1fr;grid-template-rows:28px 1fr 22px;gap:7px;padding:10px}.avium-theme-preview span{display:block;border-radius:7px}.avium-theme-preview span:nth-child(1){grid-column:1/3;background:var(--c);opacity:.92}.avium-theme-preview span:nth-child(2){background:var(--a)}.avium-theme-preview span:nth-child(3){background:var(--c)}.avium-theme-preview span:nth-child(4){grid-column:1/2;background:var(--b)}.avium-theme-preview span:nth-child(5){background:var(--a)}.avium-theme-meta{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:14px 2px 10px}.avium-theme-meta small{font-size:9px;text-transform:uppercase;letter-spacing:1.2px;color:#778a80;font-weight:800}.avium-theme-meta h6{margin:3px 0 4px;font-weight:900;color:#173d2c}.avium-theme-meta p{margin:0;color:#6d8076;font-size:11px;line-height:1.45}.avium-theme-active{white-space:nowrap;font-size:9px;font-weight:900;color:#166534;background:#dcfce7;border-radius:999px;padding:6px 8px}.avium-custom-heading{margin:28px 0 16px;padding-top:24px;border-top:1px solid #e1ebe5}.avium-custom-heading>div{display:flex;align-items:center;gap:12px}.avium-custom-heading>div>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#e7f3ec;color:#28694b}.avium-custom-heading h6{margin:0 0 3px;font-weight:900;color:#173d2c}.avium-custom-heading p{margin:0;color:#71837a;font-size:12px}@media(max-width:1100px){.avium-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.avium-theme-grid{grid-template-columns:1fr}}

/* Configuração local da autenticação em duas etapas. */
.two-factor-setup{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:22px;margin:18px 0 24px}.two-factor-qr-card,.two-factor-manual-card{border:1px solid #d8e7df;border-radius:20px;background:#f7fbf8}.two-factor-qr-card{padding:20px;text-align:center}.two-factor-qr-icon{width:42px;height:42px;margin:0 auto 10px;border-radius:13px;display:grid;place-items:center;background:#dcefe4;color:#1d6444;font-size:20px}.two-factor-qr-card>strong{display:block;color:#173d2c;font-size:15px}.two-factor-qr-card>p{margin:7px auto 14px;max-width:230px;color:#64776d;font-size:12px;line-height:1.55}.two-factor-qr-surface{width:220px;max-width:100%;aspect-ratio:1;margin:0 auto 10px;padding:10px;border:1px solid #dbe5df;border-radius:16px;background:#fff;display:grid;place-items:center;box-shadow:0 10px 28px rgba(24,67,48,.08)}.two-factor-qr-surface canvas{display:block;width:100%!important;height:auto!important;max-width:200px}.two-factor-qr-card>small{display:block;color:#71847a;font-size:10px;line-height:1.45}.two-factor-manual-card{padding:24px}.two-factor-step{display:inline-flex;padding:6px 9px;border-radius:999px;background:#dcefe4;color:#246347;font-size:9px;font-weight:900;letter-spacing:.11em}.two-factor-manual-card h6{margin:13px 0 12px;color:#173d2c;font-size:18px;font-weight:850}.two-factor-manual-card ol{margin:0 0 18px;padding-left:20px;color:#5d7267;font-size:13px;line-height:1.65}.two-factor-manual-card li+li{margin-top:7px}.two-factor-secret{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #cfe0d6;border-radius:14px;background:#fff}.two-factor-secret code{min-width:0;flex:1;color:#173d2c;font-size:15px;font-weight:850;letter-spacing:.11em;overflow-wrap:anywhere}.two-factor-secret button{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:0;border-radius:10px;background:#e1f0e7;color:#205d42;font:inherit;font-size:11px;font-weight:850;cursor:pointer}.two-factor-secret button:hover,.two-factor-secret button:focus-visible{background:#246347;color:#fff;outline:none}.two-factor-privacy{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;color:#62766c;font-size:11px;line-height:1.55}.two-factor-privacy i{margin-top:2px;color:#2b7955}@media(max-width:760px){.two-factor-setup{grid-template-columns:1fr}.two-factor-qr-card,.two-factor-manual-card{padding:18px}.two-factor-secret{align-items:stretch;flex-direction:column}.two-factor-secret button{justify-content:center}}
