*{box-sizing:border-box;margin:0;padding:0} :root{--bg:#070b14;--panel:#0b1322;--panel2:#0e1728;--line:rgba(255,255,255,.10);--text:#fff;--muted:#96a3b8;--cyan:#20d7ef;--purple:#8b5cf6;--blue:#1d8cff;--green:#31e6a1;--yellow:#ffc74a;--red:#ff667c;--shadow:0 26px 70px rgba(0,0,0,.38)}
html{background:var(--bg)} body{min-height:100vh;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:radial-gradient(circle at 12% 15%,rgba(124,58,237,.17),transparent 28%),radial-gradient(circle at 88% 82%,rgba(6,182,212,.10),transparent 32%),#070b14}.hidden{display:none!important}.app-shell{min-height:100vh}.topbar{height:76px;padding:0 clamp(20px,4vw,52px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(5,10,19,.88);backdrop-filter:blur(16px);position:sticky;top:0;z-index:20}.brand-mini{display:flex;align-items:center;gap:12px}.brand-mini img{width:46px;height:46px;object-fit:contain}.brand-mini div{display:grid;gap:2px}.brand-mini span,.eyebrow{font-size:10px;font-weight:800;letter-spacing:3px;color:var(--cyan)}.brand-mini strong{font-size:15px}.topbar-actions{display:flex;gap:10px}.lang-btn,.ghost-btn{height:42px;border:1px solid var(--line);border-radius:12px;background:#0b1322;color:#fff;padding:0 15px;font-weight:700;cursor:pointer}.login-screen{min-height:calc(100vh - 76px);display:grid;place-items:center;padding:42px 24px}.login-card{width:min(1080px,100%);min-height:620px;display:grid;grid-template-columns:1.05fr .95fr;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:var(--shadow);background:rgba(255,255,255,.025)}.login-brand{padding:66px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,rgba(139,92,246,.20),rgba(29,140,255,.09),rgba(32,215,239,.03));position:relative;overflow:hidden}.login-brand:after{content:"";position:absolute;width:380px;height:380px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-170px;top:-150px}.login-brand>img{width:130px;height:130px;object-fit:contain;margin:22px 0}.login-brand h1{font-size:clamp(33px,4vw,48px);line-height:1.08;max-width:520px}.login-brand>p{margin-top:17px;color:#c5ccda;line-height:1.7;max-width:500px}.login-benefits{display:grid;gap:13px;margin-top:31px}.login-benefits>div{display:flex;gap:13px;align-items:flex-start}.login-benefits>div>span{width:38px;height:38px;border:1px solid rgba(32,215,239,.26);border-radius:10px;display:grid;place-items:center;color:var(--cyan);font-weight:800;flex:none}.login-benefits p{display:grid;gap:4px}.login-benefits small{color:var(--muted);line-height:1.4}.login-panel{padding:66px;display:flex;flex-direction:column;justify-content:center;background:rgba(5,10,19,.78)}.login-panel h2{font-size:38px;margin:13px 0 8px}.muted,.support-note{color:var(--muted);line-height:1.6}.login-panel form{margin-top:30px}.field{display:grid;gap:9px;margin-bottom:20px}.field>span{font-size:13px;font-weight:700;color:#d8dfeb}.field input{width:100%;height:54px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.05);padding:0 16px;color:#fff;outline:none;font-size:15px}.field input:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(139,92,246,.10)}.password-wrap{position:relative}.password-wrap input{padding-right:52px}.password-wrap button{position:absolute;right:8px;top:7px;width:40px;height:40px;border:0;background:transparent;color:#9cacbf;cursor:pointer}.primary-btn{height:54px;border:0;border-radius:12px;background:linear-gradient(90deg,#7c3aed,#2563eb,#0891b2);color:#fff;padding:0 18px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px}.login-panel .primary-btn{width:100%}.preview-btn{margin-top:12px;height:46px;border:1px dashed rgba(32,215,239,.4);border-radius:12px;background:rgba(32,215,239,.06);color:#c4f8ff;font-weight:700;cursor:pointer}.support-note{font-size:12px;text-align:center;margin-top:20px}.form-message{min-height:20px;font-size:12px;color:#ff8495;margin-top:10px}.dashboard{width:min(1280px,calc(100% - 36px));margin:0 auto;padding:42px 0 64px}.dashboard-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}.dashboard-head h1{font-size:clamp(28px,4vw,44px);margin:9px 0}.dashboard-head p{color:var(--muted)}.user-pill{display:flex;gap:11px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:10px 14px;background:#0b1322;min-width:220px}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#7c3aed,#06b6d4);font-weight:900}.user-pill div{display:grid;gap:4px}.user-pill small{color:var(--muted)}.referral-card,.panel,.rules-card{border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,rgba(13,23,40,.94),rgba(8,15,27,.96));box-shadow:0 18px 50px rgba(0,0,0,.20)}.referral-card{padding:26px;display:grid;grid-template-columns:.8fr 1.2fr;gap:28px;align-items:center;border-color:rgba(32,215,239,.22)}.referral-copy h2{font-size:25px;margin:8px 0}.referral-copy p{color:var(--muted);line-height:1.6}.referral-box{display:grid;gap:11px}.code-pill{width:max-content;border:1px solid rgba(139,92,246,.36);background:rgba(139,92,246,.08);border-radius:999px;padding:8px 12px;font-size:11px;color:#c7b8ff}.link-row{display:flex;gap:10px}.link-row input{flex:1;min-width:0;height:50px;border:1px solid var(--line);background:#07101e;color:#dbe6f5;border-radius:11px;padding:0 14px}.primary-btn.compact{height:50px;white-space:nowrap}.copy-feedback{min-height:16px;color:var(--green);font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}.stat-card{min-height:142px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#0b1322;display:flex;flex-direction:column}.stat-card>span{font-size:9px;font-weight:800;letter-spacing:1.6px;color:#8ba1bd}.stat-card strong{font-size:27px;margin:12px 0 8px}.stat-card small{color:var(--muted);line-height:1.45}.stat-card.waiting strong{color:var(--yellow)}.stat-card.active strong,.stat-card.paid strong{color:var(--green)}.panel{padding:24px;margin-top:18px}.panel-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;padding-bottom:18px;border-bottom:1px solid var(--line)}.panel-head h2{font-size:24px;margin:8px 0}.panel-head p{color:var(--muted);font-size:13px}.legend{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:11px}.legend span{display:flex;align-items:center;gap:6px}.dot{width:8px;height:8px;border-radius:50%}.waiting-dot{background:var(--yellow);box-shadow:0 0 10px rgba(255,199,74,.55)}.active-dot{background:var(--green);box-shadow:0 0 10px rgba(49,230,161,.55)}.inactive-dot{background:var(--red)}.company-list,.commission-list{display:grid;gap:10px;margin-top:16px}.company-item,.commission-item{border:1px solid var(--line);border-radius:14px;background:#09111f;padding:16px;display:grid;grid-template-columns:1.3fr .9fr .8fr .7fr;gap:16px;align-items:center}.company-name strong,.commission-item strong{display:block;font-size:14px}.company-name small,.company-meta small,.commission-item small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.status-chip{width:max-content;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:800}.status-chip.waiting{background:rgba(255,199,74,.10);border:1px solid rgba(255,199,74,.34);color:#ffd978}.status-chip.active{background:rgba(49,230,161,.10);border:1px solid rgba(49,230,161,.34);color:#79f5c2}.status-chip.inactive{background:rgba(255,102,124,.10);border:1px solid rgba(255,102,124,.34);color:#ff9aac}.commission-value{font-weight:900;color:#fff}.commission-value.zero{color:#77869a}.commission-status{font-size:11px;font-weight:800}.commission-status.pending{color:var(--yellow)}.commission-status.paid{color:var(--green)}.rules-card{margin-top:18px;padding:24px;display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:18px}.rules-card h2{margin-top:8px}.rule{border-left:1px solid var(--line);padding-left:18px}.rule strong{font-size:13px}.rule p{color:var(--muted);font-size:12px;line-height:1.55;margin-top:7px}.empty-state{padding:28px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:13px}.empty-state strong{color:#fff;display:block;margin-bottom:5px}@media(max-width:1050px){.stats-grid{grid-template-columns:repeat(2,1fr)}.rules-card{grid-template-columns:1fr 1fr}.login-card{grid-template-columns:1fr}.login-brand{display:none}.company-item,.commission-item{grid-template-columns:1fr 1fr}.referral-card{grid-template-columns:1fr}}@media(max-width:700px){.topbar{padding:0 14px}.brand-mini div{display:none}.dashboard{width:min(100% - 20px,1280px);padding-top:24px}.dashboard-head{flex-direction:column}.user-pill{width:100%}.stats-grid{grid-template-columns:1fr}.panel-head{align-items:flex-start;flex-direction:column}.company-item,.commission-item{grid-template-columns:1fr}.rules-card{grid-template-columns:1fr}.rule{border-left:0;border-top:1px solid var(--line);padding:14px 0 0}.link-row{flex-direction:column}.primary-btn.compact{width:100%}.login-screen{padding:18px 12px}.login-panel{padding:36px 24px}.login-card{min-height:0}}


/* =========================================================
   AJUSTES DE ACESSO / TELA COMPACTA
========================================================= */
.portal-client-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(32,215,239,.28);
  border-radius: 12px;
  background: rgba(32,215,239,.045);
  color: #c9f7ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.portal-client-btn:hover { border-color: rgba(139,92,246,.55); color:#fff; }
.login-help-row { display:flex; justify-content:flex-end; margin:-1px 0 13px; }
.login-help-row a { color:#aa83ff; font-size:12px; font-weight:700; text-decoration:none; }
.login-help-row a:hover { text-decoration:underline; }

@media (min-width: 900px) {
  .topbar { height: 64px; }
  .brand-mini img { width:38px; height:38px; }
  .login-screen {
    min-height: calc(100dvh - 64px);
    padding: 14px 18px;
  }
  .login-card {
    width: min(1080px, 100%);
    min-height: 0;
    height: min(610px, calc(100dvh - 92px));
  }
  .login-brand,
  .login-panel { padding: 34px 52px; }
  .login-brand > img { width:94px; height:94px; margin:14px 0; }
  .login-brand h1 { font-size: clamp(30px, 3.2vw, 42px); line-height:1.04; }
  .login-brand > p { margin-top:12px; line-height:1.5; font-size:13px; }
  .login-benefits { gap:9px; margin-top:20px; }
  .login-benefits > div > span { width:34px; height:34px; }
  .login-benefits small { font-size:11px; }
  .login-panel h2 { font-size:36px; margin-top:10px; }
  .login-panel > .muted { margin-top:8px; font-size:13px; }
  .login-panel form { margin-top:22px; }
  .field { margin-bottom:14px; }
  .field input { min-height:48px; }
  .primary-btn { min-height:50px; }
  .support-note { margin-top:17px; }
}

@media (max-width: 820px) {
  .portal-client-btn { font-size:0; width:42px; padding:0; }
  .portal-client-btn::before { content:"←"; font-size:16px; }
}


/* =====================================================================
   ELUNEXYA V32 — EMPRESAS DO COLABORADOR
   Datas + progresso + ocultar empresas sem pagamento
===================================================================== */

.company-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hidden-companies-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(139,92,246,.26);
  border-radius: 10px;
  background: rgba(139,92,246,.06);
  color: #c9bcff;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.hidden-companies-btn strong {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(139,92,246,.16);
  color: #fff;
  font-size: 9px;
}

.hidden-companies-btn.active {
  border-color: rgba(32,215,239,.38);
  background: rgba(32,215,239,.07);
  color: #8ceeff;
}

.company-item.company-item-v32 {
  display: block;
  padding: 17px;
}

.company-item-v32.is-hidden-company {
  border-style: dashed;
  opacity: .82;
}

.company-v32-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.company-status-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.hidden-company-chip {
  width: max-content;
  padding: 7px 9px;
  border: 1px solid rgba(139,92,246,.28);
  border-radius: 999px;
  background: rgba(139,92,246,.08);
  color: #c7b8ff;
  font-size: 9px;
  font-weight: 850;
}

.company-info-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.company-info-cell {
  min-width: 0;
  min-height: 82px;
  padding: 11px 12px;
  border: 1px solid rgba(128,149,180,.12);
  border-radius: 11px;
  background: rgba(5,12,23,.43);
}

.company-info-cell > small:first-child {
  display: block;
  margin-bottom: 7px;
  color: #69809e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .7px;
}

.company-info-cell > strong {
  display: block;
  color: #f4f7fb;
  font-size: 12px;
  line-height: 1.35;
}

.company-info-cell > small:not(:first-child) {
  display: block;
  margin-top: 5px;
  color: #7f90a8;
  font-size: 9px;
  line-height: 1.35;
}

.company-info-cell.commission-cell .commission-value {
  font-size: 17px;
}

.company-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.company-visibility-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,199,74,.20);
  border-radius: 9px;
  background: rgba(255,199,74,.055);
  color: #eacb78;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.company-visibility-btn:hover {
  border-color: rgba(255,199,74,.42);
  background: rgba(255,199,74,.09);
}

