/**
 * castingVIP — temas visuais completos (cores + tipografia + componentes)
 * Referência: /themes/*.md
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* —— Tokens base (fallback) —— */
:root,
html[data-theme="sahlitys-enterprise"] {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --body-size: 15px;
  --h2-size: 22px;
  --h2-weight: 600;
  --page-title-size: 26px;
  --page-title-weight: 700;
  --label-transform: none;
  --label-tracking: 0;
  --card-max-width: 940px;
  --card-radius: 18px;
  --card-border-width: 1px;
  --card-border-color: var(--border);
  --card-bg: var(--panel);
  --card-columns: 1.1fr 1fr;
  --side-padding: 32px;
  --main-padding: 32px;
  --main-blur: none;
  --logo-size: 40px;
  --logo-radius: 14px;
  --input-radius: 10px;
  --input-height: 44px;
  --input-focus-ring: 0 0 0 3px var(--accent-focus);
  --btn-radius: 10px;
  --btn-height: 44px;
  --btn-font-weight: 600;
  --btn-shadow: none;
  --btn-hover-filter: brightness(1.04);
  --btn2-radius: 10px;
  --nav-radius: 10px;
  --nav-padding: 10px 14px;
  --nav-gap: 4px;
  --shell-gap: 16px;
  --shell-radius: 18px;
  --shell-sidebar-width: 280px;
  --shell-side-padding: 22px;
  --shell-border-width: 0;
  --frame-radius: 18px;
  --embed-padding: 24px 28px;
  --table-head-bg: transparent;
  --table-head-transform: none;
  --table-head-size: 12px;
  --table-head-tracking: 0;
  --table-row-hover: var(--accent-soft);
  --table-cell-padding: 12px 10px;
  --pill-radius: 999px;
  --login-radius: 18px;
  --login-title-size: 32px;
  --login-title-color: var(--accent);
  --login-shadow: var(--shadow-card);
  --accent: #4f46e5;
  --accent2: #6366f1;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --accent-border: rgba(79, 70, 229, 0.42);
  --accent-focus: rgba(79, 70, 229, 0.16);
  --link: var(--accent);
  --bg: #f7f8fc;
  --bg2: #f1f3f9;
  --panel: #ffffff;
  --panel2: #f5f6fb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7ef;
  --field: #ffffff;
  --fieldText: var(--text);
  --shadow-card: 0 10px 40px rgba(17, 24, 39, 0.06);
  --shell-bg: #ffffff;
  --shell-side-bg: #ffffff;
  --shell-main-bg: transparent;
  --card-glass: #ffffff;
  --side-gradient: linear-gradient(180deg, rgba(79, 70, 229, 0.09), transparent);
  --side-bg: var(--side-gradient), var(--panel2);
  --body-gradient: linear-gradient(180deg, var(--bg2), var(--bg));
  --frame-bg: #f5f6fb;
  --ok-bg: rgba(79, 70, 229, 0.1);
  --ok-border: rgba(79, 70, 229, 0.25);
  --ok-text: var(--text);
  --error-text: #b91c1c;
  --status-success-bg: rgba(34, 197, 94, 0.12);
  --status-success-border: rgba(34, 197, 94, 0.35);
  --status-success-text: #15803d;
  --status-warning-bg: rgba(245, 158, 11, 0.12);
  --status-warning-border: rgba(245, 158, 11, 0.35);
  --status-warning-text: #b45309;
  --status-danger-bg: rgba(239, 68, 68, 0.1);
  --status-danger-border: rgba(239, 68, 68, 0.35);
  --status-danger-text: #b91c1c;
  --btn-bg: var(--accent);
  --btn-color: #ffffff;
  --btn-border: var(--accent);
  --btn2-bg: #ffffff;
  --btn2-border: var(--border);
  --btn2-primary-bg: var(--accent-soft);
  --btn2-primary-color: var(--accent);
  --btn2-primary-border: var(--accent-border);
  --nav-active-color: var(--accent);
  --nav-active-bg: var(--accent-soft);
  --nav-hover-bg: #f5f6fb;
  --chip-bg: var(--panel2);
  --gradient-purple: linear-gradient(180deg, #a855f7, #7c3aed);
  --gradient-teal: linear-gradient(180deg, #2dd4bf, #0d9488);
  --gradient-pink: linear-gradient(180deg, #f472b6, #ec4899);
  --gradient-blue: linear-gradient(180deg, #60a5fa, #2563eb);
}

/* —— 01 Vora Light —— */
html[data-theme="vora-light"] {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --card-radius: 12px;
  --shell-radius: 12px;
  --frame-radius: 12px;
  --logo-radius: 10px;
  --btn-radius: 8px;
  --input-radius: 8px;
  --nav-radius: 8px;
  --login-radius: 12px;
  --table-head-bg: #f9fafb;
  --table-head-transform: uppercase;
  --table-head-size: 11px;
  --table-head-tracking: 0.05em;
  --table-row-hover: #f8fafc;
  --accent: #3b71f3;
  --accent2: #6b93f5;
  --accent-soft: rgba(59, 113, 243, 0.12);
  --accent-border: rgba(59, 113, 243, 0.45);
  --accent-focus: rgba(59, 113, 243, 0.18);
  --bg: #f4f6f9;
  --bg2: #eef1f6;
  --panel: #ffffff;
  --panel2: #f9fafb;
  --text: #1a1d26;
  --muted: #6b7280;
  --border: #e8ecf1;
  --field: #ffffff;
  --shadow-card: 0 4px 24px rgba(26, 29, 38, 0.06);
  --shell-bg: #ffffff;
  --shell-side-bg: #ffffff;
  --side-gradient: linear-gradient(180deg, rgba(59, 113, 243, 0.08), transparent);
  --body-gradient: linear-gradient(180deg, var(--bg2), var(--bg));
  --frame-bg: #f9fafb;
  --btn-bg: #3b71f3;
  --btn-shadow: none;
  --status-success-text: #166534;
  --nav-hover-bg: #f8fafc;
}

/* —— 02 fillow SaaS —— */
html[data-theme="fillow-saas"] {
  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --card-radius: 20px;
  --shell-radius: 20px;
  --frame-radius: 20px;
  --logo-radius: 16px;
  --btn-radius: 12px;
  --input-radius: 14px;
  --nav-radius: 14px;
  --login-radius: 20px;
  --login-title-size: 34px;
  --accent: #8b5cf6;
  --accent2: #c026d3;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-border: rgba(139, 92, 246, 0.45);
  --accent-focus: rgba(236, 72, 153, 0.15);
  --bg: #f6f4fb;
  --bg2: #f3f0fa;
  --panel: #ffffff;
  --panel2: #faf8fd;
  --text: #2d2640;
  --muted: #7c7391;
  --border: #e9e4f2;
  --shadow-card: 0 8px 32px rgba(109, 40, 217, 0.08);
  --shell-bg: rgba(255, 255, 255, 0.92);
  --shell-side-bg: #f3f0fa;
  --side-gradient: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(192, 38, 211, 0.1));
  --gradient-hero: linear-gradient(135deg, #a78bfa 0%, #7c3aed 45%, #c026d3 100%);
  --body-gradient:
    radial-gradient(800px 500px at 10% 0%, rgba(139, 92, 246, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  --frame-bg: rgba(243, 240, 250, 0.9);
  --btn-bg: linear-gradient(135deg, #a78bfa 0%, #7c3aed 45%, #c026d3 100%);
  --btn-shadow: 0 8px 24px rgba(109, 40, 217, 0.25);
  --status-warning-bg: rgba(236, 72, 153, 0.12);
  --status-warning-border: rgba(236, 72, 153, 0.3);
  --status-warning-text: #9d174d;
}
html[data-theme="fillow-saas"] .side {
  background: var(--gradient-hero);
  border-right: none;
  color: #fff;
}
html[data-theme="fillow-saas"] .side .brand h1,
html[data-theme="fillow-saas"] .side .brand p,
html[data-theme="fillow-saas"] .side .lead,
html[data-theme="fillow-saas"] .side .note,
html[data-theme="fillow-saas"] .side .a {
  color: rgba(255, 255, 255, 0.95);
}
html[data-theme="fillow-saas"] .side .logo {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
html[data-theme="fillow-saas"] .loginTitle {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* —— 04 AI Tools (híbrido) —— */
html[data-theme="ai-tools"] {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --card-radius: 16px;
  --shell-radius: 16px;
  --greeting-size: 30px;
  --accent: #7c3aed;
  --accent2: #2563eb;
  --accent-soft: rgba(124, 58, 237, 0.14);
  --accent-border: rgba(124, 58, 237, 0.4);
  --accent-focus: rgba(37, 99, 235, 0.15);
  --bg: #f0f2f5;
  --bg2: #e8ebf0;
  --panel: #ffffff;
  --panel2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shell-bg: #0f172a;
  --shell-side-bg: #0f172a;
  --shell-side-text: #e2e8f0;
  --shell-side-muted: #94a3b8;
  --shell-main-bg: transparent;
  --shell-border-width: 0;
  --shell-gap: 0;
  --frame-bg: #ffffff;
  --body-gradient: linear-gradient(180deg, var(--bg2), var(--bg));
  --btn-bg: linear-gradient(180deg, #60a5fa, #2563eb);
  --btn-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  --nav-color: #94a3b8;
  --nav-active-color: #ffffff;
  --nav-active-bg: rgba(255, 255, 255, 0.08);
  --nav-active-border: rgba(255, 255, 255, 0.12);
  --nav-hover-bg: rgba(255, 255, 255, 0.05);
  --nav-hover-color: #e2e8f0;
  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-border: rgba(255, 255, 255, 0.12);
  --chip-color: #e2e8f0;
  --client-sidebar-width: 260px;
}
html[data-theme="ai-tools"] .shellSide {
  background: var(--shell-side-bg);
  color: var(--shell-side-text);
}
html[data-theme="ai-tools"] .shellSide .brand h1 {
  color: #fff;
}
html[data-theme="ai-tools"] .shellSide .brand p,
html[data-theme="ai-tools"] .shellSide .themePickerLabel,
html[data-theme="ai-tools"] .shellSide .note {
  color: var(--shell-side-muted);
}
html[data-theme="ai-tools"] .shellSide .nav a {
  color: var(--nav-color);
}
html[data-theme="ai-tools"] .shellSide .nav a.active {
  color: #fff;
}
html[data-theme="ai-tools"] .shellSide .themeSelect,
html[data-theme="ai-tools"] .shellSide .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}
html[data-theme="ai-tools"] .shellSide .a {
  color: #a5b4fc;
}
html[data-theme="ai-tools"] .shellMain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
html[data-theme="ai-tools"] .clientShell .shellSide {
  border-radius: 0;
}
html[data-theme="ai-tools"] .warnBox,
html[data-theme="ai-tools"] .error.passkeyWarn {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(244, 114, 182, 0.12);
  color: #9d174d;
}

/* —— 05 Premium Design System — Dark (slug: castingvip) —— */
html[data-theme="castingvip"] {
  --primary: #ff7a00;
  --primary-hover: #ff9433;
  --primary-soft: #ffb366;
  --info: #4da3ff;
  --transition: all 0.25s ease;
  --radius: 24px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 96px;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Inter", ui-sans-serif, system-ui, sans-serif;
  --body-size: 16px;
  --body-line: 1.55;
  --h2-size: 24px;
  --h2-weight: 600;
  --h2-tracking: -0.02em;
  --page-title-size: 32px;
  --page-title-weight: 700;
  --lead-size: 14px;
  --brand-title-size: 18px;
  --brand-title-weight: 700;
  --brand-tracking: -0.02em;
  --label-size: 12px;
  --label-weight: 500;
  --label-transform: none;
  --label-tracking: 0;
  --card-radius: 16px;
  --card-padding: 24px;
  --card-border-width: 0;
  --card-border-color: transparent;
  --shell-radius: 0;
  --frame-radius: 16px;
  --topbar-height: 72px;
  --logo-radius: 14px;
  --logo-size: 42px;
  --btn-radius: 12px;
  --btn-height: 44px;
  --btn-font-weight: 600;
  --btn-font-size: 14px;
  --input-radius: 14px;
  --input-height: 48px;
  --input-padding: 12px 16px;
  --input-focus-ring: 0 0 0 4px rgba(255, 122, 0, 0.15);
  --nav-radius: 12px;
  --nav-font-size: 14px;
  --nav-font-weight: 500;
  --nav-height: 44px;
  --nav-padding: 10px 16px;
  --shell-sidebar-width: 240px;
  --shell-gap: 0;
  --shell-side-padding: 16px;
  --pill-font-size: 12px;
  --pill-font-weight: 500;
  --table-head-transform: none;
  --table-head-size: 12px;
  --table-head-weight: 600;
  --table-cell-padding: 16px 16px;
  --embed-padding: 28px 32px 36px;
  --accent: var(--primary);
  --accent2: var(--primary-soft);
  --accent-soft: rgba(255, 122, 0, 0.12);
  --accent-border: rgba(255, 122, 0, 0.35);
  --accent-focus: rgba(255, 122, 0, 0.15);
  --link: var(--primary);
  --bg: #0a0f19;
  --bg2: #121827;
  --panel: #1b2333;
  --panel-elevated: #232d42;
  --panel2: #121827;
  --card-bg: var(--panel);
  --text: #ffffff;
  --muted: #a7adb8;
  --border: rgba(255, 255, 255, 0.08);
  --field: rgba(255, 255, 255, 0.03);
  --fieldText: var(--text);
  --input-border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shell-bg: var(--bg);
  --shell-side-bg: var(--bg2);
  --shell-glass-blur: blur(10px);
  --shell-border-color: transparent;
  --shell-border-width: 0;
  --topbar-bg: rgba(10, 15, 25, 0.72);
  --topbar-border: rgba(255, 255, 255, 0.06);
  --side-gradient: none;
  --main-blur: blur(10px);
  --body-gradient: #0a0f19;
  --body-gradient-image:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 0, 0.1), transparent 38%),
    radial-gradient(circle at 88% 100%, rgba(255, 122, 0, 0.06), transparent 42%);
  --frame-bg: var(--bg);
  --frame-border: rgba(255, 255, 255, 0.06);
  --success: #00d26a;
  --warning: #ffb000;
  --danger: #ff4d4d;
  --status-success-bg: rgba(0, 210, 106, 0.12);
  --status-success-border: rgba(0, 210, 106, 0.35);
  --status-success-text: #00d26a;
  --status-warning-bg: rgba(255, 176, 0, 0.12);
  --status-warning-border: rgba(255, 176, 0, 0.35);
  --status-warning-text: #ffb000;
  --status-danger-bg: rgba(255, 77, 77, 0.12);
  --status-danger-border: rgba(255, 77, 77, 0.35);
  --status-danger-text: #ff6b6b;
  --ok-bg: rgba(0, 210, 106, 0.1);
  --ok-border: rgba(0, 210, 106, 0.3);
  --ok-text: #e8fff3;
  --error-text: #ffc9c9;
  --btn-bg: linear-gradient(135deg, #ff7a00, #ff9433);
  --btn-color: #ffffff;
  --btn-border: transparent;
  --btn-shadow: 0 8px 24px rgba(255, 122, 0, 0.28);
  --btn-hover-filter: none;
  --btn-hover-bg: linear-gradient(135deg, #ff9433, #ffb366);
  --btn2-bg: rgba(255, 255, 255, 0.03);
  --btn-outline-border: rgba(255, 255, 255, 0.08);
  --btn-outline-bg: transparent;
  --btn-outline-hover: rgba(255, 255, 255, 0.04);
  --btn2-border: rgba(255, 255, 255, 0.08);
  --btn2-primary-bg: rgba(255, 122, 0, 0.12);
  --btn2-primary-color: var(--primary);
  --btn2-primary-border: rgba(255, 122, 0, 0.35);
  --table-head-bg: transparent;
  --table-border: rgba(255, 255, 255, 0.05);
  --table-row-hover: rgba(255, 122, 0, 0.04);
  --nav-color: var(--muted);
  --nav-active-color: #ffffff;
  --nav-active-bg: linear-gradient(90deg, rgba(255, 122, 0, 0.18) 0%, rgba(255, 122, 0, 0.05) 55%, transparent 100%);
  --nav-active-border: transparent;
  --nav-active-glow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 20px rgba(255, 122, 0, 0.14);
  --nav-active-indicator: #ff7a00;
  --nav-hover-bg: rgba(255, 255, 255, 0.055);
  --nav-hover-color: #f1f3f8;
  --nav-hover-icon: rgba(255, 255, 255, 0.88);
  --chip-bg: rgba(255, 255, 255, 0.04);
  --chip-border: rgba(255, 255, 255, 0.08);
  --chip-color: var(--text);
  --login-bg: rgba(27, 32, 44, 0.92);
  --login-border-color: rgba(255, 255, 255, 0.08);
  --login-title-color: var(--text);
  --login-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --logo-bg: var(--primary);
  --logo-shadow: 0 8px 24px rgba(255, 122, 0, 0.3);
  --modal-radius: 24px;
  --modal-backdrop: rgba(0, 0, 0, 0.65);
  --status-info-bg: rgba(77, 163, 255, 0.12);
  --status-info-text: #4da3ff;
  --pill-border: none;
}

html[data-theme="castingvip"] .shellSide,
html[data-theme="castingvip"] .shellMain {
  backdrop-filter: var(--shell-glass-blur);
  -webkit-backdrop-filter: var(--shell-glass-blur);
}

html[data-theme="castingvip"] .appSidebar .nav,
html[data-theme="castingvip"] .shellSide .nav {
  gap: 6px;
  padding: 0 10px;
}
html[data-theme="castingvip"] .nav a {
  position: relative;
  min-height: var(--nav-height);
  margin: 0;
  padding: 10px 14px 10px 13px;
  border-radius: var(--nav-radius);
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--nav-color);
  font-weight: 500;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}
html[data-theme="castingvip"] .nav a .navIcon {
  color: var(--muted);
  transition: color 0.22s ease, transform 0.22s ease;
}
html[data-theme="castingvip"] .nav a:hover:not(.active) {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-color);
  border-left-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}
html[data-theme="castingvip"] .nav a:hover:not(.active) .navIcon {
  color: var(--nav-hover-icon);
}
html[data-theme="castingvip"] .nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.22);
}
html[data-theme="castingvip"] .nav a.active {
  border-left-color: transparent;
  padding-left: 13px;
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
  font-weight: 600;
  box-shadow: var(--nav-active-glow);
  transform: none;
}
html[data-theme="castingvip"] .nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 56%;
  transform: translateY(-50%);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #ffb366, #ff7a00);
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.55);
  pointer-events: none;
}
html[data-theme="castingvip"] .nav a.active .navIcon {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(255, 122, 0, 0.35));
}
html[data-theme="castingvip"] .nav a.active:hover {
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.22) 0%, rgba(255, 122, 0, 0.08) 55%, transparent 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 24px rgba(255, 122, 0, 0.18);
}

html[data-theme="castingvip"] .btn {
  transition: var(--transition);
  box-shadow: var(--btn-shadow);
}
html[data-theme="castingvip"] .btn:hover {
  background: var(--btn-hover-bg, var(--primary-hover));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 122, 0, 0.38);
}

