/**
 * Tema claro/escuro — painel B2B completo.
 * Escopo: html[data-b2b-theme="light|dark"]
 */

/* --- Universal Shell tokens (light = default) --- */
:root,
html[data-b2b-theme="light"],
html:not([data-b2b-theme]),
html[data-b2b-theme="light"] body.b2b-panel-page,
html:not([data-b2b-theme]) body.b2b-panel-page,
html[data-b2b-theme="light"] body.b2b-panel-page .b2b-panel-page,
html:not([data-b2b-theme]) body.b2b-panel-page .b2b-panel-page {
    /* Semantic design tokens (light) */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --input-bg: #ffffff;
    --input-text: #0f172a;
    --input-placeholder: #94a3b8;
    --button-primary: #6366f1;
    --button-primary-text: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Legacy and shell mappings */
    --b2b-card: var(--bg-card);
    --b2b-card-hover: var(--bg-card-secondary);
    --b2b-bg: var(--bg-page);
    --b2b-bg-alt: var(--bg-card-secondary);
    --b2b-surface: var(--bg-card);
    --b2b-surface-muted: var(--bg-page);
    --b2b-border: var(--border);
    --b2b-border-strong: var(--border-strong);
    --b2b-text: var(--text-primary);
    --b2b-text-muted: var(--text-muted);
    --b2b-primary: var(--button-primary);
    --b2b-primary-dark: #4f46e5;
    --b2b-workspace-bg: var(--bg-page);
    --b2b-topbar-bg: var(--bg-card);
    --b2b-topbar-border: var(--border);
    --b2b-topbar-text: var(--text-primary);
    --b2b-topbar-muted: var(--text-muted);
    --b2b-sidebar-bg: linear-gradient(180deg, #4c1d95 0%, #5b21b6 48%, #6d28d9 100%);
    --b2b-canvas-bg-0: var(--bg-page);
    --b2b-canvas-bg-1: var(--bg-card-secondary);
    --b2b-canvas-bg-2: #e8ecf4;
}

html[data-b2b-theme="dark"],
html[data-b2b-theme="dark"] body.b2b-panel-page,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page {
    /* Semantic design tokens (dark) */
    --bg-page: #040a12;
    --bg-card: #0a1628;
    --bg-card-secondary: #102038;
    --text-primary: #eef4fb;
    --text-secondary: #cbd5e1;
    --text-muted: #8fa3bc;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --input-bg: #0d1e34;
    --input-text: #eef4fb;
    --input-placeholder: #64748b;
    --button-primary: #6366f1;
    --button-primary-text: #ffffff;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;

    /* Legacy and shell mappings */
    --b2b-card: var(--bg-card);
    --b2b-card-hover: var(--bg-card-secondary);
    --b2b-bg: var(--bg-page);
    --b2b-bg-alt: var(--bg-card);
    --b2b-surface: var(--bg-card);
    --b2b-surface-muted: rgba(255, 255, 255, 0.04);
    --b2b-border: var(--border);
    --b2b-border-strong: var(--border-strong);
    --b2b-text: var(--text-primary);
    --b2b-text-muted: var(--text-muted);
    --b2b-primary: var(--button-primary);
    --b2b-primary-dark: #4f46e5;
    --b2b-workspace-bg: var(--bg-page);
    --b2b-topbar-bg: var(--bg-card);
    --b2b-topbar-border: var(--border);
    --b2b-topbar-text: var(--text-primary);
    --b2b-topbar-muted: var(--text-muted);
    --b2b-sidebar-bg: linear-gradient(180deg, #1e1035 0%, #2d1b4e 48%, #3b2463 100%);
    --b2b-canvas-bg-0: var(--bg-page);
    --b2b-canvas-bg-1: var(--bg-card);
    --b2b-canvas-bg-2: var(--bg-card-secondary);
    --b2b-scrollbar-thumb: rgba(255, 255, 255, 0.18);
    --b2b-scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
}

/* --- Semantic Universal Utility Classes --- */
.bg-page { background-color: var(--bg-page) !important; }
.bg-card { background-color: var(--bg-card) !important; }
.bg-card-secondary { background-color: var(--bg-card-secondary) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.border-base { border-color: var(--border) !important; }
.border-strong { border-color: var(--border-strong) !important; }
.input-base { background: var(--input-bg) !important; color: var(--input-text) !important; border-color: var(--border) !important; }

/* ==========================================================================
   Universal Base Styles (Light & Dark Theme Safe)
   ========================================================================== */
body.b2b-panel-page,
.b2b-panel-page {
    background-color: var(--bg-page);
    color: var(--text-primary);
}

/* Headings */
body.b2b-panel-page h1,
body.b2b-panel-page h2,
body.b2b-panel-page h3,
body.b2b-panel-page h4,
body.b2b-panel-page h5,
body.b2b-panel-page h6,
.b2b-panel-page h1,
.b2b-panel-page h2,
.b2b-panel-page h3,
.b2b-panel-page h4,
.b2b-panel-page h5,
.b2b-panel-page h6,
.b2b-panel-page .card-title,
.b2b-panel-page .modal-header,
.b2b-panel-page .b2b-topbar__page-title {
    color: var(--text-primary);
}

/* Paragraphs, descriptions & lists */
body.b2b-panel-page p,
body.b2b-panel-page li,
body.b2b-panel-page dl,
body.b2b-panel-page dd,
.b2b-panel-page p,
.b2b-panel-page li,
.b2b-panel-page dl,
.b2b-panel-page dd {
    color: inherit;
}

/* Form labels */
body.b2b-panel-page label,
body.b2b-panel-page .field-label,
body.b2b-panel-page .form-label,
.b2b-panel-page label,
.b2b-panel-page .field-label,
.b2b-panel-page .form-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Auxiliary & muted text */
body.b2b-panel-page small,
body.b2b-panel-page .text-muted,
body.b2b-panel-page .meta-text,
body.b2b-panel-page .b2b-admin-muted,
body.b2b-panel-page .description,
body.b2b-panel-page .optional,
.b2b-panel-page small,
.b2b-panel-page .text-muted,
.b2b-panel-page .meta-text,
.b2b-panel-page .b2b-admin-muted,
.b2b-panel-page .description,
.b2b-panel-page .optional {
    color: var(--text-muted);
}

/* Universal Inputs & Form Controls */
body.b2b-panel-page input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="image"]),
body.b2b-panel-page select,
body.b2b-panel-page textarea,
body.b2b-panel-page .field-input,
body.b2b-panel-page .field-select,
body.b2b-panel-page .form-input,
body.b2b-panel-page .form-control,
.b2b-panel-page input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="image"]),
.b2b-panel-page select,
.b2b-panel-page textarea,
.b2b-panel-page .field-input,
.b2b-panel-page .field-select,
.b2b-panel-page .form-input,
.b2b-panel-page .form-control {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: var(--border);
}

body.b2b-panel-page input::placeholder,
body.b2b-panel-page textarea::placeholder,
body.b2b-panel-page .field-input::placeholder,
.b2b-panel-page input::placeholder,
.b2b-panel-page textarea::placeholder,
.b2b-panel-page .field-input::placeholder {
    color: var(--input-placeholder);
}

