@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #080807;
  --panel: rgba(22, 18, 12, 0.88);
  --panel-2: rgba(33, 26, 16, 0.9);
  --text: #fff8e8;
  --muted: #c8baa0;
  --gold: #f0bf5a;
  --gold-strong: #ffd978;
  --line: rgba(255, 232, 178, 0.18);
  --danger: #ff7777;
  --success: #69e09b;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(8, 8, 7, 0.97), rgba(8, 8, 7, 0.78)),
    url("../assets/fundo.png") center / cover fixed no-repeat,
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.client-shell {
  min-height: 100dvh;
}

.client-access {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid rgba(240, 191, 90, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 21, 15, 0.94), rgba(8, 8, 7, 0.96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.access-card img,
.client-sidebar img {
  width: 150px;
  height: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.access-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 0.94;
}

.access-card p {
  color: var(--muted);
  line-height: 1.55;
}

.access-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.access-tabs button {
  min-height: 42px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
}

.access-tabs button.is-active {
  color: #151009;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
}

.access-form {
  display: none;
  gap: 14px;
}

.access-form.is-active {
  display: grid;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
select {
  min-height: 52px;
  width: 100%;
  padding: 0 15px;
  color: var(--text);
  border: 1px solid rgba(255, 232, 178, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 3px rgba(240, 191, 90, 0.14);
}

select {
  appearance: none;
}

.gold-button,
.ghost-button,
.whatsapp-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
}

.gold-button,
.whatsapp-button {
  color: #141008;
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 16px 34px rgba(240, 191, 90, 0.18);
}

.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.client-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--gold-strong);
  font-weight: 800;
  line-height: 1.4;
}

.client-dashboard {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.client-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: rgba(5, 6, 5, 0.92);
}

.client-sidebar nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.client-sidebar a {
  padding: 14px 16px;
  border: 1px solid rgba(255, 232, 178, 0.12);
  border-radius: 10px;
  color: var(--text);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.035);
}

.client-main {
  padding: 28px;
}

.client-page {
  display: none;
}

.client-page:not(.is-active) {
  display: none !important;
}

.client-page.is-active {
  display: block;
}

.client-page > * + * {
  margin-top: 20px;
}

.client-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.client-topbar h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.client-grid,
.two-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-panel,
.summary-panel,
.panel {
  border: 1px solid rgba(240, 191, 90, 0.22);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
}

.hero-panel {
  padding: 30px;
  background:
    radial-gradient(circle at 80% 0%, rgba(240, 191, 90, 0.2), transparent 30%),
    var(--panel);
}

.hero-panel h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--gold-strong);
  border: 1px solid rgba(240, 191, 90, 0.28);
  border-radius: 999px;
  background: rgba(240, 191, 90, 0.08);
  font-weight: 900;
}

.summary-panel,
.panel {
  padding: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header h3,
.summary-panel h3 {
  margin-bottom: 0;
  color: var(--gold-strong);
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list p {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 232, 178, 0.09);
}

.detail-list span {
  color: var(--gold-strong);
  font-weight: 900;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 232, 178, 0.1);
  text-align: left;
}

