:root {
  --bg: #f4f7fb;
  --panel: #fff;
  --line: #e2e8f1;
  --line-strong: #cbd7e6;
  --text: #0c1f3a;
  --muted: #65758b;
  --primary: #1769e0;
  --primary-dark: #0e56bf;
  --navy: #081b35;
  --green: #0f9660;
  --yellow: #b87500;
  --orange: #e65f18;
  --red: #d52f3e;
  --purple: #7048c8;
  --shadow: 0 10px 30px rgba(23, 48, 82, 0.07);
}
html {
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(180deg, #f8fafe 0, #f3f6fb 280px);
  letter-spacing: 0.002em;
}
.topbar {
  height: 76px;
  padding: 0 3vw;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(18, 44, 77, 0.06);
}
.topbar-inner {
  width: 100%;
  max-width: 1520px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  min-width: 215px;
}
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #0c65df, #633dd2);
  box-shadow: 0 8px 18px rgba(38, 92, 210, 0.24);
  overflow: hidden;
}
.brand-mark:before,
.brand-mark:after,
.brand-mark span {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}
.brand-mark:before {
  width: 28px;
  height: 28px;
  left: 5px;
  top: 15px;
}
.brand-mark:after {
  width: 18px;
  height: 18px;
  left: 10px;
  top: 20px;
}
.brand-mark span {
  width: 8px;
  height: 8px;
  left: 15px;
  top: 25px;
  background: #fff;
}
.brand-copy {
  line-height: 1.15;
}
.main-nav {
  display: flex;
  align-self: stretch;
  gap: 5px;
}
.main-nav a {
  display: flex;
  align-items: center;
  padding: 0 17px;
  color: #53657c;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-color: var(--primary);
}
.account-area {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #53657c;
}
.account-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--primary);
  font-weight: 800;
}
.account-name {
  font-weight: 600;
}
.account-area form {
  margin: 0;
}
.link-button {
  padding: 8px 10px;
  border-radius: 8px;
}
.link-button:hover {
  background: #f1f5fa;
  color: var(--red);
}
.container {
  max-width: 1520px;
  padding: 34px 3vw 70px;
  min-height: calc(100vh - 136px);
}
.footer {
  max-width: 1520px;
  margin: auto;
  padding: 18px 3vw 25px;
  display: flex;
  justify-content: space-between;
  color: #8795a8;
  font-size: 12px;
}
.footer span:first-child {
  font-weight: 700;
  color: #5b6e88;
}
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin: 4px 0 28px;
}
.dashboard-hero h1,
.page-heading h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 5px 0 7px;
}
.dashboard-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.eyebrow {
  display: block;
  color: var(--primary);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 7px 0;
}
.eyebrow.light {
  color: #8ebcf8;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-metric {
  text-align: right;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.hero-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-metric strong {
  font-size: 20px;
}
.button {
  min-height: 40px;
  border-radius: 10px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(30, 69, 113, 0.1);
}
.button.primary {
  background: linear-gradient(135deg, var(--primary), #2456cf);
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.2);
}
.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #1947bd);
}
.button.ghost {
  border-color: transparent;
  background: #f3f6fa;
}
.button-icon {
  font-size: 18px;
  margin-right: 7px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stats article.stat-card {
  min-height: 112px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(25, 55, 94, 0.045);
  display: flex;
  align-items: center;
  gap: 14px;
}
.stats article.stat-card:hover {
  border-color: #cad9ec;
  box-shadow: var(--shadow);
}
.stat-card > div:last-child {
  min-width: 0;
}
.stats .stat-card span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--muted);
  white-space: nowrap;
}
.stats .stat-card strong {
  font-size: 25px;
  line-height: 1.15;
  margin: 3px 0;
  color: var(--text);
  letter-spacing: -0.025em;
}
.stats .stat-card strong.money {
  font-size: 20px;
}
.stats .stat-card small {
  display: block;
  color: #8a98aa;
  font-size: 11px;
  white-space: nowrap;
}
.stats .stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  place-items: center;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.stat-icon.blue {
  background: #e9f2ff;
  color: #1769e0;
}
.stat-icon.green {
  background: #e2f7ed;
  color: #07824e;
}
.stat-icon.orange {
  background: #fff0e5;
  color: #d75612;
}
.stat-icon.yellow {
  background: #fff5d9;
  color: #9a6500;
}
.stat-icon.red {
  background: #ffe8eb;
  color: #c52635;
}
.stat-icon.purple {
  background: #f0eaff;
  color: #6842c2;
}
.panel {
  border-color: var(--line);
  border-radius: 15px;
  box-shadow: 0 5px 22px rgba(25, 55, 94, 0.045);
  padding: 22px;
}
.panel-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}
.panel-toolbar h2,
.panel-title h2 {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.panel-toolbar p,
.panel-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.search input {
  min-width: 330px;
  margin: 0;
  padding-left: 36px;
  background: #f9fbfd;
}
.search-icon {
  position: absolute;
  left: 12px;
  color: #8090a5;
  font-size: 18px;
  z-index: 1;
}
.filter-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: #f2f5f9;
  overflow: auto;
}
.filter-tab {
  border: 0;
  background: transparent;
  color: #617289;
  padding: 8px 13px;
  border-radius: 8px;
  white-space: nowrap;
  font:
    600 12px "Segoe UI",
    sans-serif;
  cursor: pointer;
}
.filter-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 9px;
  background: #e1e8f1;
  font-size: 10px;
}
.filter-tab:hover {
  color: var(--text);
}
.filter-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(25, 55, 94, 0.1);
}
.customer-table th {
  padding-top: 14px;
  padding-bottom: 14px;
}
.customer-table td {
  height: 69px;
}
.customer-table tbody tr {
  transition: background 0.15s ease;
}
.customer-table tbody tr:hover {
  background: #f8fbff;
}
.customer-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.customer-link strong {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #e8f1ff, #edf0ff);
  color: #315fb4;
  font-size: 13px;
  font-weight: 800;
}
.plan-name {
  display: inline-block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.muted {
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
}
.badge i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.archived,
.badge.cancelled {
  background: #e8edf3;
  color: #68788d;
}
.due {
  color: var(--text);
  font-size: 13px;
}
.due.attention {
  color: var(--orange);
}
.row-open {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--primary);
  text-decoration: none;
  font-size: 18px;
}
.row-open:hover {
  background: #eaf2ff;
}
.empty strong,
.empty span {
  display: block;
}
.empty strong {
  color: var(--text);
  font-size: 14px;
}
.filter-empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}
.page-heading {
  align-items: flex-end;
  margin-bottom: 23px;
}
.page-heading .back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.license-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  margin: -4px 0 18px;
  border: 1px solid #cfe6dc;
  border-radius: 15px;
  background: linear-gradient(100deg, #f1fbf6, #fff);
}
.license-banner > div:nth-child(2) {
  flex: 1;
}
.license-banner-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: #dff6ea;
}
.license-banner-icon span {
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
  margin-top: -4px;
}
.license-kicker {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.license-banner h2 {
  margin: 2px 0;
  font-size: 17px;
}
.license-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.license-banner.grace {
  border-color: #f3d698;
  background: linear-gradient(100deg, #fff9e9, #fff);
}
.license-banner.grace .license-banner-icon {
  background: #fff0c5;
}
.license-banner.grace .license-banner-icon span,
.license-banner.blocked .license-banner-icon span,
.license-banner.suspended .license-banner-icon span,
.license-banner.archived .license-banner-icon span {
  width: 4px;
  height: 18px;
  border: 0;
  border-radius: 3px;
  transform: none;
  margin: 0;
  background: var(--yellow);
}
.license-banner.blocked,
.license-banner.suspended {
  border-color: #f1c4c9;
  background: linear-gradient(100deg, #fff3f4, #fff);
}
.license-banner.blocked .license-banner-icon,
.license-banner.suspended .license-banner-icon {
  background: #ffe1e5;
}
.license-banner.blocked .license-banner-icon span,
.license-banner.suspended .license-banner-icon span {
  background: var(--red);
}
.license-banner.archived {
  border-color: #d8e0e9;
  background: #f7f9fb;
}
.license-banner.archived .license-banner-icon {
  background: #e9eef4;
}
.license-banner.archived .license-banner-icon span {
  background: #718096;
}
.stats.details {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stats.details article {
  min-height: 105px;
}
.stats.details article small {
  display: block;
  color: #8a98aa;
  font-size: 11px;
  margin-top: 4px;
}
.activation-box {
  box-shadow: 0 8px 22px rgba(23, 105, 224, 0.08);
}
.activation-code {
  display: flex;
  align-items: center;
  gap: 10px;
}
.activation-box code {
  padding: 8px 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed #91b9ee;
}
.copy-button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.copy-button.copied {
  background: var(--green);
}
.two-columns {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
}
.panel-title > div {
  position: relative;
}
.section-icon {
  float: left;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 11px;
  border-radius: 9px;
  background: #eaf2ff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}
.panel-title > div h2,
.panel-title > div p {
  margin-left: 45px;
}
.form-safe-note {
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
  align-self: center;
}
.info-list a {
  color: var(--primary);
  text-decoration: none;
}
.security-note {
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 0;
}
.locked-info {
  padding: 12px 14px;
  margin-top: 16px;
  border-radius: 9px;
  background: #f0f4f9;
  color: #52667f;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-actions a {
  color: var(--primary);
  text-decoration: none;
}
.row-actions form {
  margin: 0;
}
.stack-actions {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.form-panel {
  max-width: 1120px;
}
.form-grid {
  gap: 18px;
}
.form-grid label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  border-color: #cdd8e6;
  border-radius: 9px;
  padding: 11px 12px;
  text-transform: none;
  letter-spacing: 0;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.search input:focus,
.login-card input:focus {
  outline: none;
  border-color: #70a5ed;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}
.form-grid input[readonly] {
  background: #f3f6f9;
  color: #738197;
}
.form-grid label small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 5px;
}
.form-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 4px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
}
.form-section-heading:not(:first-of-type) {
  margin-top: 12px;
}
.form-section-heading > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}
.form-section-heading strong,
.form-section-heading small {
  display: block;
}
.form-section-heading strong {
  font-size: 13px;
}
.form-section-heading small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  box-shadow: 0 5px 18px rgba(25, 55, 94, 0.05);
}
.alert > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 800;
}
.alert.success {
  border-color: #bce8d2;
}
.alert.success > span {
  background: #bcebd3;
}
.alert.error {
  border-color: #f2c3c8;
}
.alert.error > span {
  background: #ffcbd0;
}
.validation {
  padding: 12px 15px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.validation:empty {
  display: none;
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 13% 12%, rgba(57, 123, 222, 0.3), transparent 30%),
    linear-gradient(135deg, #071a32, #0d2d57 58%, #173a68);
}
.login-shell {
  width: min(1040px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 8, 24, 0.4);
  background: #fff;
}
.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 46px 52px;
  color: #fff;
  background: linear-gradient(145deg, rgba(7, 27, 55, 0.97), rgba(19, 73, 136, 0.92)),
    radial-gradient(circle at 80% 20%, #347ce0, transparent 40%);
  overflow: hidden;
}
.login-showcase:after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -130px;
  bottom: -160px;
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.025),
    0 0 0 110px rgba(255, 255, 255, 0.02);
}
.login-showcase .brand {
  color: #fff;
  z-index: 1;
}
.login-showcase .brand small {
  color: #a9c5e7;
}
.login-message {
  margin: auto 0;
  max-width: 520px;
  z-index: 1;
}
.login-message h1 {
  font-size: 39px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 10px 0 18px;
}
.login-message p {
  max-width: 480px;
  color: #bad0e9;
  font-size: 16px;
}
.login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  z-index: 1;
  color: #c9dcf2;
  font-size: 12px;
}
.login-features i {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 5px;
  border-radius: 50%;
  background: rgba(63, 213, 143, 0.17);
  color: #6be3a8;
  font-style: normal;
}
.login-legal {
  position: relative;
  z-index: 1;
  margin-top: 25px;
  color: #7898bc;
}
.login-card {
  width: auto;
  border: 0;
  border-radius: 0;
  padding: 58px 54px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}