/* Structural cards */
body.b2b-panel-page .card,
body.b2b-panel-page .full-card,
body.b2b-panel-page .action-card,
body.b2b-panel-page .b2b-card,
body.b2b-panel-page .modal-box,
.b2b-panel-page .card,
.b2b-panel-page .full-card,
.b2b-panel-page .action-card,
.b2b-panel-page .b2b-card,
.b2b-panel-page .modal-box {
    background-color: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

/* Universal Tables */
body.b2b-panel-page table.data-table,
body.b2b-panel-page .wp-list-table,
.b2b-panel-page table.data-table,
.b2b-panel-page .wp-list-table {
    background-color: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

body.b2b-panel-page table.data-table thead th,
body.b2b-panel-page .wp-list-table thead th,
.b2b-panel-page table.data-table thead th,
.b2b-panel-page .wp-list-table thead th {
    background-color: var(--bg-card-secondary);
    color: var(--text-secondary);
    border-color: var(--border);
}

body.b2b-panel-page table.data-table tbody td,
body.b2b-panel-page .wp-list-table tbody td,
.b2b-panel-page table.data-table tbody td,
.b2b-panel-page .wp-list-table tbody td {
    color: var(--text-primary);
    border-color: var(--border);
}

body.b2b-panel-page table.data-table tbody tr:hover td,
body.b2b-panel-page .wp-list-table tbody tr:hover td,
.b2b-panel-page table.data-table tbody tr:hover td,
.b2b-panel-page .wp-list-table tbody tr:hover td {
    background-color: var(--bg-card-secondary);
}

/* Safeguards against legacy inline colors and hardcoded dark text in dark mode */
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color:#0f172a"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color: #0f172a"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color:#1e293b"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color: #1e293b"] {
    color: var(--text-primary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color:#334155"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color: #334155"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color:#475569"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color: #475569"] {
    color: var(--text-secondary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color:#64748b"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="color: #64748b"] {
    color: var(--text-muted) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page [style*="background:#fff"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="background: #fff"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="background:#ffffff"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="background: #ffffff"] {
    background-color: var(--bg-card) !important;
    color: var(--text-primary);
}

html[data-b2b-theme="dark"] body.b2b-panel-page [style*="border: 1px solid #e2e8f0"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="border:1px solid #e2e8f0"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="border: 1px solid #cbd5e1"],
html[data-b2b-theme="dark"] body.b2b-panel-page [style*="border:1px solid #cbd5e1"] {
    border-color: var(--border) !important;
}

/* --- Kurupira page tokens --- */
html[data-b2b-theme="dark"] .b2b-dashboard-skin-v3,
html[data-b2b-theme="dark"] .b2b-clientes-skin-v3,
html[data-b2b-theme="dark"] .b2b-admin-dashboard-skin-v3,
html[data-b2b-theme="dark"] body.b2b-panel-page--dashboard,
html[data-b2b-theme="dark"] body.b2b-panel-page--clientes,
html[data-b2b-theme="dark"] body.b2b-panel-page--admin-dashboard {
    --kur-bg-0: #040a12;
    --kur-bg-1: #0a1628;
    --kur-bg-2: #102038;
    --kur-gold: #c9a227;
    --kur-gold-soft: rgba(201, 162, 39, 0.18);
    --kur-gold-line: rgba(232, 197, 71, 0.35);
    --kur-text: #eef4fb;
    --kur-muted: #8fa3bc;
    --kur-line: rgba(255, 255, 255, 0.08);
    --kur-glass: rgba(8, 18, 32, 0.72);
}

html[data-b2b-theme="light"] .b2b-dashboard-skin-v3,
html[data-b2b-theme="light"] .b2b-clientes-skin-v3,
html[data-b2b-theme="light"] .b2b-admin-dashboard-skin-v3,
html[data-b2b-theme="light"] body.b2b-panel-page--dashboard,
html[data-b2b-theme="light"] body.b2b-panel-page--clientes,
html[data-b2b-theme="light"] body.b2b-panel-page--admin-dashboard,
html:not([data-b2b-theme]) .b2b-dashboard-skin-v3,
html:not([data-b2b-theme]) .b2b-clientes-skin-v3,
html:not([data-b2b-theme]) .b2b-admin-dashboard-skin-v3 {
    --kur-bg-0: #f4f6fb;
    --kur-bg-1: #ffffff;
    --kur-bg-2: #eef2f7;
    --kur-gold: #a67c00;
    --kur-gold-soft: rgba(201, 162, 39, 0.12);
    --kur-gold-line: rgba(166, 124, 0, 0.28);
    --kur-text: #0f172a;
    --kur-muted: #64748b;
    --kur-line: rgba(15, 23, 42, 0.1);
    --kur-glass: rgba(255, 255, 255, 0.92);
}

/* --- Shell layout --- */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-main {
    background: var(--b2b-workspace-bg) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar {
    background: var(--b2b-topbar-bg) !important;
    border-bottom-color: var(--b2b-topbar-border) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__page-title,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__brand {
    color: var(--b2b-topbar-text) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__breadcrumbs,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__breadcrumbs a,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__breadcrumb-sep {
    color: var(--b2b-topbar-muted) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__menu,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .menu-btn:not(.download):not(.whatsapp),
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__search-toggle {
    color: var(--b2b-topbar-muted) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .menu-btn.download,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .menu-btn.download:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   TopBar - Suporte, Busca e Faixas no Modo Escuro
   ========================================================================== */

/* Botão de Suporte: vibrante, com ícone e texto brancos, 100% visível */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__suporte-btn,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__suporte-btn,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .menu-btn.whatsapp,
html[data-b2b-theme="dark"] body.b2b-panel-page .menu-btn.whatsapp {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__suporte-btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__suporte-btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .menu-btn.whatsapp:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .menu-btn.whatsapp:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45) !important;
    transform: translateY(-1px) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__suporte-btn svg,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__suporte-btn svg,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .menu-btn.whatsapp svg,
html[data-b2b-theme="dark"] body.b2b-panel-page .menu-btn.whatsapp svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Barra de busca: container transparente e SEM borda externa */
html body.b2b-panel-page .b2b-topbar__search,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__search,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__search {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
}

/* Interior da caixa de pesquisa: branco sólido SEM borda (sempre claro mesmo no modo escuro) */
html body.b2b-panel-page .b2b-topbar__search input[type="search"],
html body.b2b-panel-page .b2b-topbar__search input[type="text"],
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__search input[type="search"],
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__search input[type="text"],
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__search input[type="search"],
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__search input[type="text"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    outline: none !important;
    border-radius: 999px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}

html body.b2b-panel-page .b2b-topbar__search input[type="search"]::placeholder,
html body.b2b-panel-page .b2b-topbar__search input[type="text"]::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__search input[type="search"]::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__search input[type="text"]::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__search input[type="search"]::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__search input[type="text"]::placeholder {
    color: #64748b !important;
}

html body.b2b-panel-page .b2b-topbar__search input[type="search"]:focus,
html body.b2b-panel-page .b2b-topbar__search input[type="text"]:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__search input[type="search"]:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-topbar__search input[type="text"]:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__search input[type="search"]:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__search input[type="text"]:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 4px 14px rgba(15, 23, 42, 0.12) !important;
}

/* Nível da Faixa (ex: FAIXA PRETA) em branco no modo escuro */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faixa-level__k {
    color: #94a3b8 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faixa-level__n {
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page,
html[data-b2b-theme="dark"] body.b2b-panel-page #page,
html[data-b2b-theme="dark"] body.b2b-panel-page .site {
    background: var(--b2b-canvas-bg-0) !important;
}

/* Full-bleed canvas pages */
html body.b2b-panel-page .b2b-panel-page .b2b-main--clientes,
html body.b2b-panel-page .b2b-panel-page .b2b-main--admin-dashboard {
    background: var(--kur-bg-0, var(--b2b-canvas-bg-0)) !important;
}

html body.b2b-panel-page .b2b-panel-page .b2b-content--clientes,
html body.b2b-panel-page .b2b-panel-page .b2b-content--admin-dashboard {
    flex: 1;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(16px, 2.5vw, 28px) max(var(--b2b-gutter, 16px), 3vw) calc(28px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
    background:
        radial-gradient(900px 420px at 8% -8%, rgba(201, 162, 39, 0.1), transparent 55%),
        radial-gradient(700px 360px at 92% 0%, rgba(45, 212, 168, 0.05), transparent 50%),
        linear-gradient(168deg, var(--kur-bg-0) 0%, var(--kur-bg-1) 46%, var(--kur-bg-2) 100%) !important;
    color: var(--kur-text, var(--b2b-text));
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-main--clientes,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-main--admin-dashboard {
    padding-bottom: 0 !important;
}

/* Theme toggle button */
html body.b2b-panel-page .b2b-panel-page .b2b-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

html body.b2b-panel-page .b2b-panel-page .b2b-theme-toggle:hover {
    background: rgba(99, 102, 241, 0.08);
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

html body.b2b-panel-page .b2b-panel-page .b2b-theme-toggle__icon {
    display: none;
    line-height: 0;
}

html[data-b2b-theme="light"] body.b2b-panel-page .b2b-panel-page .b2b-theme-toggle__icon--light,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-theme-toggle__icon--dark {
    display: inline-flex;
}

html body.b2b-panel-page .b2b-panel-page .b2b-theme-toggle:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Generic cards in dark mode */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .full-card {
    background: var(--b2b-surface-muted) !important;
    border-color: var(--b2b-border) !important;
    color: var(--b2b-text) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page table.data-table {
    background: transparent !important;
    border-color: var(--b2b-border) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table thead th,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page table.data-table thead th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--b2b-text-muted) !important;
    border-color: var(--b2b-border) !important;
}

/* Neutralize white background overrides on table cells */
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody td,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page table.data-table tbody td,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-td-dados-licenca,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody td.b2b-td-dados-licenca,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody td:nth-child(3),
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact tbody td:nth-child(3),
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant tbody td:nth-child(3),
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody td.b2b-td-actions,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-td-actions,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-actions,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody tr:nth-child(even) td,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody tr:nth-child(even) td.b2b-td-dados-licenca,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody tr:nth-child(even) td:nth-child(3),
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody tr:hover td,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody tr:hover td.b2b-td-dados-licenca,
html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table tbody tr:hover td:nth-child(3) {
    background: transparent !important;
    color: var(--b2b-text) !important;
    border-color: var(--b2b-border) !important;
    box-shadow: none !important;
}

@media (min-width: 769px) {
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant td.b2b-td-actions {
        background: transparent !important;
        box-shadow: inset 1px 0 0 var(--b2b-border) !important;
    }
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant thead th:last-child {
        box-shadow: inset 1px 0 0 var(--b2b-border) !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }
}

@media (max-width: 767px) {
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact tbody tr.b2b-clients-table__row,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant tbody tr.b2b-clients-table__row {
        background: rgba(10, 22, 40, 0.88) !important;
        border-color: var(--b2b-border, rgba(255, 255, 255, 0.1)) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
    }
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact tbody tr.b2b-clients-table__row td,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant tbody tr.b2b-clients-table__row td,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-td-dados-licenca,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-dados-licenca,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact tbody tr.b2b-clients-table__row td:nth-child(3),
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant tbody tr.b2b-clients-table__row td:nth-child(3),
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-td-license-code,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-license-code,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-td-actions,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-actions {
        background: transparent !important;
    }
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-td-actions,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-actions {
        border-top-color: var(--b2b-border, rgba(255, 255, 255, 0.1)) !important;
    }
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-dados-licenca-card,
    html[data-b2b-theme="dark"] body.b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-dados-licenca-card {
        background: transparent !important;
        color: var(--b2b-text, #eef4fb) !important;
    }
}

/* Badges in dark mode */
html[data-b2b-theme="dark"] body.b2b-panel-page .badge-approved,
html[data-b2b-theme="dark"] body.b2b-panel-page .badge-active,
html[data-b2b-theme="dark"] body.b2b-panel-page .badge-in-use {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .badge-expired,
html[data-b2b-theme="dark"] body.b2b-panel-page .badge-expirado {
    background: rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .badge-free {
    background: rgba(56, 189, 248, 0.14) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.32) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .badge-pending {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .badge-suspended,
html[data-b2b-theme="dark"] body.b2b-panel-page .badge-failed {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

/* Action chips in dark mode */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-action-chip--primary {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-action-chip--success {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-action-chip--danger {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-action-chip--danger-outline {
    background: transparent !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-action-chip--muted {
    background: var(--bg-card-secondary) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border) !important;
}

/* Extended badges in dark mode */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-badge,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-badge,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dp-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-badge--success,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dp-badge--success {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-badge--warning,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dp-badge--warning {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fcd34d !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-badge--danger,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dp-badge--danger {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-badge--primary {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-badge--neutral,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-badge--muted {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-muted) !important;
    border-color: var(--border) !important;
}

/* Tabs in dark mode */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-tabs,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-nav-tabs {
    background: var(--bg-card-secondary) !important;
    border-color: var(--border) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-tabs__item,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-nav-tabs__item {
    color: var(--text-muted) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-tabs__item:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-nav-tabs__item:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-tabs__item.is-active,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-tabs__item--active,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-nav-tabs__item.is-active {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}

/* Bottom Dock / Tabbar: SEMPRE no modo claro (desktop e mobile em qualquer tema) */
html body.b2b-panel-page .b2b-desktop-dock__inner,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__inner {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14), 0 4px 14px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

html body.b2b-panel-page .b2b-desktop-dock__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__label {
    color: #64748b !important;
    font-weight: 700 !important;
}

html body.b2b-panel-page .b2b-desktop-dock__item:hover .b2b-desktop-dock__label,
html body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--on .b2b-desktop-dock__label,
html body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--menu-open .b2b-desktop-dock__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item:hover .b2b-desktop-dock__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--on .b2b-desktop-dock__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--menu-open .b2b-desktop-dock__label {
    color: #4f46e5 !important;
}

html body.b2b-panel-page .b2b-desktop-dock__ico,
html body.b2b-panel-page .b2b-desktop-dock__ico .b2b-nav-ico-svg,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__ico,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__ico .b2b-nav-ico-svg {
    color: #64748b !important;
}

html body.b2b-panel-page .b2b-desktop-dock__item:hover .b2b-desktop-dock__ico,
html body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--on .b2b-desktop-dock__ico,
html body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--menu-open .b2b-desktop-dock__ico,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item:hover .b2b-desktop-dock__ico,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--on .b2b-desktop-dock__ico,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--menu-open .b2b-desktop-dock__ico {
    color: #4f46e5 !important;
}

html body.b2b-panel-page .b2b-desktop-dock__item:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item:hover {
    background: rgba(99, 102, 241, 0.08) !important;
}

html body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--on,
html body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--menu-open,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--on,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item.b2b-tab--menu-open {
    background: rgba(99, 102, 241, 0.1) !important;
}

/* Botão central "Criar" Desktop */
html body.b2b-panel-page .b2b-desktop-dock__item--create,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__item--create {
    background: transparent !important;
    color: #047857 !important;
}

html body.b2b-panel-page .b2b-desktop-dock__create-ring,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__create-ring {
    background: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%) !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.4) !important;
}

html body.b2b-panel-page .b2b-desktop-dock__create-svg,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__create-svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

html body.b2b-panel-page .b2b-desktop-dock__label--create,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-desktop-dock__label--create {
    color: #047857 !important;
    font-weight: 800 !important;
}

/* Tabbar Mobile — SEMPRE no modo claro */
html body.b2b-panel-page .b2b-mobile-tabbar,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e8ecf4 !important;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

html body.b2b-panel-page .b2b-mobile-tabbar__label,
html body.b2b-panel-page .b2b-mobile-tabbar__ico,
html body.b2b-panel-page .b2b-mobile-tabbar__ico .b2b-nav-ico-svg,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__ico,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__ico .b2b-nav-ico-svg {
    color: #64748b !important;
}

html body.b2b-panel-page .b2b-mobile-tabbar__item:hover .b2b-mobile-tabbar__label,
html body.b2b-panel-page .b2b-mobile-tabbar__item.b2b-tab--on .b2b-mobile-tabbar__label,
html body.b2b-panel-page .b2b-mobile-tabbar__item.b2b-tab--menu-open .b2b-mobile-tabbar__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__item:hover .b2b-mobile-tabbar__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__item.b2b-tab--on .b2b-mobile-tabbar__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__item.b2b-tab--menu-open .b2b-mobile-tabbar__label {
    color: #4f46e5 !important;
}

html body.b2b-panel-page .b2b-mobile-tabbar__item:hover .b2b-mobile-tabbar__ico,
html body.b2b-panel-page .b2b-mobile-tabbar__item.b2b-tab--on .b2b-mobile-tabbar__ico,
html body.b2b-panel-page .b2b-mobile-tabbar__item.b2b-tab--menu-open .b2b-mobile-tabbar__ico,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__item:hover .b2b-mobile-tabbar__ico,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__item.b2b-tab--on .b2b-mobile-tabbar__ico,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__item.b2b-tab--menu-open .b2b-mobile-tabbar__ico {
    color: #4f46e5 !important;
}

/* Botão central "Criar" Mobile */
html body.b2b-panel-page .b2b-mobile-tabbar__item--create,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__item--create {
    background: transparent !important;
}

html body.b2b-panel-page .b2b-mobile-tabbar__create-ring,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__create-ring {
    background: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%) !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4) !important;
}

html body.b2b-panel-page .b2b-mobile-tabbar__create-svg,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__create-svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

html body.b2b-panel-page .b2b-mobile-tabbar__item--create .b2b-mobile-tabbar__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-mobile-tabbar__item--create .b2b-mobile-tabbar__label {
    color: #047857 !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   Dock Desktop & Tabbar Mobile: Auto-hide no scroll (baixo = esconde, cima = reaparece)
   ========================================================================== */
html body.b2b-panel-page .b2b-desktop-dock {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.35s !important;
    will-change: transform, opacity;
}

html body.b2b-panel-page .b2b-desktop-dock.b2b-dock--hidden,
html body.b2b-panel-page .b2b-desktop-dock.is-scroll-hidden {
    transform: translate(-50%, calc(100% + 64px)) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html body.b2b-panel-page .b2b-desktop-dock.b2b-dock--hidden .b2b-desktop-dock__inner,
html body.b2b-panel-page .b2b-desktop-dock.is-scroll-hidden .b2b-desktop-dock__inner {
    pointer-events: none !important;
}

html body.b2b-panel-page .b2b-mobile-tabbar {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.35s !important;
    will-change: transform, opacity;
}

html body.b2b-panel-page .b2b-mobile-tabbar.b2b-tabbar--hidden,
html body.b2b-panel-page .b2b-mobile-tabbar.is-scroll-hidden {
    transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px) + 24px)) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html body.b2b-panel-page .b2b-mobile-tabbar.b2b-tabbar--hidden *,
html body.b2b-panel-page .b2b-mobile-tabbar.is-scroll-hidden * {
    pointer-events: none !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .alert,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-panel-page .b2b-admin-notice {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--b2b-border) !important;
    color: var(--b2b-text) !important;
}

/* Admin shared surfaces dark */
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-panel-page--admin .b2b-panel-page .b2b-ui-toolbar,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-panel-page--admin .b2b-panel-page .b2b-table-toolbar {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--b2b-border) !important;
    color: var(--b2b-text-muted) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-panel-page--admin .b2b-panel-page .b2b-ui-toolbar,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-panel-page--admin .b2b-panel-page .b2b-table-toolbar {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--b2b-border) !important;
    color: var(--b2b-text-muted) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-panel-page--admin-dashboard .b2b-admin-dashboard-skin-v3 h3.b2b-admin-section__title,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-panel-page--admin-dashboard .b2b-admin-dashboard-skin-v3 .card-title {
    color: var(--kur-text, var(--b2b-text)) !important;
}

html[data-b2b-theme="light"] body.b2b-panel-page .b2b-panel-page .b2b-topbar {
    background: #ffffff !important;
    border-bottom-color: #e8ecf4 !important;
}

html[data-b2b-theme="light"] body.b2b-panel-page .b2b-panel-page .b2b-topbar__page-title {
    color: #0f172a !important;
}

/* ==========================================================================
   Universal Form Controls (Dark & Light)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page input[type="text"],
html[data-b2b-theme="dark"] body.b2b-panel-page input[type="email"],
html[data-b2b-theme="dark"] body.b2b-panel-page input[type="tel"],
html[data-b2b-theme="dark"] body.b2b-panel-page input[type="number"],
html[data-b2b-theme="dark"] body.b2b-panel-page input[type="password"],
html[data-b2b-theme="dark"] body.b2b-panel-page input[type="search"],
html[data-b2b-theme="dark"] body.b2b-panel-page input[type="url"],
html[data-b2b-theme="dark"] body.b2b-panel-page select,
html[data-b2b-theme="dark"] body.b2b-panel-page textarea,
html[data-b2b-theme="dark"] body.b2b-panel-page .field-input,
html[data-b2b-theme="dark"] body.b2b-panel-page .field-select,
html[data-b2b-theme="dark"] body.b2b-panel-page .form-control {
    background-color: rgba(10, 22, 40, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eef4fb !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page input::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page textarea::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page .field-input::placeholder {
    color: #64748b !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page input:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page select:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page textarea:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .field-input:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .field-select:focus {
    border-color: #6366f1 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .field-label,
html[data-b2b-theme="dark"] body.b2b-panel-page label.field-label,
html[data-b2b-theme="dark"] body.b2b-panel-page .form-field > label {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .field-label .optional,
html[data-b2b-theme="dark"] body.b2b-panel-page .form-field label .optional {
    color: #64748b !important;
}

/* ==========================================================================
   Universal Modals & Overlays (Dark Mode)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-backdrop,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ops-modal__backdrop,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal__backdrop,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ticket-detail-modal__backdrop {
    background: rgba(4, 10, 18, 0.78) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ops-modal__panel,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-access-modal__panel,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ticket-detail-modal__dialog,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dashboard-onboard__panel {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-access-modal__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ops-modal__close,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-access-modal__close,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ticket-detail-modal__close {
    color: #8fa3bc !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ops-modal__close:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-access-modal__close:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ticket-detail-modal__close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* ==========================================================================
   Popup Escolha de Criação (#b2bClientCreateTypeModal): SEMPRE MODO CLARO
   ========================================================================== */
html body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__sheet,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__sheet {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__backdrop,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__backdrop {
    background: rgba(15, 23, 42, 0.55) !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__title,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__title {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__subtitle,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__subtitle {
    color: #64748b !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal button.b2b-create-type__card,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal button.b2b-create-type__card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal button.b2b-create-type__card:hover,
html body.b2b-panel-page #b2bClientCreateTypeModal button.b2b-create-type__card:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal button.b2b-create-type__card:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal button.b2b-create-type__card:focus {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__card-title,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__card-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__card-desc,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__card-desc {
    color: #64748b !important;
    font-weight: 500 !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__card-badge,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__card-badge {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

html body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__card-badge--license,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bClientCreateTypeModal .b2b-create-type__card-badge--license {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: #4338ca !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   Modais e Popups (.modal-box, #b2bClientCreateModal): SEMPRE MODO CLARO
   ========================================================================== */
html body.b2b-panel-page .modal-box,
html body.b2b-panel-page .b2b-client-create-modal-box,
html body.b2b-panel-page .b2b-pix-modal-box,
html body.b2b-panel-page .b2b-saldo-modal-box,
html body.b2b-panel-page .b2b-download-modal-box,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-create-modal-box,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-pix-modal-box,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-download-modal-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2) !important;
    color: #0f172a !important;
}

html body.b2b-panel-page .modal-header,
html body.b2b-panel-page .modal-box h2,
html body.b2b-panel-page .modal-box h3,
html body.b2b-panel-page .b2b-pix-modal-box__title,
html body.b2b-panel-page .b2b-saldo-modal-box__title,
html body.b2b-panel-page .b2b-client-wizard__title,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-header,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box h2,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box h3,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-pix-modal-box__title,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__title,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__title {
    color: #0f172a !important;
}

html body.b2b-panel-page .modal-close,
html body.b2b-panel-page .b2b-saldo-modal-box__close,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-close,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__close {
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
}

html body.b2b-panel-page .modal-close:hover,
html body.b2b-panel-page .b2b-saldo-modal-box__close:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-close:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__close:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

/* Inputs, selects e labels dentro dos modais: SEMPRE MODO CLARO */
html body.b2b-panel-page .modal-box input,
html body.b2b-panel-page .modal-box select,
html body.b2b-panel-page .modal-box textarea,
html body.b2b-panel-page .modal-box .field-input,
html body.b2b-panel-page .modal-box .field-select,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box input,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box select,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box textarea,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box .field-input,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box .field-select {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html body.b2b-panel-page .modal-box input::placeholder,
html body.b2b-panel-page .modal-box textarea::placeholder,
html body.b2b-panel-page .modal-box .field-input::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box input::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box textarea::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box .field-input::placeholder {
    color: #94a3b8 !important;
}

html body.b2b-panel-page .modal-box input:focus,
html body.b2b-panel-page .modal-box select:focus,
html body.b2b-panel-page .modal-box textarea:focus,
html body.b2b-panel-page .modal-box .field-input:focus,
html body.b2b-panel-page .modal-box .field-select:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box input:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box select:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box textarea:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box .field-input:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box .field-select:focus {
    border-color: #4f46e5 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

html body.b2b-panel-page .modal-box .field-label,
html body.b2b-panel-page .modal-box label.field-label,
html body.b2b-panel-page .modal-box .form-field > label,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box .field-label,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box label.field-label,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box .form-field > label {
    color: #334155 !important;
}

html body.b2b-panel-page .modal-box .field-label .optional,
html[data-b2b-theme="dark"] body.b2b-panel-page .modal-box .field-label .optional {
    color: #94a3b8 !important;
}

/* Modal PIX details: SEMPRE MODO CLARO */
html body.b2b-panel-page .b2b-pix-modal-box__amount-value,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-pix-modal-box__amount-value {
    color: #059669 !important;
}

html body.b2b-panel-page .b2b-pix-modal-box__qr,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-pix-modal-box__qr {
    background: #ffffff !important;
    padding: 10px !important;
    border-radius: 12px !important;
    display: inline-block !important;
}

html body.b2b-panel-page .b2b-pix-modal-box__code,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-pix-modal-box__code {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html body.b2b-panel-page .b2b-pix-modal-box__note,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-pix-modal-box__note {
    color: #64748b !important;
}

/* Modal Saldo presets: SEMPRE MODO CLARO */
html body.b2b-panel-page .b2b-saldo-modal-box__preset,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__preset {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

html body.b2b-panel-page .b2b-saldo-modal-box__preset:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__preset:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: #6366f1 !important;
    color: #4338ca !important;
}

html body.b2b-panel-page .b2b-saldo-modal-box__preset.is-active,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__preset.is-active {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

html body.b2b-panel-page .b2b-saldo-modal-box__amount-wrap,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__amount-wrap {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

html body.b2b-panel-page .b2b-saldo-modal-box__amount-wrap .b2b-saldo-modal-box__currency,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__amount-wrap .b2b-saldo-modal-box__currency {
    color: #64748b !important;
}

html body.b2b-panel-page .b2b-saldo-modal-box__amount-input,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-saldo-modal-box__amount-input {
    color: #0f172a !important;
    background: transparent !important;
}

/* Client Create Wizard: SEMPRE MODO CLARO */
html body.b2b-panel-page .b2b-client-wizard__tagline,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__tagline {
    color: #64748b !important;
}

html body.b2b-panel-page .b2b-client-wizard__lead,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__lead {
    color: #334155 !important;
}

html body.b2b-panel-page .b2b-client-wizard__product,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__product {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html body.b2b-panel-page .b2b-client-wizard__product:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__product:hover {
    border-color: #c7d2fe !important;
    background: #f8fafc !important;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12) !important;
}

html body.b2b-panel-page .b2b-client-wizard__product.is-selected,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__product.is-selected {
    border-color: #6366f1 !important;
    background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.18) !important;
}

html body.b2b-panel-page .b2b-client-wizard__product-label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__product-label {
    color: #0f172a !important;
}

html body.b2b-panel-page .b2b-client-wizard__product-sub,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__product-sub {
    color: #64748b !important;
}

html body.b2b-panel-page .b2b-client-wizard__product-icon--wasender,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__product-icon--wasender {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #16a34a !important;
}

html body.b2b-panel-page .b2b-client-wizard__product-icon--wasender_crm,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__product-icon--wasender_crm {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #2563eb !important;
}

html body.b2b-panel-page .b2b-client-wizard__period-pill,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__period-pill {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

html body.b2b-panel-page .b2b-client-wizard__period-pill:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__period-pill:hover {
    border-color: #c7d2fe !important;
    color: #4f46e5 !important;
    background: #f8fafc !important;
}

html body.b2b-panel-page .b2b-client-wizard__period-pill.is-selected,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__period-pill.is-selected {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

html body.b2b-panel-page .b2b-client-wizard__step-dot,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__step-dot {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

html body.b2b-panel-page .b2b-client-wizard__step.is-active .b2b-client-wizard__step-dot,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__step.is-active .b2b-client-wizard__step-dot {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

html body.b2b-panel-page .b2b-client-wizard__step.is-done .b2b-client-wizard__step-dot,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__step.is-done .b2b-client-wizard__step-dot {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

html body.b2b-panel-page .b2b-client-wizard__step-text,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__step-text {
    color: #64748b !important;
}

html body.b2b-panel-page .b2b-client-wizard__step.is-active .b2b-client-wizard__step-text,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__step.is-active .b2b-client-wizard__step-text {
    color: #0f172a !important;
}

html body.b2b-panel-page .b2b-client-wizard__summary,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__summary {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    border: 1px solid #e2e8f0 !important;
}

html body.b2b-panel-page .b2b-client-wizard__summary-row,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__summary-row {
    border-bottom: 1px solid #f1f5f9 !important;
}

html body.b2b-panel-page .b2b-client-wizard__summary-row span,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__summary-row span {
    color: #64748b !important;
}

html body.b2b-panel-page .b2b-client-wizard__summary-row strong,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__summary-row strong {
    color: #0f172a !important;
}

html body.b2b-panel-page .b2b-client-wizard__crm-details,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__crm-details {
    background: #ffffff !important;
    border: 1px dashed #e2e8f0 !important;
}

html body.b2b-panel-page .b2b-client-wizard__step2-callout,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__step2-callout {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
}

html body.b2b-panel-page .b2b-client-wizard__step2-kicker,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__step2-kicker {
    color: #1d4ed8 !important;
}

html body.b2b-panel-page .b2b-client-wizard__step2-message,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-client-wizard__step2-message {
    color: #334155 !important;
}

/* ==========================================================================
   Modal Edição de Produto Loja Digital (#b2bDstoreAdminEditModal): SEMPRE MODO CLARO
   ========================================================================== */
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__backdrop,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__backdrop {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__panel,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__panel {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 64px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    padding: 0 !important;
    border-radius: 18px !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__header,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__header-icon,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__header-icon {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border: 1px solid #e0e7ff !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__title,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__subtitle,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__subtitle {
    color: #64748b !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--local,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--local {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--local .b2b-dstore-admin-edit__supplier-badge,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--local .b2b-dstore-admin-edit__supplier-badge {
    background: #dcfce7 !important;
    color: #15803d !important;
}
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--local .b2b-dstore-admin-edit__supplier-info,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--local .b2b-dstore-admin-edit__supplier-info {
    color: #166534 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--aitoolify,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--aitoolify {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
}
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--aitoolify .b2b-dstore-admin-edit__supplier-badge,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--aitoolify .b2b-dstore-admin-edit__supplier-badge {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--aitoolify .b2b-dstore-admin-edit__supplier-info,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--aitoolify .b2b-dstore-admin-edit__supplier-info {
    color: #075985 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--partner_api,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--partner_api {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
}
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--partner_api .b2b-dstore-admin-edit__supplier-badge,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--partner_api .b2b-dstore-admin-edit__supplier-badge {
    background: #ede9fe !important;
    color: #5b21b6 !important;
}
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--partner_api .b2b-dstore-admin-edit__supplier-info,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-card--partner_api .b2b-dstore-admin-edit__supplier-info {
    color: #4c1d95 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-kind,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__supplier-kind {
    color: #64748b !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__close,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__close {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__close:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__close:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__field label,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__field strong,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__field label,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__field strong {
    color: #1e293b !important;
    font-weight: 600 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__input,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__select,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__textarea,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__input,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__select,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__textarea {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__currency-badge,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__currency-badge {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-right: none !important;
    color: #64748b !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__input:focus,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__select:focus,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__textarea:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__input:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__select:focus,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__textarea:focus {
    border-color: #4f46e5 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__input::placeholder,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__textarea::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__input::placeholder,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__textarea::placeholder {
    color: #94a3b8 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__select option,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__api-cost,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__api-cost {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__field--validity,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__field--validity {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__lifetime-pill,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__lifetime-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__lifetime-cb:checked + .b2b-dstore-admin-edit__lifetime-pill,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__lifetime-cb:checked + .b2b-dstore-admin-edit__lifetime-pill {
    background: #ecfdf5 !important;
    border-color: #86efac !important;
    color: #047857 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__validity-input-row,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__validity-input-row {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__validity-pill,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__validity-pill {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__validity-pill:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__validity-pill:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__validity-pill.is-active,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__validity-pill.is-active {
    background: #4f46e5 !important;
    border-color: #4338ca !important;
    color: #ffffff !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__field--image-card,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__field--image-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__preview-wrap,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__preview-wrap {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__preview-ph,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__preview-ph {
    background: #f8fafc !important;
    color: #94a3b8 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-card__btn,
html body.b2b-panel-page #b2bDstoreAdminEditModal .btn,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__cancel,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__pick,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-card__btn,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .btn,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__cancel,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__pick {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: none !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-card__btn:hover,
html body.b2b-panel-page #b2bDstoreAdminEditModal .btn:hover,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__cancel:hover,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__pick:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-card__btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__cancel:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__pick:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__status-btn,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__status-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: none !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__status-btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__status-btn:hover {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__status-btn.is-active,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__status-btn.is-active {
    background: #eef2ff !important;
    border-color: #6366f1 !important;
    color: #312e81 !important;
    box-shadow: 0 0 0 1px #6366f1 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__status-btn.is-active:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__status-btn.is-active:hover {
    background: #e0e7ff !important;
    border-color: #4f46e5 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__actions,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__actions {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-card__btn--primary,
html body.b2b-panel-page #b2bDstoreAdminEditModal .btn-primary,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__save,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-card__btn--primary,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .btn-primary,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__save {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-card__btn--primary:hover,
html body.b2b-panel-page #b2bDstoreAdminEditModal .btn-primary:hover,
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__save:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-card__btn--primary:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .btn-primary:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__save:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    border-color: #4338ca !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__error,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__error {
    color: #dc2626 !important;
}

/* Re-vínculo de produtos na API (Modal Edição Rápida) */
html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-box,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-box {
    background: #ffffff !important;
    border: 1px solid #c7d2fe !important;
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-header strong,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-header strong {
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-note,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-note {
    color: #64748b !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-toggle,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-toggle {
    background: #ffffff !important;
    border: 1px solid #c7d2fe !important;
    color: #4f46e5 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-toggle:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__relink-toggle:hover {
    background: #eef2ff !important;
    border-color: #a5b4fc !important;
    color: #3730a3 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-item,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-item:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-item.is-chosen,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-item.is-chosen {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-item-title,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-item-title {
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-pick-btn,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-pick-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-pick-btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-pick-btn:hover {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

html body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-pick-btn.is-selected,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreAdminEditModal .b2b-dstore-admin-edit__catalog-pick-btn.is-selected {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Universal Dropdowns, Menus & Toolbars (Dark Mode)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ui-dropdown,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-dropdown,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-dropdown--account,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-header-notifications__panel,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dropdown-menu {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #eef4fb !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-dropdown__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-dropdown__name {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-dropdown__email {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-dropdown__item {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Licenças & Simulador de Volume (/painel/licencas/)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-hero {
    background: linear-gradient(145deg, rgba(16, 32, 56, 0.92) 0%, rgba(8, 16, 28, 0.88) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-hero__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-hero__price {
    color: #e8c547 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-hero__lead,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-hero__economy {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-ladder-head__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-ladder-head__desc {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-ladder {
    background: rgba(10, 22, 40, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-step {
    background: rgba(16, 32, 56, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-step:hover {
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.12) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-step--featured {
    background: rgba(99, 102, 241, 0.18) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-step__qty {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-step__price {
    color: #e8c547 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-step__suffix {
    color: #64748b !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-buy__hint {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-buy.full-card,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-meta.full-card {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-lic-slider__label {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-lic-slider__qty-num {
    color: #e8c547 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-lic-slider__qty-unit {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-lic-slider__unit-price-label {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-lic-slider__unit-price-val {
    color: #34d399 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-lic-slider__ticks {
    color: #64748b !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-lic-slider__total-label {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-lic-slider__total-val {
    color: #e8c547 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-meta__lead,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-meta__note {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-licenses-meta__list li {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   CRM Kanban (/painel/crm/ & /painel/admin/crm/)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-kpi {
    background: rgba(10, 22, 40, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-kpi__label {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-kpi__value {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm__toolbar-hint,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm__scroll-hint {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-col {
    background: rgba(10, 22, 40, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-col__head {
    background: #0a1628 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-col__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-col__count {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-col__add-body {
    background: rgba(10, 22, 40, 0.5) !important;
    border: 2px dashed rgba(255, 255, 255, 0.15) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-col__add-icon {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-col__add-label {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-card {
    background: #0d1e35 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-card:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-card__name {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-card__product {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-card__badge {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #a5b4fc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-card__badge--warn {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fcd34d !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-card__badge--profit {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #6ee7b7 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-card--demo {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-drawer__backdrop {
    background: rgba(4, 10, 18, 0.75) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-drawer__panel {
    background: #0a1628 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #eef4fb !important;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-drawer__close {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-drawer__close:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-drawer__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-drawer__section h4 {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-drawer__field span {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-crm-drawer__readonly {
    background: rgba(4, 10, 18, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

/* ==========================================================================
   Cobranças Automáticas (/painel/cobrancas/ & admin)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__hero {
    background: linear-gradient(145deg, rgba(16, 32, 56, 0.92) 0%, rgba(8, 16, 28, 0.88) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__price-line {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__price {
    color: #e8c547 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__lead {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__quote {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__checkout-box {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__checkout-line {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__checkout-note {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-wa-connect-card {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-wa-connect-card__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-wa-connect-card__subtitle {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-wa-connect-card__name {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-wa-connect-card__number {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__benefits li {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__step-num {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #8fa3bc !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-sales__step.is-active .b2b-billing-sales__step-num {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-billing-due-teaser {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   Loja Digital: Telas, Extensões & IA (/painel/telas/, etc.)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-category__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-category__count {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-category-nav,
html[data-b2b-theme="dark"] body .b2b-dstore-category-nav {
    background: rgba(10, 22, 40, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-category-nav button.b2b-dstore-category-nav__item,
html[data-b2b-theme="dark"] body .b2b-dstore-category-nav button.b2b-dstore-category-nav__item {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-category-nav button.b2b-dstore-category-nav__item:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-category-nav button.b2b-dstore-category-nav__item:hover {
    border-color: #6366f1 !important;
    color: #eef4fb !important;
    background: rgba(99, 102, 241, 0.15) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-category-nav button.b2b-dstore-category-nav__item--active,
html[data-b2b-theme="dark"] body .b2b-dstore-category-nav button.b2b-dstore-category-nav__item--active {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-category-nav .b2b-dstore-category-nav__count,
html[data-b2b-theme="dark"] body .b2b-dstore-category-nav .b2b-dstore-category-nav__count {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs,
html[data-b2b-theme="dark"] body .b2b-dstore-type-tabs {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item,
html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item:link,
html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item:visited,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs__item,
html[data-b2b-theme="dark"] body .b2b-dstore-type-tabs__item {
    background: transparent !important;
    background-color: transparent !important;
    color: #334155 !important;
    border-color: transparent !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs__item:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-type-tabs__item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item.is-active,
html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item.is-active:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs__item.is-active,
html[data-b2b-theme="dark"] body .b2b-dstore-type-tabs__item.is-active {
    background: #4f46e5 !important;
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4338ca !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__name,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__icon,
html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__name,
html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__label,
html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__icon {
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs__count,
html[data-b2b-theme="dark"] body .b2b-dstore-type-tabs__count {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__count,
html[data-b2b-theme="dark"] body.b2b-panel-page a.b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__count,
html[data-b2b-theme="dark"] body .b2b-dstore-type-tabs__item.is-active .b2b-dstore-type-tabs__count {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-request-btn,
html[data-b2b-theme="dark"] body.b2b-panel-page button.b2b-dstore-request-btn,
html[data-b2b-theme="dark"] body .b2b-dstore-request-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    background-color: #4f46e5 !important;
    border: 1px solid #4338ca !important;
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-request-btn:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-request-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Cards de Produtos da Loja Digital (Ferramentas IA, Telas, Extensões, etc.)
   No modo escuro: as caixinhas (cards) PERMANECEM NO PADRÃO DE MODO CLARO
   (fundo branco #ffffff, títulos escuros, descrições nítidas, botões e bordas de modo claro),
   destacando-se com alto contraste e elegância sobre o fundo escuro da página.
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card,
html[data-b2b-theme="dark"] body .b2b-dstore-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: none !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card--inactive,
html[data-b2b-theme="dark"] body .b2b-dstore-card--inactive {
    opacity: 0.72 !important;
    border: 2px dashed #94a3b8 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card--inactive:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-card--inactive:hover {
    border: 2px dashed #64748b !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__inactive-badge,
html[data-b2b-theme="dark"] body .b2b-dstore-card__inactive-badge {
    background: rgba(15, 23, 42, 0.86) !important;
    color: #f8fafc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card--create,
html[data-b2b-theme="dark"] body .b2b-dstore-card--create {
    background: #ffffff !important;
    border: 2px dashed #94a3b8 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card--create:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-card--create:hover {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    transform: translateY(-3px) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-admin-create-btn,
html[data-b2b-theme="dark"] body.b2b-panel-page button.b2b-dstore-admin-create-btn,
html[data-b2b-theme="dark"] body .b2b-dstore-admin-create-btn {
    background: #ecfdf5 !important;
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-admin-create-btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page button.b2b-dstore-admin-create-btn:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-admin-create-btn:hover {
    background: #10b981 !important;
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-card:hover {
    border: none !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-3px) !important;
}

/* Envoltório da imagem: gradiente suave do modo claro */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__img-wrap,
html[data-b2b-theme="dark"] body .b2b-dstore-card__img-wrap {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__img--placeholder,
html[data-b2b-theme="dark"] body .b2b-dstore-card__img--placeholder {
    color: #94a3b8 !important;
}

/* Título e textos internos do card: padrão claro (escuro sobre branco) */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__title,
html[data-b2b-theme="dark"] body .b2b-dstore-card__title {
    color: #0f172a !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__desc,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__desc p,
html[data-b2b-theme="dark"] body .b2b-dstore-card__desc,
html[data-b2b-theme="dark"] body .b2b-dstore-card__desc p {
    color: #64748b !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__desc strong,
html[data-b2b-theme="dark"] body .b2b-dstore-card__desc strong {
    color: #1e293b !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__desc a,
html[data-b2b-theme="dark"] body .b2b-dstore-card__desc a {
    color: #4f46e5 !important;
}

/* Disponibilidade e Contas */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__accounts,
html[data-b2b-theme="dark"] body .b2b-dstore-card__accounts {
    color: #047857 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__accounts--out,
html[data-b2b-theme="dark"] body .b2b-dstore-card__accounts--out {
    color: #b91c1c !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__accounts--order,
html[data-b2b-theme="dark"] body .b2b-dstore-card__accounts--order {
    color: #c2410c !important;
}

/* Badges de estoque */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__stock,
html[data-b2b-theme="dark"] body .b2b-dstore-card__stock {
    background: #ecfdf5 !important;
    color: #059669 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__stock--out,
html[data-b2b-theme="dark"] body .b2b-dstore-card__stock--out {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__stock--order,
html[data-b2b-theme="dark"] body .b2b-dstore-card__stock--order {
    background: #fff7ed !important;
    color: #c2410c !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__stock--soon,
html[data-b2b-theme="dark"] body .b2b-dstore-card__stock--soon {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

/* Barra de validade e preço flutuante */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__price-bar,
html[data-b2b-theme="dark"] body .b2b-dstore-card__price-bar {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__validity,
html[data-b2b-theme="dark"] body .b2b-dstore-card__validity {
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__validity--30d,
html[data-b2b-theme="dark"] body .b2b-dstore-card__validity--30d {
    background: rgba(30, 64, 175, 0.92) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__validity--lifetime,
html[data-b2b-theme="dark"] body .b2b-dstore-card__validity--lifetime {
    background: rgba(21, 128, 61, 0.92) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__price,
html[data-b2b-theme="dark"] body .b2b-dstore-card__price {
    background: rgba(79, 70, 229, 0.95) !important;
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__price--free,
html[data-b2b-theme="dark"] body .b2b-dstore-card__price--free {
    background: rgba(21, 128, 61, 0.95) !important;
    color: #ffffff !important;
}

/* Botões do Card (Comprar e Ver Detalhes) */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions .b2b-dstore-card__btn.btn-primary,
html[data-b2b-theme="dark"] body .b2b-dstore-card__actions .b2b-dstore-card__btn.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: 1px solid transparent !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.22) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions .b2b-dstore-card__btn.btn-primary:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-card__actions .b2b-dstore-card__btn.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions .b2b-dstore-detail-btn,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions .b2b-dstore-detail-btn.btn,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions button.b2b-dstore-detail-btn,
html[data-b2b-theme="dark"] body .b2b-dstore-card__actions .b2b-dstore-detail-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    box-shadow: none !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions .b2b-dstore-detail-btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions .b2b-dstore-detail-btn.btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions button.b2b-dstore-detail-btn:hover,
html[data-b2b-theme="dark"] body .b2b-dstore-card__actions .b2b-dstore-detail-btn:hover {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-card__actions .b2b-dstore-card__btn--buy:disabled,
html[data-b2b-theme="dark"] body .b2b-dstore-card__actions .b2b-dstore-card__btn--buy:disabled {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    border-color: #e5e7eb !important;
}

/* ==========================================================================
   Popup Ver Detalhes (#b2bDstoreDetailModal / .b2b-dstore-modal): SEMPRE MODO CLARO
   ========================================================================== */
html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__panel,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__panel,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__panel,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2) !important;
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__backdrop,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__backdrop,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__backdrop,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__backdrop {
    background: rgba(15, 23, 42, 0.55) !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__product-title,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__product-title,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__product-title,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__product-title {
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__desc,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__desc,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__desc,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__desc {
    color: #334155 !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__desc strong,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__desc strong,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__desc strong,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__desc strong {
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__footer,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__footer,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__footer,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__footer-price,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__footer-price,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__footer-price,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__footer-price {
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal button.b2b-dstore-modal__close,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal button.b2b-dstore-modal__close,
html body.b2b-panel-page .b2b-dstore-modal button.b2b-dstore-modal__close,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal button.b2b-dstore-modal__close {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal button.b2b-dstore-modal__close:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal button.b2b-dstore-modal__close:hover,
html body.b2b-panel-page .b2b-dstore-modal button.b2b-dstore-modal__close:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal button.b2b-dstore-modal__close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__scroll::-webkit-scrollbar-track,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__scroll::-webkit-scrollbar-track,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__scroll::-webkit-scrollbar-track,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__scroll::-webkit-scrollbar-track {
    background: #f8fafc !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__scroll::-webkit-scrollbar-thumb,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__scroll::-webkit-scrollbar-thumb,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__scroll::-webkit-scrollbar-thumb,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

html body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__scroll::-webkit-scrollbar-thumb:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page #b2bDstoreDetailModal .b2b-dstore-modal__scroll::-webkit-scrollbar-thumb:hover,
html body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__scroll::-webkit-scrollbar-thumb:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-modal .b2b-dstore-modal__scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-search-hint,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-dstore-filter-empty {
    background: rgba(10, 22, 40, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #8fa3bc !important;
}

/* ==========================================================================
   Seguidores / SMM (/painel/seguidores/ & /painel/admin/seguidores/)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-admin-tabs__btn,
html[data-b2b-theme="dark"] #b2b-admin-seguidores .b2b-smm-admin-tabs__btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-admin-tabs__btn:hover,
html[data-b2b-theme="dark"] #b2b-admin-seguidores .b2b-smm-admin-tabs__btn:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-admin-tabs__btn.is-active,
html[data-b2b-theme="dark"] #b2b-admin-seguidores .b2b-smm-admin-tabs__btn.is-active {
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.15) !important;
    color: #a5b4fc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-admin-tabs__count,
html[data-b2b-theme="dark"] #b2b-admin-seguidores .b2b-smm-admin-tabs__count {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-card {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-card__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-card__type {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-card__desc {
    background: rgba(30, 58, 138, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-card__desc-label {
    color: #93c5fd !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-card__desc-body {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-card__meta span {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-card__total {
    color: #e8c547 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__back {
    background: var(--bg-card-secondary) !important;
    color: var(--text-primary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__platform-btn {
    background: var(--bg-card-secondary) !important;
    border-color: var(--border) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__platform-btn.is-active {
    background: rgba(99, 102, 241, 0.18) !important;
    border-color: var(--button-primary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__platform-icon {
    background: var(--bg-card) !important;
    box-shadow: inset 0 0 0 1px var(--border) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__platform-label {
    color: var(--text-secondary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__active-platform {
    background: var(--bg-card-secondary) !important;
    border-color: var(--border) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__active-platform .b2b-smm-hub__platform-label {
    color: var(--text-primary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__field-label {
    color: var(--text-secondary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__service-meta {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__meta-price {
    color: var(--text-primary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__meta-price span,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__meta-qty {
    color: var(--text-muted) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__sub-pill {
    background: var(--bg-card-secondary) !important;
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__sub-pill:hover,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__sub-pill.is-active {
    background: var(--button-primary) !important;
    border-color: var(--button-primary) !important;
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-hub__service-card--br {
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.15) 0%, var(--bg-card) 100%) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-order-card {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
}

/* ==========================================================================
   Suporte & Central de FAQ (/painel/suporte/)
   ========================================================================== */
html[data-b2b-theme="dark"] .kurupira-suporte-page {
    --kf-text: #eef4fb !important;
    --kf-text-muted: #8fa3bc !important;
    --kf-border: rgba(255, 255, 255, 0.1) !important;
    --kf-white: #0a1628 !important;
    --kf-green-soft: rgba(31, 122, 74, 0.22) !important;
    --kf-green-light: rgba(31, 122, 74, 0.35) !important;
    --kf-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
}

html[data-b2b-theme="dark"] .kurupira-suporte-page .faq-card,
html[data-b2b-theme="dark"] .kurupira-suporte-page .suporte-card,
html[data-b2b-theme="dark"] .kurupira-suporte-page .artigo-card,
html[data-b2b-theme="dark"] .kurupira-suporte-page .faq-item {
    background: #0a1628 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] .kurupira-suporte-page .faq-busca-input {
    background: rgba(10, 22, 40, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eef4fb !important;
}

/* ==========================================================================
   Componente FAQ Accordion (.b2b-faq e .b2b-smm-faq) - Dark Mode & Contraste
   ========================================================================== */
html body.b2b-panel-page .b2b-faq__title {
    color: #1e1b4b !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__item {
    background: #102038 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__item:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__item[open] {
    border-color: #6366f1 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__question {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__question:hover {
    color: #a5b4fc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__question-text {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__icon {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: rgba(99, 102, 241, 0.12) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__icon::before,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__icon::after {
    background: #a5b4fc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__item[open] .b2b-faq__icon {
    background: rgba(99, 102, 241, 0.28) !important;
    border-color: #818cf8 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__item[open] .b2b-faq__icon::before,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__item[open] .b2b-faq__icon::after {
    background: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__answer {
    color: #cbd5e1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__answer p {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__answer strong {
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-faq__answer a {
    color: #818cf8 !important;
}

/* Suporte para SMM FAQ no Dark Mode */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-faq {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-faq__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-faq__item {
    background: #102038 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-faq__item[open] {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-faq__question {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-faq__answer {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-faq__answer p {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-smm-faq__answer strong {
    color: #ffffff !important;
}

/* ==========================================================================
   Central de Tickets Admin (/painel/admin/tickets/)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets:not(.b2b-admin-tickets--detail),
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets--detail,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets__head--detail {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets__title,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-ticket-ai-config-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__messages-wrap,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__reply-box,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__sidebar {
    background: rgba(16, 32, 56, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__meta-item {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__msg {
    background: #0d1e35 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__msg--staff {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.28) !important;
}

/* ==========================================================================
   Meu Perfil (/painel/perfil/)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-card {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-hero__name {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-hero__email,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-hero__since {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-profile-hero__avatar {
    background: rgba(16, 32, 56, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    color: #e8c547 !important;
}

/* ==========================================================================
   Configurações Hub (/painel/configuracoes/ & /painel/admin/configuracoes/)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-config-hub__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-config-hub__desc {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-config-hub__tabs {
    background: rgba(10, 22, 40, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-config-hub__tab {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-config-hub__tab:hover {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-config-hub__tab.is-active {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #6ee7b7 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-config-hub__subtab {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-admin-config-hub__subtab:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Extrato Financeiro (/painel/pagamentos/)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-finance-hub__balance,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-finance-hub__aff {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-finance-hub__label {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-finance-hub__value {
    color: #e8c547 !important;
}

/* ==========================================================================
   Quiz Onboarding (.b2b-onboarding-quiz)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__card {
    background: #0a1628 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #eef4fb !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__subtitle,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__step-label,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__incentive,
html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__cheer {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__progress-track {
    background: rgba(255, 255, 255, 0.1) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__option {
    background: rgba(16, 32, 56, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__option:hover {
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.12) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__option.is-selected {
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.22) !important;
    color: #ffffff !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__textarea {
    background: rgba(10, 22, 40, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page .b2b-onboarding-quiz__nav {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   Super Admin: Telas Nativas & Superfícies Legadas (Dark Mode)
   ========================================================================== */
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-content,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-content h1,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-content h2,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-content h3,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-content h4,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell h1,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell h2,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell h3,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell h4,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .card-title {
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-muted,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .description {
    color: #8fa3bc !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .full-card {
    background: #0a1628 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell .wp-list-table.widefat,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-wp-shell .wp-list-table.widefat {
    background: #0a1628 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell .wp-list-table thead th,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-wp-shell .wp-list-table thead th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell .wp-list-table td,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-wp-shell .wp-list-table td {
    color: #cbd5e1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell table.wp-list-table.striped tbody tr:nth-child(odd),
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-wp-shell table.wp-list-table.striped tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02) !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell input[type='text'],
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell input[type='email'],
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell input[type='url'],
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell input[type='number'],
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell input[type='password'],
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell input.regular-text,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell select,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell textarea,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .field-input,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .field-select {
    background: rgba(10, 22, 40, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-native-shell .form-table th {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-check-label {
    color: #cbd5e1 !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-wp-shell > .wrap {
    background: #0a1628 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-licenses-stat,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-licenses-filters {
    background: #0a1628 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #eef4fb !important;
}

html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page .b2b-admin-email-logs,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page #b2b-admin-news,
html[data-b2b-theme="dark"] body.b2b-panel-page.b2b-super-admin .b2b-panel-page #b2b-admin-produtos-digitais {
    color: #eef4fb !important;
}

/* ==========================================================================
   Universal Responsiveness (Mobile, Tablet, Desktop)
   ========================================================================== */
html, body.b2b-panel-page {
    max-width: 100vw;
    overflow-x: clip;
}

@media (max-width: 767px) {
    /* Modais universais em tela cheia suave no mobile */
    body.b2b-panel-page .modal-box,
    body.b2b-panel-page .b2b-client-create-modal-box,
    body.b2b-panel-page .b2b-pix-modal-box,
    body.b2b-panel-page .b2b-saldo-modal-box,
    body.b2b-panel-page .b2b-download-modal-box,
    body.b2b-panel-page .b2b-dstore-modal__panel,
    body.b2b-panel-page .b2b-dstore-access-modal__panel,
    body.b2b-panel-page .b2b-ops-modal__panel,
    body.b2b-panel-page .b2b-ticket-detail-modal__dialog {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 10px auto !important;
        max-height: calc(100dvh - 30px) !important;
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    /* Ladder de Licenças flexível no mobile */
    body.b2b-panel-page .b2b-licenses-ladder {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 8px !important;
        padding: 12px !important;
    }

    /* Loja Digital cards no mobile */
    body.b2b-panel-page .b2b-dstore-grid,
    body.b2b-panel-page .b2b-dstore-cards,
    body.b2b-panel-page .b2b-smm-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* CRM Kanban no mobile com rolagem protegida */
    body.b2b-panel-page .b2b-crm-board {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 14px !important;
    }

    body.b2b-panel-page .b2b-crm-col {
        min-width: 270px !important;
        max-width: 85vw !important;
        flex: 0 0 270px !important;
        scroll-snap-align: start;
    }

    /* Cartão de conexão WhatsApp no mobile */
    body.b2b-panel-page .b2b-wa-connect-card {
        padding: 16px !important;
    }

    body.b2b-panel-page .b2b-wa-connect-card__inner {
        flex-direction: column !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    /* Ticket Admin Detail no mobile */
    body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__body {
        flex-direction: column !important;
    }

    body.b2b-panel-page .b2b-admin-tickets--detail .b2b-admin-tickets__sidebar {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Tabelas universais com scroll horizontal seguro */
    body.b2b-panel-page .b2b-table-scroll-fallback,
    body.b2b-panel-page .b2b-table-wrap,
    body.b2b-panel-page .b2b-admin-native-shell {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Otimizações para Tablet */
    body.b2b-panel-page .b2b-dstore-grid,
    body.b2b-panel-page .b2b-dstore-cards,
    body.b2b-panel-page .b2b-smm-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    body.b2b-panel-page .b2b-licenses-ladder {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body.b2b-panel-page .b2b-panel-page .b2b-theme-toggle,
    html body.b2b-panel-page .b2b-desktop-dock,
    html body.b2b-panel-page .b2b-mobile-tabbar {
        transition: none !important;
    }
}
