:root {
  --whmcs-bg: #edf3fb;
  --whmcs-panel: #ffffff;
  --whmcs-border: #d8e0ec;
  --whmcs-text: #2a3b57;
  --whmcs-muted: #6c7d98;
  --whmcs-primary: #2f74ef;
  --whmcs-primary-2: #58afff;
  --whmcs-sidebar: #1f2c43;
  --whmcs-sidebar-2: #263652;
  --whmcs-danger: #e74c3c;
  --whmcs-success: #2ecc71;
  --whmcs-warning: #f39c12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--whmcs-text);
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 116, 239, 0.13), transparent 30%),
    linear-gradient(135deg, #f5f8fc 0%, var(--whmcs-bg) 48%, #e7eef8 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1560px, 97vw);
  margin: 0 auto;
  padding: 18px 10px 22px;
}

/* Login */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 8% 4%, rgba(47, 116, 239, 0.26), transparent 35%),
    radial-gradient(circle at 90% 86%, rgba(88, 175, 255, 0.16), transparent 34%),
    linear-gradient(145deg, #eef5ff 0%, #f8fbff 54%, #e8eff8 100%);
}

.auth-wrap {
  width: min(1100px, 96vw);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.auth-card {
  border: 1px solid var(--whmcs-border);
  border-radius: 24px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(20, 40, 75, 0.12);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(88, 175, 255, 0.35), transparent 36%),
    linear-gradient(160deg, #13233f, #213a66);
  color: #eff6ff;
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88, 175, 255, 0.22), rgba(47, 116, 239, 0.04));
}

.auth-brand img {
  position: relative;
  z-index: 1;
  width: 210px;
  display: block;
  margin-bottom: 14px;
}

.auth-brand h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
}

.auth-brand p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: #cedbf1;
  line-height: 1.6;
}

.auth-brand ul {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #dfebff;
}

.auth-form h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.form {
  display: grid;
  gap: 11px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #3a4f70;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid #ccd7ea;
  border-radius: 10px;
  background: #fff;
  color: #20324f;
  padding: 11px 12px;
  font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: #6fa8ff;
  box-shadow: 0 0 0 3px rgba(47, 116, 239, 0.13);
}

.help-text {
  color: #7a8da9;
  font-size: 0.93rem;
  margin: 2px 0 0;
}

/* Main panel */
.panel-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 18px;
  border: 1px solid #263c62;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(88, 175, 255, 0.22), transparent 32%),
    linear-gradient(170deg, #182640, #223655 58%, #17243a);
  color: #deebff;
  box-shadow: 0 24px 60px rgba(26, 49, 84, 0.2);
}

.side-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(160, 187, 230, 0.18);
}

.side-brand img {
  height: 62px;
  width: auto;
}

.side-brand .small {
  margin-top: 8px;
  color: #a9bcda;
  font-size: 0.85rem;
}

.side-group {
  padding: 12px;
}

.side-title {
  font-size: 0.76rem;
  color: #9fb3d6;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #dbe8ff;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.side-nav a:hover {
  background: rgba(108, 148, 219, 0.16);
  border-color: rgba(120, 164, 238, 0.3);
  transform: translateX(2px);
}

.side-nav a.active {
  background: linear-gradient(120deg, rgba(47, 116, 239, 0.62), rgba(88, 175, 255, 0.34));
  border-color: rgba(116, 177, 255, 0.62);
  box-shadow: 0 12px 26px rgba(47, 116, 239, 0.22);
}

.side-status {
  padding: 12px;
  border-top: 1px solid rgba(160, 187, 230, 0.18);
}

