/*
 * Stack Gamer Design System - tema administrativo futuro.
 * ETAPA 21.12-T.2: camada discreta para admin e checkout no preview.
 */

.theme-stackgamer-definitive-preview.sg-admin-page,
.theme-stackgamer-definitive-preview .admin-container {
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 240, 255, .07), transparent 24rem),
        radial-gradient(circle at 92% 16%, rgba(120, 0, 255, .08), transparent 28rem),
        var(--sg-bg-primary);
    color: var(--sg-text-primary);
}

/* ETAPA 21.12-T.6 - administracao de campanhas e cupons. */
.theme-stackgamer-definitive-preview .sg-campaign-admin,
.theme-stackgamer-definitive-preview .sg-coupon-admin {
    width: min(1500px, calc(100% - 32px)) !important;
    margin: 24px auto 44px !important;
    padding: clamp(18px, 3vw, 38px) !important;
    border: 1px solid rgba(0, 240, 255, .22) !important;
    border-radius: 7px !important;
    background: linear-gradient(145deg, rgba(9, 13, 24, .97), rgba(5, 7, 17, .99)) !important;
    box-shadow: 0 22px 56px rgba(0,0,0,.42) !important;
}

.theme-stackgamer-definitive-preview .sg-campaign-admin-title {
    margin-bottom: 22px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(0,240,255,.34) !important;
    font-size: clamp(1.25rem, 2.4vw, 2rem) !important;
}

.theme-stackgamer-definitive-preview .sg-campaign-admin-primary-action .btn-mega-setup { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; }
.theme-stackgamer-definitive-preview .sg-campaign-table-wrap { width: 100%; overflow-x: auto; border: 1px solid rgba(91,129,160,.22); border-radius: 5px; }
.theme-stackgamer-definitive-preview .sg-campaign-table { min-width: 960px; background: rgba(3,5,12,.72) !important; }
.theme-stackgamer-definitive-preview .sg-campaign-table thead { background: linear-gradient(90deg, rgba(0,240,255,.10), rgba(120,0,255,.10)) !important; }
.theme-stackgamer-definitive-preview .sg-campaign-table th { padding: 14px !important; color: var(--sg-cyan); font-family: var(--sg-font-display); font-size: .72rem; letter-spacing: .06em; }
.theme-stackgamer-definitive-preview .sg-campaign-table td { padding: 14px !important; border-bottom: 1px solid rgba(91,129,160,.14) !important; vertical-align: middle; }
.theme-stackgamer-definitive-preview .sg-campaign-row:hover { background: rgba(0,240,255,.025); }
.theme-stackgamer-definitive-preview .sg-campaign-row[data-campaign-status="active"] { box-shadow: inset 3px 0 0 var(--sg-aqua); }
.theme-stackgamer-definitive-preview .sg-campaign-row[data-campaign-status="expired"] { opacity: .72; }
.theme-stackgamer-definitive-preview .sg-campaign-banner-state { display: inline-flex; margin-top: 7px; padding: 3px 7px; border: 1px solid rgba(91,129,160,.32); border-radius: 999px; color: var(--sg-text-secondary); font-size: .62rem; text-transform: uppercase; }
.theme-stackgamer-definitive-preview .sg-campaign-banner-state.has-banner { border-color: rgba(0,255,198,.36); color: var(--sg-aqua); }
.theme-stackgamer-definitive-preview .sg-campaign-banner-state.no-banner { border-color: rgba(255,170,0,.38); color: #ffc65a; }

.theme-stackgamer-definitive-preview .sg-campaign-editor .grid-admin { align-items: start; gap: 20px !important; }
.theme-stackgamer-definitive-preview .sg-campaign-editor .panel,
.theme-stackgamer-definitive-preview .sg-campaign-products-page .panel { overflow: hidden; border: 1px solid rgba(91,129,160,.24) !important; border-radius: 6px !important; background: rgba(5,9,18,.84) !important; box-shadow: 0 14px 30px rgba(0,0,0,.28) !important; }
.theme-stackgamer-definitive-preview .sg-campaign-editor .grid-admin > .panel:last-child { position: sticky; top: 18px; }
.theme-stackgamer-definitive-preview .sg-campaign-editor .promo-flash-container { min-height: 280px !important; border: 1px solid rgba(0,240,255,.38) !important; border-radius: 5px !important; background-color: rgba(5,7,17,.94) !important; }
.theme-stackgamer-definitive-preview .sg-campaign-editor input[type="file"] { min-height: 48px; padding: 9px !important; border-style: dashed !important; }
.theme-stackgamer-definitive-preview .sg-campaign-editor input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 12px; border: 1px solid var(--sg-cyan); border-radius: 3px; background: rgba(0,240,255,.08); color: var(--sg-cyan); cursor: pointer; }

