/* LRG Operations Suite — premium application shell */
:root {
  --ops-sidebar: 272px;
  --ops-radius: 18px;
  --ops-radius-sm: 12px;
  --ops-bg: #0d0e11;
  --ops-surface: #15171b;
  --ops-surface-soft: #1b1d22;
  --ops-heading: #f5f6f8;
  --ops-text: #d9dce2;
  --ops-muted: #9298a5;
  --ops-border: rgba(255,255,255,.08);
  --ops-border-strong: rgba(255,255,255,.15);
  --ops-shadow: 0 24px 70px rgba(0,0,0,.34);
  --ops-accent: #e24c64;
  --ops-accent-deep: #982035;
  --ops-accent-soft: rgba(226,76,100,.12);
}

[data-theme="light"] {
  --ops-bg: #f4f5f7;
  --ops-surface: #fff;
  --ops-surface-soft: #f8f9fb;
  --ops-heading: #17191f;
  --ops-text: #30333b;
  --ops-muted: #737985;
  --ops-border: rgba(24,28,38,.09);
  --ops-border-strong: rgba(24,28,38,.16);
  --ops-shadow: 0 22px 60px rgba(30,34,45,.09);
}

body.premium-ops:not(.login-body) {
  min-height: 100vh;
  padding-left: var(--ops-sidebar);
  color: var(--ops-text);
  background:
    radial-gradient(circle at 18% -10%, var(--ops-accent-soft), transparent 29rem),
    var(--ops-bg);
}

body.premium-ops:not(.login-body)::before {
  opacity: .26;
  background-size: 64px 64px;
  animation: none;
}

body.premium-ops .tech-grid-bg { opacity: .2; }

body.premium-ops:not(.login-body) .topbar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  width: var(--ops-sidebar);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 22px 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #e9eaf0;
  background:
    radial-gradient(circle at 28% 8%, rgba(179,38,61,.24), transparent 18rem),
    linear-gradient(165deg,#171317,#0e0f12 62%);
  border: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 50px rgba(0,0,0,.16);
}

body.premium-ops:not(.login-body) .topbar::after {
  content: "iSUPER · INTELLIGENCE CENTER";
  order: 5;
  margin-top: 14px;
  color: #585c65;
  text-align: center;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
}

body.premium-ops .wordmark {
  order: 1;
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 7px 16px;
  border-bottom: 0;
}

body.premium-ops .brand-logo {
  width: 102px;
  height: auto;
  flex: 0 0 102px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.2));
}

body.premium-ops .brand-divider {
  width: 1px;
  height: 34px;
  flex: 0 0 1px;
  background: rgba(255,255,255,.16);
}

body.premium-ops .brand-product {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: #9fa3ae;
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: normal;
}

body.premium-ops .brand-product strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.1;
}