th {
  color: var(--gold-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.card-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  padding: 14px;
  border: 1px solid rgba(255, 232, 178, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
}

.mini-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.mini-card a {
  color: var(--gold-strong);
  font-weight: 900;
}

@media (max-width: 920px) {
  .client-dashboard,
  .client-grid,
  .two-panel-grid {
    grid-template-columns: 1fr;
  }

  .client-sidebar {
    position: static;
    height: auto;
  }

  .client-main {
    padding: 20px;
  }

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

.client-dashboard {
  grid-template-columns: 300px minmax(0, 1fr);
  background:
    radial-gradient(circle at 78% 9%, rgba(240, 191, 90, 0.18), transparent 26%),
    radial-gradient(circle at 30% 80%, rgba(240, 191, 90, 0.08), transparent 28%),
    rgba(2, 3, 3, 0.96);
}

.client-sidebar {
  padding: 30px 22px;
  background: linear-gradient(180deg, rgba(2, 6, 7, 0.98), rgba(6, 7, 6, 0.96));
}

.client-sidebar img {
  width: 190px;
}

.client-nav a {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 1.05rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.client-nav a span {
  width: 26px;
  display: inline-flex;
  justify-content: center;
  font-size: 1.2rem;
}

.client-nav a:hover,
.client-nav a.is-active {
  color: #171109;
  border-color: rgba(255, 217, 120, 0.55);
  background: linear-gradient(135deg, #d79b22, var(--gold-strong));
  transform: translateX(3px);
}

.sidebar-exit {
  width: 100%;
  border-radius: 8px;
}

.client-main {
  padding: 0 30px 30px;
  min-width: 0;
}

.client-topbar {
  min-height: 104px;
  margin: 0 -30px 34px;
  padding: 18px 30px;
  border-bottom: 1px solid rgba(240, 191, 90, 0.22);
  background: rgba(3, 4, 4, 0.72);
}

.menu-button,
.top-action,
.notification-pill,
.profile-chip {
  min-height: 52px;
  border: 1px solid rgba(255, 217, 120, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-radius: 999px;
  font-weight: 900;
}

.menu-button {
  width: 52px;
  font-size: 1.5rem;
  color: var(--gold-strong);
}

.client-hello {
  margin-right: auto;
}

.client-hello h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
}

.client-hello p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.client-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-action {
  padding: 0 20px;
}

.top-action:disabled {
  opacity: 0.55;
}

.notification-pill {
  position: relative;
  width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-pill::before {
  content: "🔔";
  font-size: 1.2rem;
}

.notification-pill span {
  position: absolute;
  top: -9px;
  right: -7px;
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171109;
  border-radius: 999px;
  background: var(--gold-strong);
  font-size: 0.75rem;
}

.top-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-action span {
  color: var(--gold-strong);
  font-size: 1.05rem;
}

.top-action.is-loading span {
  animation: spinRefresh 0.9s linear infinite;
}

@keyframes spinRefresh {
  to {
    transform: rotate(360deg);
  }
}

.notification-wrapper {
  position: relative;
}

.notification-pill::before {
  content: none;
}

.notification-pill[aria-expanded="true"] {
  border-color: rgba(255, 217, 120, 0.55);
  background: rgba(240, 191, 90, 0.12);
}

.notification-pill .notification-icon {
  position: static;
  min-width: auto;
  min-height: auto;
  color: var(--gold-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.15rem;
}

.notification-pill .notification-count {
  position: absolute;
  top: -9px;
  right: -7px;
  min-width: 24px;
  min-height: 24px;
  color: #171109;
  border-radius: 999px;
  background: var(--gold-strong);
  font-size: 0.75rem;
}

.notification-pill .notification-count[hidden] {
  display: none;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(360px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(240, 191, 90, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 10%, rgba(240, 191, 90, 0.16), transparent 38%),
    rgba(10, 10, 9, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.notification-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 13px;
  height: 13px;
  border-left: 1px solid rgba(240, 191, 90, 0.28);
  border-top: 1px solid rgba(240, 191, 90, 0.28);
  background: rgba(10, 10, 9, 0.98);
  transform: rotate(45deg);
}

.notification-menu-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(255, 232, 178, 0.1);
}

.notification-menu-header strong {
  color: var(--gold-strong);
}

.notification-menu-header span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  padding: 12px 2px;
}

.notification-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 232, 178, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.notification-item > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 217, 120, 0.28);
  border-radius: 10px;
  background: rgba(240, 191, 90, 0.08);
}

.notification-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.notification-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.notification-menu > button {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(255, 217, 120, 0.38);
  border-radius: 9px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.06);
  font-weight: 900;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 6px;
}

.profile-chip span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 217, 120, 0.5);
  border-radius: 999px;
  color: var(--gold-strong);
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.dashboard-heading h1 {
  margin-bottom: 4px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.dashboard-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.company-chip {
  min-width: 280px;
  padding: 16px 20px;
  border: 1px solid rgba(240, 191, 90, 0.3);
  border-radius: 10px;
  background: rgba(18, 14, 9, 0.88);
}

.company-chip strong,
.company-chip span {
  display: block;
}

.company-chip b {
  color: var(--danger);
}

.company-chip b.is-regular {
  color: var(--success);
}

.client-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.client-kpi-card,
.client-panel {
  border: 1px solid rgba(240, 191, 90, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 80% 0%, rgba(240, 191, 90, 0.14), transparent 30%),
    rgba(14, 13, 11, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.client-kpi-card {
  min-height: 285px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
}

.kpi-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(240, 191, 90, 0.35), rgba(255, 217, 120, 0.1));
}

.client-kpi-card h3 {
  margin: 12px 0 0;
  font-size: 1.45rem;
}

.client-kpi-card p,
.client-kpi-card small {
  margin: 0;
  color: var(--muted);
}

.client-kpi-card strong {
  display: block;
  color: var(--gold-strong);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.client-kpi-card a,
.client-kpi-card button,
.outline-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 8px;
  color: #fffdf5;
  font-weight: 900;
}

.client-kpi-card button {
  border: 0;
}

.client-kpi-card button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.kpi-green a,
.kpi-green button {
  background: linear-gradient(135deg, #168f38, #23c45b);
}

.kpi-blue a,
.kpi-blue button {
  background: linear-gradient(135deg, #174aa8, #286fe8);
}

.kpi-gold a,
.kpi-gold button,
.outline-action {
  color: #171109;
  background: linear-gradient(135deg, #d89a18, var(--gold-strong));
}

.kpi-red a,
.kpi-red button {
  background: linear-gradient(135deg, #a41e24, #ef4444);
}

.client-info-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 0.95fr;
  gap: 18px;
  margin-bottom: 22px;
}

.client-panel {
  padding: 22px;
}

.due-list,
.company-status-list {
  display: grid;
  gap: 12px;
}

.due-item,
.company-check {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 232, 178, 0.1);
}

.due-item:last-child,
.company-check:last-child {
  border-bottom: 0;
}

.due-item > span,
.company-check > span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(240, 191, 90, 0.16);
  color: var(--gold-strong);
  font-weight: 900;
}

.due-item strong,
.company-check strong {
  display: block;
}

.due-item p,
.company-check p {
  margin: 4px 0 0;
  color: var(--muted);
}

.due-item b {
  min-width: 92px;
  text-align: right;
  color: var(--gold-strong);
}

.company-check {
  grid-template-columns: 46px minmax(0, 1fr);
}

.company-check.is-ok > span {
  color: #062713;
  background: var(--success);
}

.company-check.is-warning > span {
  color: #1f1209;
  background: var(--gold-strong);
}

.finance-summary {
  display: grid;
  gap: 14px;
}

.finance-summary > p {
  margin: 0;
  color: var(--muted);
}

.finance-summary > strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.finance-row b {
  color: var(--text);
  white-space: nowrap;
}

.finance-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.finance-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f1a40d, var(--gold-strong));
  transition: width 0.35s ease;
}

.quick-services-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.quick-services-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
}

.quick-services-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.quick-service-grid a {
  min-height: 230px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(240, 191, 90, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 12%, rgba(240, 191, 90, 0.12), transparent 35%),
    rgba(11, 12, 12, 0.92);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.24);
  font-weight: 800;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.quick-service-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 217, 120, 0.45);
  box-shadow: 0 28px 80px rgba(240, 191, 90, 0.11);
}

