/* ==========================================================================
   FOYER DASH — mesmo design do Foyer CRM (Tailwind slate + cyan)
   Claro: slate-50 / branco / bordas slate-200 / destaque cyan-600
   Escuro: #020617 / slate-900 / bordas slate-800 / destaque cyan-400
   ========================================================================== */

:root {
  --accent-rgb: 8, 145, 178;
  --gold: #0891b2;
  --gold-l: #0e7490;
  --gold-light: #0e7490;
  --gold-bg: #ecfeff;
  --gold-bd: #a5f3fc;
  --tx: #0f172a;
  --ts: #475569;
  --tm: #64748b;
  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --bg4: #e2e8f0;
  --bd: #e2e8f0;
  --bs: rgba(8, 145, 178, 0.4);
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-soft: #f8fafc;
  --white-warm: #0f172a;
  --text-muted: #64748b;
  --danger: #e11d48;
  --success: #059669;
  --w-faint: rgba(15, 23, 42, 0.04);
  --w-soft: rgba(15, 23, 42, 0.08);
  --btn: #0891b2;
  --btn-h: #0e7490;
  --sidebar: #ffffff;
  --sidebar-tx: #475569;
  --sidebar-muted: #94a3b8;
}

html.dark {
  --accent-rgb: 34, 211, 238;
  --gold: #22d3ee;
  --gold-l: #67e8f9;
  --gold-light: #67e8f9;
  --gold-bg: rgba(22, 78, 99, 0.28);
  --gold-bd: rgba(34, 211, 238, 0.3);
  --tx: #f1f5f9;
  --ts: #cbd5e1;
  --tm: #94a3b8;
  --bg: #0f172a;
  --bg2: #020617;
  --bg3: #1e293b;
  --bg4: #334155;
  --bd: #1e293b;
  --bs: rgba(34, 211, 238, 0.4);
  --bg-main: #020617;
  --bg-card: #0f172a;
  --bg-card-soft: #1e293b;
  --white-warm: #f8fafc;
  --text-muted: #94a3b8;
  --danger: #fb7185;
  --success: #34d399;
  --w-faint: rgba(255, 255, 255, 0.04);
  --w-soft: rgba(255, 255, 255, 0.1);
  --btn: #0891b2;
  --btn-h: #06b6d4;
  --sidebar: #0f172a;
  --sidebar-tx: #94a3b8;
}

/* ---------- base ---------- */
html, body { color-scheme: light; }
html.dark, html.dark body { color-scheme: dark; }

*, *::before, *::after {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

html, body, .app, .main, .content, .page {
  background: var(--bg2) !important;
  color: var(--tx);
}

* { scrollbar-width: thin; scrollbar-color: rgba(100, 116, 139, 0.5) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.5); border: 0; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.8); }

html.dark input[type='date']::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

.fx-logo-dark { display: none !important; }
html.dark .fx-logo-light { display: none !important; }
html.dark .fx-logo-dark { display: block !important; }

/* ---------- topbar ---------- */
.topbar {
  height: 56px !important;
  padding: 0 24px !important;
  background: var(--bg) !important;
  border-bottom: 1px solid var(--bd) !important;
  box-shadow: none !important;
}
.tb-logo { display: none !important; }
.tb-logo img { height: 32px; width: auto; }
.tb-left { display: flex; align-items: center; gap: 10px; }
.tb-right { gap: 8px !important; }