body.premium-ops:not(.login-body) .top-actions {
  order: 2;
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

body.premium-ops:not(.login-body) .top-actions::before {
  content: "OPERAÇÃO";
  margin: 0 12px 8px;
  color: #6f737d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

body.premium-ops:not(.login-body) .top-actions .ghost-link {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: #aeb2bc;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
}

body.premium-ops:not(.login-body) .top-actions .ghost-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow: none;
}

body.premium-ops:not(.login-body) .top-actions .ghost-link.active-nav {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(100deg,rgba(179,38,61,.34),rgba(179,38,61,.11)) !important;
  box-shadow: inset 0 0 0 1px rgba(226,76,100,.16);
}

body.premium-ops:not(.login-body) .top-actions .ghost-link.active-nav::before {
  content: "";
  position: absolute;
  left: -16px;
  width: 3px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: var(--ops-accent);
  box-shadow: 0 0 12px rgba(226,76,100,.5);
}

body.premium-ops:not(.login-body) .top-status-zone,
body.premium-ops:not(.login-body) .top-utility {
  order: 4;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
}

body.premium-ops:not(.login-body) .top-status-zone .updated,
body.premium-ops:not(.login-body) .top-utility .updated {
  grid-column: 1 / -1;
  min-height: 40px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #aeb2bc;
  background: rgba(255,255,255,.035);
  font-size: 9px;
  line-height: 1.35;
  white-space: normal;
}

body.premium-ops:not(.login-body) .top-status-zone .theme-toggle,
body.premium-ops:not(.login-body) .top-utility .theme-toggle {
  grid-column: 2;
  grid-row: 2;
}

body.premium-ops:not(.login-body) .top-status-zone form,
body.premium-ops:not(.login-body) .top-utility form {
  grid-column: 1;
  grid-row: 2;
}

body.premium-ops:not(.login-body) .top-status-zone .ghost,
body.premium-ops:not(.login-body) .top-utility .ghost {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  border-color: rgba(255,255,255,.08);
  color: #9298a5;
  background: rgba(255,255,255,.035);
  font-size: 10px;
}

body.premium-ops:not(.login-body) .container {
  width: min(1480px,100%);
  max-width: 1480px;
  margin: 0 auto;
  padding: 40px 34px 54px;
}

body.premium-ops .hero-row,
body.premium-ops .analytics-hero,
body.premium-ops .accuracy-hero,
body.premium-ops .customer-hero {
  align-items: flex-end;
  gap: 34px;
  margin: 0 0 28px;
  padding: 6px 2px 0;
}

body.premium-ops .hero-row h1,
body.premium-ops .analytics-hero h1,
body.premium-ops .accuracy-hero h1,
body.premium-ops .customer-hero h1 {
  color: var(--ops-heading);
  font-size: clamp(34px,4vw,58px);
  line-height: .99;
  letter-spacing: -.045em;
}

body.premium-ops .hero-row > p,
body.premium-ops .analytics-hero > p,
body.premium-ops .accuracy-hero > p {
  max-width: 560px;
  color: var(--ops-muted);
  font-size: 13px;
  line-height: 1.7;
}

body.premium-ops .metric-grid { gap: 14px; margin-bottom: 20px; }
body.premium-ops .metric {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  background:
    radial-gradient(circle at 100% 0,var(--ops-accent-soft),transparent 11rem),
    var(--ops-surface);
  box-shadow: 0 10px 30px rgba(0,0,0,.055);
}

body.premium-ops .metric::after {
  inset: 0 auto 0 0;
  width: 2px;
  height: auto;
  background: linear-gradient(transparent,var(--ops-accent),transparent);
}

body.premium-ops .metric > span {
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .03em;
}
body.premium-ops .metric > strong { color: var(--ops-heading); font-size: 31px; letter-spacing: -.04em; }
body.premium-ops .metric > small { color: var(--ops-muted); }

body.premium-ops .queue-switcher {
  gap: 10px;
  margin: 0 0 20px;
  padding: 10px;
  border: 1px solid var(--ops-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg,color-mix(in srgb,var(--ops-surface) 55%,transparent),transparent),
    var(--ops-surface-soft);
  box-shadow: inset 0 1px 0 color-mix(in srgb,var(--ops-heading) 4%,transparent);
}

body.premium-ops .queue-option {
  min-height: 86px;
  border: 1px solid var(--ops-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--ops-accent) 3%,transparent),transparent 9rem),
    color-mix(in srgb,var(--ops-surface) 70%,var(--ops-surface-soft));
  box-shadow: inset 0 1px 0 color-mix(in srgb,var(--ops-heading) 4%,transparent);
}

body.premium-ops .queue-option::before { opacity: .34; }
body.premium-ops .queue-option > span {
  color: var(--ops-text);
  letter-spacing: .01em;
}
body.premium-ops .queue-option > strong { color: var(--ops-heading); }
body.premium-ops .queue-option > small { color: var(--ops-muted); }
body.premium-ops .queue-option:hover {
  border-color: color-mix(in srgb,var(--ops-accent) 28%,var(--ops-border));
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--ops-accent) 8%,transparent),transparent 9rem),
    var(--ops-surface);
  box-shadow: 0 10px 24px rgba(0,0,0,.07), inset 0 1px 0 color-mix(in srgb,var(--ops-heading) 5%,transparent);
}
body.premium-ops .queue-option.active {
  border-color: color-mix(in srgb,var(--ops-accent) 52%,var(--ops-border));
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--ops-accent) 14%,transparent),transparent 10rem),
    color-mix(in srgb,var(--ops-accent) 5%,var(--ops-surface));
  box-shadow: 0 12px 28px rgba(0,0,0,.12), inset 3px 0 0 var(--ops-accent);
}
body.premium-ops .queue-option.active::before { opacity: .9; }
body.premium-ops .queue-option.active > strong { color: var(--ops-accent); }