.quick-service-grid span {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.12);
  font-size: 2rem;
}

.quick-service-grid strong {
  max-width: 230px;
  display: block;
  font-size: 1.3rem;
  line-height: 1.12;
}

.quick-service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.quick-service-grid b {
  width: 44px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: end;
  margin-top: auto;
  border: 1px solid rgba(240, 191, 90, 0.34);
  border-radius: 7px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.06);
  font-size: 1.3rem;
}

.support-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.support-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.support-heading p,
.support-panel-title p {
  margin: 0;
  color: var(--muted);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.support-layout-clean {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.support-main-column,
.support-side-column {
  display: grid;
  gap: 18px;
}

.support-panel,
.support-side-card {
  border: 1px solid rgba(240, 191, 90, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 72% 12%, rgba(240, 191, 90, 0.12), transparent 35%),
    rgba(12, 13, 12, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.support-panel {
  padding: 22px;
}

.support-panel .panel-header {
  margin-bottom: 18px;
}

.support-panel .panel-header h3,
.support-side-card h3 {
  margin-bottom: 4px;
  color: var(--gold-strong);
}

.support-channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.support-channel-grid-clean {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-channel-card {
  min-height: 210px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 14px 14px;
  text-align: center;
  border: 1px solid rgba(240, 191, 90, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.support-channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 217, 120, 0.45);
  background: rgba(240, 191, 90, 0.07);
}

.support-channel-card > span {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-strong);
  font-size: 2.6rem;
}

.support-channel-card strong {
  font-size: 1rem;
}

.support-channel-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.support-channel-card b,
.support-side-card > a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 217, 120, 0.4);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.06);
  font-weight: 900;
}

.support-channel-card b {
  width: 100%;
  margin-top: auto;
  font-size: 0.86rem;
}

.support-security-note {
  margin: 0;
  color: rgba(200, 186, 160, 0.72);
  text-align: center;
  font-size: 0.9rem;
}

.support-client-data {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-side-card {
  padding: 18px;
}

.support-side-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.support-side-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-side-card li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.support-side-card li span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 217, 120, 0.35);
  border-radius: 9px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.07);
}