.side-status h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.side-status p {
  margin: 6px 0;
  color: #c5d8f7;
  font-size: 0.88rem;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.dot.ok {
  background: #3ee07f;
}

.panel-main {
  min-width: 0;
}

.topbar {
  border: 1px solid var(--whmcs-border);
  border-radius: 18px;
  background: #fff;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 34px rgba(30, 50, 87, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-title {
  margin: 0;
  font-size: 1.04rem;
}

.breadcrumb {
  color: var(--whmcs-muted);
  font-size: 0.85rem;
  margin: 1px 0 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-chip {
  border: 1px solid #cad7ed;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f4f8ff;
  color: #2f476e;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.profile-form > .btn {
  grid-column: 1 / -1;
}

.profile-avatar-block {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 2px solid #d5e4fa;
  background: #f4f8ff;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(47, 116, 239, 0.14);
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: #2f74ef;
  font-weight: 800;
  font-size: 1.6rem;
}

.content {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.card {
  border: 1px solid var(--whmcs-border);
  border-radius: 18px;
  background: var(--whmcs-panel);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(30, 50, 87, 0.07);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 126px;
  background:
    radial-gradient(circle at 82% 10%, rgba(88, 175, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 5px solid var(--whmcs-primary);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero p {
  color: var(--whmcs-muted);
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  border: 1px solid #d8e1f0;
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 30px rgba(30, 50, 87, 0.06);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(47, 116, 239, 0.09);
}

.stat small {
  display: block;
  color: #7a8da9;
  margin-bottom: 5px;
}

.stat strong {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  color: #253b5f;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 100%;
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.service-card-head h3 {
  margin: 6px 0 0;
  font-size: 1.24rem;
}

.service-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #2761ac;
  background: #eaf3ff;
  border: 1px solid #c8ddfa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-meta div {
  border-radius: 12px;
  background: #f6f9fe;
  border: 1px solid #e0e8f5;
  padding: 10px;
}

.service-meta dt {
  color: #7a8da9;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.service-meta dd {
  margin: 0;
  color: #253b5f;
  font-weight: 700;
}

.service-card-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.module p {
  color: var(--whmcs-muted);
  margin: 0 0 12px;
  min-height: 48px;
}

.module .meta {
  color: #5d7192;
  font-size: 0.92rem;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  font: 700 0.93rem Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(120deg, var(--whmcs-primary), var(--whmcs-primary-2));
  box-shadow: 0 12px 26px rgba(47, 116, 239, 0.25);
}

.btn.ghost {
  border-color: #c6d4eb;
  color: #34527e;
  background: #f7faff;
}

.btn.ghost:hover {
  background: #edf4ff;
}

.btn.danger {
  background: #fff5f4;
  border-color: #f8c5c0;
  color: #c83f35;
}

/* Table */
.table-wrap {
  overflow: auto;
  border: 1px solid #d9e2f1;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.table th,
.table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid #e7edf7;
}

.table thead th {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #4c6387;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.table tbody tr:hover {
  background: #f7fbff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 4px 10px;
  font-weight: 700;
}

.badge.paid {
  color: #126036;
  background: #def8ea;
  border: 1px solid #ace6c7;
}

.badge.pending {
  color: #8a5100;
  background: #fff2dc;
  border: 1px solid #ffd79f;
}

.badge.overdue {
  color: #8f2431;
  background: #ffe4e8;
  border: 1px solid #ffc1ca;
}

.badge.draft {
  color: #596b86;
  background: #edf2fb;
  border: 1px solid #d3dff2;
}

.badge.canceled {
  color: #6e6e6e;
  background: #f2f2f2;
  border: 1px solid #e1e1e1;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.section-head p {
  margin: 0;
  color: var(--whmcs-muted);
}

.alert {
  border-radius: 9px;
  border: 1px solid;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-weight: 600;
}

.alert.success {
  border-color: #b2e7ca;
  background: #ebfbf2;
  color: #1e7a49;
}

.alert.ok {
  border-color: #b2e7ca;
  background: #ebfbf2;
  color: #1e7a49;
}

.alert.error {
  border-color: #f5c2be;
  background: #fff2f1;
  color: #bf3e35;
}

.panel-footer {
  margin-top: 12px;
  color: #8195b5;
  font-size: 0.84rem;
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ticket-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.ticket-item {
  border: 1px solid #cfdbef;
  border-radius: 13px;
  padding: 10px 12px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  background: #f6faff;
}

.ticket-item:hover {
  border-color: #7fb6ff;
  background: #ffffff;
}

.ticket-item.active {
  border-color: #4f94ff;
  box-shadow: 0 10px 24px rgba(47, 116, 239, 0.16);
  background: #fff;
}

.ticket-item strong {
  display: block;
  color: #223a5f;
  margin-bottom: 4px;
}

.ticket-item p {
  margin: 0;
  color: #6a7f9d;
  font-size: 0.9rem;
}

.ticket-thread {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ticket-msg {
  border: 1px solid #d7e3f4;
  border-radius: 14px;
  background: #f8fbff;
  padding: 11px 12px;
}

.ticket-msg header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.ticket-msg header strong {
  color: #2b446a;
}

.ticket-msg header span {
  color: #7d90ac;
  font-size: 0.86rem;
}

.ticket-msg p {
  margin: 0;
  color: #314a6d;
  line-height: 1.5;
}

.ticket-msg.mine {
  border-color: #acd2ff;
  background: linear-gradient(135deg, #eef6ff, #f9fcff);
}

@media (max-width: 1180px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .service-grid,
  .grid-2,
  .profile-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .panel-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

.notice-card {
  border-color: rgba(58, 141, 255, 0.28);
  background: linear-gradient(135deg, rgba(58, 141, 255, 0.08), rgba(255, 255, 255, 0.94));
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}

.mini-stats span {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f6faff;
  color: #587092;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.mini-stats strong {
  color: var(--text);
}

.integration-error {
  border: 1px solid rgba(244, 155, 0, 0.32);
  border-radius: 14px;
  background: rgba(255, 248, 230, 0.85);
  color: #9a6200;
  margin: 14px 0 0;
  padding: 10px 12px;
}

.field {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid #cddaf0;
  background: #f6faff;
  color: #1b2f50;
  font: inherit;
  padding: 10px 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.field:focus {
  outline: none;
  border-color: #5aa7ff;
  box-shadow: 0 0 0 3px rgba(65, 141, 255, 0.18);
  background: #fff;
}

textarea.field {
  min-height: 88px;
  resize: vertical;
}

/* HTWS Panel Pro
   Refinamento visual para aproximar a área do cliente de um painel WHMCS/ISP
   mantendo a lógica atual intacta. */
:root {
  --panel-bg: #eef4fb;
  --panel-surface: rgba(255, 255, 255, 0.92);
  --panel-surface-strong: #ffffff;
  --panel-blue: #2f74ef;
  --panel-blue-2: #55b8ff;
  --panel-navy: #14223a;
  --panel-navy-2: #22385d;
  --panel-text: #233754;
  --panel-muted: #647897;
  --panel-border: #d3dfef;
  --panel-glow: 0 24px 70px rgba(43, 91, 160, 0.14);
}

body {
  color: var(--panel-text);
  background:
    radial-gradient(circle at 2% 0%, rgba(47, 116, 239, 0.18), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(85, 184, 255, 0.16), transparent 30%),
    linear-gradient(140deg, #f7fbff 0%, var(--panel-bg) 50%, #e6eef8 100%) !important;
}

.shell {
  width: min(1500px, calc(100% - 28px));
  padding: 18px 0 26px;
}

.panel-shell {
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0)),
    linear-gradient(165deg, #13223b 0%, #213a62 54%, #14233c 100%);
  box-shadow: 0 26px 74px rgba(20, 40, 70, 0.22);
}

.side-brand {
  padding: 24px 22px 20px;
}

.side-brand img {
  height: 76px;
  max-width: 200px;
  object-fit: contain;
}

.side-brand .small {
  color: #c4d7f5;
  letter-spacing: 0.02em;
}

.side-group,
.side-status {
  padding-left: 14px;
  padding-right: 14px;
}

.side-nav a {
  min-height: 44px;
  border-radius: 14px;
  color: #e4eeff;
  font-size: 0.96rem;
}

.side-nav a::after {
  content: "›";
  color: rgba(196, 215, 245, 0.55);
}

.side-nav a.active {
  background:
    linear-gradient(90deg, rgba(47, 116, 239, 0.88), rgba(85, 184, 255, 0.52));
  box-shadow: 0 18px 36px rgba(47, 116, 239, 0.28);
}

.side-status {
  background: rgba(6, 14, 28, 0.18);
}

.topbar,
.card,
.stat {
  border-color: var(--panel-border);
  background: var(--panel-surface);
  box-shadow: var(--panel-glow);
  backdrop-filter: blur(14px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 68px;
  border-radius: 20px;
}

.topbar-title {
  color: #1d3150;
  font-size: 1.2rem;
}

.breadcrumb {
  color: var(--panel-muted);
}

.user-chip {
  border-color: #c8d8ef;
  background: linear-gradient(180deg, #ffffff, #f2f7ff);
  color: #294469;
}

.content {
  margin-top: 16px;
  gap: 16px;
}

.card {
  border-radius: 22px;
}

.hero {
  min-height: 150px;
  background:
    radial-gradient(circle at 86% 8%, rgba(85, 184, 255, 0.24), transparent 30%),
    linear-gradient(130deg, #ffffff 0%, #f5f9ff 54%, #eaf4ff 100%);
}

.hero::before {
  border-left: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--panel-blue), var(--panel-blue-2));
}

.hero h2 {
  color: #1f3554;
  letter-spacing: 0.03em;
}

.stats {
  gap: 12px;
}

.stat {
  border-radius: 20px;
  min-height: 104px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(247,251,255,0.94));
}

.stat::after {
  background: linear-gradient(135deg, rgba(47,116,239,0.12), rgba(85,184,255,0.2));
}

.stat small {
  color: #778bab;
  font-weight: 600;
}

.stat strong {
  color: #1f3658;
  font-size: 2rem;
}

.grid-3,
.service-grid {
  gap: 12px;
}

.module,
.service-card {
  position: relative;
  overflow: hidden;
}

.module::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--panel-blue), var(--panel-blue-2));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.module:hover::before,
.service-card:hover::before {
  opacity: 1;
}

.module h3,
.service-card-head h3,
.card h2,
.card h3 {
  color: #203756;
  letter-spacing: 0.025em;
}

.module p,
.module .meta,
.service-meta dt,
.section-head p {
  color: var(--panel-muted);
}

.btn {
  border-radius: 13px;
  min-height: 42px;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--panel-blue), var(--panel-blue-2));
  box-shadow: 0 14px 28px rgba(47, 116, 239, 0.22);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(47, 116, 239, 0.3);
}

.btn.ghost {
  border-color: #bfd1ea;
  background: #f8fbff;
  color: #2d4b75;
}

.btn.ghost:hover {
  border-color: var(--panel-blue);
  color: var(--panel-blue);
}

.btn.danger {
  background: #fff6f5;
  border-color: #f3c5bf;
}

.table-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.table {
  border-collapse: collapse;
}

.table thead th {
  background: #f0f5fc;
  color: #4d6383;
}

.table tbody tr {
  transition: background 0.16s ease;
}

.table tbody tr:hover {
  background: #eef7ff;
}

.badge {
  min-height: 28px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-page {
  background:
    radial-gradient(circle at 0% 0%, rgba(47,116,239,0.2), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(85,184,255,0.16), transparent 34%),
    linear-gradient(140deg, #f8fbff 0%, #eef5fd 100%) !important;
}

  .auth-card {
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(30, 60, 105, 0.16);
  }

@media (max-width: 960px) {
  .shell {
    width: min(100% - 22px, 720px);
  }

  .topbar {
    position: static;
  }

  .side-brand,
  .side-status {
    text-align: center;
  }
}

/* Ajustes finais de densidade estilo WHMCS */
.topbar-actions .btn {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.9rem;
}

.topbar-actions .user-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.table td strong {
  color: #1f3352;
}

.table td small {
  color: #7285a2;
  font-size: 0.83rem;
}

.table td form {
  margin: 0;
}

.table td input[type="text"] {
  border: 1px solid #cad8ec;
  border-radius: 10px;
  background: #ffffff;
  color: #2a3f60;
  padding: 7px 9px;
  font: 500 0.84rem Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.table td input[type="text"]:focus {
  outline: none;
  border-color: #74a6ff;
  box-shadow: 0 0 0 3px rgba(47, 116, 239, 0.12);
}

.hero h2 {
  margin-bottom: 6px;
}

.service-meta dd {
  font-size: 0.95rem;
}