body.premium-ops .panel,
body.premium-ops .sync-panel {
  border: 1px solid var(--ops-border);
  border-radius: var(--ops-radius);
  background:
    radial-gradient(circle at 100% 0,var(--ops-accent-soft),transparent 24rem),
    var(--ops-surface);
  box-shadow: var(--ops-shadow);
}

body.premium-ops .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 24px;
  border-color: var(--ops-border);
}
body.premium-ops .panel-head h2 { color: var(--ops-heading); font-size: 19px; }
body.premium-ops .filters { align-items: end; gap: 10px; }
body.premium-ops .filters input,
body.premium-ops .filters select {
  min-height: 42px;
  border-color: var(--ops-border-strong);
  border-radius: 10px;
  color: var(--ops-text);
  background: var(--ops-surface-soft);
}

body.premium-ops .filters button {
  min-height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg,var(--ops-accent-deep),var(--ops-accent));
}

body.premium-ops .table-wrap {
  padding: 0 12px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ops-border-strong) transparent;
}
body.premium-ops .table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb,var(--ops-surface) 94%,var(--ops-bg));
  box-shadow: 0 1px 0 var(--ops-border);
}
body.premium-ops table { border-collapse: separate; border-spacing: 0 5px; }
body.premium-ops th { padding: 10px 12px; border: 0; color: var(--ops-muted); font-size: 9px; letter-spacing: .1em; }
body.premium-ops td {
  padding: 14px 12px;
  border-top: 1px solid var(--ops-border);
  border-bottom: 1px solid var(--ops-border);
  background: color-mix(in srgb,var(--ops-surface-soft) 72%,transparent);
}
body.premium-ops td:first-child { border-left: 1px solid var(--ops-border); border-radius: 11px 0 0 11px; }
body.premium-ops td:last-child { border-right: 1px solid var(--ops-border); border-radius: 0 11px 11px 0; }
body.premium-ops tbody tr:hover td { background: color-mix(in srgb,var(--ops-accent) 4%,var(--ops-surface)); }
body.premium-ops .row-link {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
body.premium-ops .row-link:hover { transform: translateX(2px); }
body.premium-ops .empty {
  min-height: 170px;
  place-content: center;
  margin: 12px;
  padding: 38px 24px;
  border: 1px dashed var(--ops-border-strong);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0,color-mix(in srgb,var(--ops-accent) 7%,transparent),transparent 12rem),
    var(--ops-surface-soft);
}
body.premium-ops .empty::before {
  content: "";
  width: 34px;
  height: 34px;
  justify-self: center;
  margin-bottom: 4px;
  border: 1px solid color-mix(in srgb,var(--ops-accent) 28%,var(--ops-border));
  border-radius: 50%;
  background: radial-gradient(circle,var(--ops-accent) 0 2px,transparent 3px);
  box-shadow: 0 0 22px var(--ops-accent-soft);
}
body.premium-ops .pagination {
  border-top: 1px solid var(--ops-border);
  background: color-mix(in srgb,var(--ops-surface-soft) 66%,transparent);
}
body.premium-ops .pagination a,
body.premium-ops .pagination button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.premium-ops :is(details > summary,.sync-panel summary) {
  border-radius: 8px;
  outline-offset: 3px;
}
body.premium-ops :is(a,button,input,select,textarea):focus-visible {
  outline: 2px solid color-mix(in srgb,var(--ops-accent) 78%,#fff);
  outline-offset: 2px;
}
body.premium-ops button:disabled,
body.premium-ops .btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

body.premium-ops .stack-list,
body.premium-ops .financial-grid { padding: 12px; }
body.premium-ops .stack-item,
body.premium-ops .financial-grid > div {
  border-color: var(--ops-border);
  border-radius: 11px;
  background: color-mix(in srgb,var(--ops-surface-soft) 78%,transparent);
}

body.premium-ops .site-credit {
  width: min(1480px,calc(100% - 68px));
  margin: -28px auto 24px;
}

.premium-menu-toggle,
.premium-sidebar-overlay,
.premium-sidebar-peek-zone { display: none; }

@media (min-width: 901px) {
  body.premium-ops:not(.login-body) {
    transition: padding-left .24s ease;
  }
  body.premium-ops:not(.login-body) .topbar {
    transition: transform .24s ease;
  }
  .premium-menu-toggle {
    position: fixed;
    top: 50%;
    left: calc(var(--ops-sidebar) - 1px);
    z-index: 130;
    width: 28px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    color: #aeb2bc;
    background: linear-gradient(160deg,#202126,#131418);
    box-shadow: 0 9px 24px rgba(0,0,0,.2);
    transform: translate(-50%,-50%);
    transition: left .24s ease, color .18s ease, border-color .18s ease, transform .24s ease;
  }
  .premium-menu-toggle:hover {
    color: #fff;
    border-color: color-mix(in srgb,var(--ops-accent) 55%,rgba(255,255,255,.1));
  }
  .premium-menu-toggle span {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(135deg);
    transition: transform .24s ease;
  }
  body.premium-ops.sidebar-hidden:not(.login-body) { padding-left: 0; }
  body.premium-ops.sidebar-hidden:not(.login-body) .topbar { transform: translateX(-105%); }
  body.premium-ops.sidebar-hidden .premium-sidebar-peek-zone {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 119;
    width: 16px;
    display: block;
    cursor: e-resize;
  }
  body.premium-ops.sidebar-hidden.sidebar-peek:not(.login-body) .topbar {
    transform: none;
    box-shadow: 18px 0 54px rgba(0,0,0,.32);
  }
  body.premium-ops.sidebar-hidden .premium-menu-toggle {
    left: 12px;
    transform: translate(0,-50%);
  }
  body.premium-ops.sidebar-hidden .premium-menu-toggle span { transform: rotate(-45deg); }
  body.premium-ops.sidebar-hidden.sidebar-peek .premium-menu-toggle {
    left: calc(var(--ops-sidebar) - 1px);
    transform: translate(-50%,-50%);
  }
  body.premium-ops.sidebar-hidden.sidebar-peek .premium-menu-toggle span { transform: rotate(135deg); }
}

/* Premium login shared by both products */
body.premium-ops.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 15%,rgba(179,38,61,.17),transparent 28rem),
    radial-gradient(circle at 85% 85%,rgba(255,255,255,.045),transparent 24rem),
    #090a0c;
}