.theme-stackgamer-definitive-preview .sg-coupon-admin .cupom-hero,
.theme-stackgamer-definitive-preview .sg-coupon-admin .cupom-panel,
.theme-stackgamer-definitive-preview .sg-coupon-admin .cupom-stat-card { border-color: rgba(0,240,255,.24) !important; background: linear-gradient(145deg, rgba(12,16,29,.95), rgba(5,7,17,.98)) !important; }
.theme-stackgamer-definitive-preview .sg-coupon-admin .cupom-code-badge { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.theme-stackgamer-definitive-preview .sg-coupon-admin .cupom-table-wrap { border: 1px solid rgba(91,129,160,.22); border-radius: 5px; }
.theme-stackgamer-definitive-preview .sg-coupon-admin .cupom-table th { color: var(--sg-cyan); }
.theme-stackgamer-definitive-preview .sg-coupon-admin .cupom-status { border-radius: 999px !important; background: rgba(5,7,17,.72) !important; }

@media (max-width: 900px) {
    .theme-stackgamer-definitive-preview .sg-campaign-editor .grid-admin { grid-template-columns: 1fr !important; }
    .theme-stackgamer-definitive-preview .sg-campaign-editor .grid-admin > .panel:last-child { position: static; }
}

.theme-stackgamer-definitive-preview .sg-admin-toolbar {
    position: relative;
    z-index: 1300;
    padding: 7px max(12px, calc((100% - 1500px) / 2));
    border-bottom: 1px solid rgba(0, 240, 255, .26);
    background:
        linear-gradient(180deg, rgba(8, 11, 22, .98), rgba(8, 11, 22, .93)),
        radial-gradient(circle at 12% 0%, rgba(0, 240, 255, .10), transparent 22rem);
    box-shadow: inset 0 -1px rgba(120, 0, 255, .22);
}

.theme-stackgamer-definitive-preview :where(.panel, .admin-card, .dashboard-card, .quality-panel, .bi-panel) {
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-medium);
    background: rgba(11, 16, 27, .92);
    box-shadow: var(--sg-shadow-panel);
}

.theme-stackgamer-definitive-preview.sg-page-checkout :where(.checkout-container, .checkout-card, .checkout-summary, .payment-section, .form-section, .checkout-cupom),
.theme-stackgamer-definitive-preview.sg-admin-page :where(.panel, .admin-card, .dashboard-card, .quality-panel, .bi-panel, .table-responsive) {
    background: rgba(11, 16, 27, .94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

.theme-stackgamer-definitive-preview :where(.admin-table, table) {
    border-collapse: collapse;
    width: 100%;
}

.theme-stackgamer-definitive-preview :where(.admin-table th, table th) {
    border-bottom: 1px solid var(--sg-border-cyan);
    color: var(--sg-cyan-soft);
    font-family: var(--sg-font-display);
    font-size: .78rem;
    letter-spacing: 0;
    text-align: left;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]), select, textarea),
