/* Portal do Cliente — tema dark sobre os tokens da landing */
[hidden] { display: none !important; }

.account-body {
  background: var(--navy-900);
  color: var(--on-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- topbar ---------- */
.ct-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(6,22,39,.8); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.ct-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--on-dark); }
.ct-brand img { border-radius: 8px; }
.ct-brand em { font-style: normal; color: var(--on-dark-mut); font-weight: 500; }
/* mobile estreito: esconde o nome da empresa, fica só logo + "Portal do Cliente" */
@media (max-width: 520px) {
  .ct-brand-co, .ct-brand-sep { display: none; }
  .ct-brand em[data-i18n="brand.portal"] { color: var(--on-dark); }
}
.ct-topbar-right { display: flex; align-items: center; gap: 14px; }
.ct-user { display: flex; align-items: center; gap: 14px; }
.ct-user-email { font-family: var(--f-mono); font-size: 12px; color: var(--on-dark-soft); }
.ct-lang {
  background: transparent; border: 1px solid var(--line-dark); color: var(--on-dark-soft);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .05em;
  padding: 6px 11px; border-radius: 7px; line-height: 1;
}
.ct-lang:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- auth (login com vídeo do Hero de fundo) ---------- */
.ct-auth {
  position: relative; flex: 1; display: grid; place-items: center;
  padding: 56px 20px; min-height: calc(100vh - 66px); overflow: hidden;
}
.ct-auth-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ct-auth-poster, .ct-auth-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.ct-auth-video { opacity: 0; transition: opacity 1.1s var(--ease); }
.ct-auth-video.is-active { opacity: 1; }
.ct-auth-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(104deg, rgba(6,22,39,.94) 0%, rgba(10,37,64,.74) 40%, rgba(10,37,64,.5) 70%, rgba(6,22,39,.72) 100%),
    radial-gradient(130% 90% at 50% -10%, transparent 42%, rgba(6,22,39,.72) 100%);
}
/* topbar transparente sobre o vídeo enquanto não logado */
.account-body.pre-auth .ct-topbar {
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}