body.premium-ops.login-body .login-shell {
  width: min(1080px,100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: #15171b;
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
}

body.premium-ops.login-body .login-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%,rgba(226,76,100,.48),transparent 16rem),
    radial-gradient(circle at 82% 85%,rgba(179,38,61,.3),transparent 18rem),
    linear-gradient(145deg,#371018,#09090b 76%);
}

body.premium-ops.login-body .login-copy::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 120px;
  height: 120px;
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 0 0 24px;
}

body.premium-ops.login-body .login-brand-card { width: min(100%,270px); min-height: 0; margin: 0 0 28px; }
body.premium-ops.login-body .login-copy .eyebrow { margin: 0 0 22px; font-size: 10px; letter-spacing: .15em; }
body.premium-ops.login-body .login-copy h1 { color: #fff; font-size: clamp(44px,5vw,68px); line-height: .95; letter-spacing: -.055em; }
body.premium-ops.login-body .login-copy p { max-width: 440px; margin-top: 28px; color: #d8d8dc; font-size: 14px; line-height: 1.7; }
body.premium-ops.login-body .login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 62px;
  border: 0;
  color: var(--ops-text);
  background: var(--ops-surface);
}
body.premium-ops.login-body .login-card-head {
  width: 100%;
  display: block;
  margin-bottom: 26px;
  text-align: left;
}
body.premium-ops.login-body .login-card-head > span {
  display: block;
  color: var(--ops-accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
body.premium-ops.login-body .login-card-head::after {
  content: "Bem-vindo(a)";
  display: block;
  margin-top: 8px;
  color: var(--ops-heading);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -.035em;
  text-transform: none;
}
body.premium-ops.login-body .login-card form,
body.premium-ops.login-body .login-card .alert { width: 100%; }
body.premium-ops.login-body .login-card label { color: var(--ops-muted); text-align: left; font-size: 11px; font-weight: 700; }
body.premium-ops.login-body .login-card input {
  min-height: 48px;
  border: 1px solid var(--ops-border-strong);
  border-radius: 11px;
  color: var(--ops-text);
  background: var(--ops-surface-soft);
}
body.premium-ops.login-body .login-card button { min-height: 48px; border-radius: 11px; }
body.premium-ops.login-body .powered-credit { align-self: center; margin-top: 24px; }

@media (max-width: 1050px) {
  :root { --ops-sidebar: 252px; }
  body.premium-ops:not(.login-body) .container { padding-inline: 24px; }
  body.premium-ops .brand-logo { width: 96px; flex-basis: 96px; }
  body.premium-ops .brand-product { font-size: 8px; }
}

@media (max-width: 900px) {
  body.premium-ops:not(.login-body) { padding-left: 0; padding-top: 66px; }
  body.premium-ops:not(.login-body) .topbar {
    width: min(var(--ops-sidebar),calc(100vw - 48px));
    transform: translateX(-104%);
    transition: transform .22s ease;
  }
  body.premium-ops.menu-open:not(.login-body) .topbar { transform: none; }
  .premium-menu-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 112;
    width: 40px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ops-border);
    border-radius: 10px;
    color: var(--ops-heading);
    background: color-mix(in srgb,var(--ops-bg) 88%,transparent);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    backdrop-filter: blur(16px);
  }
  .premium-menu-toggle span,
  .premium-menu-toggle::before,
  .premium-menu-toggle::after {
    content: "";
    width: 17px;
    height: 1.5px;
    display: block;
    background: currentColor;
  }
  .premium-menu-toggle { gap: 4px; }
  .premium-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 116;
    background: rgba(5,6,8,.58);
    backdrop-filter: blur(3px);
  }
  body.premium-ops.menu-open .premium-sidebar-overlay { display: block; }
  body.premium-ops:not(.login-body) .container { padding-top: 26px; }
  body.premium-ops .hero-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  body.premium-ops.login-body { padding: 16px; }
  body.premium-ops.login-body .login-shell { min-height: 0; grid-template-columns: 1fr; }
  body.premium-ops.login-body .login-copy { padding: 40px 32px; }
  body.premium-ops.login-body .login-copy h1 { font-size: 43px; }
  body.premium-ops.login-body .login-copy p { margin-top: 20px; }
  body.premium-ops.login-body .login-card { padding: 38px 28px; }
  body.premium-ops .metric-grid { grid-template-columns: 1fr 1fr; }
  body.premium-ops .queue-switcher { grid-template-columns: 1fr 1fr; }
  body.premium-ops .panel-head { align-items: flex-start; }
  body.premium-ops .pagination { justify-content: center; padding-inline: 12px; }
  body.premium-ops .filters button { width: 100%; }
}