.login-lock {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  min-width: 39px;
  border-radius: 12px;
  background: #eaf2ff;
  color: var(--primary);
  font-size: 10px;
}
.login-card h2 {
  font-size: 25px;
  margin: 0 0 4px;
}
.login-card-heading p {
  margin: 0;
  color: var(--muted);
}
.login-card label {
  font-size: 12px;
}
.login-card input {
  border-radius: 10px;
  padding: 12px;
}
.login-submit {
  justify-content: space-between;
  margin-top: 14px;
  padding-left: 18px;
  padding-right: 15px;
}
.login-submit span {
  font-size: 18px;
}
.login-security {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7b8a9d;
  font-size: 11px;
}
.login-security p {
  margin: 0;
}
@media (max-width: 1280px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .account-name {
    display: none;
  }
  .customer-table {
    min-width: 1050px;
  }
}
@media (max-width: 960px) {
  .topbar {
    height: auto;
    padding: 12px 18px;
  }
  .topbar-inner {
    flex-wrap: wrap;
  }
  .main-nav {
    order: 3;
    width: 100%;
    height: 38px;
  }
  .topbar .main-nav a {
    display: flex;
    padding: 0 12px;
  }
  .container {
    padding: 25px 18px 55px;
  }
  .dashboard-hero,
  .panel-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-actions {
    width: 100%;
    justify-content: space-between;
  }
  .search {
    width: 100%;
  }
  .search input {
    min-width: 0;
    flex: 1;
  }
  .stats.details {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .login-showcase {
    display: none;
  }
  .login-card {
    min-height: 560px;
  }
}
@media (max-width: 640px) {
  .account-badge,
  .account-name {
    display: none;
  }
  .brand {
    min-width: auto;
  }
  .topbar-inner {
    gap: 10px;
  }
  .stats,
  .stats.details {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-metric {
    text-align: left;
    border: 0;
    padding: 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .license-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .license-banner .badge {
    margin-left: 60px;
  }
  .activation-box {
    display: block;
  }
  .activation-code {
    align-items: stretch;
    flex-direction: column;
    margin-top: 13px;
  }
  .activation-box code {
    font-size: 12px;
    word-break: break-all;
  }
  .filter-tabs {
    margin-left: -4px;
    margin-right: -4px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2,
  .span-3 {
    grid-column: span 1;
  }
  .form-section-heading.span-3 {
    grid-column: span 1;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .form-actions .button {
    width: 100%;
  }
  .form-safe-note {
    text-align: center;
    margin: 0;
  }
  .login-body {
    padding: 0;
    background: #fff;
  }
  .login-shell {
    min-height: 100vh;
    border-radius: 0;
  }
  .login-card {
    padding: 42px 26px;
  }
  .footer {
    padding: 18px;
    flex-direction: column;
    gap: 3px;
  }
  .customer-panel {
    padding: 17px 12px;
  }
}

/* Estrutura profissional do portal 2.0 */
.app-body {
  background: #f3f6fb;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 260px;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #081a32 0%, #0b2343 58%, #0d2a50 100%);
  color: #fff;
  box-shadow: 12px 0 35px rgba(8, 27, 53, 0.09);
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-account .account-badge {
  background: rgba(61, 133, 229, 0.22);
  color: #b9d7ff;
}
.sidebar-account > div {
  min-width: 0;
  flex: 1;
}
.sidebar-account strong,
.sidebar-account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-account strong {
  font-size: 11px;
}
.sidebar-account small {
  color: #7896ba;
  font-size: 9px;
}
.sidebar-account form {
  margin: 0;
}
.logout-button {
  border: 0;
  background: transparent;
  color: #8ba6c5;
  font-size: 16px;
  cursor: pointer;
}
.logout-button:hover {
  color: #fff;
}
.app-content {
  min-height: 100vh;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.menu-toggle {
  display: none;
  border: 0;
  background: #edf3fa;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  color: var(--text);
  font-size: 18px;
}
.app-content .container {
  width: 100%;
  max-width: 1580px;
}
.app-content .footer {
  width: 100%;
  max-width: 1580px;
}
.sidebar-backdrop {
  display: none;
}
.finance-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.license-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.finance-overview {
  padding: 24px 26px;
}
.finance-progress-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.finance-progress-copy h2 {
  font-size: 19px;
}
.finance-progress-copy > strong {
  font-size: 18px;
}
.finance-progress-copy > strong small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.progress-track {
  height: 9px;
  margin: 18px 0 11px;
  border-radius: 10px;
  background: #e7edf5;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #1769e0, #22b879);
  box-shadow: 0 0 14px rgba(23, 105, 224, 0.24);
}
.finance-progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.filter-tabs.inline {
  margin: 0;
}
.customer-link.compact .customer-avatar {
  width: 31px;
  height: 31px;
  min-width: 31px;
  border-radius: 9px;
}
.customer-link.simple {
  display: inline;
  color: var(--text);
}
.button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}
.info-callout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 2px;
  padding: 18px 20px;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  background: #f4f9ff;
  color: #405b7b;
}
.info-callout-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  min-width: 31px;
  border-radius: 9px;
  background: #dcecff;
  color: var(--primary);
  font-weight: 800;
}
.info-callout p {
  margin: 3px 0 0;
  font-size: 12px;
}
.license-table {
  min-width: 1180px;
}
@media (max-width: 1280px) {
  .finance-stats,
  .license-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-102%);
    transition: transform 0.2s ease;
  }
  .app-content {
    margin-left: 0;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(5, 18, 36, 0.45);
    backdrop-filter: blur(2px);
  }
  .sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-open .sidebar-backdrop {
    display: block;
  }
  .app-content .container {
    padding-top: 24px;
  }
  .filter-tabs.inline {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .finance-stats,
  .license-stats {
    grid-template-columns: 1fr;
  }
  .finance-progress-copy {
    align-items: flex-start;
    flex-direction: column;
  }
  .finance-progress-meta {
    gap: 7px;
    flex-direction: column;
  }
}

/* Portal 2.1: navegação, segurança, cobranças e relatórios */
.sidebar {
  overflow-y: auto;
}
.sidebar-account a {
  color: inherit;
  text-decoration: none;
}
.logout-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.charge-details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.charge-actions {
  display: grid;
  gap: 10px;
}
.charge-actions form {
  margin: 0;
}
.button.full {
  width: 100%;
  justify-content: center;
}
.break-value {
  max-width: 580px;
  overflow-wrap: anywhere;
}
.single-column {
  grid-template-columns: 1fr;
}
.users-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.75fr);
}
.permission-note {
  padding: 13px 14px;
  border-radius: 10px;
  background: #f4f8fd;
  color: #526982;
}
.permission-note strong {
  font-size: 12px;
  color: var(--text);
}
.permission-note p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
.link-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
}
.narrow-panel {
  max-width: 620px;
}
.forgot-link {
  display: block;
  margin: -5px 0 4px;
  text-align: right;
  font-size: 12px;
}
.recovery-card {
  width: min(480px, calc(100% - 32px));
  padding: 38px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 8, 24, 0.35);
}
.recovery-card .brand {
  margin-bottom: 32px;
}
.recovery-card h1 {
  font-size: 28px;
  margin: 6px 0 8px;
}
.recovery-card > p {
  color: var(--muted);
  margin: 0 0 22px;
}
.recovery-success {
  padding: 20px;
  border: 1px solid #bce8d2;
  border-radius: 13px;
  background: #f0fbf6;
}
.recovery-success strong {
  font-size: 17px;
}
.recovery-success p {
  margin: 6px 0 0;
  color: var(--muted);
}
.back-login {
  display: block;
  margin-top: 22px;
  font-size: 12px;
}
.report-filter {
  margin-bottom: 18px;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.inline-form label {
  font-size: 11px;
  font-weight: 700;
}
.inline-form input {
  display: block;
  margin-top: 5px;
}
.report-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.setting-card {
  position: relative;
}
.setting-card > div h2 {
  font-size: 17px;
  margin: 0;
}
.setting-card > div p {
  color: var(--muted);
  font-size: 12px;
}
.setting-card dl {
  margin: 16px 0 0;
}
.setting-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.setting-card dt {
  color: var(--muted);
}
.setting-card dd {
  margin: 0;
  text-align: right;
}
.setting-status {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.setting-status.ok {
  background: #25b879;
  box-shadow: 0 0 0 5px rgba(37, 184, 121, 0.1);
}
.setting-status.warning {
  background: #e4a014;
  box-shadow: 0 0 0 5px rgba(228, 160, 20, 0.1);
}
.badge.overdue {
  background: #ffe8eb;
  color: #c52635;
}
.search select {
  min-height: 40px;
  margin: 0;
  border: 1px solid #cdd8e6;
  border-radius: 9px;
  background: #fff;
}
.heading-actions {
  flex-wrap: wrap;
}
@media (max-width: 1280px) {
  .compact-stats,
  .charge-details,
  .report-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .users-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .compact-stats,
  .charge-details,
  .report-stats,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-form label,
  .inline-form input,
  .inline-form .button {
    width: 100%;
  }
  .search select {
    width: 100%;
  }
}
@media print {
  .sidebar,
  .no-print,
  .sidebar-backdrop {
    display: none !important;
  }
  .app-content {
    margin: 0;
  }
  .app-content .container {
    max-width: none;
    padding: 15px;
  }
  .panel,
  .stat-card {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .footer {
    padding: 10px 15px;
  }
  .table-wrap {
    overflow: visible;
  }
  body {
    background: #fff;
  }
}

/* Portal 2.2: dashboard gerencial e carteira operacional */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
}
.dashboard-grid .panel {
  margin: 0;
}
.dashboard-money {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 20px;
}
.dashboard-money strong {
  font-size: 30px;
  letter-spacing: -0.035em;
}
.dashboard-money span {
  color: var(--muted);
  font-size: 12px;
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-actions a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  text-decoration: none;
  background: #fbfcfe;
}
.quick-actions a:hover {
  border-color: #9dbde7;
  background: #f4f8ff;
}
.quick-actions strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eaf2ff;
  color: var(--primary);
  font-size: 12px;
}
.quick-actions span,
.quick-actions small {
  display: block;
}
.quick-actions span {
  font-size: 12px;
  font-weight: 700;
}
.quick-actions small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.attention-panel {
  grid-column: 1;
}
.health-panel {
  grid-column: 2;
}
.attention-list {
  display: grid;
}
.attention-list > a {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 11px;
  padding: 11px 3px;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.attention-list > a:first-child {
  border-top: 0;
}
.attention-list > a > span:nth-child(2) strong,
.attention-list > a > span:nth-child(2) small {
  display: block;
}
.attention-list > a > span:nth-child(2) small {
  color: var(--muted);
  font-size: 10px;
}
.attention-status {
  text-align: right;
}
.attention-status b,
.attention-status small {
  display: block;
}
.attention-status b {
  font-size: 10px;
  text-transform: uppercase;
}
.attention-status b.grace {
  color: #9a6500;
}
.attention-status b.blocked,
.attention-status b.suspended {
  color: #c52635;
}
.attention-status small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.attention-list > a > i {
  color: var(--primary);
  font-style: normal;
}
.healthy-state {
  padding: 24px;
  text-align: center;
  border-radius: 11px;
  background: #f0fbf6;
  color: #31775a;
}
.healthy-state p {
  margin: 4px 0 0;
  font-size: 12px;
}
.health-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  margin-top: 17px;
}
.health-row span {
  font-size: 11px;
  color: var(--muted);
}
.health-row strong {
  font-size: 12px;
}
.health-row > div {
  grid-column: 1/-1;
  height: 7px;
  border-radius: 6px;
  background: #edf1f6;
  overflow: hidden;
}
.health-row i {
  display: block;
  height: 100%;
  border-radius: 6px;
}
.health-row i.green {
  background: #25b879;
}
.health-row i.yellow {
  background: #e4a014;
}
.health-row i.red {
  background: #dc4c5a;
}
.health-row i.gray {
  background: #94a0b0;
}
.customer-filter-panel {
  padding: 16px 20px;
  margin-bottom: 18px;
}
.customer-filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(130px, 0.65fr)) auto auto;
  align-items: end;
  gap: 10px;
}
.customer-filter-grid label > span {
  display: block;
  margin: 0 0 5px;
  color: #617289;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.customer-filter-grid input,
.customer-filter-grid select {
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid #cdd8e6;
  border-radius: 9px;
  background: #fff;
}
.customer-table.expanded {
  min-width: 1450px;
}
.customer-table.expanded td {
  height: 76px;
}
.customer-table.expanded th {
  white-space: nowrap;
}
.tags-inline {
  display: block;
  max-width: 250px;
  margin-top: 3px;
  color: #6782a3;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-tabs {
  position: sticky;
  top: 64px;
  z-index: 15;
  display: flex;
  gap: 5px;
  margin: -6px 0 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  overflow: auto;
}
.customer-tabs a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #5e7086;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.customer-tabs a:hover {
  color: var(--primary);
  background: #edf4ff;
}
.field-updated select {
  border-color: #4d9b75 !important;
  box-shadow: 0 0 0 3px rgba(37, 184, 121, 0.1);
}
html {
  scroll-behavior: smooth;
}
.customer-list-hero {
  margin-bottom: 18px;
}
.dense-list {
  padding-top: 19px;
}
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .attention-panel,
  .health-panel {
    grid-column: auto;
  }
  .customer-filter-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .filter-search {
    grid-column: span 2;
  }
}
@media (max-width: 800px) {
  .customer-filter-grid {
    grid-template-columns: 1fr;
  }
  .filter-search {
    grid-column: auto;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .customer-tabs {
    top: 64px;
    margin-left: -4px;
    margin-right: -4px;
  }
  .dashboard-grid {
    gap: 14px;
  }
}

/* Portal 2.3: cobrança Pix e impressão */
.pix-payment-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 22px;
  margin: 4px 0 22px;
  padding: 18px;
  border: 1px solid #cfe2f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f9ff, #fff);
}
.pix-payment-card img {
  display: block;
  width: 180px;
  height: 180px;
  padding: 7px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fff;
}
.pix-payment-card strong {
  display: block;
  margin: 4px 0;
  font-size: 27px;
  letter-spacing: -0.025em;
}
.pix-payment-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.pix-payment-card .button.copied {
  background: var(--green);
  color: #fff;
}
.setting-card dd {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .pix-payment-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pix-payment-card img {
    margin: auto;
  }
}