.theme-stackgamer-definitive-preview.sg-page-checkout :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]), select, textarea) {
    background: #fff;
    color: #111;
}

.theme-stackgamer-definitive-preview :where(.admin-table td, table td) {
    border-bottom: 1px solid rgba(117, 95, 170, .18);
    color: var(--sg-text-secondary);
}

.theme-stackgamer-definitive-preview .btn-admin-action,
.theme-stackgamer-definitive-preview .btn-back,
.theme-stackgamer-definitive-preview .btn-voltar {
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-small);
    background: rgba(8, 11, 22, .9);
    color: var(--sg-text-primary);
}

.theme-stackgamer-definitive-preview .btn-admin-action.btn-delete,
.theme-stackgamer-definitive-preview .btn-delete {
    border-color: rgba(255, 79, 109, .62);
    color: #ff9aad;
}

.theme-stackgamer-definitive-preview .sg-admin-toolbar-panel {
    border-color: var(--sg-border);
    background: rgba(8, 11, 22, .96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .30);
}

.theme-stackgamer-definitive-preview .sg-admin-toolbar-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    color: var(--sg-cyan-soft);
    cursor: pointer;
    font-family: var(--sg-font-display);
    font-size: .78rem;
    letter-spacing: .06em;
}

.theme-stackgamer-definitive-preview .sg-admin-toolbar-panel > summary small {
    color: var(--sg-text-muted);
    font-family: var(--sg-font-ui);
    font-size: .72rem;
    letter-spacing: 0;
}

.theme-stackgamer-definitive-preview .sg-admin-toolbar-body {
    display: grid;
    grid-template-columns: minmax(230px, .58fr) minmax(460px, 1.1fr);
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(117, 95, 170, .22);
}

.theme-stackgamer-definitive-preview .sg-admin-toolbar-status,
.theme-stackgamer-definitive-preview .maintenance-admin-control,
.theme-stackgamer-definitive-preview .sg-admin-quick-links,
.theme-stackgamer-definitive-preview .sg-admin-preview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.theme-stackgamer-definitive-preview .sg-admin-toolbar-status strong {
    width: 100%;
    color: var(--sg-text-primary);
}

.theme-stackgamer-definitive-preview .sg-admin-status-chip,
.theme-stackgamer-definitive-preview .maintenance-admin-control label,
.theme-stackgamer-definitive-preview .sg-admin-quick-links a,
.theme-stackgamer-definitive-preview .sg-admin-preview-actions a,
.theme-stackgamer-definitive-preview .sg-admin-preview-actions button {
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid rgba(117, 95, 170, .28);
    border-radius: 4px !important;
    background: rgba(11, 16, 27, .82) !important;
    color: var(--sg-text-secondary) !important;
    box-shadow: none !important;
    text-decoration: none;
    text-transform: none;
}

.theme-stackgamer-definitive-preview .maintenance-admin-control {
    justify-content: flex-end;
}

.theme-stackgamer-definitive-preview .maintenance-admin-control select {
    min-height: 32px;
    max-width: 250px;
}

.theme-stackgamer-definitive-preview .sg-admin-quick-links a:hover,
.theme-stackgamer-definitive-preview .sg-admin-preview-actions a:hover,
.theme-stackgamer-definitive-preview .sg-admin-preview-actions button:hover,
.theme-stackgamer-definitive-preview .sg-admin-toolbar-panel > summary:hover {
    border-color: var(--sg-border-cyan) !important;
    color: #fff !important;
}

.theme-stackgamer-definitive-preview .sg-admin-status-chip.is-active {
    border-color: rgba(34, 232, 143, .58);
    color: var(--sg-success);
}

.theme-stackgamer-definitive-preview .status-active,
.theme-stackgamer-definitive-preview .is-active {
    color: var(--sg-success);
}

.theme-stackgamer-definitive-preview .status-warning {
    color: var(--sg-warning);
}