@media (max-width: 480px) {
  body.premium-ops:not(.login-body) .container { padding-inline: 15px; }
  body.premium-ops .metric-grid,
  body.premium-ops .queue-switcher { grid-template-columns: 1fr; }
  body.premium-ops.login-body .login-copy { padding: 34px 24px; }
  body.premium-ops.login-body .login-card { padding: 34px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  body.premium-ops *, body.premium-ops *::before, body.premium-ops *::after { transition: none !important; animation: none !important; }
}

/* Cobrança + Retenção — inteligência compartilhada sem fundir os produtos */
body.premium-ops .revenue-intelligence-panel {
  overflow: hidden;
  border-color: color-mix(in srgb,var(--ops-accent) 25%,var(--ops-border));
}
body.premium-ops .revenue-action {
  position: relative;
  display: grid;
  gap: 7px;
  margin: 18px 22px 8px;
  padding: 18px 20px 18px 23px;
  overflow: hidden;
  border: 1px solid var(--ops-border);
  border-radius: 14px;
  background: var(--ops-surface-soft);
}
body.premium-ops .revenue-action::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ops-accent);
}
body.premium-ops .revenue-action > span { color: var(--ops-accent); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
body.premium-ops .revenue-action h3 { margin: 0; color: var(--ops-heading); font-size: 17px; letter-spacing: -.015em; }
body.premium-ops .revenue-action p { max-width: 900px; margin: 0; color: var(--ops-muted); font-size: 12px; line-height: 1.55; }
body.premium-ops .revenue-action > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
body.premium-ops .revenue-action b {
  padding: 5px 8px;
  border: 1px solid var(--ops-border);
  border-radius: 999px;
  color: var(--ops-text);
  background: var(--ops-surface);
  font-size: 9px;
}
body.premium-ops .revenue-action.action-critical { background: color-mix(in srgb,var(--ops-accent) 9%,var(--ops-surface)); }
body.premium-ops .revenue-action.action-attention::before { background: #f59e0b; }
body.premium-ops .revenue-action.action-success::before { background: #36c98f; }
body.premium-ops .integration-grid { padding-top: 8px; }

body.premium-ops .decision-action-list {
  margin: 4px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 9, 12, .26);
}

body.premium-ops .decision-action-head,
body.premium-ops .decision-action-list > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 13px 16px;
}

body.premium-ops .decision-action-head {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .025);
}

