:root {
  --app-bg: #eef3f7;
  --panel-bg: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(31, 41, 55, 0.08);
  --accent: #0b7285;
  --accent-soft: rgba(11, 114, 133, 0.12);
  --accent-deep: #0f4c81;
  --text-main: #16202a;
  --text-muted: #62707d;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(11, 114, 133, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(6, 99, 204, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, var(--app-bg) 100%);
  color: var(--text-main);
}

a {
  color: var(--accent-deep);
}

.app-shell {
  min-height: 100vh;
}

.hero-panel,
.card,
.modal-content,
.auth-card,
.unauthorized-hero,
.signin-panel,
.feature-card,
.client-note-card {
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border);
  border-radius: 1.25rem;
}

.hero-panel,
.auth-card,
.unauthorized-hero {
  position: relative;
  overflow: hidden;
}

.hero-panel > *,
.auth-card > *,
.unauthorized-hero > * {
  position: relative;
  z-index: 1;
}

.hero-panel::after,
.auth-card::after,
.unauthorized-hero::after {
  content: "";
  position: absolute;
  inset: auto -6rem -6rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(11, 114, 133, 0.2), rgba(6, 99, 204, 0.08));
  z-index: 0;
  pointer-events: none;
}

.auth-stage {
  min-height: calc(100vh - 3rem);
  display: grid;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.title-lockup {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 56rem;
}

.title-copy {
  display: flex;
  flex-direction: column;
}

.banner-logo {
  height: 4.25rem;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.08));
}

.title-lockup .display-6 {
  line-height: 1.05;
}

.signin-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(233, 245, 247, 0.92));
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card,
.client-note-card {
  padding: 1.25rem;
}

.feature-kicker,
.client-note-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.service-steps {
  display: grid;
  gap: 1rem;
}

.service-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 76, 129, 0.08);
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1c7ed6);
  color: #fff;
  font-weight: 700;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 41, 55, 0.08);
  color: var(--text-main);
  font-weight: 600;
}

.section-switcher {
  gap: 0.5rem;
}

.section-switcher .nav-link {
  color: var(--text-main);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid transparent;
  padding-inline: 1rem;
}

.section-switcher .nav-link.active {
  background: linear-gradient(135deg, var(--accent), #1c7ed6);
  color: #fff;
  box-shadow: 0 0.8rem 1.6rem rgba(11, 114, 133, 0.22);
}

.stat-card {
  height: 100%;
}

.stat-value {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.75rem);
  font-weight: 700;
  line-height: 1;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.summary-note {
  font-size: 0.95rem;
}

.billing-amount {
  font-size: 1.1rem;
  font-weight: 700;
}

.table > :not(caption) > * > * {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.table thead th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doc-name {
  max-width: 20rem;
}

.doc-name span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 991.98px) {
  .auth-stage {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .title-lockup {
    align-items: center;
    gap: 0.75rem;
  }

  .banner-logo {
    width: 4.75rem;
    height: 3rem;
  }

  .hero-panel::after,
  .auth-card::after,
  .unauthorized-hero::after {
    width: 10rem;
    height: 10rem;
  }
}
