.central-body {
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(255, 138, 0, 0.09) 0%, transparent 60%),
    radial-gradient(1100px 700px at 100% 10%, rgba(96, 42, 151, 0.1) 0%, transparent 62%),
    #faf8ff;
}

.central-main {
  padding: 118px 0 52px;
}

.login-shell {
  max-width: 940px;
  margin: 0 auto;
}

.login-panel {
  padding: 30px;
  border: 1px solid var(--brand-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--brand-shadow);
}

.login-panel h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.login-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--brand-muted);
}

.auth-switch {
  display: inline-flex;
  gap: 10px;
}

.auth-switch .btn {
  border-radius: 12px;
  padding: 10px 14px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  min-height: 760px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background: linear-gradient(170deg, #130f2e 0%, #1f1545 60%, #2b1860 100%);
  box-shadow: 0 18px 36px rgba(18, 10, 51, 0.35);
}

.sidebar-brand strong {
  display: block;
  color: #ff8a00;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sidebar-brand span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-nav a.is-active,
.sidebar-nav a:hover {
  color: #130f2e;
  background: linear-gradient(90deg, #ff8a00 0%, #ffaf4c 100%);
  border-color: transparent;
}

.dashboard-sidebar .btn-outline-brand {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
}

.dashboard-sidebar .btn-outline-brand:hover,
.dashboard-sidebar .btn-outline-brand:focus {
  color: #1b153e;
  background: #fff;
  border-color: #fff;
}

.dashboard-content {
  min-width: 0;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dashboard-top h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
}

.dashboard-top p {
  margin: 6px 0 0;
  color: var(--brand-muted);
}

.dashboard-top__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle,
.sidebar-close,
.sidebar-backdrop {
  display: none;
}

.sidebar-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-purple);
  font-size: 1.35rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle:hover {
  background: var(--brand-purple);
  border-color: transparent;
  color: #fff;
}

.hero-banner {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(98, 65, 150, 0.2);
  background:
    linear-gradient(105deg, rgba(14, 8, 44, 0.94) 0%, rgba(42, 18, 98, 0.94) 44%, rgba(99, 31, 170, 0.85) 100%);
  color: #fff;
}

.hero-banner h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.hero-banner p {
  max-width: 560px;
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.cards-grid > .central-card:nth-child(1) {
  grid-column: span 7;
}

.cards-grid > .central-card:nth-child(2) {
  grid-column: span 5;
}

.cards-grid > .central-card:nth-child(3) {
  grid-column: span 12;
}

.central-card {
  padding: 18px;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(24, 13, 57, 0.08);
}

.central-card h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.03rem;
}

.central-card .big {
  margin: 10px 0 4px;
  color: var(--brand-purple);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.central-card small {
  color: var(--brand-muted);
}

.quick-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.quick-links a {
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
}

.quick-links a:hover {
  color: #3f0f73;
}

.payment-modal-content {
  border: 1px solid var(--brand-border);
  border-radius: 18px;
}

.payment-modal-amount {
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

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

.pix-qr-wrap {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: #fff;
}

#paymentQrImage {
  max-height: 220px;
  width: auto;
}

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

#faturasBody .badge {
  font-weight: 600;
}

.consumo-bars {
  display: grid;
  gap: 10px;
}

.consumo-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
}

.consumo-item strong {
  color: var(--brand-dark);
  font-size: 0.85rem;
}

.consumo-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #efebfa;
  overflow: hidden;
}

.consumo-bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #602a97 0%, #8f4ed9 100%);
}

.dados-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.dados-list li {
  color: var(--brand-text);
  border-bottom: 1px dashed rgba(95, 105, 130, 0.2);
  padding-bottom: 6px;
}

.dados-list span {
  display: block;
  font-size: 0.82rem;
  color: var(--brand-muted);
}

.dados-list strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 0.97rem;
}

.chamado-thread {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.chamado-msg {
  max-width: 82%;
  padding: 10px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: #f6f3fc;
}

.chamado-msg--client {
  justify-self: end;
  border-color: transparent;
  background: linear-gradient(90deg, #ff8a00 0%, #ffaf4c 100%);
}

.chamado-msg__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: var(--brand-muted);
}

.chamado-msg--client .chamado-msg__head {
  color: rgba(27, 21, 62, 0.7);
}

.chamado-msg p {
  margin: 0;
  color: var(--brand-text);
}

.chamado-msg--client p {
  color: #1b153e;
}

.chamado-msg__head span {
  white-space: nowrap;
}

#chamadosBody .badge {
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .cards-row .central-card:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 991.98px) {
  .central-main {
    padding-top: 102px;
  }

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

  .sidebar-toggle,
  .sidebar-close,
  .sidebar-backdrop {
    display: block;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-close {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    align-items: center;
    justify-content: center;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 288px;
    max-width: 85vw;
    height: 100dvh;
    overflow-y: auto;
    border-radius: 0 24px 24px 0;
    z-index: 1100;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 11, 34, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1099;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .cards-grid > .central-card:nth-child(1),
  .cards-grid > .central-card:nth-child(2),
  .cards-grid > .central-card:nth-child(3) {
    grid-column: span 12;
  }
}

@media (max-width: 767.98px) {
  .login-panel {
    padding: 22px;
  }

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

  .cards-row {
    grid-template-columns: 1fr;
  }

  .cards-row .central-card:nth-child(3) {
    grid-column: span 1;
  }

  .dados-list {
    grid-template-columns: 1fr;
  }

  .payment-pix-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Standalone (Central do Cliente dedicada) ===== */

:root {
  --brand-orange: #ff8a00;
  --brand-purple: #602A97;
  --brand-dark: #1d2233;
  --brand-text: #31374a;
  --brand-muted: #677087;
  --brand-border: rgba(95, 105, 130, 0.12);
  --brand-shadow: 0 20px 60px rgba(73, 31, 122, 0.12);
}

.standalone-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  border-bottom: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.standalone-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.standalone-brand__ip {
  color: var(--brand-orange);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.standalone-brand__link {
  color: var(--brand-purple);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.standalone-brand__tag {
  color: var(--brand-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-brand,
.btn-outline-brand,
.btn-whatsapp {
  border-radius: 12px;
  font-weight: 700;
  padding: 11px 18px;
}

.btn-brand {
  color: #0c0c0c;
  border: 1px solid transparent;
  background: var(--brand-orange);
  box-shadow: 0 14px 28px rgba(163, 83, 14, 0.2);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #111;
  background: #ff9b21;
  border-color: #ff9b21;
  transform: translateY(-1px);
}

.btn-outline-brand {
  color: var(--brand-dark);
  border: 1px solid rgba(67, 73, 94, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  color: var(--brand-dark);
  background: #f4e8ff;
  border-color: rgba(96, 42, 151, 0.3);
}

.btn-whatsapp {
  color: #1d6b3b;
  background: #fff;
  border: 1px solid rgba(31, 123, 68, 0.12);
  box-shadow: 0 10px 24px rgba(46, 135, 82, 0.12);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  color: #155b31;
  background: #e9fff2;
  border-color: rgba(31, 123, 68, 0.26);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.12);
  color: var(--brand-purple);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