/* === Portal v3 · visual enterprise === */
:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --line: #e6eaf0;
  --line-strong: #d4dbe5;
  --text: #0f1f35;
  --muted: #6f7d90;
  --primary: #2463eb;
  --primary-dark: #1d4ed8;
  --navy: #0b1728;
  --green: #0b8f63;
  --yellow: #b77900;
  --red: #c93443;
  --shadow: 0 10px 28px rgba(20, 38, 62, 0.055);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
.sidebar {
  width: 238px;
  padding: 18px 14px 14px;
  background: #0c1a2d;
  box-shadow: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar .mltech-brand {
  width: 172px;
  border-radius: 10px;
  padding: 7px;
  box-shadow: none;
}
.sidebar-account {
  padding-top: 12px;
}
.app-content {
  margin-left: 238px;
}
.app-content .container {
  max-width: 1380px;
  padding: 28px 28px 64px;
}
.app-content .footer {
  max-width: 1380px;
  padding-left: 28px;
  padding-right: 28px;
}
.dashboard-hero,
.page-heading {
  margin: 0 0 20px;
  align-items: center;
}
.dashboard-hero h1,
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -0.03em;
  margin: 4px 0 5px;
}
.dashboard-hero p,
.page-heading p {
  font-size: 13px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.13em;
  margin: 0 0 5px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: none;
}
.panel:hover {
  border-color: #dce2ea;
}
.button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 9px;
  border-color: #d6dde7;
  background: #fff;
  color: #253955;
  box-shadow: none !important;
  transform: none !important;
}
.button:hover {
  background: #f8fafc;
  border-color: #c7d1dd;
  transform: none;
}
.button.primary {
  background: #2463eb;
  border-color: #2463eb;
  box-shadow: none;
}
.button.primary:hover {
  background: #1d4ed8;
}
.stats {
  gap: 12px;
}
.stats article.stat-card {
  min-height: 104px;
  border-radius: 14px;
  padding: 16px;
  box-shadow: none;
}
.stats article.stat-card:hover {
  box-shadow: none;
  border-color: #d7dee8;
}
.stat-icon {
  box-shadow: none;
}
table {
  font-size: 13px;
}
th {
  background: #fafbfc;
  color: #7c899b;
  font-size: 9px;
  letter-spacing: 0.07em;
  padding: 10px 12px;
}
td {
  padding: 12px;
  border-bottom-color: #eef1f4;
}
tbody tr:hover {
  background: #fafcff;
}
.badge,
.quote-status {
  box-shadow: none;
}
.form-grid label {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #526276;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  min-height: 40px;
  border-radius: 9px;
  border-color: #d8e0e9;
  background: #fff;
  font-size: 13px;
}
.form-grid textarea {
  min-height: auto;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.search input:focus,
.login-card input:focus {
  border-color: #7aa7f5;
  box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.09);
}
.alert {
  border-radius: 10px;
  box-shadow: none;
}
.settings-grid {
  gap: 14px;
}
.setting-card {
  min-height: 220px;
}
.customer-tabs {
  box-shadow: none;
}
@media (max-width: 900px) {
  .sidebar {
    width: 238px;
  }
  .app-content {
    margin-left: 0;
  }
  .app-content .container {
    padding: 22px 16px 50px;
  }
}