.theme-stackgamer-definitive-preview .status-danger,
.theme-stackgamer-definitive-preview .is-error {
    color: var(--sg-danger);
}

@media (max-width: 900px) {
    .theme-stackgamer-definitive-preview .sg-admin-toolbar {
        padding-inline: 8px;
    }

    .theme-stackgamer-definitive-preview .sg-admin-toolbar-panel > summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .theme-stackgamer-definitive-preview .sg-admin-toolbar-body {
        grid-template-columns: 1fr;
    }

    .theme-stackgamer-definitive-preview .maintenance-admin-control {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .theme-stackgamer-definitive-preview .sg-admin-toolbar-panel {
        max-height: 48vh;
        overflow-y: auto;
    }

    .theme-stackgamer-definitive-preview .sg-admin-toolbar-status,
    .theme-stackgamer-definitive-preview .maintenance-admin-control,
    .theme-stackgamer-definitive-preview .sg-admin-quick-links,
    .theme-stackgamer-definitive-preview .sg-admin-preview-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-stackgamer-definitive-preview .maintenance-admin-control select,
    .theme-stackgamer-definitive-preview .sg-admin-quick-links a,
    .theme-stackgamer-definitive-preview .sg-admin-preview-actions a,
    .theme-stackgamer-definitive-preview .sg-admin-preview-actions button {
        width: 100%;
    }
}

/* ETAPA 21.12-T.9 - painel administrativo completo, produtivo e responsivo. */
.theme-stackgamer-definitive-preview.sg-admin-page {
    --sg-admin-panel: #0b101b;
    --sg-admin-panel-alt: #101725;
    --sg-admin-line: rgba(91, 129, 160, .28);
    min-height: 100vh;
    background:
        linear-gradient(rgba(5, 7, 17, .96), rgba(5, 7, 17, .98)),
        radial-gradient(circle at 12% 0, rgba(0, 240, 255, .10), transparent 30rem),
        radial-gradient(circle at 92% 8%, rgba(120, 0, 255, .10), transparent 34rem) !important;
    color: var(--sg-text-primary);
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.admin-container, .quality-admin, .bi-funnel-page, .wa-bi-page, .review-admin, .push-center-page, .sg-auth-preview-page, .wrap) {
    box-sizing: border-box;
    width: min(1500px, calc(100% - 32px));
    max-width: 1500px;
    margin-inline: auto;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.grid-admin, .setup-admin-grid, .cupom-grid, .push-grid, .bi-tables, .wa-bi-grid, .sg-auth-preview-grid) > * {
    min-width: 0;
}

.theme-stackgamer-definitive-preview.sg-admin-page .push-table-wrap {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1400px) {
    .theme-stackgamer-definitive-preview.sg-admin-page .sg-product-search-form {
        flex: 1 1 100%;
        max-width: 100%;
        margin-left: 0 !important;
    }

    .theme-stackgamer-definitive-preview.sg-admin-page .sg-product-search-form input[type='search'] {
        flex: 1 1 240px;
        width: auto !important;
        min-width: 0;
    }
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.header-admin, .bi-funnel-head, .wa-bi-head, .sg-auth-preview-head, .sg-admin-central-head) {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 0 0 15px;
    border-bottom: 1px solid rgba(0, 240, 255, .30);
    background: transparent;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.header-admin h1, .bi-funnel-head h1, .wa-bi-head h1, .sg-auth-preview-head h1, .sg-admin-central-head h1) {
    margin: 0;
    color: #f8fbff !important;
    font-family: var(--sg-font-display);
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    letter-spacing: .025em;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.header-admin h1, .sg-admin-central-head h1)::before {
    color: var(--sg-cyan);
    content: '▰ ';
    font-size: .62em;
}

.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--sg-cyan);
    font-family: var(--sg-font-display);
    font-size: .68rem;
    letter-spacing: .12em;
}

