/* Central KJDev v13 — light/dark theme + credential controls */
:root{
  --theme-bg:#f8fafc;
  --theme-surface:#ffffff;
  --theme-surface-soft:#f8fafc;
  --theme-surface-elevated:#ffffff;
  --theme-ink:#0f172a;
  --theme-muted:#64748b;
  --theme-muted-2:#94a3b8;
  --theme-line:#e2e8f0;
  --theme-line-strong:#cbd5e1;
  --theme-shadow:0 10px 30px rgba(15,23,42,.07);
}

/* Theme switch */
.theme-toggle{flex:0 0 auto!important;position:relative!important;overflow:hidden!important}
.theme-toggle span{display:grid;place-items:center}
.theme-toggle [hidden],.theme-choice [hidden]{display:none!important}
.theme-choice{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:0 13px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-surface);color:var(--theme-ink);font-weight:750;cursor:pointer}
.theme-choice .ui-icon{width:17px;height:17px}
.drawer-theme-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 14px 12px;padding:14px;border:1px solid var(--theme-line);border-radius:16px;background:var(--theme-surface-soft)}
.drawer-theme-row>div{display:grid;gap:4px}.drawer-theme-row strong{color:var(--theme-ink);font-size:.78rem}.drawer-theme-row .eyebrow{font-size:.54rem!important}