body.premium-ops .decision-action-list > article {
  border-top: 1px solid var(--line);
  font-size: 12px;
}

body.premium-ops .decision-action-list > article b {
  min-width: 42px;
  color: var(--accent, #e65c71);
  font-size: 17px;
  text-align: right;
}

body.premium-ops .autonomy-note {
  margin: 0 24px 24px;
  padding: 15px 17px;
  border: 1px solid rgba(230, 92, 113, .2);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(230, 92, 113, .045);
  font-size: 11px;
  line-height: 1.65;
}
body.premium-ops .integration-reasons { margin: 2px 22px 14px; }
body.premium-ops .integration-reading {
  margin: 8px 22px 14px;
  padding: 12px 14px;
  border: 1px solid var(--ops-border);
  border-radius: 11px;
  color: var(--ops-muted);
  background: var(--ops-surface-soft);
  font-size: 11px;
  line-height: 1.55;
}
body.premium-ops .integration-reading strong { color: var(--ops-heading); }
body.premium-ops .integration-link {
  display: inline-flex;
  margin: 0 22px 20px;
  color: var(--ops-accent);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
body.premium-ops .integration-link:hover { text-decoration: underline; }
body.premium-ops .integration-unavailable { display: grid; gap: 5px; margin: 18px 22px 22px; color: var(--ops-muted); font-size: 11px; }
body.premium-ops .integration-unavailable strong { color: var(--ops-heading); }

@media (max-width: 720px) {
  body.premium-ops .revenue-action { margin-inline: 12px; }
  body.premium-ops .integration-reading,
  body.premium-ops .integration-reasons,
  body.premium-ops .integration-link,
  body.premium-ops .integration-unavailable { margin-inline: 12px; }
}

/* iSUPER Intelligence Center — unified suite experience */
body.premium-ops:not(.login-body) .brand-product::after {
  content: "Intelligence Center";
  color: var(--ops-accent);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body.premium-ops.login-body {
  isolation: isolate;
}

body.premium-ops.login-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.018) 47.1% 47.2%, transparent 47.3%),
    radial-gradient(circle at 50% 118%, color-mix(in srgb,var(--ops-accent) 14%,transparent), transparent 36rem);
}