.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-central-head p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--sg-text-muted);
}

.theme-stackgamer-definitive-preview .sg-admin-console-nav {
    position: relative;
    z-index: 85;
    border-block: 1px solid rgba(0, 240, 255, .18);
    background: #070a13;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.theme-stackgamer-definitive-preview .sg-admin-console-panel {
    width: min(1500px, calc(100% - 24px));
    margin: 0 auto;
    padding: 7px 0 10px;
}

.theme-stackgamer-definitive-preview .sg-admin-console-panel > summary {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #d9e4f0;
    cursor: pointer;
    font-size: .82rem;
    list-style: none;
}

.theme-stackgamer-definitive-preview .sg-admin-console-panel > summary::-webkit-details-marker { display: none; }
.theme-stackgamer-definitive-preview .sg-admin-console-panel > summary b { color: var(--sg-cyan); font-family: var(--sg-font-display); letter-spacing: .08em; }
.theme-stackgamer-definitive-preview .sg-admin-console-panel > summary small { color: var(--sg-text-muted); }
.theme-stackgamer-definitive-preview .sg-admin-console-panel > summary small::before { content: '▾ '; color: var(--sg-purple-soft); }

.theme-stackgamer-definitive-preview .sg-admin-console-groups {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(91, 129, 160, .16);
}

.theme-stackgamer-definitive-preview .sg-admin-console-group {
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(91, 129, 160, .16);
    border-radius: 4px;
    background: rgba(11, 16, 27, .78);
}