/* Credentials */
.vizzion-layout{gap:18px!important}
.vizzion-card{overflow:visible!important}
.form-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.form-card-head h2{margin:7px 0 6px!important}.form-card-head p{margin:0!important;max-width:680px}
.connection-badge{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-height:34px;padding:0 11px;border:1px solid #a7f3d0;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.64rem;font-weight:800}.connection-badge i{width:7px;height:7px;border-radius:99px;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.09)}
.credential-section{display:grid!important;gap:14px!important}
.credential-section label{display:grid!important;gap:7px!important}
.credential-section input{width:100%!important}
.secret-field{position:relative;display:block;width:100%}
.secret-field input{padding-right:54px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;letter-spacing:.01em}
.secret-field input[type="password"]{letter-spacing:.12em}
.secret-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:10px;background:transparent;color:#64748b;cursor:pointer;transition:background .16s,color .16s,transform .16s}
.secret-toggle:hover{background:#f1f5f9;color:#0f172a}.secret-toggle:active{transform:translateY(-50%) scale(.96)}.secret-toggle .ui-icon{width:18px;height:18px}
.credential-note{display:flex!important;align-items:center!important;gap:8px!important;margin-top:-2px!important;color:#64748b!important;font-size:.66rem!important;line-height:1.45!important}
.vizzion-side-card{height:max-content}

/* Make status a real, single-line control in both themes */
.status-action{min-width:132px!important;white-space:nowrap!important;overflow:hidden!important}
.status-action-copy{min-width:0!important;flex:1 1 auto!important}
.status-action-copy [data-status-button-label]{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.status-chevron{flex:0 0 auto!important}
.status-cell{min-width:0!important}

/* Desktop popover must never freeze page scroll */
@media (min-width:821px){html.modal-open:has([data-status-overlay]:not([hidden])){overflow:auto!important}}

/* Dark mode */
html[data-theme="dark"]{
  --theme-bg:#07080b;
  --theme-surface:#0d0f14;
  --theme-surface-soft:#11141b;
  --theme-surface-elevated:#151821;
  --theme-ink:#f8fafc;
  --theme-muted:#9aa4b2;
  --theme-muted-2:#6f7a8a;
  --theme-line:rgba(148,163,184,.14);
  --theme-line-strong:rgba(148,163,184,.22);
  --theme-shadow:0 18px 50px rgba(0,0,0,.28);
  background:#07080b!important;
  color-scheme:dark!important;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .main{background:#07080b!important;color:#f8fafc!important}
html[data-theme="dark"] ::selection{background:#6d28d9!important;color:#fff!important}

html[data-theme="dark"] .topbar{background:rgba(13,15,20,.88)!important;border-color:var(--theme-line)!important;box-shadow:0 14px 42px rgba(0,0,0,.24)!important;color:#f8fafc!important}
html[data-theme="dark"] .topbar h1,
html[data-theme="dark"] .mobile-page-title strong,
html[data-theme="dark"] .topbar-user-copy strong{color:#f8fafc!important}
html[data-theme="dark"] .mobile-page-title small,
html[data-theme="dark"] .topbar-user-copy small{color:#7f8997!important}
html[data-theme="dark"] .system-status{background:#0f1218!important;border-color:var(--theme-line)!important;color:#9aa4b2!important}

html[data-theme="dark"] .sidebar{background:rgba(11,13,18,.96)!important;border-color:var(--theme-line)!important;box-shadow:0 24px 70px rgba(0,0,0,.34)!important}
html[data-theme="dark"] .brand-mark{background:#171024!important;border-color:rgba(167,139,250,.16)!important}
html[data-theme="dark"] .brand-copy b{color:#f8fafc!important}
html[data-theme="dark"] .sidebar-label{color:#626b78!important}
html[data-theme="dark"] .side-nav a{color:#929baa!important}
html[data-theme="dark"] .side-nav a:hover{background:#11141b!important;color:#fff!important}
html[data-theme="dark"] .side-nav a.active{background:linear-gradient(135deg,rgba(124,58,237,.18),rgba(124,58,237,.08))!important;border-color:rgba(167,139,250,.16)!important;color:#d8c8ff!important}
html[data-theme="dark"] .sidebar-user{background:#10131a!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .user-copy strong{color:#fff!important}

html[data-theme="dark"] .card,
html[data-theme="dark"] .surface{background:#0d0f14!important;border-color:var(--theme-line)!important;color:#f8fafc!important;box-shadow:var(--theme-shadow)!important}
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .section-head h2{color:#f8fafc!important}
html[data-theme="dark"] .card p,
html[data-theme="dark"] .section-head p{color:#9aa4b2!important}

html[data-theme="dark"] .ghost-btn,
html[data-theme="dark"] .icon-btn{background:#10131a!important;border-color:var(--theme-line)!important;color:#d7dde7!important;box-shadow:none!important}
html[data-theme="dark"] .ghost-btn:hover,
html[data-theme="dark"] .icon-btn:hover{background:#151821!important;border-color:rgba(167,139,250,.24)!important;color:#fff!important}
html[data-theme="dark"] .theme-choice{background:#11141b;color:#f8fafc;border-color:var(--theme-line)}
html[data-theme="dark"] .drawer-theme-row{background:#10131a;border-color:var(--theme-line)}
html[data-theme="dark"] .drawer-theme-row strong{color:#f8fafc}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#0b0d12!important;border-color:var(--theme-line)!important;color:#f8fafc!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.015)!important}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#687383!important}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{background:#0d1016!important;border-color:#8b5cf6!important;box-shadow:0 0 0 4px rgba(124,58,237,.14)!important}
html[data-theme="dark"] label{color:#c7ced8!important}
html[data-theme="dark"] .field-section{background:#10131a!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .secret-toggle{color:#8993a1}
html[data-theme="dark"] .secret-toggle:hover{background:#1a1e27;color:#fff}
html[data-theme="dark"] .credential-note{color:#85909e!important}
html[data-theme="dark"] .connection-badge{background:rgba(16,185,129,.10);border-color:rgba(52,211,153,.18);color:#6ee7b7}

html[data-theme="dark"] .dashboard-balance-card,
html[data-theme="dark"] .metric.hero{background:radial-gradient(540px 300px at 80% 10%,rgba(167,139,250,.18),transparent 60%),linear-gradient(135deg,#32166a 0%,#1c1034 48%,#10121a 100%)!important;border-color:rgba(167,139,250,.2)!important;box-shadow:0 28px 70px rgba(69,33,135,.28)!important;color:#fff!important}
html[data-theme="dark"] .metric:not(.hero),
html[data-theme="dark"] .compact-metric{background:linear-gradient(145deg,#10131a,#0b0d12)!important;border-color:var(--theme-line)!important;box-shadow:0 16px 34px rgba(0,0,0,.2)!important}
html[data-theme="dark"] .metric-head span,
html[data-theme="dark"] .metric strong{color:#f8fafc!important}
html[data-theme="dark"] .metric small{color:#8e98a6!important}
html[data-theme="dark"] .metric-icon,
html[data-theme="dark"] .qa-icon{background:rgba(124,58,237,.13)!important;color:#b99cff!important}
html[data-theme="dark"] .quick-action{background:linear-gradient(145deg,#10131a,#0b0d12)!important;border-color:var(--theme-line)!important;color:#f8fafc!important;box-shadow:0 12px 28px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .quick-action:hover{background:#121620!important;border-color:rgba(167,139,250,.24)!important}
html[data-theme="dark"] .quick-action strong{color:#f8fafc!important}
html[data-theme="dark"] .quick-action small{color:#8f99a6!important}
html[data-theme="dark"] .activity{background:#0d0f14!important;border-color:var(--theme-line)!important;color:#f8fafc!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .activity strong{color:#f8fafc!important}
html[data-theme="dark"] .activity small{color:#818b99!important}

html[data-theme="dark"] .chips a,
html[data-theme="dark"] .transaction-row,
html[data-theme="dark"] .recovery-card,
html[data-theme="dark"] .toggle-list,
html[data-theme="dark"] .notification-device{background:#0d0f14!important;border-color:var(--theme-line)!important;color:#f8fafc!important}
html[data-theme="dark"] .chips a{color:#9aa4b2!important}
html[data-theme="dark"] .chips a.active{background:rgba(124,58,237,.16)!important;border-color:rgba(167,139,250,.22)!important;color:#d8c8ff!important}
html[data-theme="dark"] .transaction-main strong,
html[data-theme="dark"] .transaction-value strong,
html[data-theme="dark"] .toggle-copy strong{color:#f8fafc!important}
html[data-theme="dark"] .transaction-main small,
html[data-theme="dark"] .transaction-value small,
html[data-theme="dark"] .transaction-origin,
html[data-theme="dark"] .toggle-copy small{color:#8b95a3!important}

html[data-theme="dark"] .influencer-hero-clean,
html[data-theme="dark"] .influencer-hero.pro-hero{background:radial-gradient(380px 220px at 90% 0,rgba(124,58,237,.14),transparent 68%),linear-gradient(145deg,#11141b,#0b0d12)!important;border-color:rgba(167,139,250,.16)!important;box-shadow:0 24px 60px rgba(0,0,0,.24)!important}
html[data-theme="dark"] .influencer-hero h2{color:#fff!important}
html[data-theme="dark"] .influencer-hero p,
html[data-theme="dark"] .hero-mini-facts span{color:#919baa!important}
html[data-theme="dark"] .hero-mini-facts span{background:#10131a!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .hero-mini-facts b{color:#fff!important}
html[data-theme="dark"] .influencer-stat-grid article{background:linear-gradient(145deg,#10131a,#0b0d12)!important;border-color:var(--theme-line)!important;box-shadow:0 12px 28px rgba(0,0,0,.16)!important}
html[data-theme="dark"] .influencer-stat-grid article>span,
html[data-theme="dark"] .influencer-stat-grid article small{color:#7f8997!important}
html[data-theme="dark"] .influencer-stat-grid article strong{color:#f8fafc!important}
html[data-theme="dark"] .crm-main-card{background:#0c0e13!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .crm-toolbar,
html[data-theme="dark"] .crm-result-head{background:#0f1218!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .crm-toolbar-copy h3{color:#f8fafc!important}
html[data-theme="dark"] .crm-toolbar-copy p,
html[data-theme="dark"] .crm-result-head small{color:#7f8997!important}
html[data-theme="dark"] .crm-filters{background:#0b0d12!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .influencer-row{background:linear-gradient(145deg,#10131a,#0b0d12)!important;border-color:var(--theme-line)!important;box-shadow:0 12px 28px rgba(0,0,0,.16)!important}
html[data-theme="dark"] .influencer-person a strong,
html[data-theme="dark"] .audience-cell strong,
html[data-theme="dark"] .assigned-cell strong,
html[data-theme="dark"] .follow-cell strong{color:#f8fafc!important}
html[data-theme="dark"] .influencer-person small,
html[data-theme="dark"] .audience-cell small,
html[data-theme="dark"] .assigned-cell small,
html[data-theme="dark"] .follow-cell small{color:#7f8997!important}
html[data-theme="dark"] .audience-cell{background:#0f1218!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .creator-actions .icon-btn{background:#10131a!important;border-color:var(--theme-line)!important;color:#9aa4b2!important}
html[data-theme="dark"] .audience-panel,
html[data-theme="dark"] .import-history{background:#0d0f14!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .audience-bars a,
html[data-theme="dark"] .import-history-row{border-bottom-color:rgba(148,163,184,.09)!important;color:#9aa4b2!important}
html[data-theme="dark"] .audience-bars strong,
html[data-theme="dark"] .import-history-row strong{color:#f8fafc!important}
html[data-theme="dark"] .import-history-row small{color:#7f8997!important}

html[data-theme="dark"] .status-panel,
html[data-theme="dark"] .crm-modal-panel,
html[data-theme="dark"] .install-sheet{background:#11141b!important;border-color:var(--theme-line)!important;color:#f8fafc!important;box-shadow:0 30px 90px rgba(0,0,0,.46)!important}
html[data-theme="dark"] .status-panel-head h3,
html[data-theme="dark"] .crm-modal-head h2,
html[data-theme="dark"] .install-head h2{color:#f8fafc!important}
html[data-theme="dark"] .status-option{color:#d8dee8!important}
html[data-theme="dark"] .status-option:hover{background:#171b24!important}
html[data-theme="dark"] .status-option.is-active{background:rgba(124,58,237,.14)!important}
html[data-theme="dark"] .status-option-check{background:rgba(124,58,237,.18)!important;color:#c4b5fd!important}
html[data-theme="dark"] .upload-zone,
html[data-theme="dark"] .install-note,
html[data-theme="dark"] .install-steps li{background:#0d1016!important;border-color:var(--theme-line)!important;color:#cbd5e1!important}
html[data-theme="dark"] .upload-zone:hover,
html[data-theme="dark"] .upload-zone.has-file{background:#151022!important;border-color:rgba(167,139,250,.4)!important}

html[data-theme="dark"] .auth-shell,
html[data-theme="dark"] .auth-main{background:#07080b!important}
html[data-theme="dark"] .auth-card{background:#0d0f14!important;border-color:var(--theme-line)!important;color:#f8fafc!important;box-shadow:0 28px 90px rgba(0,0,0,.4)!important}
html[data-theme="dark"] .auth-card h1{color:#f8fafc!important}
html[data-theme="dark"] .auth-card>p{color:#8f99a6!important}

html[data-theme="dark"] .bottom-nav{background:rgba(13,15,20,.95)!important;border-color:var(--theme-line)!important;box-shadow:0 18px 50px rgba(0,0,0,.4)!important}
html[data-theme="dark"] .bottom-nav a,
html[data-theme="dark"] .bottom-nav button{color:#8f99a6!important}
html[data-theme="dark"] .bottom-nav a.active{color:#c4b5fd!important}
html[data-theme="dark"] .drawer-panel{background:#0b0d12!important;border-color:var(--theme-line)!important;color:#f8fafc!important}
html[data-theme="dark"] .drawer-head,
html[data-theme="dark"] .drawer-logout{border-color:var(--theme-line)!important}
html[data-theme="dark"] .drawer-profile{background:#10131a!important;border-color:var(--theme-line)!important}
html[data-theme="dark"] .drawer-profile strong{color:#f8fafc!important}
html[data-theme="dark"] .drawer-profile small{color:#8f99a6!important}
html[data-theme="dark"] .drawer-group>span{color:#606a78!important}
html[data-theme="dark"] .drawer-nav a{color:#a0a9b7!important}
html[data-theme="dark"] .drawer-nav a:hover,
html[data-theme="dark"] .drawer-nav a.active{background:rgba(124,58,237,.13)!important;color:#d8c8ff!important;border-color:rgba(167,139,250,.14)!important}

@media (max-width:640px){
  .form-card-head{display:grid}.connection-badge{justify-self:start}
  .secret-field input{font-size:.78rem!important}
  .status-action{min-width:0!important;width:100%!important}
}

/* v14 interaction polish: persistent theme, premium controls, stable status picker */
html[data-theme="light"]{background:#f8fafc!important;color-scheme:light!important}
html[data-theme="light"] body,
html[data-theme="light"] .app-shell,
html[data-theme="light"] .main{background:#f8fafc!important;color:#0f172a!important}
html.status-popover-open,html.status-popover-open body{overflow:auto!important}
html.status-sheet-open,html.status-sheet-open body{overflow:hidden!important}

.primary-btn,.ghost-btn,.danger-btn,.icon-btn,.theme-choice,.status-action{will-change:transform;transition:transform .16s cubic-bezier(.22,.72,.19,1),box-shadow .16s cubic-bezier(.22,.72,.19,1),background .16s ease,border-color .16s ease,color .16s ease!important}
.primary-btn{background:linear-gradient(135deg,#8b5cf6 0%,#7c3aed 48%,#5b21b6 100%)!important;border:1px solid rgba(124,58,237,.92)!important;color:#fff!important;box-shadow:0 14px 28px rgba(124,58,237,.24),inset 0 1px 0 rgba(255,255,255,.24)!important}
.primary-btn:hover{transform:translateY(-1px)!important;box-shadow:0 18px 36px rgba(124,58,237,.30),inset 0 1px 0 rgba(255,255,255,.28)!important}
.primary-btn:active,.ghost-btn:active,.icon-btn:active,.theme-choice:active,.status-action:active{transform:translateY(1px) scale(.985)!important}
.ghost-btn{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.96))!important;border:1px solid rgba(203,213,225,.9)!important;color:#334155!important;box-shadow:0 6px 16px rgba(15,23,42,.06),inset 0 1px 0 rgba(255,255,255,.9)!important}
.ghost-btn:hover{background:#fff!important;border-color:#a78bfa!important;color:#4c1d95!important;box-shadow:0 12px 26px rgba(124,58,237,.13)!important}
.icon-btn,.theme-choice{background:linear-gradient(180deg,#fff,#f8fafc)!important;border:1px solid rgba(203,213,225,.9)!important;color:#475569!important;box-shadow:0 6px 16px rgba(15,23,42,.06),inset 0 1px 0 rgba(255,255,255,.9)!important}
.icon-btn:hover,.theme-choice:hover{border-color:#a78bfa!important;color:#6d28d9!important;box-shadow:0 12px 26px rgba(124,58,237,.13)!important}
.system-status{background:linear-gradient(180deg,#fff,#f8fafc)!important;border-color:#bbf7d0!important;color:#047857!important;box-shadow:0 8px 20px rgba(15,23,42,.06)!important}
.system-status i{box-shadow:0 0 0 4px rgba(16,185,129,.12),0 0 16px rgba(16,185,129,.42)!important}
.install-btn{background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;border-color:#7c3aed!important;color:#fff!important;box-shadow:0 12px 28px rgba(124,58,237,.24)!important}
.install-btn:hover{background:linear-gradient(135deg,#7c3aed,#5b21b6)!important;color:#fff!important}
.alert-btn.is-active,.alert-btn:hover{border-color:#a7f3d0!important;color:#047857!important;box-shadow:0 12px 26px rgba(16,185,129,.13)!important}

.quick-action{position:relative!important;overflow:hidden!important;align-items:flex-start!important;--qa:#7c3aed;--qa-soft:#f5f3ff;--qa-line:#ddd6fe;background:linear-gradient(180deg,#fff,#fbfdff)!important;border-color:var(--qa-line)!important;box-shadow:0 8px 24px rgba(15,23,42,.07)!important}
.quick-action::after{content:"";position:absolute;inset:auto 14px 0 14px;height:3px;border-radius:999px 999px 0 0;background:var(--qa);opacity:.72;transform:scaleX(.34);transform-origin:left;transition:transform .18s cubic-bezier(.22,.72,.19,1),opacity .18s ease}
.quick-action:hover{transform:translateY(-2px)!important;border-color:var(--qa)!important;box-shadow:0 16px 34px rgba(15,23,42,.10)!important}
.quick-action:hover::after{opacity:1;transform:scaleX(1)}
.quick-action .qa-icon{background:var(--qa-soft)!important;color:var(--qa)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--qa) 20%,transparent)!important}
.quick-action:nth-child(1){--qa:#7c3aed;--qa-soft:#f5f3ff;--qa-line:#ddd6fe}
.quick-action:nth-child(2){--qa:#0891b2;--qa-soft:#ecfeff;--qa-line:#a5f3fc}
.quick-action:nth-child(3){--qa:#c026d3;--qa-soft:#fdf4ff;--qa-line:#f5d0fe}
.quick-action:nth-child(4){--qa:#e11d48;--qa-soft:#fff1f2;--qa-line:#fecdd3}
.quick-action:nth-child(5){--qa:#2563eb;--qa-soft:#eff6ff;--qa-line:#bfdbfe}
.dashboard-stat-stack .metric{overflow:hidden!important;box-shadow:0 10px 28px rgba(15,23,42,.07)!important}
.dashboard-stat-stack .metric:nth-child(1){border-color:#a7f3d0!important}.dashboard-stat-stack .metric:nth-child(1) .metric-icon{background:#ecfdf5!important;color:#059669!important}
.dashboard-stat-stack .metric:nth-child(2){border-color:#fde68a!important}.dashboard-stat-stack .metric:nth-child(2) .metric-icon{background:#fffbeb!important;color:#d97706!important}
.dashboard-stat-stack .metric:nth-child(3){border-color:#fecdd3!important}.dashboard-stat-stack .metric:nth-child(3) .metric-icon{background:#fff1f2!important;color:#e11d48!important}

.status-overlay[hidden]{display:none!important}
.status-overlay{position:fixed!important;inset:0!important;z-index:220!important;pointer-events:none!important}
.status-overlay[data-mode="mobile"]{pointer-events:auto!important}
.status-overlay-backdrop{position:absolute!important;inset:0!important;border:0!important;background:transparent!important}
.status-overlay[data-mode="mobile"] .status-overlay-backdrop{background:rgba(15,23,42,.44)!important;backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)!important}
.status-panel{position:fixed!important;left:var(--status-left,16px)!important;top:var(--status-top,16px)!important;width:var(--status-width,300px)!important;max-height:min(72vh,520px)!important;overflow:auto!important;padding:12px!important;border-radius:20px!important;background:rgba(255,255,255,.98)!important;border:1px solid rgba(226,232,240,.95)!important;color:#0f172a!important;box-shadow:0 28px 80px rgba(15,23,42,.20),0 0 0 1px rgba(255,255,255,.8) inset!important;pointer-events:auto!important;animation:statusPop .16s cubic-bezier(.22,.72,.19,1) both!important}
@keyframes statusPop{from{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.status-panel-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;padding:2px 2px 10px!important}.status-panel-head h3{margin:4px 0 0!important;font-size:1rem!important;letter-spacing:-.035em!important;color:#0f172a!important}.status-options{display:grid!important;gap:5px!important}
.status-action{display:inline-flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;min-height:40px!important;padding:0 10px 0 11px!important;border:1px solid var(--status-border,#e2e8f0)!important;border-radius:13px!important;background:var(--status-bg,#f8fafc)!important;color:var(--status-color,#475569)!important;font-size:.68rem!important;font-weight:850!important;letter-spacing:0!important;text-transform:none!important;box-shadow:0 4px 12px rgba(15,23,42,.04)!important;cursor:pointer!important}
.status-action:hover,.status-action[aria-expanded="true"]{transform:translateY(-1px)!important;border-color:var(--status-accent,#8b5cf6)!important;box-shadow:0 10px 24px rgba(15,23,42,.10)!important}
.status-action-copy,.status-option-main{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}.status-action-copy [data-status-button-label],.status-option-main span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.status-chevron{width:14px!important;height:14px!important;opacity:.75!important;transition:transform .16s ease!important}.status-action[aria-expanded="true"] .status-chevron{transform:rotate(90deg)!important}
.status-dot-ui{width:9px!important;height:9px!important;flex:0 0 auto!important;border-radius:999px!important;background:var(--status-accent,#64748b)!important;box-shadow:0 0 0 4px var(--status-glow,rgba(100,116,139,.12)),0 0 14px var(--status-glow,rgba(100,116,139,.18))!important}
.status-option{min-height:42px!important;padding:10px!important;border-radius:13px!important;color:#334155!important;background:transparent!important}.status-option:hover{background:#f8fafc!important;transform:translateX(1px)!important}.status-option.is-active{background:#f5f3ff!important;box-shadow:inset 0 0 0 1px #ddd6fe!important}.status-option-check{background:#ede9fe!important;color:#7c3aed!important}
.status-action.tone-violet,.status-option.tone-violet{--status-accent:#7c3aed;--status-glow:rgba(124,58,237,.16);--status-color:#5b21b6;--status-bg:#f5f3ff;--status-border:#ddd6fe}
.status-action.tone-purple,.status-option.tone-purple,.status-action.tone-magenta,.status-option.tone-magenta{--status-accent:#c026d3;--status-glow:rgba(192,38,211,.16);--status-color:#86198f;--status-bg:#fdf4ff;--status-border:#f5d0fe}
.status-action.tone-amber,.status-option.tone-amber{--status-accent:#d97706;--status-glow:rgba(217,119,6,.16);--status-color:#92400e;--status-bg:#fffbeb;--status-border:#fde68a}
.status-action.tone-blue,.status-option.tone-blue{--status-accent:#2563eb;--status-glow:rgba(37,99,235,.16);--status-color:#1d4ed8;--status-bg:#eff6ff;--status-border:#bfdbfe}
.status-action.tone-cyan,.status-option.tone-cyan{--status-accent:#0891b2;--status-glow:rgba(8,145,178,.16);--status-color:#0e7490;--status-bg:#ecfeff;--status-border:#a5f3fc}
.status-action.tone-green,.status-option.tone-green{--status-accent:#059669;--status-glow:rgba(5,150,105,.16);--status-color:#047857;--status-bg:#ecfdf5;--status-border:#a7f3d0}
.status-action.tone-red,.status-option.tone-red{--status-accent:#e11d48;--status-glow:rgba(225,29,72,.16);--status-color:#be123c;--status-bg:#fff1f2;--status-border:#fecdd3}
.status-action.tone-slate,.status-option.tone-slate,.status-action.tone-graphite,.status-option.tone-graphite{--status-accent:#64748b;--status-glow:rgba(100,116,139,.15);--status-color:#334155;--status-bg:#f8fafc;--status-border:#cbd5e1}

html[data-theme="dark"] .primary-btn{box-shadow:0 16px 34px rgba(91,33,182,.36),inset 0 1px 0 rgba(255,255,255,.18)!important}
html[data-theme="dark"] .ghost-btn,html[data-theme="dark"] .icon-btn,html[data-theme="dark"] .theme-choice{background:linear-gradient(180deg,#151821,#0f1218)!important;border-color:rgba(148,163,184,.16)!important;color:#d7dde7!important;box-shadow:0 12px 28px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04)!important}
html[data-theme="dark"] .ghost-btn:hover,html[data-theme="dark"] .icon-btn:hover,html[data-theme="dark"] .theme-choice:hover{border-color:rgba(167,139,250,.36)!important;color:#fff!important;box-shadow:0 16px 34px rgba(0,0,0,.30)!important}
html[data-theme="dark"] .system-status{background:#0f1218!important;border-color:rgba(74,222,128,.18)!important;color:#86efac!important}
html[data-theme="dark"] .quick-action{background:linear-gradient(145deg,#10131a,#0b0d12)!important;box-shadow:0 16px 34px rgba(0,0,0,.23)!important}
html[data-theme="dark"] .quick-action .qa-icon{background:color-mix(in srgb,var(--qa) 16%,#0b0d12)!important;color:color-mix(in srgb,var(--qa) 78%,white)!important}
html[data-theme="dark"] .dashboard-stat-stack .metric{box-shadow:0 16px 34px rgba(0,0,0,.24)!important}
html[data-theme="dark"] .status-panel{background:#11141b!important;border-color:rgba(148,163,184,.16)!important;color:#f8fafc!important;box-shadow:0 30px 90px rgba(0,0,0,.48)!important}
html[data-theme="dark"] .status-panel-head h3{color:#f8fafc!important}
html[data-theme="dark"] .status-option{color:#dbe3ee!important}html[data-theme="dark"] .status-option:hover{background:#171b24!important}html[data-theme="dark"] .status-option.is-active{background:rgba(124,58,237,.16)!important;box-shadow:inset 0 0 0 1px rgba(167,139,250,.18)!important}
html[data-theme="dark"] .status-action{background:rgba(15,18,24,.96)!important;color:#e5e7eb!important;box-shadow:0 8px 20px rgba(0,0,0,.22)!important}
@media (max-width:820px){.status-panel{left:12px!important;right:12px!important;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;width:auto!important;max-height:min(76vh,560px)!important;border-radius:24px!important;padding:10px 10px 14px!important;animation:statusSheet .20s cubic-bezier(.22,.72,.19,1) both!important}.status-panel-handle{display:block!important;width:42px!important;height:4px!important;margin:2px auto 10px!important;border-radius:999px!important;background:#cbd5e1!important}.status-option{min-height:46px!important;font-size:.78rem!important}.status-action{width:100%!important;min-width:0!important}}
@keyframes statusSheet{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media (max-width:430px){.topbar-actions{gap:6px!important}.theme-toggle,.alert-btn{width:40px!important;height:40px!important}.quick-action{padding:13px!important}.status-panel{left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important}}

/* v15: notifications dark fix + influencer edit form */
html[data-theme="dark"] .notification-group-head h2,
html[data-theme="dark"] .notification-history .section-head h2{color:#f8fafc!important}
html[data-theme="dark"] .notification-group-head p,
html[data-theme="dark"] .notification-history .section-head p{color:#8f99a6!important}
html[data-theme="dark"] .notification-device,
html[data-theme="dark"] .toggle-list,
html[data-theme="dark"] .notification-history .activity,
html[data-theme="dark"] .notification-history .empty{background:linear-gradient(145deg,#10131a,#0b0d12)!important;border-color:rgba(148,163,184,.14)!important;color:#f8fafc!important;box-shadow:0 16px 34px rgba(0,0,0,.22)!important}
html[data-theme="dark"] .toggle-row{background:transparent!important;border-bottom-color:rgba(148,163,184,.10)!important;color:#f8fafc!important}
html[data-theme="dark"] .toggle-row:hover{background:rgba(255,255,255,.025)!important}
html[data-theme="dark"] .toggle-copy strong,
html[data-theme="dark"] .notification-device strong,
html[data-theme="dark"] .notification-history .activity strong{color:#f8fafc!important}
html[data-theme="dark"] .toggle-copy small,
html[data-theme="dark"] .notification-device small,
html[data-theme="dark"] .notification-history .activity small,
html[data-theme="dark"] .native-debug-hint{color:#8f99a6!important}
html[data-theme="dark"] .toggle-icon,
html[data-theme="dark"] .device-icon{background:rgba(124,58,237,.14)!important;border-color:rgba(167,139,250,.16)!important;color:#c4b5fd!important}
html[data-theme="dark"] .switch span{background:#272d38!important;border-color:rgba(148,163,184,.18)!important}
html[data-theme="dark"] .switch span::after{background:#a6afbd!important}
html[data-theme="dark"] .switch input:checked+span{background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;border-color:rgba(167,139,250,.38)!important}
html[data-theme="dark"] .switch input:checked+span::after{background:#fff!important}

.creator-edit-details{display:grid;gap:12px;margin:0 0 14px}.creator-edit-details>summary{list-style:none;width:max-content}.creator-edit-details>summary::-webkit-details-marker{display:none}.creator-edit-details[open]>summary{border-color:#a78bfa!important;color:#6d28d9!important;box-shadow:0 12px 26px rgba(124,58,237,.13)!important}.creator-edit-form{margin-top:2px;padding:14px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.creator-edit-form label{font-size:.68rem}.creator-edit-form input,.creator-edit-form select{min-height:44px!important}.creator-data-card .profile-facts{margin-top:8px}.creator-profile-actions .ghost-btn .ui-icon,.creator-edit-details .ui-icon{width:16px;height:16px}.creator-actions .icon-btn[title="Editar dados"]{color:#7c3aed!important;background:#f5f3ff!important;border-color:#ddd6fe!important}.creator-actions .icon-btn[title="Editar dados"]:hover{background:#ede9fe!important;color:#5b21b6!important}
html[data-theme="dark"] .creator-edit-details[open]>summary{color:#d8c8ff!important;border-color:rgba(167,139,250,.34)!important;background:#151821!important}html[data-theme="dark"] .creator-edit-form{background:#0b0d12!important;border-color:rgba(148,163,184,.14)!important}html[data-theme="dark"] .creator-actions .icon-btn[title="Editar dados"]{background:rgba(124,58,237,.14)!important;border-color:rgba(167,139,250,.18)!important;color:#c4b5fd!important}
@media (max-width:640px){.creator-edit-details>summary{width:100%}.creator-profile-actions{grid-template-columns:1fr!important}.creator-edit-form{padding:12px}.creator-actions{flex-wrap:wrap;justify-content:flex-end}.creator-actions .icon-btn{width:34px!important;height:34px!important}}

/* v16: recovery payment actions + transfer totals + notification dark contrast */
.recovery-card .recovery-body{display:grid;gap:6px}.recovery-card .recovery-body h3{margin-bottom:0}.recovery-pay-chip{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;min-height:30px;margin-top:8px;padding:0 10px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:.64rem;font-weight:820;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recovery-pay-chip .ui-icon{width:14px;height:14px}.recovery-pay-chip.muted{border-color:#e2e8f0;background:#f8fafc;color:#64748b}.recovery-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.recovery-actions .primary-btn,.recovery-actions .ghost-btn{min-height:44px!important}.recovery-unavailable{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 12px;border:1px dashed #cbd5e1;border-radius:14px;color:#64748b;font-size:.70rem;font-weight:740;text-align:center}.transfer-card{overflow:visible!important}.transfer-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding:12px;border:1px solid #e2e8f0;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.transfer-summary>div{display:grid;gap:4px;min-height:58px;padding:10px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.transfer-summary span{color:#64748b;font-size:.63rem;font-weight:760}.transfer-summary strong{color:#0f172a;font-size:.91rem;letter-spacing:-.025em}.transfer-summary-total{border-color:#c4b5fd!important;background:#f5f3ff!important}.transfer-summary-total span{color:#6d28d9!important}.transfer-summary-total strong{color:#4c1d95!important}.transfer-summary small{grid-column:1/-1;color:#64748b;font-size:.66rem;line-height:1.42}.transfer-fee-check{padding:10px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#334155!important}.notification-group{color:var(--theme-ink)}.notification-history{color:var(--theme-ink)}
html[data-theme="dark"] .recovery-pay-chip{background:rgba(37,99,235,.14)!important;border-color:rgba(96,165,250,.22)!important;color:#93c5fd!important}html[data-theme="dark"] .recovery-pay-chip.muted{background:#10131a!important;border-color:rgba(148,163,184,.14)!important;color:#8f99a6!important}html[data-theme="dark"] .recovery-unavailable{border-color:rgba(148,163,184,.18)!important;color:#8f99a6!important;background:#0b0d12!important}html[data-theme="dark"] .transfer-summary{background:linear-gradient(145deg,#10131a,#0b0d12)!important;border-color:rgba(148,163,184,.14)!important;box-shadow:0 16px 34px rgba(0,0,0,.18)!important}html[data-theme="dark"] .transfer-summary>div{background:#0d0f14!important;border-color:rgba(148,163,184,.12)!important}html[data-theme="dark"] .transfer-summary span{color:#8f99a6!important}html[data-theme="dark"] .transfer-summary strong{color:#f8fafc!important}html[data-theme="dark"] .transfer-summary-total{background:rgba(124,58,237,.14)!important;border-color:rgba(167,139,250,.24)!important}html[data-theme="dark"] .transfer-summary-total span{color:#c4b5fd!important}html[data-theme="dark"] .transfer-summary-total strong{color:#fff!important}html[data-theme="dark"] .transfer-summary small{color:#8f99a6!important}html[data-theme="dark"] .transfer-fee-check{background:#10131a!important;border-color:rgba(148,163,184,.14)!important;color:#d7dde7!important}html[data-theme="dark"] .notification-group,html[data-theme="dark"] .notification-history{color:#f8fafc!important}html[data-theme="dark"] .notification-group .toggle-list,html[data-theme="dark"] .notification-hero .surface,html[data-theme="dark"] .notification-history .activity-list .activity,html[data-theme="dark"] .notification-history .empty{background:linear-gradient(145deg,#10131a,#0b0d12)!important;border-color:rgba(148,163,184,.14)!important;color:#f8fafc!important}html[data-theme="dark"] .notification-group h2,html[data-theme="dark"] .notification-history h2,html[data-theme="dark"] .notification-device strong,html[data-theme="dark"] .toggle-copy strong{color:#f8fafc!important}html[data-theme="dark"] .notification-group p,html[data-theme="dark"] .notification-device small,html[data-theme="dark"] .toggle-copy small,html[data-theme="dark"] .notification-history small{color:#9aa4b2!important}
@media (min-width:680px){.recovery-actions{grid-template-columns:minmax(0,1.1fr) minmax(160px,.75fr)!important}.recovery-actions .primary-btn:only-child,.recovery-actions .ghost-btn:only-child{grid-column:1/-1}}@media (max-width:430px){.recovery-pay-chip{width:100%;justify-content:center}.transfer-summary{grid-template-columns:1fr}.transfer-summary small{grid-column:auto}.transfer-summary>div{min-height:54px}}
/* v21 — recuperação Pix por WhatsApp */
.recovery-pay-chip.success{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}
.recovery-secondary-copy{justify-self:center;margin-top:2px;padding:6px 8px;border:0;background:transparent;color:#64748b;font-size:.66rem;font-weight:760;cursor:pointer}
.recovery-secondary-copy:hover{color:#6d28d9;text-decoration:underline;text-underline-offset:3px}
html[data-theme="dark"] .recovery-pay-chip.success{background:rgba(34,197,94,.12)!important;border-color:rgba(74,222,128,.20)!important;color:#86efac!important}
html[data-theme="dark"] .recovery-secondary-copy{color:#8f99a6!important}
html[data-theme="dark"] .recovery-secondary-copy:hover{color:#c4b5fd!important}

/* v22 — dashboard period + conversion */
.dashboard-period-bar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:12px 14px;
  border:1px solid var(--theme-line);border-radius:18px;background:var(--theme-surface);box-shadow:0 8px 24px rgba(15,23,42,.045)
}
.dashboard-period-bar>div{display:grid;gap:2px;min-width:max-content}.dashboard-period-kicker{font-size:.58rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--theme-muted-2)}
.dashboard-period-bar strong{font-size:.82rem;color:var(--theme-ink)}
.dashboard-period-tabs{display:flex;align-items:center;gap:6px;overflow-x:auto;max-width:100%;padding:2px;scrollbar-width:none}.dashboard-period-tabs::-webkit-scrollbar{display:none}
.dashboard-period-tab{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border:1px solid transparent;border-radius:12px;color:var(--theme-muted);font-size:.7rem;font-weight:800;white-space:nowrap;transition:.18s ease;text-decoration:none}
.dashboard-period-tab:hover{background:var(--theme-surface-soft);color:var(--theme-ink)}
.dashboard-period-tab.is-active{background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;box-shadow:0 10px 24px rgba(124,58,237,.22)}
.conversion-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#eef2ff;color:#6d28d9;font-size:.9rem;font-weight:900}
.conversion-metric{position:relative;overflow:hidden}.conversion-metric::after{content:"";position:absolute;right:-42px;bottom:-54px;width:140px;height:140px;border-radius:999px;background:radial-gradient(circle,rgba(139,92,246,.12),transparent 68%);pointer-events:none}
html[data-theme="dark"] .dashboard-period-bar{background:#0d0f14;border-color:var(--theme-line);box-shadow:0 14px 36px rgba(0,0,0,.18)}
html[data-theme="dark"] .dashboard-period-bar strong{color:#f8fafc}
html[data-theme="dark"] .dashboard-period-tab{color:#8f99a6}
html[data-theme="dark"] .dashboard-period-tab:hover{background:#151821;color:#fff}
html[data-theme="dark"] .dashboard-period-tab.is-active{background:linear-gradient(135deg,#6d28d9,#8b5cf6);color:#fff;box-shadow:0 12px 30px rgba(109,40,217,.28)}
html[data-theme="dark"] .conversion-icon{background:rgba(124,58,237,.15);color:#c4b5fd}
@media (max-width:640px){
  .dashboard-period-bar{align-items:flex-start;flex-direction:column;padding:12px;margin-bottom:14px}
  .dashboard-period-tabs{width:100%}.dashboard-period-tab{flex:0 0 auto}
}

/* v26 — resultado do Pix em modal */
.pix-result-modal{position:fixed;inset:0;z-index:420;display:grid;place-items:center;padding:18px}
.pix-result-modal[hidden]{display:none!important}
.pix-result-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.46);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.pix-result-panel{position:relative;z-index:1;width:min(920px,100%);max-height:min(92vh,860px);overflow:auto;border:1px solid var(--theme-line);border-radius:28px;background:var(--theme-surface);color:var(--theme-ink);box-shadow:0 38px 120px rgba(15,23,42,.24);animation:pixResultIn .2s cubic-bezier(.2,.8,.2,1) both}
@keyframes pixResultIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.pix-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 24px 18px;border-bottom:1px solid var(--theme-line)}
.pix-result-head h2{margin:6px 0 6px;font-size:1.5rem;letter-spacing:-.045em;color:var(--theme-ink)}
.pix-result-head p{margin:0;color:var(--theme-muted);font-size:.78rem;line-height:1.55}
.pix-result-summary{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:center;padding:16px 24px;border-bottom:1px solid var(--theme-line);background:linear-gradient(180deg,var(--theme-surface-soft),transparent)}
.pix-result-summary>div{display:grid;gap:3px}.pix-result-summary span{color:var(--theme-muted);font-size:.62rem}.pix-result-summary strong{font-size:.95rem;color:var(--theme-ink)}
.pix-result-grid{display:grid;grid-template-columns:minmax(260px,.78fr) minmax(0,1.22fr);gap:18px;padding:24px}
.pix-qr-card{display:grid;justify-items:center;align-content:start;gap:12px;padding:18px;border:1px solid var(--theme-line);border-radius:22px;background:linear-gradient(180deg,var(--theme-surface-soft),var(--theme-surface));box-shadow:0 12px 28px rgba(15,23,42,.05)}
.pix-qr-frame{width:min(100%,320px);aspect-ratio:1;display:grid;place-items:center;padding:14px;border:1px solid var(--theme-line);border-radius:20px;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.pix-qr-frame img{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px}
.pix-qr-loading{display:grid;place-items:center;gap:10px;color:#64748b;text-align:center;font-size:.72rem}.pix-qr-loading .ui-icon{width:26px;height:26px;color:#7c3aed}
.pix-qr-card>small{color:var(--theme-muted);font-size:.65rem;text-align:center}
.pix-result-actions-col{display:grid;gap:14px;align-content:start}
.pix-copy-block,.pix-share-block{padding:18px;border:1px solid var(--theme-line);border-radius:20px;background:var(--theme-surface);box-shadow:0 10px 24px rgba(15,23,42,.045)}
.pix-copy-head,.pix-share-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.pix-copy-head>span,.pix-share-head>span{font-size:.78rem;font-weight:800;color:var(--theme-ink)}.pix-copy-head small,.pix-share-head small{color:var(--theme-muted);font-size:.6rem}
.pix-copy-block code{display:block;min-height:92px;max-height:128px;overflow:auto;margin-bottom:12px;padding:12px;border:1px solid var(--theme-line);border-radius:14px;background:var(--theme-surface-soft);color:var(--theme-ink);font:600 .62rem/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;word-break:break-all;white-space:pre-wrap}
.pix-share-head{align-items:flex-start;flex-direction:column;gap:3px}
.pix-share-block{display:grid;gap:10px}.pix-share-block .ghost-btn{justify-content:center}
.pix-whatsapp-btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:14px;border:1px solid rgba(16,185,129,.18);background:linear-gradient(135deg,#16a34a,#059669);color:#fff!important;text-decoration:none;font-size:.75rem;font-weight:850;box-shadow:0 14px 30px rgba(5,150,105,.18);transition:transform .16s,box-shadow .16s,filter .16s}
.pix-whatsapp-btn:hover{transform:translateY(-1px);box-shadow:0 18px 38px rgba(5,150,105,.24);filter:saturate(1.05)}
.pix-whatsapp-btn .ui-icon{width:17px;height:17px}
.pix-whatsapp-btn.is-disabled,.pix-share-block .is-disabled,[data-copy-pix]:disabled,[data-copy-checkout]:disabled{opacity:.46!important;pointer-events:none!important;cursor:not-allowed!important}
.pix-sync-note{display:block;color:var(--theme-muted);font-size:.6rem;text-align:center}
html.pix-result-open{overflow:hidden!important}

html[data-theme="dark"] .pix-result-backdrop{background:rgba(0,0,0,.66)}
html[data-theme="dark"] .pix-result-panel{background:#0d0f14;border-color:rgba(148,163,184,.16);box-shadow:0 45px 140px rgba(0,0,0,.58)}
html[data-theme="dark"] .pix-result-summary{background:linear-gradient(180deg,#10131a,rgba(16,19,26,.35))}
html[data-theme="dark"] .pix-qr-card,html[data-theme="dark"] .pix-copy-block,html[data-theme="dark"] .pix-share-block{background:#10131a;border-color:rgba(148,163,184,.14);box-shadow:0 16px 36px rgba(0,0,0,.2)}
html[data-theme="dark"] .pix-copy-block code{background:#0a0c11;border-color:rgba(148,163,184,.14);color:#e8edf5}
html[data-theme="dark"] .pix-result-head h2,html[data-theme="dark"] .pix-result-summary strong,html[data-theme="dark"] .pix-copy-head>span,html[data-theme="dark"] .pix-share-head>span{color:#f8fafc}

@media (max-width:760px){
  .pix-result-modal{padding:0;align-items:end}
  .pix-result-panel{width:100%;max-height:94vh;border-radius:28px 28px 0 0;border-left:0;border-right:0;border-bottom:0}
  .pix-result-head{padding:20px 18px 14px}.pix-result-head h2{font-size:1.25rem}.pix-result-head p{font-size:.72rem}
  .pix-result-summary{grid-template-columns:1fr 1fr;padding:14px 18px}.pix-result-summary>.pill{grid-column:1/-1;justify-self:start}
  .pix-result-grid{grid-template-columns:1fr;padding:16px 14px calc(18px + env(safe-area-inset-bottom));gap:12px}
  .pix-qr-card{padding:14px}.pix-qr-frame{width:min(72vw,280px)}
  .pix-copy-block,.pix-share-block{padding:14px;border-radius:18px}
}

/* v28 — account profile + responsive influencer workspace */
.sidebar-user-link{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;min-width:0;color:inherit;text-decoration:none;border-radius:12px;padding:2px;transition:background .16s ease,transform .16s ease}
.sidebar-user-link:hover{background:rgba(124,58,237,.06);transform:translateY(-1px)}
.sidebar-user-link .user-copy{min-width:0}.sidebar-user-link .user-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-link .user-copy small{display:block;margin-top:3px}
.topbar-user{color:inherit!important;text-decoration:none!important;border-radius:14px;padding:5px 6px!important;transition:background .16s ease,transform .16s ease}
.topbar-user:hover{background:#f5f3ff;transform:translateY(-1px)}
.drawer-profile{color:inherit!important;text-decoration:none!important}
.drawer-profile:hover{background:#f8fafc!important}
html[data-theme="dark"] .sidebar-user-link:hover,html[data-theme="dark"] .topbar-user:hover{background:rgba(124,58,237,.11)!important}
html[data-theme="dark"] .drawer-profile:hover{background:#151821!important}

.profile-flash{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:13px 14px;border:1px solid;border-radius:16px;font-size:.75rem;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.profile-flash .ui-icon{width:18px;height:18px;flex:0 0 auto;margin-top:1px}.profile-flash div{display:grid;gap:3px}.profile-flash strong{font-size:.76rem}.profile-flash span{font-size:.69rem;line-height:1.5}
.profile-flash.success{border-color:#a7f3d0;background:#ecfdf5;color:#047857}.profile-flash.danger{border-color:#fecdd3;background:#fff1f2;color:#be123c}
.profile-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px;border:1px solid var(--theme-line);border-radius:24px;background:linear-gradient(135deg,var(--theme-surface) 0%,var(--theme-surface-soft) 100%);box-shadow:var(--theme-shadow);overflow:hidden;position:relative}
.profile-hero::after{content:"";position:absolute;right:-50px;top:-70px;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(124,58,237,.13),transparent 68%);pointer-events:none}
.profile-identity{display:flex;align-items:center;gap:16px;min-width:0;position:relative;z-index:1}.profile-avatar-large{width:66px;height:66px;display:grid;place-items:center;flex:0 0 auto;border-radius:20px;background:linear-gradient(145deg,#9b6bff,#6d28d9 58%,#4612a8);color:#fff;font-size:1.1rem;font-weight:900;letter-spacing:-.03em;box-shadow:0 16px 34px rgba(109,40,217,.24),inset 0 1px 0 rgba(255,255,255,.2)}
.profile-identity h2{margin:5px 0 3px;color:var(--theme-ink);font-size:1.45rem;line-height:1.1;letter-spacing:-.045em}.profile-identity p{margin:0;color:var(--theme-muted);font-size:.76rem}.profile-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.profile-badges span{display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border:1px solid var(--theme-line);border-radius:999px;background:var(--theme-surface);color:var(--theme-muted);font-size:.59rem;font-weight:760}
.profile-hero-meta{position:relative;z-index:1;display:grid;gap:5px;min-width:130px;padding:12px 14px;border:1px solid var(--theme-line);border-radius:15px;background:var(--theme-surface);text-align:right}.profile-hero-meta span{color:var(--theme-muted);font-size:.59rem}.profile-hero-meta strong{color:var(--theme-ink);font-size:.82rem}
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:14px}.profile-card{padding:20px;border:1px solid var(--theme-line);border-radius:22px;background:var(--theme-surface);box-shadow:0 10px 28px rgba(15,23,42,.045)}
.profile-card-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--theme-line)}.profile-card-head.compact{padding-bottom:13px}.profile-card-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #ddd6fe;border-radius:13px;background:#f5f3ff;color:#7c3aed}.profile-card-icon.security{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.profile-card-icon .ui-icon{width:18px;height:18px}.profile-card-head h3{margin:4px 0 3px;color:var(--theme-ink);font-size:1rem;letter-spacing:-.025em}.profile-card-head p{margin:0;color:var(--theme-muted);font-size:.67rem;line-height:1.5}
.profile-form{display:grid;gap:14px;margin-top:16px}.profile-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-form label{display:grid;gap:7px;color:var(--theme-ink);font-size:.68rem;font-weight:720}.profile-form label>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.profile-form label>span small{color:var(--theme-muted);font-size:.55rem;font-weight:560}.profile-form input{width:100%;min-height:46px;padding:0 13px;border:1px solid var(--theme-line);border-radius:13px;background:var(--theme-surface-soft);color:var(--theme-ink);font-size:.75rem;outline:none;transition:border-color .16s,box-shadow .16s,background .16s}.profile-form input:focus{border-color:#8b5cf6;background:var(--theme-surface);box-shadow:0 0 0 4px rgba(124,58,237,.10)}
.profile-confirm-field{padding-top:2px}.password-field{position:relative}.password-field input{padding-right:48px}.password-eye{position:absolute;right:5px;top:50%;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--theme-muted);transform:translateY(-50%);cursor:pointer}.password-eye:hover{background:#f1f5f9;color:var(--theme-ink)}.password-eye .ui-icon{width:17px;height:17px}
.profile-form-actions{display:flex;justify-content:flex-end;padding-top:2px}.profile-form-actions .primary-btn,.profile-form-actions .ghost-btn{min-height:44px;padding-inline:16px}.ghost-btn.strong{font-weight:800!important;color:#334155!important}
.profile-password-hint{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border:1px solid #dbeafe;border-radius:13px;background:#eff6ff;color:#1e40af}.profile-password-hint .ui-icon{width:16px;height:16px;flex:0 0 auto;margin-top:1px}.profile-password-hint p{margin:0;font-size:.62rem;line-height:1.5}
.profile-side{display:grid;gap:14px;align-content:start}.compact-card{padding:17px}.profile-facts{display:grid;margin:6px 0 0}.profile-facts>div{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--theme-line)}.profile-facts>div:last-child{border-bottom:0;padding-bottom:0}.profile-facts dt{color:var(--theme-muted);font-size:.62rem}.profile-facts dd{margin:0;color:var(--theme-ink);font-size:.66rem;font-weight:760;text-align:right}.profile-help-card{display:grid;gap:7px}.profile-help-card h3{margin:0;color:var(--theme-ink);font-size:1rem}.profile-help-card p{margin:0 0 8px;color:var(--theme-muted);font-size:.67rem;line-height:1.55}.profile-help-card .ghost-btn{justify-content:center}
html[data-theme="dark"] .profile-card-icon{background:rgba(124,58,237,.14);border-color:rgba(167,139,250,.16);color:#c4b5fd}html[data-theme="dark"] .profile-card-icon.security{background:rgba(59,130,246,.12);border-color:rgba(96,165,250,.16);color:#93c5fd}html[data-theme="dark"] .password-eye:hover{background:#1a1e27;color:#fff}html[data-theme="dark"] .profile-password-hint{background:rgba(37,99,235,.10);border-color:rgba(96,165,250,.16);color:#bfdbfe}html[data-theme="dark"] .ghost-btn.strong{color:#e5e7eb!important}html[data-theme="dark"] .profile-flash.success{background:rgba(5,150,105,.10);border-color:rgba(52,211,153,.18);color:#6ee7b7}html[data-theme="dark"] .profile-flash.danger{background:rgba(225,29,72,.10);border-color:rgba(251,113,133,.18);color:#fda4af}

/* O painel lateral do CRM desce para baixo em notebooks/desktops médios, preservando as ferramentas das linhas. */
@media (min-width:1025px) and (max-width:1720px){
  .crm-layout.crm-layout-clean{grid-template-columns:minmax(0,1fr)!important}
  .crm-sidebar.crm-sidebar-clean{position:static!important;top:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (min-width:1200px) and (max-width:1720px){
  .influencer-table-head{grid-template-columns:minmax(210px,1.35fr) minmax(115px,.72fr) minmax(145px,.78fr) minmax(130px,.72fr) auto!important;gap:10px!important}
  .influencer-table-head span:nth-child(4){display:none!important}
  .influencer-row{grid-template-columns:minmax(210px,1.35fr) minmax(115px,.72fr) minmax(145px,.78fr) minmax(130px,.72fr) auto!important;gap:10px!important}
  .influencer-row .assigned-cell{display:none!important}
  .creator-actions{min-width:max-content!important;justify-content:flex-end!important}
  .creator-actions .icon-btn{width:38px!important;height:38px!important;flex:0 0 38px!important}
  .crm-filters.crm-filters-clean{grid-template-columns:minmax(240px,1.4fr) repeat(2,minmax(145px,.75fr))!important}
  .crm-filters.crm-filters-clean .search-field{grid-column:span 1!important}
}
@media (min-width:821px) and (max-width:1199px){
  .crm-sidebar.crm-sidebar-clean{grid-template-columns:1fr!important}
  .crm-filters.crm-filters-clean{grid-template-columns:1fr 1fr!important}
  .crm-filters.crm-filters-clean .search-field{grid-column:1/-1!important}
  .crm-filters.crm-filters-clean .crm-filter-actions{grid-column:1/-1!important;justify-content:flex-end!important}
  .influencer-table-head{display:none!important}
  .influencer-row{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"person actions" "status status" "audience follow" "assigned follow"!important;gap:11px 12px!important;padding:14px!important}
  .influencer-person{grid-area:person!important}.creator-actions{grid-area:actions!important;min-width:max-content!important}.status-cell{grid-area:status!important}.audience-cell{grid-area:audience!important}.assigned-cell{grid-area:assigned!important}.follow-cell{grid-area:follow!important;text-align:right!important}
  .creator-actions .icon-btn{width:38px!important;height:38px!important;flex:0 0 38px!important}
}
@media (min-width:1721px){.crm-layout.crm-layout-clean{grid-template-columns:minmax(0,1fr) 300px!important}.crm-sidebar.crm-sidebar-clean{position:sticky!important;top:112px!important}}

@media (min-width:980px){.profile-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 310px}.profile-layout>section.profile-card{grid-column:1 / span 2}.profile-side{grid-column:3;grid-row:1 / span 2}}
@media (max-width:760px){.profile-hero{align-items:flex-start;flex-direction:column;padding:18px}.profile-hero-meta{width:100%;grid-template-columns:1fr auto;align-items:center;text-align:left}.profile-identity{align-items:flex-start}.profile-avatar-large{width:56px;height:56px;border-radius:17px}.profile-identity h2{font-size:1.22rem}.profile-field-grid{grid-template-columns:1fr}.profile-card{padding:16px;border-radius:19px}.profile-card-head{padding-bottom:14px}.profile-form-actions{display:grid}.profile-form-actions>*{width:100%;justify-content:center}.profile-form label>span{align-items:flex-start;flex-direction:column;gap:3px}.profile-confirm-field{padding-top:0}}

/* v30 - Transferências: saldo disponível + feedback de erro */
.transfer-balance-card{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin-bottom:16px;padding:18px 20px;border:1px solid #ddd6fe;border-radius:20px;
  background:linear-gradient(135deg,#ffffff 0%,#faf7ff 56%,#f5f3ff 100%);
  box-shadow:0 16px 38px rgba(76,29,149,.08),inset 0 1px 0 rgba(255,255,255,.9);
}
.transfer-balance-main{display:flex;align-items:center;gap:14px;min-width:0}.transfer-balance-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border-radius:15px;background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#fff;box-shadow:0 12px 26px rgba(124,58,237,.26)}.transfer-balance-icon .ui-icon{width:22px;height:22px}.transfer-balance-main>div{display:grid;gap:3px}.transfer-balance-main .eyebrow{margin:0}.transfer-balance-main strong{font-size:1.75rem;line-height:1.06;letter-spacing:-.045em;color:#0f172a}.transfer-balance-main small{color:#64748b;font-size:.68rem}.transfer-balance-details{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:8px}.transfer-balance-details>span{display:grid;gap:3px;min-width:120px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:14px;background:rgba(255,255,255,.72)}.transfer-balance-details small{color:#64748b;font-size:.61rem;font-weight:760}.transfer-balance-details strong{color:#0f172a;font-size:.83rem}.transfer-available-hint{display:flex;align-items:center;gap:8px;margin-top:10px;padding:9px 11px;border:1px solid #ddd6fe;border-radius:12px;background:#f5f3ff;color:#6d28d9;font-size:.66rem;line-height:1.4}.transfer-available-hint .ui-icon{width:15px;height:15px;flex:0 0 15px}.transfer-available-hint strong{color:#4c1d95}.transfer-history-card{position:sticky;top:104px}
html[data-theme="dark"] .transfer-balance-card{background:linear-gradient(145deg,#11131a,#0b0d12)!important;border-color:rgba(167,139,250,.22)!important;box-shadow:0 20px 48px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.03)!important}html[data-theme="dark"] .transfer-balance-main strong{color:#fff!important}html[data-theme="dark"] .transfer-balance-main small{color:#8f99a6!important}html[data-theme="dark"] .transfer-balance-details>span{background:#0d0f14!important;border-color:rgba(148,163,184,.12)!important}html[data-theme="dark"] .transfer-balance-details small{color:#8f99a6!important}html[data-theme="dark"] .transfer-balance-details strong{color:#f8fafc!important}html[data-theme="dark"] .transfer-available-hint{background:rgba(124,58,237,.12)!important;border-color:rgba(167,139,250,.20)!important;color:#c4b5fd!important}html[data-theme="dark"] .transfer-available-hint strong{color:#fff!important}
@media(max-width:720px){.transfer-balance-card{align-items:stretch;flex-direction:column;padding:16px}.transfer-balance-details{grid-template-columns:1fr 1fr}.transfer-balance-main strong{font-size:1.5rem}.transfer-history-card{position:static}}
@media(max-width:430px){.transfer-balance-details{grid-template-columns:1fr}.transfer-balance-details>span{min-width:0}}
.transfer-autofill-sink{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