body.premium-ops.login-body .login-shell {
  width: min(1120px,100%);
  min-height: 640px;
  border-radius: 30px;
  box-shadow: 0 42px 110px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.02);
}

body.premium-ops.login-body .login-copy {
  justify-content: center;
  overflow: hidden;
  padding: 66px 68px;
}

body.premium-ops.login-body .login-copy::before {
  content: "";
  position: absolute;
  top: 42px;
  right: 42px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255,255,255,.025), 0 0 28px color-mix(in srgb,var(--ops-accent) 55%,transparent);
}

body.premium-ops.login-body .login-brand-card {
  position: relative;
  z-index: 1;
  width: min(100%,250px);
  margin-bottom: 38px;
}

.suite-signature {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 28px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}

.suite-signature .pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
}

.suite-signature > span:nth-child(2) {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.suite-signature small {
  color: rgba(255,255,255,.54);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .14em;
}

.suite-signature strong {
  color: #fff;
  font-size: 10px;
  letter-spacing: .035em;
}

.suite-signature b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb,var(--ops-accent) 72%,transparent);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.premium-ops.login-body .login-copy h1 {
  position: relative;
  z-index: 1;
  margin: 0;
}

body.premium-ops.login-body .login-copy p {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.login-capabilities {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.login-capabilities span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.12);
  font-size: 9px;
  font-weight: 650;
}

body.premium-ops.login-body .login-card {
  position: relative;
  padding: 64px;
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--ops-accent) 6%,transparent),transparent 22rem),
    var(--ops-surface);
}

body.premium-ops.login-body .login-card::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--ops-accent));
  box-shadow: 0 6px 0 -0.2px color-mix(in srgb,var(--ops-accent) 44%,transparent);
}

body.premium-ops.login-body .login-card-head {
  margin-bottom: 30px;
}

body.premium-ops.login-body .login-card-head::after {
  content: none;
}

body.premium-ops.login-body .login-card-head h2 {
  margin: 9px 0 7px;
  color: var(--ops-heading);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -.04em;
}

body.premium-ops.login-body .login-card-head p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 12px;
  line-height: 1.5;
}

body.premium-ops.login-body .login-card input {
  min-height: 52px;
  padding-inline: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.premium-ops.login-body .login-card input:focus {
  transform: translateY(-1px);
  border-color: color-mix(in srgb,var(--ops-accent) 75%,white);
  box-shadow: 0 0 0 4px var(--ops-accent-soft), 0 10px 24px rgba(0,0,0,.08);
}

body.premium-ops.login-body .login-card button {
  position: relative;
  min-height: 52px;
  overflow: hidden;
  box-shadow: 0 16px 34px color-mix(in srgb,var(--ops-accent) 25%,transparent);
}

body.premium-ops.login-body .login-card button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(100deg,transparent,rgba(255,255,255,.16),transparent);
  transition: transform .55s ease;
}

body.premium-ops.login-body .login-card button:hover::before {
  transform: translateX(110%);
}

body.premium-ops.login-body .login-card button.is-loading {
  cursor: wait;
  opacity: .88;
}

body.premium-ops.login-body .login-card button.is-loading .button-arrow {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  font-size: 0;
  animation: intelligence-spin .7s linear infinite;
}

.secure-access {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
  color: var(--ops-muted);
  font-size: 9px;
  letter-spacing: .035em;
}

.secure-access i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43c78b;
  box-shadow: 0 0 9px rgba(67,199,139,.7);
}

@keyframes intelligence-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  body.premium-ops.login-body .login-shell { border-radius: 24px; }
  body.premium-ops.login-body .login-copy {
    display: block !important;
    min-height: 142px;
    padding: 26px 28px;
  }
  body.premium-ops.login-body .login-brand-card { width: 156px; margin: 0 0 18px; }
  body.premium-ops.login-body .suite-signature { margin: 0; }
  body.premium-ops.login-body .login-copy h1,
  body.premium-ops.login-body .login-copy p,
  body.premium-ops.login-body .login-capabilities { display: none; }
  body.premium-ops.login-body .login-card { min-height: 430px; padding: 36px 28px; }
}