/* === Portal 2.6 · Workspace Wide Premium === */
@media (min-width: 1180px) {
  .app-content .container,
  .app-content .footer {
    width: 100%;
    max-width: none;
  }
  .app-content .container {
    padding-left: clamp(24px, 2.15vw, 42px);
    padding-right: clamp(24px, 2.15vw, 42px);
  }
  .app-content .footer {
    padding-left: clamp(24px, 2.15vw, 42px);
    padding-right: clamp(24px, 2.15vw, 42px);
  }
  .form-panel {
    max-width: none;
  }
  .dashboard-hero,
  .page-heading {
    width: 100%;
  }
  .customer-filter-panel,
  .customer-panel,
  .finance-overview,
  .report-filter,
  .settings-grid,
  .two-columns,
  .users-layout {
    width: 100%;
  }
  .customer-table.expanded {
    min-width: 1180px;
  }
  .license-table {
    min-width: 1080px;
  }
}
@media (min-width: 1500px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.65fr);
  }
  .two-columns {
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.7fr);
  }
  .users-layout {
    grid-template-columns: minmax(0, 1.85fr) minmax(360px, 0.65fr);
  }
  .settings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .customer-filter-grid {
    grid-template-columns: minmax(360px, 2.35fr) repeat(3, minmax(150px, 0.7fr)) auto auto;
  }
}
@media (min-width: 1800px) {
  .app-content .container,
  .app-content .footer {
    padding-left: 48px;
    padding-right: 48px;
  }
  .stats article.stat-card {
    min-height: 108px;
  }
}