html[data-theme="castingvip"] .btnSecondary,
html[data-theme="castingvip"] .btnOutline {
  background: var(--btn-outline-bg);
  border-color: var(--btn-outline-border);
  color: var(--text);
  transition: var(--transition);
}
html[data-theme="castingvip"] .btnSecondary:hover,
html[data-theme="castingvip"] .btnOutline:hover {
  background: var(--btn-outline-hover);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

html[data-theme="castingvip"] input,
html[data-theme="castingvip"] select,
html[data-theme="castingvip"] textarea {
  min-height: var(--input-height);
  border-color: var(--input-border);
  background: var(--field);
  transition: var(--transition);
}
html[data-theme="castingvip"] input:focus,
html[data-theme="castingvip"] select:focus,
html[data-theme="castingvip"] textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--input-focus-ring);
}

html[data-theme="castingvip"] .card,
html[data-theme="castingvip"] .loginCard,
html[data-theme="castingvip"] .fintechPanel,
html[data-theme="castingvip"] .clientShell {
  background: var(--panel);
  border: 1px solid var(--card-border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
html[data-theme="castingvip"] .fintechPanel,
html[data-theme="castingvip"] .loginCard {
  padding: var(--card-padding);
}
html[data-theme="castingvip"] .kpiCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
html[data-theme="castingvip"] .card:hover,
html[data-theme="castingvip"] .fintechPanel:hover,
html[data-theme="castingvip"] .loginCard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
html[data-theme="castingvip"] .pill {
  border: var(--pill-border, none);
}
html[data-theme="castingvip"] .shellSide {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  box-shadow: none;
}
html[data-theme="castingvip"] .appTopbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="castingvip"] body.loginPage {
  --login-page-bg: #0a0f19;
  --login-form-bg: rgba(18, 24, 39, 0.85);
}
html[data-theme="castingvip"] body.loginPage .loginFormCard:hover {
  transform: none;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}
html[data-theme="premium-light"] body.loginPage {
  --login-page-bg: #f5f7fb;
  --login-form-bg: rgba(255, 255, 255, 0.92);
  background-image:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.1), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 122, 0, 0.06), transparent 40%);
}
html[data-theme="premium-light"] body.loginPage .loginFormCard {
  border-color: #e5e7eb;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
}
html[data-theme="premium-light"] body.loginPage .loginFormCard input {
  background: #fff;
  border-color: #e5e7eb;
  color: var(--text);
}
html[data-theme="premium-light"] body.loginPage .loginFormCard input:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