.company-visibility-btn.restore {
  border-color: rgba(32,215,239,.22);
  background: rgba(32,215,239,.055);
  color: #8ceeff;
}

.company-visibility-btn:disabled {
  opacity: .55;
  cursor: wait;
}

.referral-validation {
  grid-column: 1 / -1;
  margin-top: 3px;
  padding: 15px 16px;
  border: 1px solid rgba(32,215,239,.14);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(32,215,239,.045),
      rgba(139,92,246,.035)
    );
}

.referral-validation strong {
  color: #dffbff;
  font-size: 12px;
}

.referral-validation p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

@media(max-width:1050px) {
  .company-info-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media(max-width:700px) {
  .company-panel-actions {
    width: 100%;
    align-items: flex-start;
  }

  .company-v32-top {
    flex-direction: column;
  }

  .company-status-area {
    justify-content: flex-start;
  }

  .company-info-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .company-card-actions {
    justify-content: stretch;
  }

  .company-visibility-btn {
    width: 100%;
  }
}

@media(max-width:430px) {
  .company-info-grid {
    grid-template-columns: 1fr;
  }

  .company-info-cell {
    min-height: 0;
  }
}

/* =====================================================================
   V33 — DADOS PIX + PAGAMENTO QUINZENAL
===================================================================== */
.pix-panel{overflow:hidden}.pix-status-chip{width:max-content;padding:8px 11px;border-radius:999px;border:1px solid rgba(255,199,74,.34);background:rgba(255,199,74,.08);color:#ffd978;font-size:9px;font-weight:900;letter-spacing:.8px}.pix-status-chip.ok{border-color:rgba(49,230,161,.34);background:rgba(49,230,161,.08);color:#79f5c2}.pix-owner-notice{margin-top:16px;padding:15px 16px;border:1px solid rgba(32,215,239,.16);border-radius:13px;background:linear-gradient(135deg,rgba(32,215,239,.05),rgba(139,92,246,.04))}.pix-owner-notice strong{font-size:12px;color:#dffbff}.pix-owner-notice p{margin-top:7px;color:var(--muted);font-size:11px;line-height:1.6}.pix-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.pix-field{display:grid;gap:7px;min-width:0}.pix-field>span{font-size:11px;font-weight:800;color:#d8dfeb}.pix-field input,.pix-field select{width:100%;min-width:0;height:48px;border:1px solid var(--line);border-radius:11px;background:#07101e;color:#eef5ff;padding:0 13px;outline:none;font-size:13px}.pix-field input:focus,.pix-field select:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(139,92,246,.10)}.pix-field small{color:#7186a2;font-size:9px;line-height:1.45}.pix-field-wide{grid-column:1/-1}.pix-field input.locked-field{background:rgba(255,255,255,.025);color:#9aabc1;cursor:not-allowed}.pix-owner-check{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border:1px solid rgba(49,230,161,.16);border-radius:11px;background:rgba(49,230,161,.035);color:#c9d5e5;font-size:11px;line-height:1.55}.pix-owner-check input{margin-top:2px;accent-color:#31e6a1}.pix-form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.pix-form-actions .primary-btn{height:48px}.pix-form-message{font-size:11px;color:var(--muted)}.pix-form-message.success{color:var(--green)}.pix-form-message.error{color:#ff8ca0}.payment-rule{border-left-color:rgba(49,230,161,.20)}.payment-rule b{color:#dffbff}.commission-item.has-payment-proof{grid-template-columns:1.2fr .8fr .7fr .6fr}.commission-payment-proof{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:2px;padding-top:13px;border-top:1px solid rgba(255,255,255,.06)}.commission-payment-proof>div{min-width:0;padding:10px 11px;border:1px solid rgba(128,149,180,.11);border-radius:10px;background:rgba(5,12,23,.45)}.commission-payment-proof span{display:block;margin-bottom:5px;color:#6f84a0;font-size:8px;font-weight:900;letter-spacing:.7px}.commission-payment-proof strong{display:block;color:#e9f3ff;font-size:10px;line-height:1.45;overflow-wrap:anywhere}.commission-payment-proof .proof-observation{grid-column:1/-1}.primary-btn:disabled{opacity:.58;cursor:not-allowed}

@media(max-width:900px){.commission-payment-proof{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.pix-form{grid-template-columns:1fr}.pix-field-wide{grid-column:auto}.pix-form-actions{align-items:stretch;flex-direction:column}.pix-form-actions .primary-btn{width:100%}.commission-item.has-payment-proof{grid-template-columns:1fr}.commission-payment-proof{grid-template-columns:1fr}.pix-status-chip{margin-top:4px}}


/* ELUNEXYA V63 — Regras de comissão em ordem de leitura, por segmentos. */
.rules-card.elx63-commission-rules{display:flex;flex-direction:column;gap:26px;padding:28px;grid-template-columns:none}
.elx63-rules-heading{padding-bottom:20px;border-bottom:1px solid var(--line)}
.elx63-rules-heading h2{margin:8px 0 6px;font-size:clamp(22px,2.5vw,28px)}
.elx63-rules-heading p{color:var(--muted);font-size:13px;line-height:1.6}
.elx63-rule-section{display:flex;flex-direction:column;gap:14px;min-width:0}
.elx63-section-heading{display:flex;align-items:center;gap:12px;margin:0;font-size:15px;font-weight:800;color:#edf6ff}
.elx63-section-heading>span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(32,215,239,.09);border:1px solid rgba(32,215,239,.25);color:#63e6f3;font-size:11px;letter-spacing:.04em}
.elx63-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.elx63-commission-rules .elx63-rule-item{border:1px solid rgba(132,154,185,.2);border-radius:15px;background:rgba(8,18,32,.62);padding:18px 18px 19px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.elx63-commission-rules .elx63-rule-item>strong{font-size:15px;line-height:1.35;color:#f5f8ff;display:block}
.elx63-commission-rules .elx63-rule-item>p{font-size:12px;line-height:1.75;margin:0;color:#b3c4d8;overflow-wrap:anywhere}
.elx63-rule-kicker{font-weight:900;letter-spacing:.12em;color:#48cfe3;font-size:10px}
.elx63-plan-grid .elx63-rule-item:nth-child(2){border-color:rgba(139,92,246,.5);background:rgba(139,92,246,.06)}
.elx63-migration-rule{border-color:rgba(32,215,239,.32)!important;background:linear-gradient(115deg,rgba(32,215,239,.065),rgba(139,92,246,.07))!important}
.elx63-migration-timeline{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:6px 0 4px}
.elx63-migration-timeline>div{border:1px solid rgba(132,154,185,.25);border-radius:11px;padding:12px 14px;display:grid;gap:4px;background:rgba(3,11,22,.33)}
.elx63-migration-timeline span{color:#91a8c4;font-size:11px;font-weight:700}
.elx63-migration-timeline strong{color:#85f3c7;font-size:20px;font-weight:850}
.elx63-migration-timeline small{color:#a5b8cf;font-size:11px;line-height:1.4}
.elx63-commission-rules .elx63-migration-summary{padding-top:6px;color:#cfe3f2;font-size:12px}
.elx63-commission-rules .elx63-migration-summary strong{color:#85f3c7;font-size:14px}
.elx63-commission-rules .referral-validation{margin:0;grid-column:auto}
@media(max-width:1000px){.elx63-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){.rules-card.elx63-commission-rules{padding:18px;gap:22px}.elx63-rule-grid,.elx63-migration-timeline{grid-template-columns:1fr}.elx63-commission-rules .elx63-rule-item{padding:16px}.elx63-section-heading{font-size:14px}}