.ct-auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: linear-gradient(158deg, rgba(13,44,77,.66), rgba(6,22,39,.74));
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(120,170,215,.22); border-radius: 18px;
  padding: 40px 38px 32px; text-align: center;
  box-shadow: 0 40px 90px -35px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.07);
}
/* marcas de canto — perímetro soberano (assinatura do site), discretas */
.ct-brk { position: absolute; width: 15px; height: 15px; border: 2px solid rgba(52,195,240,.55); }
.ct-brk.tl { top: 13px; left: 13px; border-right: 0; border-bottom: 0; }
.ct-brk.tr { top: 13px; right: 13px; border-left: 0; border-bottom: 0; }
.ct-brk.bl { bottom: 13px; left: 13px; border-right: 0; border-top: 0; }
.ct-brk.br { bottom: 13px; right: 13px; border-left: 0; border-top: 0; }
.ct-auth-logo { margin: 4px auto 16px; filter: drop-shadow(0 8px 22px rgba(52,195,240,.28)); }
.ct-auth-card h1 { font-size: 27px; color: #fff; letter-spacing: -.02em; }
.ct-auth-sub { color: var(--on-dark-soft); font-size: 14px; margin: 9px 0 24px; line-height: 1.6; }
.ct-tabs { display: flex; gap: 6px; background: rgba(6,22,39,.55); border: 1px solid var(--line-dark); border-radius: 11px; padding: 4px; margin-bottom: 22px; }
.ct-tab {
  flex: 1; border: 0; background: transparent; color: var(--on-dark-mut);
  font-family: var(--f-body); font-weight: 600; font-size: 14px; padding: 9px 0; border-radius: 8px;
}
.ct-tab.is-on { background: rgba(52,195,240,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(52,195,240,.32); }
.ct-auth-card form { display: grid; gap: 14px; text-align: left; }
.ct-auth-card label { font-size: 13px; font-weight: 600; color: var(--on-dark-soft); display: grid; gap: 6px; }
.ct-hint { font-weight: 400; color: var(--on-dark-mut); font-size: 12px; }
.ct-auth-card input, .ct-filters select, .ct-keyadd input {
  width: 100%;
  background: var(--navy-900); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: 9px;
  padding: 11px 13px; font-family: var(--f-body); font-size: 15px;
}
.ct-auth-card input { background: rgba(6,22,39,.5); border-color: rgba(120,170,215,.2); }
.ct-auth-card input:focus, .ct-keyadd input:focus { border-color: var(--cyan); background: rgba(6,22,39,.7); outline: none; box-shadow: 0 0 0 3px rgba(52,195,240,.14); }
.ct-auth-err { color: #ff8f88; font-size: 13px; margin-top: 12px; }
.ct-auth-err button { background: none; border: 0; color: var(--cyan); text-decoration: underline; font-size: 13px; padding: 0; }
.ct-pending { display: grid; gap: 10px; justify-items: center; padding: 8px 0 4px; }
.ct-pending-icon { font-size: 34px; }
.ct-pending h2 { color: #fff; font-size: 20px; }
.ct-pending p { color: var(--on-dark-soft); font-size: 14px; line-height: 1.6; }
.ct-pending strong { color: var(--cyan); }
.ct-pending-note { font-size: 12px !important; color: var(--on-dark-mut) !important; }
.ct-pending-ok { color: #28c840 !important; font-size: 12px !important; }
.ct-banner {
  background: rgba(40,200,64,.12); border: 1px solid rgba(40,200,64,.45); color: #a7e8b4;
  border-radius: 9px; padding: 11px 16px; font-size: 13px;
}
.ct-auth-foot { margin-top: 20px; font-size: 13px; color: var(--on-dark-mut); }
.ct-auth-foot a, .ct-plans-cta a, .ct-foot a { color: var(--cyan); }

/* ---------- dash ---------- */
.ct-dash { flex: 1; padding-block: 34px 56px; display: grid; gap: 22px; }
.ct-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.ct-head h1 { color: #fff; font-size: 30px; }
.ct-filters { display: flex; gap: 10px; align-items: center; }
.ct-filters select { width: auto; padding: 9px 12px; font-size: 14px; }

.ct-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ct-tile {
  background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 18px 20px; display: grid; gap: 4px;
}
.ct-tile-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mut); font-weight: 600; }
.ct-tile-value { font-family: var(--f-mono); font-size: 26px; color: #fff; font-weight: 500; }
.ct-tile-sub { font-size: 12px; color: var(--on-dark-mut); min-height: 1em; }

.ct-card {
  background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.ct-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.ct-card-head h2 { font-size: 16px; color: var(--on-dark); }
.ct-unit { color: var(--on-dark-mut); font-size: 12px; font-weight: 400; }
.ct-tablebtn { background: none; border: 0; color: var(--on-dark-mut); font-size: 12px; text-decoration: underline; }
.ct-tablebtn:hover { color: var(--cyan); }

.ct-chart-wrap { position: relative; }
#chart { display: block; }
#chart .bar { fill: var(--cyan); }
#chart .bar.is-zero { fill: rgba(127,151,174,.35); }
#chart .bar-hit { fill: transparent; }
#chart .bar-hit:hover + .bar, #chart .bar.is-hover { fill: #7ee3ff; }
#chart .axis text { fill: var(--on-dark-mut); font-family: var(--f-mono); font-size: 10px; }
#chart .grid line { stroke: rgba(120,170,215,.12); }
#chart .baseline { stroke: rgba(120,170,215,.3); }
.ct-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--navy-900); border: 1px solid var(--azure); border-radius: 8px;
  padding: 8px 11px; font-size: 12px; line-height: 1.55; color: var(--on-dark);
  box-shadow: var(--shadow-pop); white-space: nowrap;
}
.ct-tip strong { font-family: var(--f-mono); color: #fff; }
.ct-empty { color: var(--on-dark-mut); font-size: 14px; text-align: center; padding: 40px 0; }

.ct-table { margin-top: 14px; overflow-x: auto; }
.ct-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ct-table th, .ct-table td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--line-dark); font-family: var(--f-mono); }
.ct-table th:first-child, .ct-table td:first-child { text-align: left; }
.ct-table th { color: var(--on-dark-mut); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- ciclo por chave ---------- */
.ct-cycle { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ct-cycle-card {
  background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 18px 20px; display: grid; gap: 10px;
}
.ct-cycle-title { display: flex; justify-content: space-between; align-items: baseline; }
.ct-cycle-title strong { color: #fff; font-size: 14px; }
.ct-cycle-title code { font-family: var(--f-mono); font-size: 11px; color: var(--on-dark-mut); }
.ct-meter { display: grid; gap: 6px; }
.ct-meter-nums { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--on-dark-soft); }
.ct-meter-nums strong { color: #fff; }
.ct-meter-bar { height: 8px; border-radius: 5px; background: var(--navy-900); overflow: hidden; }
.ct-meter-fill { height: 100%; border-radius: 5px; background: var(--grad); transition: width .5s var(--ease); }
.ct-meter-fill.is-warn { background: #febc2e; }
.ct-meter-fill.is-crit { background: #ff5f57; }
.ct-cycle-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--on-dark-mut); }
.ct-cycle-meta b { color: var(--on-dark-soft); font-weight: 500; }

/* ---------- keys ---------- */
.ct-keys { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ct-keys li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy-900); border: 1px solid var(--line-dark); border-radius: 9px; padding: 10px 14px;
}
.ct-keys code { font-family: var(--f-mono); font-size: 13px; color: var(--on-dark); }
.ct-keys .alias { color: var(--on-dark-mut); font-size: 12px; margin-left: 10px; }
.ct-keys button { background: none; border: 0; color: var(--on-dark-mut); font-size: 12px; text-decoration: underline; }
.ct-keys button:hover { color: #ff8f88; }
.ct-keyadd { display: flex; gap: 10px; }
.ct-keyadd input { font-family: var(--f-mono); font-size: 13px; }
.ct-keynote { font-size: 12px; color: var(--on-dark-mut); margin-top: 10px; }

/* ---------- gerenciador de chaves do pacote ---------- */
.ct-pkg-plan { font-size: 12px; color: var(--on-dark-mut); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .1em; }
.ct-pkg-keys li { flex-wrap: wrap; gap: 8px 12px; }
.ct-pkg-keys .kmeta { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; }
.ct-pkg-keys .kstatus { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; letter-spacing: .04em; }
.ct-pkg-keys .kstatus.on { background: rgba(40,200,64,.16); color: #7fe08f; }
.ct-pkg-keys .kstatus.off { background: rgba(255,95,87,.16); color: #ff9a94; }
.ct-pkg-keys .kactions { display: flex; gap: 12px; }
.ct-pkg-keys .kactions button { background: none; border: 0; font-size: 12px; text-decoration: underline; color: var(--on-dark-mut); }
.ct-pkg-keys .kactions button:hover { color: var(--cyan); }
.ct-pkg-keys .kactions button.kdel:hover { color: #ff8f88; }
.ct-pkg-newkey { margin: 12px 0 0; background: #071a2e; border: 1px solid var(--azure); border-radius: 9px; padding: 12px 14px; }
.ct-pkg-newkey code { color: #7ee3ff; font-family: var(--f-mono); font-size: 14px; word-break: break-all; }
.ct-pkg-newkey .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ct-pkg-newkey .copybtn { background: var(--cyan); color: var(--navy); border: 0; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 6px; }
.ct-pkg-newkey p { color: var(--on-dark-soft); font-size: 12px; margin: 0; }

/* ---------- planos ---------- */
.ct-plans h2 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.ct-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ct-plan {
  display: grid; gap: 6px;
  background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 18px 20px; font-size: 13px; color: var(--on-dark-soft);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.ct-plan:hover { border-color: var(--azure); transform: translateY(-2px); }
.ct-plan.is-hot { border-color: rgba(52,195,240,.5); }
.ct-plan strong { color: #fff; font-size: 15px; font-family: var(--f-display); }
.ct-plan strong b {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle;
  background: var(--cyan); color: var(--navy); border-radius: 9px; padding: 2px 8px; margin-left: 8px;
}
.ct-plan-price { font-family: var(--f-mono); color: var(--cyan); font-size: 18px; }
.ct-plan-price .plan-price-value { color: inherit; font: inherit; }
.ct-plan-price i { font-style: normal; color: var(--on-dark-mut); font-size: 12px; }
.ct-plan .ct-buy { margin-top: 6px; width: 100%; justify-content: center; }
.ct-plan.is-target { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(52,195,240,.18); }
.ct-plans-note { margin: -4px 0 16px; font-size: 13px; color: var(--on-dark-soft); }
.ct-buy-msg { margin-top: 14px; font-size: 13px; color: var(--on-dark-soft); background: rgba(52,195,240,.08); border: 1px solid var(--line-dark); border-radius: 9px; padding: 11px 14px; }
.ct-buy-msg a { color: var(--cyan); }
.ct-plans-cta { margin-top: 14px; font-size: 13px; color: var(--on-dark-mut); }

/* ---------- footer ---------- */
.ct-foot { border-top: 1px solid var(--line-dark); padding: 18px 24px; font-size: 12px; color: var(--on-dark-mut); text-align: center; }

/* ---------- iSol Assistant (windchat do portal) ---------- */
.ct-chat-launcher img { width: 34px; height: 34px; object-fit: contain; display: block; }
.ct-chat-avatar { display: inline-grid; place-items: center; }
.ct-chat-avatar img { width: 26px; height: 26px; object-fit: contain; display: block; }

@media (max-width: 640px) {
  .ct-head h1 { font-size: 24px; }
  .ct-filters { width: 100%; }
  .ct-filters select { flex: 1; }
  .ct-keyadd { flex-direction: column; }
}

/* ---------- iSol Workspace (assinatura por assento) ---------- */
.ct-ws-new { font: 700 10px/1 var(--f-mono); color: #04121f; background: linear-gradient(90deg, var(--cyan), #1B9DE0);
  padding: 3px 8px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.ct-ws-sub { color: var(--on-dark-soft); font-size: 13.5px; margin: 4px 0 14px; }
.ct-ws-orgs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ct-ws-org { border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px 16px;
  background: rgba(6,22,39,.45); display: grid; gap: 8px; }
.ct-ws-org-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-ws-org-head b { color: #fff; font-size: 15px; }
.ct-ws-org-head a { font-family: var(--f-mono); font-size: 12px; color: var(--cyan); }
.ct-ws-status { font: 600 10.5px/1 var(--f-mono); padding: 3px 9px; border-radius: 999px; letter-spacing: .05em; }
.ct-ws-status.live { color: #28c840; border: 1px solid rgba(40,200,64,.4); }
.ct-ws-status.provisioning, .ct-ws-status.pending { color: #f4c542; border: 1px solid rgba(244,197,66,.4); }
.ct-ws-status.suspended { color: #ff8f88; border: 1px solid rgba(255,143,136,.4); }
.ct-ws-org-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--on-dark-soft); }
.ct-ws-bar { height: 8px; border-radius: 999px; background: rgba(120,170,215,.15); overflow: hidden; }
.ct-ws-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), #1B9DE0); }
.ct-ws-bar.warn i { background: linear-gradient(90deg, #f4c542, #e8a13d); }
.ct-ws-bar.hot i { background: linear-gradient(90deg, #ff8f88, #e05555); }
.ct-ws-org-actions { display: flex; gap: 10px; }
.ct-ws-form { margin-top: 6px; display: grid; gap: 14px; }
.ct-ws-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.ct-ws-grid label { font-size: 13px; font-weight: 600; color: var(--on-dark-soft); display: grid; gap: 6px; }
.ct-ws-grid input, .ct-ws-grid select { width: 100%; background: rgba(6,22,39,.5); color: var(--on-dark);
  border: 1px solid rgba(120,170,215,.2); border-radius: 9px; padding: 10px 12px; font-family: var(--f-body); font-size: 14px; }
.ct-ws-grid input:focus, .ct-ws-grid select:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(52,195,240,.14); }
.ct-ws-slugwrap { display: flex; align-items: center; gap: 4px; }
.ct-ws-slugwrap i { font: 500 12px/1 var(--f-mono); color: var(--on-dark-mut); }
.ct-ws-slugwrap input { flex: 1; min-width: 0; }
.ct-ws-total { font-size: 14px; color: var(--on-dark-soft); }
.ct-ws-total b { color: #fff; font-size: 18px; font-family: var(--f-display); }
.ct-ws-total em { font-style: normal; color: var(--on-dark-mut); font-size: 12px; }
#wsSlugHint.ok { color: #28c840; } #wsSlugHint.bad { color: #ff8f88; }
@media (max-width: 640px) { .ct-ws-grid { grid-template-columns: 1fr; } }

/* ---------- prévia do pipeline de provisioning ---------- */
.ct-ws-org.is-provisioning { border-style: dashed; }
.ct-ws-prep { color: var(--on-dark-soft); font-size: 12.5px; margin: 2px 0 6px; }
.ct-ws-pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct-ws-pipeline li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--on-dark-mut); }
.ct-ws-pipeline li.done { color: var(--on-dark-soft); }
.ct-ws-pipeline li.cur { color: #fff; }
.ct-ws-pipeline i { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; }
.ct-pl-ok { color: #28c840; font-weight: 700; font-size: 13px; }
.ct-pl-wait { border: 2px solid rgba(120,170,215,.25); border-radius: 50%; }
.ct-pl-spin { border: 2px solid rgba(52,195,240,.3); border-top-color: var(--cyan); border-radius: 50%; animation: ctspin .8s linear infinite; }
@keyframes ctspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ct-pl-spin { animation: none; border-top-color: var(--cyan); } }

/* ===== Fase 1: shell sidebar (ac-*) — tema dark, mesmos tokens do portal ===== */
.ac-layout { display: flex; gap: 28px; align-items: flex-start; }
.ac-side { position: sticky; top: 76px; flex: 0 0 190px; }
.ac-side-toggle { display: none; }
.ac-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-nav a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--on-dark-soft); text-decoration: none; font-weight: 500; font-size: 14.5px;
  border-left: 2px solid transparent;
}
.ac-nav a:hover { background: rgba(27, 157, 224, .07); color: var(--on-dark); }
.ac-nav a.is-on {
  background: rgba(27, 157, 224, .10); color: var(--on-dark);
  border-left-color: var(--azure); font-weight: 600;
}
.ac-main { flex: 1 1 auto; min-width: 0; }
.ac-main > .ct-banner { margin-bottom: 18px; }
.ac-view { display: grid; gap: 22px; }

/* ---------- overview: atalhos (ac-ov-*) ---------- */
.ac-ov-sub { color: var(--on-dark-soft); margin: 0 0 18px; }
.ac-ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ac-ov-card { display: block; text-decoration: none; color: inherit; padding: 18px; }
.ac-ov-card h2 { margin: 0 0 6px; font-size: 16px; }
.ac-ov-card p { margin: 0; color: var(--on-dark-soft); font-size: 13.5px; }
.ac-ov-card:hover { outline: 2px solid rgba(27, 157, 224, .35); }

/* ---------- settings: conta/idioma/logout (ac-set-*) ---------- */
.ac-set-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }

@media (max-width: 860px) {
  .ac-layout { flex-direction: column; gap: 10px; }
  .ac-side { position: static; flex: none; width: 100%; }
  .ac-side-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--line-dark); border-radius: 8px;
    padding: 8px 14px; font: inherit; color: var(--on-dark); cursor: pointer;
  }
  .ac-nav { display: none; margin-top: 8px; }
  .ac-nav.is-open { display: flex; }
}

/* ===== Fase 3b: modal de gestão de usuários (wsu-*) ===== */
.wsu-overlay { position: fixed; inset: 0; background: rgba(4,12,24,.66); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.wsu-modal { position: relative; width: 100%; max-width: 720px; max-height: 88vh; overflow: auto; background: var(--navy-900, #061627); border: 1px solid var(--line-dark, rgba(120,150,180,.22)); border-radius: 14px; padding: 22px 24px; }
.wsu-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wsu-head h2 { margin: 0; font-size: 17px; flex: 1 1 auto; }
.wsu-seats { font-size: 12.5px; color: var(--on-dark-soft, #b9cbdd); border: 1px solid var(--line-dark, rgba(120,150,180,.22)); border-radius: 999px; padding: 3px 10px; }
.wsu-seats.full { color: #ffb4a2; border-color: rgba(255,120,90,.5); }
.wsu-x { background: none; border: 0; color: var(--on-dark-soft, #b9cbdd); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.wsu-tablewrap { overflow-x: auto; }
.wsu-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wsu-table th { text-align: left; color: var(--on-dark-soft, #b9cbdd); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; padding: 6px 10px; border-bottom: 1px solid var(--line-dark, rgba(120,150,180,.18)); }
.wsu-table td { padding: 9px 10px; border-bottom: 1px solid rgba(120,150,180,.10); vertical-align: middle; }
.wsu-email { display: block; }
.wsu-name { display: block; color: var(--on-dark-soft, #b9cbdd); font-size: 12px; }
.wsu-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; }
.wsu-invited { color: #ffd79a; border-color: rgba(255,190,90,.4); }
.wsu-active { color: #9be3a2; border-color: rgba(90,220,120,.4); }
.wsu-suspended { color: #ffb4a2; border-color: rgba(255,120,90,.4); }
.wsu-actions { text-align: right; white-space: nowrap; }
.wsu-actions .btn { padding: 4px 9px; }
.wsu-empty { color: var(--on-dark-soft, #b9cbdd); padding: 16px 4px; }
.wsu-foot { margin-top: 16px; }
body.wsu-open { overflow: hidden; }
@media (max-width: 560px) { .wsu-modal { padding: 16px; } .wsu-table th:nth-child(4), .wsu-table td:nth-child(4) { display: none; } }

.wsu-modal-sm { max-width: 420px; }
.wsu-edit-email { color: var(--on-dark-soft, #b9cbdd); font-size: 13px; margin: 0 0 12px; }
.wsu-invite { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wsu-invite input[type=email] { flex: 2 1 180px; }
.wsu-invite input[type=text] { flex: 1 1 120px; }
.wsu-invite select { flex: 0 0 auto; }
.wsu-full-cta { display: flex; gap: 10px; align-items: center; color: var(--on-dark-soft, #b9cbdd); font-size: 13px; }
#wsuEditForm label { display: block; margin: 10px 0; }
#wsuEditForm label span { display: block; font-size: 12.5px; color: var(--on-dark-soft, #b9cbdd); margin-bottom: 4px; }
#wsuEditForm input, #wsuEditForm select { width: 100%; }
.wsu-tools { border: 1px solid var(--line-dark, rgba(120,150,180,.22)); border-radius: 8px; padding: 10px 14px 12px; margin: 0 0 14px; }
.wsu-tools legend { font-size: 12px; color: var(--on-dark-soft, #b9cbdd); padding: 0 6px; }
.wsu-tools label.wsu-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; cursor: pointer; }
.wsu-tools label.wsu-tool input[type=checkbox] { accent-color: var(--cyan); }

/* ---- Aviso "pode cair no spam" (MITIGAÇÃO TEMPORÁRIA) --------------------
   O domínio isolutionscloudx.com está sem DKIM (diagnóstico 2026-07-27), então
   e-mails transacionais caem em lixo eletrônico com frequência. Todo ponto que
   promete e-mail mostra este aviso. REMOVER/reavaliar quando o DKIM estiver ativo. */
.mail-tip {
  display: block;
  margin: 10px 0 0;
  padding: 9px 12px;
  border-left: 3px solid #fbbf24;
  border-radius: 6px;
  background: rgba(251, 191, 36, .09);
  color: var(--on-dark-soft, #b9cbdd);
  font-size: 12.5px;
  line-height: 1.5;
}
.mail-tip strong { color: #fbbf24; font-weight: 600; }
/* variante inline, para o banner do dashboard (que já tem fundo próprio) */
.mail-tip-inline { display: block; margin-top: 6px; font-size: 12.5px; opacity: .95; }
.mail-tip-inline strong { font-weight: 600; }