html[data-theme="castingvip"] .table th {
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--table-border);
}
html[data-theme="castingvip"] .table td {
  border-bottom: 1px solid var(--table-border);
}
html[data-theme="castingvip"] .table tbody tr {
  transition: var(--transition);
}
html[data-theme="castingvip"] .table tbody tr:hover {
  background: var(--table-row-hover);
}

html[data-theme="castingvip"] .error {
  border-color: var(--status-danger-border);
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
}
html[data-theme="castingvip"] .ok {
  border-color: var(--status-success-border);
  background: var(--status-success-bg);
  color: var(--status-success-text);
}

html[data-theme="castingvip"] .embedPage {
  animation: cvip-fade-in 0.45s var(--transition) forwards;
}
html[data-theme="castingvip"] .fintechPanel {
  animation: cvip-fade-in 0.5s var(--transition) forwards;
}
html[data-theme="castingvip"] .fintechPanel:nth-child(2) {
  animation-delay: 0.06s;
}
html[data-theme="castingvip"] .fintechPanel:nth-child(3) {
  animation-delay: 0.12s;
}

html[data-theme="castingvip"] .themePicker {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
html[data-theme="castingvip"] .themeCard.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(255, 122, 0, 0.4), var(--shadow-card);
}

html[data-theme="castingvip"] .shellMain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