.tb-menu-btn, .tb-action-btn, .notif-btn, .role-sel, .tb-theme-btn {
  height: 36px !important;
  min-width: 36px;
  border-radius: 8px !important;
  background: var(--bg) !important;
  color: var(--ts) !important;
  border: 1px solid var(--bd) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.tb-menu-btn:hover, .tb-action-btn:hover, .notif-btn:hover, .tb-theme-btn:hover {
  background: var(--bg3) !important;
  color: var(--tx) !important;
  border-color: var(--bd) !important;
}
.tb-logout-btn { color: var(--danger) !important; }
.tb-logout-btn:hover { background: rgba(225, 29, 72, 0.08) !important; color: var(--danger) !important; }
.tb-user-chip {
  background: var(--bg2) !important;
  border: 1px solid var(--bd) !important;
  border-radius: 10px !important;
  padding: 5px 12px !important;
  box-shadow: none !important;
}
.tb-user-chip span:first-child { background: var(--gold) !important; color: #fff !important; }

.tb-crm-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: 8px; font-size: 13px; font-weight: 500;
  text-decoration: none;
  background: var(--gold-bg); color: var(--gold) !important;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.tb-crm-link:hover { background: var(--btn); color: #fff !important; }

.tb-theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; padding: 0; cursor: pointer; }
.fx-theme-ico {
  width: 18px; height: 18px; display: block; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.dark .fx-theme-ico {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- sidebar ---------- */
.sidebar {
  width: 240px !important;
  background: var(--bg) !important;
  border-right: 1px solid var(--bd) !important;
  box-shadow: none !important;
}
.sb-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-bottom: 1px solid var(--bd);
  flex-shrink: 0;
}
.sb-brand img { height: 44px; width: auto; object-fit: contain; flex-shrink: 0; }
.sb-brand-txt h1 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--tx); line-height: 1.2; margin: 0; }
.sb-brand-txt p { font-size: 12px; font-weight: 500; color: var(--tm); margin: 2px 0 0; }

.sb-nav { padding: 16px 12px !important; }
.sb-lbl { display: none !important; }
.sb-group { gap: 4px; }
.sb-group + .sb-group { margin-top: 4px !important; padding-top: 0 !important; }
.sb-group + .sb-group::before { display: none !important; }
.sb-item {
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  gap: 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--ts) !important;
  background: transparent !important;
  transition: background .2s, color .2s;
}
.sb-item svg { width: 16px !important; height: 16px !important; color: var(--tm); }
.sb-item:hover { background: var(--bg3) !important; color: var(--tx) !important; }
.sb-item:hover svg { color: var(--ts); }
.sb-item.active {
  background: var(--gold-bg) !important;
  color: var(--gold-l) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.sb-item.active svg { color: var(--gold) !important; }
html.dark .sb-item.active { color: var(--gold) !important; }

.sb-bottom { padding: 0 !important; border: 0 !important; background: var(--bg) !important; flex-shrink: 0; }
.sb-usercard {
  margin: 0 12px 12px; padding: 12px;
  background: var(--bg2); border: 1px solid var(--bd); border-radius: 12px;
}
.sb-usercard .sb-av { display: none !important; }
.sb-uname { font-size: 14px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-urole-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.sb-dot { width: 6px; height: 6px; border-radius: 50%; background: #06b6d4; flex-shrink: 0; }
.sb-urole { font-size: 12px; font-weight: 500; color: var(--tm); }
.sb-logout {
  display: flex; align-items: center; gap: 8px;
  width: calc(100% - 24px); margin: 0 12px; padding: 12px 12px;
  border: 0; border-top: 1px solid var(--bd);
  background: transparent; cursor: pointer;
  color: var(--danger) !important; font-size: 14px; font-weight: 500;
  border-radius: 0;
}
.sb-bottom .sb-logout { border-top: 1px solid var(--bd); margin: 0; width: 100%; padding: 14px 24px; }
.sb-logout:hover { background: rgba(225, 29, 72, 0.08); }
.sb-logout svg { width: 16px; height: 16px; }
.sb-logout span { color: inherit; }
.sb-mobile-brand { color: var(--tx) !important; letter-spacing: -0.01em !important; font-weight: 700 !important; font-size: 16px !important; }

/* ---------- titulo da pagina ---------- */
.pg-title {
  padding: 20px 24px 6px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--tx) !important;
  background: transparent !important;
  border: 0 !important;
}

/* ---------- botoes (padrao CRM) ---------- */
.btn-s, .login-btn, .conv-btn, .btn-add-trein, .btn-av,
.dash-filter-actions button.primary, .trein-gallery-action, .ag-report-btn, .folha-btn {
  background: var(--btn) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: background .15s ease !important;
}
.btn-s:hover, .login-btn:hover, .conv-btn:hover, .btn-add-trein:hover, .btn-av:hover,
.dash-filter-actions button.primary:hover, .trein-gallery-action:hover, .ag-report-btn:hover, .folha-btn:hover {
  background: var(--btn-h) !important;
  color: #fff !important;
  filter: none !important;
  transform: none !important;
}
.btn-c, .copy-chip-btn, .ag-copy-btn, .ag-sync-btn, .ag-clear-btn, .cart-filter-actions button,
.cart-quick-btn, .rf, .btn-exp, .cat, .vtab, .vf-quick-btn, .vf-more-btn, .vf-stage-filter-btn,
.vf-stage-toggle, .vf-stage-action, .trein-status-btn, .ag-month-btn, .unid-btn, .uf, .pix-type {
  background: var(--bg) !important;
  color: var(--ts) !important;
  border: 1px solid var(--bd) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}
.btn-c:hover, .copy-chip-btn:hover, .ag-copy-btn:hover, .ag-sync-btn:hover, .ag-clear-btn:hover,
.cart-filter-actions button:hover, .cart-quick-btn:hover, .rf:hover, .btn-exp:hover, .cat:hover,
.vtab:hover, .vf-quick-btn:hover, .vf-more-btn:hover, .vf-stage-filter-btn:hover, .vf-stage-toggle:hover,
.vf-stage-action:hover, .trein-status-btn:hover, .ag-month-btn:hover, .unid-btn:hover, .uf:hover {
  background: var(--bg3) !important;
  color: var(--tx) !important;
  border-color: var(--bd) !important;
}
.cat.active, .rf.active, .vtab.active, .vf-quick-btn.active, .vf-more-btn.active,
.vf-stage-toggle.active, .trein-status-btn.active, .uf.active, .unid-btn.active {
  background: var(--gold-bg) !important;
  color: var(--gold-l) !important;
  border-color: var(--gold-bd) !important;
}
html.dark .cat.active, html.dark .rf.active, html.dark .vtab.active, html.dark .vf-quick-btn.active,
html.dark .vf-more-btn.active, html.dark .vf-stage-toggle.active, html.dark .trein-status-btn.active,
html.dark .uf.active, html.dark .unid-btn.active { color: var(--gold) !important; }

/* ---------- campos ---------- */
input, select, textarea, .login-input, .role-sel, .f-field input, .f-field select,
.cart-filter-group select, .u-search-wrap input, .u-filter-sel, .ag-search input, .ag-date-field input,
.ag-filter, .trein-search input, .vf-main-select, .vf-advanced-grid select, .dash-filter-grid input {
  background: var(--bg) !important;
  color: var(--tx) !important;
  border: 1px solid var(--bd) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
html:not(.dark) input, html:not(.dark) select, html:not(.dark) textarea { border-color: #cbd5e1 !important; }
input:focus, select:focus, textarea:focus, .login-input:focus, .f-field input:focus, .f-field select:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2) !important;
}
input::placeholder, textarea::placeholder { color: var(--tm) !important; opacity: .8; }

/* ---------- cartoes, paineis e tabelas ---------- */
.cmc, .ctbl, .dash-kpi, .dash-panel, .dash-filter-card, .cart-filterbar, .modal, .modal-box {
  background: var(--bg) !important;
  border: 1px solid var(--bd) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.cmc { border-top-width: 3px !important; border-radius: 12px !important; }
.dash-kpi.main { background: var(--gold-bg) !important; border-color: var(--gold-bd) !important; }
.dash-kpi::after { background: rgba(var(--accent-rgb), 0.06) !important; }
.dash-panel-head { background: var(--bg2) !important; border-bottom: 1px solid var(--bd) !important; }
.ctbl-h { background: var(--bg2) !important; }
.dash-wrap, .carteira-wrap, .vendas-wrap, .fin-wrap { background: var(--bg2) !important; padding: 8px 24px 24px !important; }
.dash-panel-head h3, .dash-hero-copy h2, .ch-val, .dash-kpi-value, .cmc-v { letter-spacing: -0.01em; }
.dash-panel-head h3 { font-size: 18px !important; font-weight: 700 !important; }
.dash-kpi-value { font-weight: 700; }

/* heros: slate escuro como o painel esquerdo do login do CRM */
.ch, .cart-admin-hero, .dash-hero-copy, .folha-hero, .ato-hero, #mod-rh .rh-stage-main {
  background:
    radial-gradient(circle at 85% 0%, rgba(6, 182, 212, 0.28), transparent 45%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18) !important;
  border-radius: 16px !important;
}
.dash-hero-copy h2 { font-weight: 700 !important; font-size: 32px !important; color: #fff !important; }
.dash-hero-copy *, .ch *, .cart-admin-hero *, .folha-hero *, .ato-hero * { color: inherit; }
.ch-val, .ch-lbl, .ch-sub, .dash-eyebrow { color: #fff !important; }
.dash-live-dot { background: #22d3ee !important; box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.15) !important; }

/* tabelas */
table { border-collapse: collapse; }
th {
  background: var(--bg2) !important;
  color: var(--tm) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bd) !important;
}
td { border-bottom: 1px solid var(--bd) !important; color: var(--tx); }
tr:hover td { background: var(--gold-bg) !important; }

/* barras de ranking e tags */
.dash-rank-bar { background: var(--bg4) !important; }
.dash-rank-bar span { background: linear-gradient(90deg, #06b6d4, #3b82f6) !important; }
.dash-rank-row:first-child { background: var(--gold-bg) !important; }
.dash-rank-pos { background: var(--gold-bg) !important; color: var(--gold) !important; border-color: var(--gold-bd) !important; }
.dash-rank-row:first-child .dash-rank-pos { background: var(--btn) !important; color: #fff !important; border-color: var(--btn) !important; }
.dash-panel-head > span { background: var(--btn) !important; }

/* modais e toasts */
.modal-backdrop { background: rgba(15, 23, 42, 0.5) !important; backdrop-filter: blur(4px); }
.modal-top, .modal-foot { background: var(--bg) !important; border-color: var(--bd) !important; }
.modal-title { font-size: 17px !important; font-weight: 700 !important; }
.toast {
  background: var(--bg) !important; color: var(--tx) !important;
  border: 1px solid var(--bd) !important; border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18) !important;
}
.sidebar-overlay { background: rgba(15, 23, 42, 0.5) !important; backdrop-filter: blur(4px); }

/* ---------- LOGIN (mesmo layout do CRM) ---------- */
.login-screen.fx-login { background: #f9fafb !important; background-image: linear-gradient(135deg, #f9fafb, #f3f4f6) !important; }
html.dark .login-screen.fx-login { background: #020617 !important; background-image: none !important; }

.fx-login-left {
  display: none; position: relative; overflow: hidden;
  width: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
@media (min-width: 1024px) { .fx-login-left { display: flex; } }
.fx-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(128,128,128,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(128,128,128,.07) 1px, transparent 1px);
  background-size: 64px 64px;
}
.fx-blob { position: absolute; border-radius: 50%; filter: blur(64px); }
.fx-blob-a { top: 25%; left: 40px; width: 288px; height: 288px; background: rgba(59, 130, 246, .2); }
.fx-blob-b { bottom: 25%; right: 40px; width: 384px; height: 384px; background: rgba(6, 182, 212, .2); }
.fx-login-hero { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 64px; color: #fff; }
.fx-login-logo { height: 150px; width: auto; margin-bottom: 36px; object-fit: contain; }
.fx-login-hero h1 { font-size: 46px; font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 24px; color: #fff !important; }
.fx-login-hero h1 strong { font-weight: 600; color: #fff !important; }
.fx-login-hero > p { font-size: 20px; font-weight: 300; line-height: 1.6; max-width: 440px; color: #d1d5db !important; margin: 0; }
.fx-feats { margin-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.fx-feat { display: flex; align-items: flex-start; gap: 16px; }
.fx-feat-n {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: #fff;
}
.fx-feat h3 { font-size: 16px; font-weight: 500; margin: 0 0 4px; color: #fff !important; }
.fx-feat p { font-size: 14px; font-weight: 300; color: #9ca3af !important; margin: 0; }

.login-screen.fx-login .login-right {
  flex: 1; width: auto; background: transparent !important;
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.login-screen.fx-login .login-box {
  width: 100%; max-width: 448px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  padding: 40px;
}
html.dark .login-screen.fx-login .login-box { background: #0f172a; border-color: #1e293b; }
.fx-login-mobile-brand { margin-bottom: 24px; }
.fx-login-mobile-brand img { height: 56px; width: auto; }
@media (min-width: 1024px) { .fx-login-mobile-brand { display: none; } }
.login-box-title { font-size: 24px !important; font-weight: 600 !important; color: #111827 !important; margin: 0 0 8px !important; letter-spacing: 0 !important; line-height: 1.25 !important; }
.login-box-sub { font-size: 15px !important; color: #4b5563 !important; margin: 0 0 32px !important; max-width: none !important; line-height: 1.5 !important; }
html.dark .login-box-title { color: #f8fafc !important; }
html.dark .login-box-sub { color: #94a3b8 !important; }
.login-field { margin-bottom: 24px !important; gap: 8px !important; }
.login-field label { font-size: 14px !important; font-weight: 500 !important; color: #111827 !important; text-transform: none !important; letter-spacing: 0 !important; }
html.dark .login-field label { color: #e2e8f0 !important; }
.login-input-wrap { position: relative; }
.login-input-wrap .fx-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #9ca3af; pointer-events: none; }
.login-screen.fx-login .login-input {
  width: 100%; padding: 12px 56px 12px 44px !important;
  font-size: 15px !important;
  background: #f9fafb !important; color: #111827 !important;
  border: 1px solid #d1d5db !important; border-radius: 8px !important;
}
html.dark .login-screen.fx-login .login-input { background: #1e293b !important; color: #f8fafc !important; border-color: #334155 !important; }
.login-screen.fx-login .login-input:focus { border-color: transparent !important; box-shadow: 0 0 0 2px #0f172a !important; }
html.dark .login-screen.fx-login .login-input:focus { box-shadow: 0 0 0 2px #22d3ee !important; }
.login-input-toggle { right: 14px !important; font-size: 13px !important; font-weight: 500; color: #6b7280 !important; }
.login-input-toggle:hover { color: #111827 !important; }
.login-error { background: #fef2f2 !important; border: 1px solid #fecaca !important; color: #991b1b !important; border-radius: 8px !important; padding: 12px 16px !important; font-size: 14px !important; }
.login-error span { color: inherit !important; }
.login-screen.fx-login .login-btn {
  width: 100%; padding: 14px 24px !important; margin-top: 0 !important;
  background: #0f172a !important; color: #fff !important;
  font-size: 15px !important; font-weight: 500 !important; letter-spacing: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .1), 0 4px 6px -4px rgba(15, 23, 42, .1) !important;
}
.login-screen.fx-login .login-btn:hover { background: #1e293b !important; box-shadow: 0 20px 25px -5px rgba(15, 23, 42, .2) !important; }
html.dark .login-screen.fx-login .login-btn { background: #0891b2 !important; }
html.dark .login-screen.fx-login .login-btn:hover { background: #06b6d4 !important; }
.fx-link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; font-weight: 500; color: #475569 !important; text-decoration: none; }
.fx-link-btn:hover { color: #0f172a !important; text-decoration: underline; }
html.dark .fx-link-btn { color: #94a3b8 !important; }
html.dark .fx-link-btn:hover { color: #f8fafc !important; }
.login-footer { margin-top: 28px !important; font-size: 12px !important; color: #9ca3af !important; }

/* ---------- splash ---------- */
.fx-splash-logo { height: 96px; width: auto; display: block; margin: 0 auto 8px; object-fit: contain; }
#app-splash .sp-wrap { text-align: center; border-radius: 16px; }
#app-splash .sp-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
html.dark #app-splash { background: #020617 !important; }
html.dark #app-splash .sp-wrap { background: #0f172a !important; border-color: #1e293b !important; }
html.dark #app-splash .sp-name { color: #f8fafc !important; }
html.dark #app-splash .sp-sub, html.dark #app-splash .sp-status { color: #94a3b8 !important; }

/* ---------- responsivo ---------- */
@media (max-width: 1023px) {
  .tb-logo { display: block !important; }
  .sb-brand { display: none; }
}