/* === Inteligência de mercado === */
.market-hero {
  align-items: center;
}
.market-ai-status {
  position: relative;
  min-width: 300px;
  padding: 13px 16px 13px 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.market-ai-status .setting-status {
  left: 17px;
  right: auto;
  top: 18px;
}
.market-ai-status strong,
.market-ai-status small {
  display: block;
}
.market-ai-status strong {
  font-size: 12px;
}
.market-ai-status small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.market-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.55fr);
  gap: 16px;
  margin-bottom: 18px;
}
.market-layout .panel {
  margin: 0;
}
.market-search-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 150px 150px auto;
  align-items: end;
  gap: 10px;
}
.market-search-form label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5f6e82;
}
.market-search-form input,
.market-search-form select {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 5px;
  padding: 0 11px;
  border: 1px solid #d8e0e9;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}
.market-search-form button {
  height: 40px;
}
.market-search-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.market-config-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  background: #f7faff;
}
.market-config-note strong {
  font-size: 11px;
}
.market-config-note p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}
.market-config-note code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eef2f7;
  color: #29425f;
}
.market-last-run .info-list div {
  font-size: 11px;
}
.market-run-error {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #fff3f4;
  color: #a82d39;
  font-size: 10px;
  line-height: 1.45;
}
.market-results-panel {
  width: 100%;
}
.market-table {
  min-width: 1280px;
}
.market-table td {
  vertical-align: top;
}
.market-table .market-source {
  min-width: 320px;
  max-width: 520px;
}
.market-source a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.market-source small {
  margin-top: 5px;
  line-height: 1.35;
}
.market-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.market-row-actions form {
  margin: 0;
}
@media (min-width: 1500px) {
  .market-table {
    min-width: 0;
  }
  .market-source {
    width: 31%;
  }
}
@media (max-width: 1100px) {
  .market-stats {
    grid-template-columns: 1fr 1fr;
  }
  .market-layout {
    grid-template-columns: 1fr;
  }
  .market-search-form {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .market-ai-status {
    width: 100%;
    min-width: 0;
  }
  .market-stats {
    grid-template-columns: 1fr;
  }
  .market-search-form {
    grid-template-columns: 1fr;
  }
}

.market-coverage {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
}
.market-coverage.ok {
  color: #087d58;
}
.market-coverage.review {
  color: #a56a00;
}

.market-coverage.danger {
  color: #b4232d;
}

/* === Portal 2.6.7 · Login Premium === */
.login-body.login-premium {
  min-height: 100vh;
  padding: clamp(18px, 2.4vw, 42px);
  background: radial-gradient(circle at 8% 8%, rgba(38, 111, 226, 0.26), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(33, 184, 121, 0.12), transparent 24%),
    linear-gradient(135deg, #061629 0%, #0a2344 52%, #103564 100%);
}
.login-shell-premium {
  width: min(1240px, 100%);
  min-height: min(760px, calc(100vh - 70px));
  grid-template-columns: minmax(0, 1.16fr) minmax(410px, 0.84fr);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  box-shadow: 0 38px 110px rgba(0, 7, 20, 0.48);
  background: #fff;
}
.login-showcase-premium {
  position: relative;
  isolation: isolate;
  padding: 42px 48px 36px;
  background: linear-gradient(
      150deg,
      rgba(5, 22, 43, 0.98),
      rgba(8, 45, 86, 0.97) 62%,
      rgba(17, 74, 132, 0.95)
    ),
    #081b35;
}
.login-showcase-premium:after {
  display: none;
}
.login-showcase-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.17;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom right, #000, transparent 82%);
}
.login-showcase-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.login-showcase-glow-one {
  width: 390px;
  height: 390px;
  right: -150px;
  top: -110px;
  background: radial-gradient(circle, rgba(38, 116, 236, 0.33), rgba(38, 116, 236, 0) 68%);
}
.login-showcase-glow-two {
  width: 340px;
  height: 340px;
  left: -170px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(29, 193, 132, 0.16), rgba(29, 193, 132, 0) 70%);
}
.login-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.login-brand-premium {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(1, 10, 24, 0.18);
}
.login-brand-premium img {
  display: block;
  width: 158px;
  height: auto;
}
.login-environment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9c2df;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.login-environment i,
.login-secure-copy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d294;
  box-shadow: 0 0 0 4px rgba(53, 210, 148, 0.12);
}
.login-message-premium {
  position: relative;
  z-index: 2;
  margin: auto 0;
  max-width: 610px;
}
.login-product-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid rgba(112, 169, 245, 0.24);
  border-radius: 999px;
  background: rgba(43, 111, 205, 0.12);
  color: #8ebfff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.login-message-premium h1 {
  max-width: 600px;
  margin: 16px 0 16px;
  color: #fff;
  font-size: clamp(37px, 3.3vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.login-message-premium > p {
  max-width: 560px;
  margin: 0;
  color: #a9c0db;
  font-size: 15px;
  line-height: 1.65;
}
.login-product-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.login-product-points article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(149, 185, 229, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
}
.login-product-points article > div {
  min-width: 0;
}
.login-product-points strong,
.login-product-points small {
  display: block;
}
.login-product-points strong {
  color: #edf6ff;
  font-size: 10.5px;
  line-height: 1.3;
}
.login-product-points small {
  margin-top: 5px;
  color: #8fa9c8;
  font-size: 9px;
  line-height: 1.4;
}
.login-point-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: rgba(55, 130, 232, 0.15);
  color: #84b9ff;
}
.login-point-icon svg,
.login-access-icon svg,
.login-field-icon,
.login-password-toggle svg,
.login-security-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-point-icon svg {
  width: 16px;
  height: 16px;
}
.login-showcase-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6f91b8;
  font-size: 9px;
}
.login-showcase-footer span {
  font-weight: 800;
  color: #89a9cd;
  letter-spacing: 0.04em;
}
.login-showcase-footer small {
  font-size: 9px;
}