.support-side-card li strong,
.support-side-card li small {
  display: block;
}

.support-side-card li small {
  color: var(--muted);
  line-height: 1.35;
}

.settings-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.settings-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.settings-heading p {
  margin: 0;
  color: var(--muted);
}

.settings-tabs {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 191, 90, 0.22);
  border-radius: 10px 10px 0 0;
  background: rgba(10, 11, 10, 0.9);
}

.settings-tabs button {
  min-height: 54px;
  min-width: 180px;
  padding: 0 20px;
  color: var(--muted);
  border: 0;
  border-right: 1px solid rgba(255, 232, 178, 0.1);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 900;
}

.settings-tabs button:last-child {
  border-right: 0;
}

.settings-tabs button.is-active {
  color: var(--gold-strong);
  background: linear-gradient(135deg, rgba(240, 191, 90, 0.18), rgba(240, 191, 90, 0.04));
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.is-active {
  display: grid;
  gap: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.settings-side-stack {
  display: grid;
  gap: 18px;
}

.settings-card {
  padding: 22px;
  border: 1px solid rgba(240, 191, 90, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 74% 14%, rgba(240, 191, 90, 0.12), transparent 38%),
    rgba(12, 13, 12, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.settings-card h3 {
  margin-bottom: 18px;
  color: var(--gold-strong);
  font-size: 1.06rem;
}

.settings-mini-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.settings-mini-header h3 {
  margin: 0;
}

.settings-mini-header button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 217, 120, 0.38);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.06);
  font-weight: 900;
}

.settings-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 232, 178, 0.1);
}

.settings-card-header h3 {
  margin: 0;
}

.settings-card-header a,
.settings-card-header button,
.settings-outline-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 217, 120, 0.4);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.06);
  font-weight: 900;
  cursor: pointer;
}

.settings-data-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.settings-data-columns dl,
.settings-account-grid,
.settings-address-grid {
  display: grid;
  gap: 12px;
  margin: 0;
}

.settings-data-columns dl + dl {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 232, 178, 0.1);
}

.settings-data-columns div,
.settings-account-grid div,
.settings-address-grid div {
  min-width: 0;
}