/* Intelligence Center: execução, handoff e timeline compartilhada */
.intelligence-workspace{overflow:hidden}
.intelligence-workspace-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;padding:0 22px 18px}
.intelligence-form{display:flex;flex-direction:column;gap:11px;padding:18px;border:1px solid color-mix(in srgb,var(--accent,#e63854) 22%,var(--line));border-radius:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface-2,#15171c) 92%,var(--accent,#e63854)),var(--surface-2,#15171c))}
.intelligence-form h3,.timeline-title h3{margin:0;font-size:1rem}.intelligence-form>p{margin:0 0 2px;color:var(--muted);font-size:.82rem;line-height:1.5}
.intelligence-form label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:.74rem;font-weight:750;text-transform:uppercase;letter-spacing:.055em}
.intelligence-form select,.intelligence-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:var(--surface,#111318);color:var(--text);padding:10px 11px;font:inherit;text-transform:none;letter-spacing:0;resize:vertical}
.intelligence-form select:focus,.intelligence-form textarea:focus{outline:2px solid color-mix(in srgb,var(--accent,#e63854) 45%,transparent);border-color:var(--accent,#e63854)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.intelligence-primary,.intelligence-secondary{min-height:42px;border-radius:11px;border:1px solid transparent;padding:10px 14px;font-weight:800;cursor:pointer}
.intelligence-primary{background:linear-gradient(135deg,#ef4d67,#b91f3b);color:#fff;box-shadow:0 10px 24px rgba(185,31,59,.2)}
.intelligence-secondary{background:transparent;color:var(--text);border-color:color-mix(in srgb,var(--accent,#e63854) 42%,var(--line))}
.intelligence-primary:hover,.intelligence-secondary:hover{transform:translateY(-1px);filter:brightness(1.08)}
.intelligence-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:0 22px 20px;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--line)}
.intelligence-kpis span{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;background:var(--surface-2,#15171c);color:var(--muted);font-size:.78rem}.intelligence-kpis b{color:var(--text);font-size:1rem}
.shared-timeline{margin:0 22px 22px;padding:16px 18px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--surface-2,#15171c) 92%,transparent)}
.timeline-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.timeline-title span{color:var(--muted);font-size:.73rem}
.shared-timeline-item{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:10px;padding:11px 0;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.shared-timeline-item:first-of-type{border-top:0}.shared-timeline-item>i{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#718096;box-shadow:0 0 0 4px rgba(113,128,150,.1)}
.shared-timeline-item.level-critical>i{background:#ef4d67}.shared-timeline-item.level-attention>i{background:#f0a13a}.shared-timeline-item.level-success>i{background:#35bb7a}
.shared-timeline-item div{display:flex;min-width:0;flex-direction:column;gap:3px}.shared-timeline-item div>span{color:var(--muted);font-size:.66rem;text-transform:uppercase;letter-spacing:.07em}.shared-timeline-item strong{font-size:.84rem}.shared-timeline-item p{margin:0;color:var(--muted);font-size:.77rem;line-height:1.45}.shared-timeline-item time{color:var(--muted);font-size:.69rem;white-space:nowrap}
@media(max-width:820px){.intelligence-workspace-grid{grid-template-columns:1fr}.intelligence-kpis{grid-template-columns:1fr}.shared-timeline-item{grid-template-columns:12px 1fr}.shared-timeline-item time{grid-column:2}.form-row{grid-template-columns:1fr}}
.handoff-resolve{display:flex;gap:8px;margin-top:8px}.handoff-resolve input{min-width:0;flex:1;border:1px solid var(--line);border-radius:9px;background:var(--surface,#111318);color:var(--text);padding:8px 10px}.handoff-resolve button{border:1px solid color-mix(in srgb,var(--accent,#e63854) 45%,var(--line));border-radius:9px;background:transparent;color:var(--text);padding:8px 11px;font-weight:750;cursor:pointer}