.login-card-premium {
  position: relative;
  width: auto;
  padding: clamp(38px, 4vw, 66px);
  background: #f9fbfe;
}
.login-form-panel {
  width: min(100%, 430px);
  margin: auto;
}
.login-mobile-brand {
  display: none;
}
.login-card-heading-premium {
  gap: 14px;
  margin-bottom: 27px;
}
.login-access-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid #d7e7fc;
  border-radius: 13px;
  background: linear-gradient(145deg, #eef5ff, #e2efff);
  color: #2268d8;
  box-shadow: 0 8px 20px rgba(35, 103, 216, 0.08);
}
.login-access-icon svg {
  width: 21px;
  height: 21px;
}
.login-card-heading-premium .eyebrow {
  color: #2463eb;
}
.login-card-heading-premium h2 {
  margin: 3px 0 5px;
  color: #0f2139;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.login-card-heading-premium p {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.45;
}
.login-alert {
  margin-bottom: 19px;
}
.login-form {
  display: block;
}
.login-field {
  display: block;
  margin: 15px 0 !important;
  color: #344a68 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.015em;
}
.login-field > span:first-child {
  display: block;
  margin-bottom: 7px;
}
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-card .login-input-wrap input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 46px 0 43px;
  border: 1px solid #cfdbea;
  border-radius: 11px;
  background: #fff;
  color: #10213a;
  font-size: 13px;
  outline: none;
  box-shadow: 0 2px 4px rgba(17, 43, 75, 0.02);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}
