/* Authenticated customer home — visual only. Not operator chrome. */
.hc-client-home {
  --hc-client-brand: #d9611c;
  --hc-client-brand-hover: #b54814;
  --hc-client-ink: #1f1f1f;
  --hc-client-muted: #5f5f5f;
  --hc-client-line: #e8e4df;
  --hc-client-surface: #ffffff;
  --hc-client-wash: #f6f3ef;
  --hc-client-radius: 10px;
  --hc-client-font: "Poppins", "Segoe UI", sans-serif;

  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--hc-client-surface);
  color: var(--hc-client-ink);
  font-family: var(--hc-client-font);
}

.hc-client-home a {
  color: inherit;
}

.hc-client-home a.hc-client-btn--primary,
.hc-client-home a.hc-client-btn--primary:hover,
.hc-client-home a.hc-client-btn--primary:focus {
  color: #fff;
}

.hc-client-home a.hc-client-btn--ghost,
.hc-client-home a.hc-client-btn--ghost:hover,
.hc-client-home a.hc-client-btn--ghost:focus {
  color: var(--hc-client-brand);
  background: #fff;
  background-image: none;
  filter: none;
}

.hc-client-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hc-client-line);
}

.hc-client-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.65rem 0;
}

.hc-client-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hc-client-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.hc-client-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-client-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hc-client-ink);
}

.hc-client-nav a:hover,
.hc-client-nav a[aria-current="page"] {
  color: var(--hc-client-brand);
}

.hc-client-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hc-client-header .language-switcher-inline .lang-link {
  color: var(--hc-client-ink);
}

.hc-client-header .language-switcher-inline .lang-link:hover,
.hc-client-header .language-switcher-inline .lang-link.active {
  background-color: color-mix(in srgb, var(--hc-client-brand) 12%, transparent);
  color: var(--hc-client-brand) !important;
}

.hc-client-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1.15rem;
  border-radius: var(--hc-client-radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.hc-client-btn--primary {
  color: #fff;
  background: var(--hc-client-brand);
  background-image: none;
}

.hc-client-btn--primary:hover {
  color: #fff;
  background: var(--hc-client-brand-hover);
  background-image: none;
}

.hc-client-btn--ghost {
  color: var(--hc-client-brand);
  background: #fff;
  background-image: none;
  border-color: var(--hc-client-brand);
  filter: none;
}

.hc-client-btn--ghost:hover,
.hc-client-btn--ghost:focus {
  color: var(--hc-client-brand);
  background: color-mix(in srgb, var(--hc-client-brand) 10%, #fff);
  background-image: none;
  filter: none;
}

.hc-client-header__logout,
.hc-client-hero__actions form {
  margin: 0;
}

.hc-client-main {
  flex: 1 1 auto;
}

.hc-client-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 4.25rem);
  background: var(--hc-client-wash);
}

.hc-client-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hc-client-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hc-client-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    transparent 70%
  );
}

.hc-client-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 4.25rem);
  padding: 2.5rem 0 3rem;
}

.hc-client-hero__copy {
  max-width: 28.5rem;
  padding: 1.5rem 1.35rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(31, 31, 31, 0.08);
  box-shadow: 0 18px 50px rgba(31, 31, 31, 0.18);
}

.hc-client-hero__welcome {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hc-client-ink);
}

.hc-client-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--hc-client-ink);
}

.hc-client-hero__accent {
  display: block;
  color: var(--hc-client-brand);
}

.hc-client-hero__lede {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hc-client-muted);
}

.hc-client-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.hc-client-hero__actions .hc-client-btn {
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
}

.hc-client-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hc-client-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.hc-client-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--hc-client-brand);
  background: color-mix(in srgb, var(--hc-client-brand) 12%, #fff);
  font-size: 1.05rem;
}

.hc-client-feature__title {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.hc-client-feature__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--hc-client-muted);
}

.hc-client-forbidden {
  max-width: 32rem;
  padding: 4rem 0;
}

.hc-client-register-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 28rem;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: 16px;
  background: #fff;
  color: var(--hc-client-ink);
  box-shadow: 0 16px 48px rgba(31, 31, 31, 0.16);
}

.hc-client-register-card .hc-client-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.hc-client-register-card .hc-client-hero__lede {
  margin-bottom: 1.25rem;
  color: #4a4a4a;
}

.hc-client-register p {
  margin-bottom: 0.85rem;
}

.hc-client-register label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hc-client-ink);
}

.hc-client-register input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c8c2bb;
  border-radius: var(--hc-client-radius);
  color: var(--hc-client-ink);
  background: #fff;
}

.hc-client-register input:focus {
  outline: 2px solid color-mix(in srgb, var(--hc-client-brand) 45%, #fff);
  border-color: var(--hc-client-brand);
}

.hc-client-register .hc-client-btn {
  min-height: 48px;
}

.hc-client-register .errorlist {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  color: #b42318;
  font-size: 0.8125rem;
}

.hc-client-payable {
  margin: 0 0 1.25rem;
  padding: 0;
}

.hc-client-payable__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.hc-client-payable__row dt {
  margin: 0;
  color: var(--hc-client-muted);
  font-weight: 500;
}

.hc-client-payable__row dd {
  margin: 0;
  font-weight: 600;
}

.hc-client-payable__row--due {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--hc-client-line);
  font-size: 1.05rem;
}

.hc-client-tip {
  margin: 0 0 1.25rem;
}

.hc-client-tip__label {
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hc-client-tip__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hc-client-tip__buttons .hc-client-btn {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.hc-client-tip__hint {
  margin: 0.6rem 0 0;
  font-size: 0.8125rem;
  color: var(--hc-client-muted);
}

.hc-client-tip__custom {
  margin-top: 0.75rem;
}

.hc-client-tip__custom label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hc-client-tip__custom input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c8c2bb;
  border-radius: var(--hc-client-radius);
}

@media (min-width: 768px) {
  .hc-client-nav {
    display: flex;
  }

  .hc-client-features {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.75rem;
  }
}

@media (min-width: 992px) {
  .hc-client-hero::after {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.06) 32%,
      transparent 52%
    );
  }

  .hc-client-hero__inner {
    padding: 1.5rem 0 2.5rem;
  }

  .hc-client-hero__copy {
    padding: 1.65rem 1.5rem;
  }
}