.theme-stackgamer-definitive-preview .sg-admin-console-group h2 {
    margin: 0 0 7px;
    color: #8fa4b9;
    font-family: var(--sg-font-display);
    font-size: .61rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-stackgamer-definitive-preview .sg-admin-console-group > div { display: grid; gap: 3px; }
.theme-stackgamer-definitive-preview .sg-admin-console-group a {
    display: flex;
    min-height: 28px;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #c7d2df;
    font-size: .76rem;
    line-height: 1.15;
    text-decoration: none;
}

.theme-stackgamer-definitive-preview .sg-admin-console-group a > span {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    color: var(--sg-cyan);
    font-size: .72rem;
}

.theme-stackgamer-definitive-preview .sg-admin-console-group a:hover,
.theme-stackgamer-definitive-preview .sg-admin-console-group a:focus-visible {
    border-color: rgba(0, 240, 255, .34);
    background: rgba(0, 240, 255, .06);
    color: #fff;
    outline: none;
}

.theme-stackgamer-definitive-preview .sg-admin-console-group a.is-current {
    border-color: rgba(0, 240, 255, .44);
    background: linear-gradient(90deg, rgba(0, 240, 255, .12), rgba(120, 0, 255, .08));
    color: #fff;
    box-shadow: inset 2px 0 var(--sg-cyan);
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.panel, .admin-card, .dashboard-card, .quality-panel, .bi-panel, .order-card, .setup-admin-panel, .review-card, .push-table-wrap, .pricing-engine-box, .cupom-panel) {
    border: 1px solid var(--sg-admin-line) !important;
    border-radius: 5px !important;
    background: linear-gradient(145deg, var(--sg-admin-panel-alt), var(--sg-admin-panel)) !important;
    color: var(--sg-text-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .26) !important;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.panel, .quality-panel, .bi-panel, .setup-admin-panel, .review-card) {
    padding: clamp(14px, 2vw, 22px);
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.box-title, .panel h2, .card h2, .quality-panel h2, .bi-panel h2) {
    color: #eaf7ff;
    font-family: var(--sg-font-display);
    font-size: .92rem;
    letter-spacing: .03em;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.filter-bar, .quality-filter, .bi-filters, .wa-bi-filters, .review-filter, .actions, .toolbar, .cupom-quick-actions) {
    gap: 10px;
    padding: 12px !important;
    border: 1px solid rgba(91, 129, 160, .24) !important;
    border-radius: 5px !important;
    background: #080b16 !important;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(label, .form-label) {
    color: #b8c6d6;
    font-weight: 700;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]), select, textarea, .form-control) {
    min-height: 40px;
    border: 1px solid rgba(91, 129, 160, .38) !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]), select, textarea, .form-control):focus {
    border-color: var(--sg-cyan) !important;
    outline: 2px solid rgba(0, 240, 255, .13) !important;
    outline-offset: 1px;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]), textarea)::placeholder { color: #6b7280; opacity: 1; }
.theme-stackgamer-definitive-preview.sg-admin-page input[type='checkbox'],
.theme-stackgamer-definitive-preview.sg-admin-page input[type='radio'] { min-height: auto; accent-color: var(--sg-cyan); }

.theme-stackgamer-definitive-preview.sg-admin-page :where(.btn-submit, .btn-update, .btn-mega-setup, .btn-admin-action, .btn-back, .btn-voltar, button, .btn) {
    min-height: 38px;
    border-radius: 4px !important;
    font-family: var(--sg-font-ui);
    font-weight: 800;
    letter-spacing: .01em;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.btn-submit, .btn-update, .btn-mega-setup) {
    border: 1px solid var(--sg-cyan) !important;
    background: linear-gradient(100deg, #00dff1, #7652ff) !important;
    color: #040711 !important;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.btn-back, .btn-voltar, .btn-admin-action, .btn-sec) {
    border: 1px solid rgba(91, 129, 160, .42) !important;
    background: #0b101b !important;
    color: #d9e5f1 !important;
    text-decoration: none;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.btn-delete, .btn-danger, [class*='danger'], [class*='excluir'], button[name*='excluir'], button[name*='remover']) {
    border: 1px solid rgba(255, 79, 109, .72) !important;
    background: rgba(94, 17, 37, .86) !important;
    color: #ffdbe2 !important;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(.table-responsive, .tabela-container-scroll, .sg-campaign-table-wrap, .cupom-table-wrap, .push-table-wrap, .quality-panel) {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: rgba(0, 240, 255, .5) #080b16;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(table, .sg-admin-table) {
    width: 100%;
    border: 1px solid rgba(91, 129, 160, .18);
    border-collapse: collapse !important;
    background: #080b16 !important;
    color: #e8eef5;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(th) {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 10px !important;
    border-bottom: 1px solid rgba(0, 240, 255, .34) !important;
    background: #111827 !important;
    color: #bdf7ff !important;
    font-family: var(--sg-font-display);
    font-size: .68rem;
    letter-spacing: .035em;
    white-space: nowrap;
}

.theme-stackgamer-definitive-preview.sg-admin-page :where(td) {
    padding: 10px !important;
    border-bottom: 1px solid rgba(91, 129, 160, .16) !important;
    color: #d5dee8 !important;
    vertical-align: middle;
}

.theme-stackgamer-definitive-preview.sg-admin-page tbody tr:nth-child(even) { background: rgba(255, 255, 255, .014); }
.theme-stackgamer-definitive-preview.sg-admin-page tbody tr:hover { background: rgba(0, 240, 255, .045) !important; }

.theme-stackgamer-definitive-preview.sg-admin-page :where(.sg-status, .status, .badge, .quality-chip, .cupom-status, .review-badge) {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid rgba(91, 129, 160, .35);
    border-radius: 999px !important;
    background: rgba(7, 11, 20, .82) !important;
    color: #cbd5e1;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.15;
}

.theme-stackgamer-definitive-preview.sg-admin-page .sg-status-success { border-color: rgba(34, 232, 143, .48); color: #7fffd3; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-status-warning { border-color: rgba(255, 190, 59, .48); color: #ffd978; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-status-danger { border-color: rgba(255, 79, 109, .58); color: #ff9eb0; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-status-info { border-color: rgba(0, 240, 255, .44); color: #9af7ff; }

.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-panel { margin-bottom: 22px; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-panel-head h2 { margin: 0; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-metric-grid .admin-card { display: grid; gap: 8px; padding: 18px; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-metric-grid small { color: #8fa4b9; font-family: var(--sg-font-display); text-transform: uppercase; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-metric-grid strong { color: #fff; font-family: var(--sg-font-display); font-size: 1.65rem; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-link-grid a { display: grid; grid-template-columns: 32px 1fr; gap: 2px 9px; padding: 13px; border: 1px solid rgba(91,129,160,.25); border-radius: 4px; background: #080b16; color: #eaf7ff; text-decoration: none; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-link-grid a > span { grid-row: span 2; color: var(--sg-cyan); font-size: 1.1rem; }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-link-grid small { color: var(--sg-text-muted); }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-link-grid a:hover { border-color: var(--sg-cyan); }
.theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-note { color: var(--sg-text-muted); line-height: 1.65; }

@media (max-width: 1180px) {
    .theme-stackgamer-definitive-preview .sg-admin-console-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .theme-stackgamer-definitive-preview.sg-admin-page :where(.admin-container, .quality-admin, .bi-funnel-page, .wa-bi-page, .review-admin, .push-center-page, .sg-auth-preview-page, .wrap) { width: min(100% - 16px, 1500px); }
    .theme-stackgamer-definitive-preview .sg-admin-console-panel { width: calc(100% - 16px); }
    .theme-stackgamer-definitive-preview .sg-admin-console-groups { grid-template-columns: 1fr 1fr; max-height: 55vh; overflow-y: auto; }
    .theme-stackgamer-definitive-preview.sg-admin-page :where(.header-admin, .bi-funnel-head, .wa-bi-head, .sg-auth-preview-head, .sg-admin-central-head) { align-items: stretch; flex-direction: column; }
    .theme-stackgamer-definitive-preview.sg-admin-page :where(.grid-admin, .setup-admin-grid, .cupom-grid, .push-grid, .bi-tables, .wa-bi-grid, .sg-auth-preview-grid) { grid-template-columns: 1fr !important; }
    .theme-stackgamer-definitive-preview.sg-admin-page .sg-rollout-control form { grid-template-columns: 1fr !important; }
    .theme-stackgamer-definitive-preview.sg-admin-page :where(.filter-bar, .quality-filter, .bi-filters, .wa-bi-filters, .review-filter) { align-items: stretch; flex-direction: column; }
    .theme-stackgamer-definitive-preview.sg-admin-page :where(.filter-bar input, .filter-bar select, .filter-bar button, .filter-bar a, .quality-filter input, .quality-filter select, .quality-filter button) { width: 100% !important; }
    .theme-stackgamer-definitive-preview.sg-admin-page :where(table, .sg-admin-table) { min-width: 700px; }
    .theme-stackgamer-definitive-preview.sg-admin-page :where(.table-responsive, .tabela-container-scroll, .sg-campaign-table-wrap, .cupom-table-wrap, .push-table-wrap)::before {
        position: sticky;
        left: 0;
        display: block;
        width: max-content;
        margin: 0 0 6px;
        padding: 4px 8px;
        content: "Arraste para ver todas as colunas ↔";
        border: 1px solid rgba(0, 240, 255, .28);
        border-radius: 3px;
        background: #080b16;
        color: var(--sg-cyan);
        font-size: .72rem;
    }
    .theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-panel-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .theme-stackgamer-definitive-preview .sg-admin-console-groups { grid-template-columns: 1fr; }
    .theme-stackgamer-definitive-preview .sg-admin-console-panel > summary { align-items: flex-start; flex-direction: column; gap: 3px; }
    .theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-metric-grid,
    .theme-stackgamer-definitive-preview.sg-admin-page .sg-admin-link-grid { grid-template-columns: 1fr; }
}