html[data-theme="castingvip"] .frame {
  border-radius: var(--frame-radius);
  border-color: var(--frame-border);
}

/* —— Premium Design System — Light —— */
html[data-theme="premium-light"] {
  --primary: #ff7a00;
  --primary-hover: #ff8d26;
  --primary-soft: #ffb266;
  --transition: 0.3s ease;
  --radius: 20px;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --body-size: 16px;
  --card-radius: 20px;
  --card-padding: 24px;
  --card-border-color: #e5e7eb;
  --btn-radius: 12px;
  --btn-height: 44px;
  --input-radius: 12px;
  --input-height: 48px;
  --input-focus-ring: 0 0 0 4px rgba(255, 122, 0, 0.12);
  --nav-height: 52px;
  --shell-sidebar-width: 260px;
  --accent: var(--primary);
  --accent2: var(--primary-hover);
  --accent-soft: rgba(255, 122, 0, 0.1);
  --accent-border: rgba(255, 122, 0, 0.35);
  --accent-focus: rgba(255, 122, 0, 0.12);
  --bg: #f5f7fb;
  --bg2: #eef1f6;
  --panel: #ffffff;
  --panel2: #f9fafb;
  --panel-elevated: #ffffff;
  --text: #1b202c;
  --muted: #6b7280;
  --border: #e5e7eb;
  --field: #ffffff;
  --input-border: #e5e7eb;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
  --shell-bg: rgba(255, 255, 255, 0.9);
  --shell-side-bg: rgba(255, 255, 255, 0.95);
  --shell-glass-blur: blur(12px);
  --body-gradient: linear-gradient(180deg, var(--bg2), var(--bg));
  --frame-bg: var(--bg);
  --success: #00d26a;
  --warning: #ffb000;
  --danger: #ff4d4d;
  --status-success-text: #047857;
  --status-warning-text: #b45309;
  --status-danger-text: #b91c1c;
  --btn-bg: var(--primary);
  --btn-color: #fff;
  --btn-border: var(--primary);
  --btn-shadow: 0 4px 14px rgba(255, 122, 0, 0.2);
  --btn-outline-border: #e5e7eb;
  --table-row-hover: rgba(255, 122, 0, 0.06);
  --table-border: #e5e7eb;
  --nav-active-color: var(--primary);
  --nav-active-bg: rgba(255, 122, 0, 0.1);
  --nav-hover-bg: rgba(255, 122, 0, 0.06);
  --login-title-color: var(--text);
}