.settings-data-columns dt,
.settings-address-grid span,
.settings-account-grid span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.settings-data-columns dd,
.settings-address-grid strong,
.settings-account-grid strong {
  display: block;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.settings-status-pill {
  width: max-content;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.settings-status-pill.is-active {
  color: var(--success);
  background: rgba(51, 201, 111, 0.16);
}

.settings-address-grid {
  grid-template-columns: 1fr 1fr;
}

.settings-address-grid div:nth-child(2) {
  grid-column: 1 / -1;
}

.settings-outline-action {
  margin-top: 18px;
}

button.settings-outline-action {
  width: max-content;
  cursor: pointer;
}

.settings-info-grid,
.settings-action-grid {
  display: grid;
  gap: 14px;
}

.settings-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-info-grid div,
.settings-action-grid a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(255, 232, 178, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.settings-info-grid span,
.settings-action-grid span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 217, 120, 0.34);
  border-radius: 10px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.08);
  font-weight: 900;
}

.settings-info-grid strong,
.settings-action-grid strong {
  display: block;
  color: var(--text);
}

.settings-info-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.settings-action-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.settings-action-grid a {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.settings-action-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 217, 120, 0.45);
}

.settings-action-grid b {
  color: var(--gold-strong);
}

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

.client-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.client-modal[hidden] {
  display: none !important;
}

.client-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.client-modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(240, 191, 90, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 12%, rgba(240, 191, 90, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(25, 20, 13, 0.98), rgba(7, 7, 6, 0.98));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58);
}

.client-modal-card-wide {
  width: min(880px, 100%);
}

.client-modal-card h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.client-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 232, 178, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.5rem;
  line-height: 1;
}

.settings-edit-form {
  display: grid;
  gap: 14px;
}

.settings-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.modal-actions .ghost-button,
.modal-actions .gold-button {
  min-width: 160px;
}

.das-loading-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.das-loading-modal[hidden] {
  display: none !important;
}

.das-loading-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 191, 90, 0.2), transparent 28%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.das-loading-card {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 28px;
  border: 1px solid rgba(255, 211, 105, 0.42);
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 105, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(27, 22, 15, 0.98), rgba(6, 6, 5, 0.98));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.72), 0 0 42px rgba(240, 191, 90, 0.18);
}

.das-loading-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1;
}

.das-loading-card p:not(.eyebrow) {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.das-loader {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.das-loader::after {
  content: "F";
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b0804;
  font-weight: 900;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ffe7a4, #e4a520);
  box-shadow: 0 0 28px rgba(255, 211, 105, 0.45);
}

.das-loader span {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: rgba(255, 218, 126, 0.95);
  border-right-color: rgba(228, 165, 32, 0.35);
  border-radius: 38% 62% 58% 42%;
  animation: dasSpin 1.35s linear infinite;
}

.das-loader span:nth-child(2) {
  inset: 10px;
  border-top-color: rgba(255, 238, 180, 0.85);
  border-left-color: rgba(255, 211, 105, 0.35);
  animation-duration: 1.9s;
  animation-direction: reverse;
}

.das-loader span:nth-child(3) {
  inset: 20px;
  border-top-color: rgba(240, 191, 90, 0.95);
  border-right-color: rgba(255, 238, 180, 0.3);
  animation-duration: 2.5s;
}

@keyframes dasSpin {
  to {
    transform: rotate(360deg);
  }
}

.compact-data {
  margin-bottom: 22px;
}

.client-documents-section {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  padding-top: 10px;
}

.documents-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.documents-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.documents-heading p {
  margin: 0;
  color: var(--muted);
}

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

.document-card,
.documents-note,
.documents-history {
  border: 1px solid rgba(240, 191, 90, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 72% 12%, rgba(240, 191, 90, 0.12), transparent 35%),
    rgba(12, 13, 12, 0.9);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.document-card {
  min-height: 320px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.document-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 129, 57, 0.92), rgba(36, 91, 47, 0.72));
  color: #f9ffe8;
  font-size: 1.8rem;
}

.document-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.document-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.document-observation-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 217, 120, 0.34);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.1);
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(240, 191, 90, 0.12);
}