.login-card .login-input-wrap input::placeholder {
  color: #a0adbd;
}
.login-card .login-input-wrap input:focus {
  border-color: #4280df;
  box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.09);
  background: #fff;
}
.login-field-icon {
  position: absolute;
  left: 14px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: #8293a8;
  pointer-events: none;
}
.login-password-toggle {
  position: absolute;
  right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #73859b;
  cursor: pointer;
}
.login-password-toggle:hover {
  background: #eef4fb;
  color: #245fac;
}
.login-password-toggle:focus-visible {
  outline: 2px solid #4b83db;
  outline-offset: 1px;
}
.login-password-toggle svg {
  width: 18px;
  height: 18px;
}
.login-password-toggle .eye-closed {
  display: none;
}
.login-password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}
.login-password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}
.login-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 18px;
}
.login-secure-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #72849a;
  font-size: 10px;
  font-weight: 600;
}
.login-form-options .forgot-link {
  margin: 0;
  color: #2463eb;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.login-form-options .forgot-link:hover {
  text-decoration: underline;
}
.login-submit-premium {
  position: relative;
  min-height: 49px;
  margin-top: 0 !important;
  padding: 0 17px !important;
  border-radius: 11px !important;
  background: linear-gradient(105deg, #1769e0, #2b5fd1) !important;
  box-shadow: 0 10px 24px rgba(35, 98, 207, 0.22);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    opacity 0.14s ease;
}
.login-submit-premium:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(35, 98, 207, 0.27);
}
.login-submit-premium .login-submit-label {
  font-weight: 800;
}
.login-submit-arrow {
  font-size: 19px;
}
.login-submit-loading {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}
.login-submit-premium.is-loading .login-submit-arrow {
  display: none;
}
.login-submit-premium.is-loading .login-submit-loading {
  display: block;
}
.login-submit-premium:disabled {
  opacity: 0.82;
  cursor: wait;
}
@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}
.login-security-premium {
  gap: 11px;
  margin-top: 24px;
  padding-top: 19px;
}
.login-security-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  min-width: 29px;
  border-radius: 9px;
  background: #eef7f3;
  color: #19966a;
}
.login-security-icon svg {
  width: 15px;
  height: 15px;
}
.login-security-premium p {
  color: #78899d;
  font-size: 10px;
  line-height: 1.45;
}
.login-version {
  display: block;
  margin-top: 16px;
  color: #a2adbb;
  font-size: 9px;
  text-align: center;
}
@media (max-width: 1080px) {
  .login-shell-premium {
    grid-template-columns: 1fr minmax(390px, 0.9fr);
  }
  .login-showcase-premium {
    padding: 36px;
  }
  .login-message-premium h1 {
    font-size: 38px;
  }
  .login-product-points {
    grid-template-columns: 1fr;
  }
  .login-product-points article {
    display: grid;
    grid-template-columns: 31px 1fr;
    gap: 10px;
    align-items: start;
  }
  .login-product-points .login-point-icon {
    margin: 0;
  }
}
@media (max-width: 860px) {
  .login-body.login-premium {
    padding: 0;
    background: #f8fbff;
  }
  .login-shell-premium {
    min-height: 100vh;
    width: 100%;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .login-showcase-premium {
    display: none;
  }
  .login-card-premium {
    min-height: 100vh;
    padding: 38px 24px;
  }
  .login-mobile-brand {
    display: block;
    margin: 0 auto 34px;
    text-align: center;
  }
  .login-mobile-brand img {
    width: 170px;
    height: auto;
  }
}
@media (max-width: 480px) {
  .login-card-premium {
    padding: 30px 20px;
  }
  .login-form-panel {
    width: 100%;
  }
  .login-card-heading-premium {
    align-items: center;
  }
  .login-card-heading-premium h2 {
    font-size: 25px;
  }
  .login-form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .login-form-options .forgot-link {
    align-self: flex-end;
  }
}