html[data-theme="premium-light"] .shellSide,
html[data-theme="premium-light"] .shellMain {
  backdrop-filter: var(--shell-glass-blur);
}
html[data-theme="premium-light"] .nav a {
  min-height: var(--nav-height);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
html[data-theme="premium-light"] .nav a.active {
  border-left-color: var(--primary);
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
  font-weight: 600;
}
html[data-theme="premium-light"] .btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
html[data-theme="premium-light"] .card,
html[data-theme="premium-light"] .fintechPanel,
html[data-theme="premium-light"] .loginCard {
  border: 1px solid var(--card-border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
html[data-theme="premium-light"] .fintechPanel,
html[data-theme="premium-light"] .loginCard {
  padding: var(--card-padding);
}
html[data-theme="premium-light"] .card:hover,
html[data-theme="premium-light"] .fintechPanel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
html[data-theme="premium-light"] .table tbody tr:hover {
  background: var(--table-row-hover);
}
html[data-theme="premium-light"] input:focus,
html[data-theme="premium-light"] select:focus {
  border-color: var(--primary);
  box-shadow: var(--input-focus-ring);
}
html[data-theme="premium-light"] .shellMain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

@keyframes cvip-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— 06 Energy Ops Dark —— */
html[data-theme="energy-dark"] {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --card-radius: 12px;
  --shell-radius: 12px;
  --logo-radius: 10px;
  --label-transform: uppercase;
  --label-tracking: 0.06em;
  --table-head-transform: uppercase;
  --table-head-size: 11px;
  --table-head-tracking: 0.06em;
  --h2-size: 20px;
  --page-title-size: 24px;
  --accent: #39ff88;
  --accent2: #1db954;
  --accent-soft: rgba(57, 255, 136, 0.12);
  --accent-border: rgba(57, 255, 136, 0.35);
  --accent-focus: rgba(57, 255, 136, 0.18);
  --bg: #0a0e0d;
  --bg2: #0e1412;
  --panel: #121816;
  --panel2: #1a221f;
  --text: #e8f5e9;
  --muted: #8fa89a;
  --border: #2a3530;
  --field: #1a221f;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shell-bg: #121816;
  --shell-side-bg: #121816;
  --side-gradient: linear-gradient(180deg, rgba(57, 255, 136, 0.06), transparent);
  --body-gradient:
    radial-gradient(700px 400px at 15% 0%, rgba(57, 255, 136, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  --frame-bg: #0e1412;
  --btn-bg: #39ff88;
  --btn-color: #0a0e0d;
  --btn-border: #39ff88;
  --btn-shadow: 0 0 20px rgba(57, 255, 136, 0.25);
  --status-success-bg: rgba(57, 255, 136, 0.12);
  --status-success-border: rgba(57, 255, 136, 0.4);
  --status-success-text: #39ff88;
  --error-text: #bbf7d0;
  --table-head-bg: #1a221f;
  --table-row-hover: rgba(57, 255, 136, 0.06);
  --nav-active-color: #39ff88;
  --login-title-color: #39ff88;
}
html[data-theme="energy-dark"] .pill.active,
html[data-theme="energy-dark"] .pill.ok {
  box-shadow: 0 0 16px rgba(57, 255, 136, 0.2);
}
html[data-theme="energy-dark"] .mono,
html[data-theme="energy-dark"] .table td.mono {
  font-family: var(--font-mono);
}

/* —— Legado light / dark —— */
html[data-theme="light"] {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;
  --label-transform: none;
  --label-tracking: 0;
  --table-head-transform: none;
  --table-head-tracking: 0;
  --h2-size: 22px;
  --card-radius: 16px;
  --accent: #2f6bff;
  --accent2: #7aa7ff;
  --accent-soft: rgba(47, 107, 255, 0.12);
  --accent-border: rgba(47, 107, 255, 0.4);
  --accent-focus: rgba(47, 107, 255, 0.15);
  --bg: #f5f6fa;
  --bg2: #eef1f7;
  --panel: #ffffff;
  --panel2: #f7f8fc;
  --text: #151826;
  --muted: #5e6478;
  --border: rgba(20, 24, 38, 0.1);
  --field: #f5f6fa;
  --shadow-card: 0 14px 50px rgba(17, 20, 35, 0.12);
  --shell-bg: rgba(255, 255, 255, 0.62);
  --side-gradient: linear-gradient(180deg, rgba(47, 107, 255, 0.12), transparent);
  --body-gradient:
    radial-gradient(1200px 700px at 12% 8%, rgba(47, 107, 255, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  --frame-bg: rgba(15, 15, 20, 0.08);
  --btn-bg: linear-gradient(180deg, #4d8bff, #2f6bff);
  --status-success-text: #166534;
  --error-text: #9f1239;
}

html[data-theme="dark"] {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;
  --label-transform: none;
  --label-tracking: 0;
  --table-head-transform: none;
  --table-head-tracking: 0;
  --h2-size: 22px;
  --accent: #7aa7ff;
  --accent2: #a8c4ff;
  --accent-soft: rgba(122, 167, 255, 0.14);
  --accent-border: rgba(122, 167, 255, 0.35);
  --accent-focus: rgba(122, 167, 255, 0.2);
  --bg: #0b0c10;
  --bg2: #0f1016;
  --panel: #12131a;
  --panel2: #171827;
  --text: #e9e9ef;
  --muted: #a7a7b6;
  --border: rgba(255, 255, 255, 0.08);
  --field: rgba(15, 15, 20, 0.65);
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.45);
  --shell-bg: rgba(18, 19, 26, 0.7);
  --card-glass: rgba(18, 19, 26, 0.85);
  --side-gradient: linear-gradient(180deg, rgba(122, 167, 255, 0.1), transparent);
  --body-gradient:
    radial-gradient(900px 600px at 20% 0%, rgba(47, 107, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  --frame-bg: rgba(0, 0, 0, 0.35);
  --btn-bg: linear-gradient(180deg, #8ab4ff, #5b8fff);
  --error-text: #ffd3de;
  --status-success-text: #bbf7d0;
  --status-danger-text: #ffd3de;
  --login-bg: rgba(18, 19, 26, 0.92);
  --login-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

/* —— Shell admin: main só com iframe —— */
html[data-theme="vora-light"] .shellMain,
html[data-theme="sahlitys-enterprise"] .shellMain,
html[data-theme="fillow-saas"] .shellMain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

html[data-theme="castingvip"] .shellMain,
html[data-theme="premium-light"] .shellMain,
html[data-theme="energy-dark"] .shellMain {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* —— Área do cliente: cards AI Tools só no tema correspondente —— */
.page-client .featureGrid {
  display: none;
}
html[data-theme="ai-tools"] .page-client .featureGrid {
  display: grid;
}
html[data-theme="ai-tools"] .page-client .clientLegacyNote {
  display: none;
}
html:not([data-theme="ai-tools"]) .page-client .clientShell {
  display: block;
  max-width: var(--card-max-width, 940px);
}
html:not([data-theme="ai-tools"]) .page-client .clientShell .shellSide,
html:not([data-theme="ai-tools"]) .page-client .clientShell .clientMain {
  display: block;
}
html:not([data-theme="ai-tools"]) .page-client .clientShell {
  border: var(--card-border-width, 1px) solid var(--card-border-color, var(--border));
  border-radius: var(--card-radius, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
html:not([data-theme="ai-tools"]) .page-client .clientShell .shellSide {
  border-right: none;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 861px) {
  html:not([data-theme="ai-tools"]) .page-client .clientShell {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
  }
  html:not([data-theme="ai-tools"]) .page-client .clientShell .shellSide {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
}

/* —— Seletor com abas (admin) —— */
.themePicker {
  margin-top: 4px;
  padding: 12px;
  border-radius: var(--nav-radius, 12px);
  border: 1px solid var(--chip-border, var(--border));
  background: var(--chip-bg, var(--panel2));
}
.themePickerHead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell-side-muted, var(--muted));
  margin-bottom: 10px;
}
.themeTabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
}
html[data-theme="castingvip"] .themeTabs,
html[data-theme="ai-tools"] .themeTabs,
html[data-theme="energy-dark"] .themeTabs,
html[data-theme="dark"] .themeTabs {
  background: rgba(255, 255, 255, 0.05);
}
.themeTab {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.themeTab.is-active {
  background: var(--panel, #fff);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
html[data-theme="castingvip"] .themeTab.is-active,
html[data-theme="ai-tools"] .themeTab.is-active {
  background: #1c2129;
  color: #f8fafc;
}
.themePanelHint {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.themePanel[hidden] {
  display: none !important;
}
.themeCardGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  padding-right: 2px;
}
.themeCard {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel, #fff);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.themeCard:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
.themeCard.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border), 0 6px 20px color-mix(in srgb, var(--accent) 18%, transparent);
}
.themeCardPreview {
  flex-shrink: 0;
  width: 44px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--tp1), var(--tp2) 55%, var(--tp3));
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.themeCardBody {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.themeCardName {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.themeCardDesc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.themeCardFont {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
html[data-theme="ai-tools"] .themePicker,
html[data-theme="castingvip"] .themePicker,
html[data-theme="energy-dark"] .themePicker {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="ai-tools"] .themeCard,
html[data-theme="castingvip"] .themeCard,
html[data-theme="premium-light"] .themeCard,
html[data-theme="energy-dark"] .themeCard {
  background: var(--panel2);
  border-color: var(--border);
  color: var(--text);
}
.pageHeader {
  margin-bottom: var(--space-3, 24px);
}

/* —— Página Temas / Estilos (iframe admin) —— */
.themesPagePanel .themePicker {
  margin-top: 0;
  border: none;
  background: transparent;
  padding: 0;
}
.themesPagePanel .themePickerHead {
  display: none;
}
.themesPage .themeCardGrid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-height: none;
  gap: 12px;
}
.themesPage .themeCard {
  padding: 14px;
  min-height: 88px;
}
.themesPage .themeCardPreview {
  width: 52px;
}
.themePreviewPanel {
  margin-top: 20px;
}
.themePreviewSamples {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.themePreviewRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.themePreviewFields {
  max-width: 480px;
}
.themePreviewFields input,
.themePreviewFields select {
  flex: 1;
  min-width: 140px;
}
.themePreviewAlert {
  margin: 0;
  max-width: 420px;
}
.themeInfoPanel {
  margin-top: 20px;
}
.themeInfoList {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.themeInfoList li {
  margin-bottom: 8px;
}
.themeInfoList strong {
  color: var(--text);
}