.document-meta {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 232, 178, 0.1);
}

.document-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.document-meta b {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(51, 201, 111, 0.14);
}

.document-card a,
.document-card button,
.documents-note a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 217, 120, 0.42);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(240, 191, 90, 0.06);
  font-weight: 900;
}

.document-card button:disabled {
  opacity: 0.62;
  cursor: default;
}

.request-document-card {
  place-items: center;
  align-content: center;
  text-align: center;
  border-style: dashed;
}

.request-document-card .document-icon {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(240, 191, 90, 0.35);
  background: rgba(240, 191, 90, 0.05);
  color: var(--gold-strong);
}

.documents-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}

.documents-note > span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 217, 120, 0.45);
  border-radius: 999px;
  color: var(--gold-strong);
  font-weight: 900;
}

.documents-note p {
  margin: 0;
  color: var(--muted);
}

.documents-history {
  padding: 22px;
}

.documents-history td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.documents-history td:first-child > span:last-child {
  display: grid;
  gap: 3px;
}

.document-observation-inline {
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.table-document-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(31, 129, 57, 0.35);
}

.documents-history td a,
.documents-history td button {
  color: var(--gold-strong);
  font-weight: 900;
}

.documents-history td button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.documents-history td button:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 1260px) {
  .client-kpi-grid,
  .client-info-grid,
  .quick-service-grid,
  .documents-grid,
  .support-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-info-grid > .client-panel:last-child {
    grid-column: 1 / -1;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .settings-grid,
  .settings-action-grid,
  .settings-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .client-dashboard {
    grid-template-columns: 1fr;
  }

  .client-sidebar {
    position: static;
    height: auto;
  }

  .client-main {
    padding: 0 18px 24px;
  }

  .client-topbar {
    margin: 0 -18px 24px;
    padding: 18px;
  }

  .client-top-actions,
  .dashboard-heading,
  .quick-services-heading,
  .support-heading,
  .settings-heading {
    width: 100%;
    flex-wrap: wrap;
  }

  .company-chip {
    width: 100%;
    min-width: 0;
  }

  .settings-tabs {
    width: 100%;
  }

  .settings-tabs button {
    min-width: 0;
    flex: 1;
  }

  .settings-data-columns,
  .settings-data-columns dl + dl {
    grid-template-columns: 1fr;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .client-kpi-grid,
  .client-info-grid,
  .quick-service-grid,
  .support-channel-grid,
  .settings-grid,
  .settings-info-grid,
  .settings-action-grid,
  .settings-account-grid,
  .settings-address-grid,
  .documents-grid,
  .client-grid,
  .two-panel-grid {
    grid-template-columns: 1fr;
  }

  .settings-tabs {
    display: grid;
    border-radius: 10px;
  }

  .settings-tabs button {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 232, 178, 0.1);
  }

  .settings-tabs button:last-child {
    border-bottom: 0;
  }

  .settings-card,
  .settings-card-header {
    padding: 16px;
  }

  .settings-card-header {
    display: grid;
  }

  .settings-card-header a,
  .settings-outline-action {
    width: 100%;
  }

  button.settings-outline-action,
  .settings-mini-header button {
    width: 100%;
  }

  .settings-mini-header,
  .form-row,
  .modal-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .modal-actions .ghost-button,
  .modal-actions .gold-button {
    width: 100%;
  }

  .documents-note {
    grid-template-columns: 1fr;
  }

  .support-panel,
  .support-side-card {
    padding: 16px;
  }

  .support-panel .panel-header {
    align-items: stretch;
  }

  .client-top-actions {
    align-items: stretch;
  }

  .top-action,
  .profile-chip {
    flex: 1 1 auto;
  }

  .notification-wrapper {
    flex: 0 0 auto;
  }

  .notification-menu {
    right: -72px;
  }

  .due-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .due-item b {
    grid-column: 2;
    text-align: left;
  }
}
