/* Kazuri Host — premium client theme (compact, restrained) */

:root,
[data-bs-theme="light"] {
  --kh-navy: #2a3a7a;
  --kh-navy-deep: #1b274f;
  --kh-accent: #3a8fb5; /* muted cyan — sparingly */
  --kh-cyan: var(--kh-accent);
  --kh-ink: #1c2333;
  --kh-muted: #6b7385;
  --kh-bg: #f5f6f8;
  --kh-card: #ffffff;
  --kh-line: rgba(28, 35, 51, 0.08);
  --kh-line-strong: rgba(42, 58, 122, 0.18);
  --kh-radius: 10px;
  --kh-radius-sm: 8px;
  --kh-shadow: 0 1px 2px rgba(28, 35, 51, 0.04), 0 8px 24px rgba(28, 35, 51, 0.04);
  --kh-control-h: 42px;
  --bs-primary: #2a3a7a;
  --bs-primary-rgb: 42, 58, 122;
  --bs-link-color: #2a3a7a;
  --bs-link-hover-color: #1b274f;
  --bs-body-bg: var(--kh-bg);
  --bs-body-color: var(--kh-ink);
  --bs-border-radius: 8px;
  --bs-border-radius-lg: 10px;
  --bs-font-size-base: 0.9375rem;
}

body {
  background: var(--kh-bg);
  color: var(--kh-ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* —— Header (full-bleed white bar) —— */
.kh-topbar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--kh-line);
  margin-bottom: 1rem;
}

.kh-topbar .navbar {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  margin-bottom: 0;
}

.kh-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}

.kh-topbar .navbar-collapse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.35rem 0.75rem;
}

@media (min-width: 768px) {
  .kh-top-primary {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 0.35rem;
    margin: 0 !important;
  }

  .kh-top-actions {
    margin-left: auto !important;
  }
}

.navbar-brand img {
  max-height: 60px;
  height: 60px;
  width: auto;
}

.navbar .nav-link {
  font-weight: 550;
  font-size: 0.875rem;
  color: var(--kh-ink) !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 6px;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  background: rgba(42, 58, 122, 0.06);
  color: var(--kh-navy) !important;
}

.kh-top-actions { margin-left: auto; }

.kh-nav-order {
  font-weight: 650 !important;
}

.kh-icon-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 8px !important;
}

/* Reset <button class="nav-link"> so cart/user toggles match <a.nav-link> icons */
.navbar button.nav-link.kh-icon-link {
  background: transparent;
  border: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
  color: var(--kh-ink) !important;
}

.navbar button.nav-link.kh-icon-link:hover,
.navbar button.nav-link.kh-icon-link:focus,
.navbar button.nav-link.kh-icon-link.show,
.navbar button.nav-link.kh-icon-link.active {
  background: rgba(42, 58, 122, 0.06);
  color: var(--kh-navy) !important;
}

.kh-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kh-icon-wrap .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.kh-cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--kh-navy);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.kh-user-toggle {
  width: auto !important;
  padding: 0.2rem 0.45rem !important;
  gap: 0.3rem;
}

.kh-user-name {
  font-weight: 600;
  font-size: 0.85rem;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cart dropdown — same shell as account menu */
.kh-cart-dropdown > .dropdown-toggle::after {
  display: none !important;
  content: none !important;
  margin: 0 !important;
  border: 0 !important;
}

.kh-cart-menu {
  min-width: 22rem;
  max-width: min(28rem, calc(100vw - 1.25rem));
  padding: 0.5rem 0;
}

.kh-cart-menu .dropdown-header {
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kh-muted);
}

.kh-cart-menu .dropdown-item-text {
  white-space: normal;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.kh-cart-menu .dropdown-item {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.kh-cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  column-gap: 0.65rem;
  row-gap: 0.15rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

.kh-cart-line__title {
  min-width: 0;
  color: var(--kh-ink);
}

.kh-cart-line__price {
  font-weight: 650;
  color: var(--kh-navy-deep);
  white-space: nowrap;
  padding-top: 0.05rem;
}

.kh-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: -0.1rem -0.15rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--kh-muted);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease;
}

.kh-cart-remove:hover,
.kh-cart-remove:focus-visible {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
  outline: none;
}

.kh-cart-remove .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.kh-cart-line--total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  grid-template-columns: none;
}

.kh-cart-line--total strong {
  color: var(--kh-navy-deep);
}

.kh-nav-login {
  min-height: 34px !important;
  padding: 0.3rem 0.85rem !important;
  font-size: 0.8125rem !important;
}

/* Sidebar */
.kh-nav-section {
  list-style: none;
  margin: 0.85rem 0 0.3rem;
  padding: 0 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b93a5;
}

.kh-nav-section:first-child { margin-top: 0; }

/* Order = same weight as other links; highlight only when actually active */
.kh-side-nav .kh-nav-cta.active {
  background: rgba(42, 58, 122, 0.08);
  color: var(--kh-navy) !important;
  font-weight: 650;
}

.kh-side-nav .kh-nav-cta.active:hover {
  background: var(--kh-navy);
  color: #fff !important;
}

.kh-help-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kh-help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--kh-muted) !important;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.3;
  border-radius: 6px;
  padding: 0.15rem 0;
  transition: color 0.12s ease;
}

.kh-help-link:hover {
  color: var(--kh-navy) !important;
}

.kh-help-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  color: var(--kh-navy);
  opacity: 0.75;
}

.kh-help-link:hover .kh-help-link__icon {
  opacity: 1;
}

.kh-help-link__icon .icon {
  width: 1rem;
  height: 1rem;
}

#sidebarMenu .nav-link {
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: var(--kh-muted);
  font-weight: 550;
  font-size: 0.875rem;
  margin-bottom: 0.12rem;
}

#sidebarMenu .nav-link.active,
#sidebarMenu .offcanvas-item.active .nav-link {
  background: rgba(42, 58, 122, 0.08);
  color: var(--kh-navy);
}

#sidebarMenu .nav-link:hover {
  background: rgba(42, 58, 122, 0.05);
  color: var(--kh-navy);
}

/* —— Buttons (compact) —— */
.btn {
  font-size: 0.875rem;
  border-radius: 8px;
  font-weight: 600;
}

.navbar .btn-outline-primary {
  border-radius: 8px;
  font-weight: 600;
}

.navbar .btn-primary,
.btn-primary {
  background: var(--kh-navy);
  border-color: var(--kh-navy);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  min-height: var(--kh-control-h);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--kh-navy-deep);
  border-color: var(--kh-navy-deep);
}

.btn-dark {
  background: var(--kh-ink);
  border-color: var(--kh-ink);
  border-radius: 8px;
  font-weight: 600;
  min-height: var(--kh-control-h);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-outline-primary {
  color: var(--kh-navy);
  border-color: var(--kh-line-strong);
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  min-height: var(--kh-control-h);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-outline-primary:hover {
  background: var(--kh-navy);
  border-color: var(--kh-navy);
  color: #fff;
}

.btn-sm {
  min-height: 34px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 7px;
}

/* Language selector — compact for 2-letter codes (Fr / En) */
.navbar .js-locale-selector,
.navbar .ts-wrapper.js-locale-selector {
  width: 3.35rem !important;
  max-width: 3.35rem !important;
  min-width: 3.35rem !important;
  flex: 0 0 3.35rem;
}

.navbar .form-select.js-locale-selector {
  width: 3.35rem !important;
  max-width: 3.35rem !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0.2rem 1.35rem 0.2rem 0.4rem !important;
  font-size: 0.8rem !important;
  font-weight: 650;
  line-height: 1.2 !important;
  border-radius: 8px;
  background-position: right 0.35rem center !important;
  background-size: 10px 8px !important;
}

.navbar .ts-wrapper.js-locale-selector .ts-control {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0.2rem 0.25rem 0.2rem 0.4rem !important;
  font-size: 0.8rem !important;
  font-weight: 650;
  border-radius: 8px !important;
  gap: 0;
}

.navbar .ts-wrapper.js-locale-selector .ts-control > * {
  margin: 0 !important;
}

.navbar .ts-wrapper.js-locale-selector .ts-control .item {
  padding: 0 !important;
  margin: 0 !important;
}

.navbar .ts-wrapper.js-locale-selector .ts-control::after {
  right: 0.35rem !important;
}

@media (max-width: 768px) {
  .ts-wrapper.js-locale-selector {
    width: 3.35rem !important;
    max-width: 3.35rem !important;
  }
}

/* —— Cards —— */
.card {
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow);
  background: var(--kh-card);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--kh-line);
  font-weight: 650;
  padding: 0.75rem 1rem;
}

.card-body {
  padding: 1rem;
}

.alert-info {
  background: #f0f3f8;
  border: 1px solid var(--kh-line);
  color: var(--kh-navy-deep);
  border-radius: var(--kh-radius);
  font-size: 0.875rem;
}

.badge {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.list-group-item {
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
}

/* —— Forms —— */
.form-label {
  font-weight: 600;
  color: var(--kh-ink);
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
}

.mb-3 {
  margin-bottom: 0.9rem !important;
}

.form-control,
.form-select,
textarea.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="date"],
select.form-select {
  min-height: var(--kh-control-h) !important;
  padding: 0.45rem 0.8rem !important;
  border-radius: 8px !important;
  border-width: 1px;
  border-color: var(--kh-line-strong) !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  background-color: #fff;
}

textarea.form-control {
  min-height: 110px !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--kh-navy) !important;
  box-shadow: 0 0 0 3px rgba(42, 58, 122, 0.12) !important;
}

.form-control-sm,
.form-select-sm,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .btn {
  min-height: 38px !important;
  padding: 0.35rem 0.7rem !important;
  font-size: 0.875rem !important;
  border-radius: 8px !important;
}

.form-hint,
.form-text,
small.form-hint,
small.text-muted {
  display: block;
  margin-top: 0.3rem;
  color: var(--kh-muted) !important;
  font-size: 0.8rem;
}

.input-group .form-control,
.input-group .form-select,
.input-group > .btn {
  min-height: var(--kh-control-h) !important;
}

.input-group > .btn {
  padding-inline: 1rem !important;
  font-size: 0.875rem !important;
}

.form-check {
  padding-left: 1.6em;
  margin-bottom: 0.55rem;
}

.form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.2em;
  margin-left: -1.6em;
}

.form-check-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-switch .form-check-input {
  width: 2.2em;
  height: 1.2em;
}

.iti { width: 100%; display: block; }

.iti .form-control,
.iti input[type="tel"] {
  min-height: var(--kh-control-h) !important;
  font-size: 0.9rem !important;
}

.iti__selected-flag {
  padding: 0 10px 0 12px !important;
}

/* Auth */
.page-login,
.page-signup,
.page-password-reset {
  min-height: 100vh;
}

.kh-auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.75rem 1rem 2.5rem;
}

.kh-auth-wrap.kh-auth-wide {
  max-width: 560px;
}

.kh-auth-card {
  border: 1px solid var(--kh-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--kh-shadow);
  padding: 1.5rem 1.35rem 1.35rem;
}

.kh-auth-card h1,
.kh-auth-card .kh-auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kh-navy-deep);
  text-align: center;
  margin: 0 0 0.35rem;
}

.kh-auth-lead {
  text-align: center;
  color: var(--kh-muted);
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.kh-auth-actions .btn {
  min-height: var(--kh-control-h) !important;
  font-size: 0.9rem !important;
}

.kh-field-group {
  border: 1px solid var(--kh-line);
  border-radius: 10px;
  padding: 0.85rem 0.9rem 0.25rem;
  margin-bottom: 1rem;
  background: #fafbfc;
}

.kh-field-group legend {
  float: none;
  width: auto;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kh-muted);
  padding: 0 0.3rem;
  margin-bottom: 0.5rem;
}

/* —— Dashboard —— */
.dashboard .content-block {
  max-width: 960px;
}

.kh-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--kh-line);
}

.kh-dash-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b93a5;
}

.kh-dash-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kh-ink);
  line-height: 1.25;
}

.kh-dash-lead {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--kh-muted);
  max-width: 36rem;
}

.kh-dash-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kh-dash-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.kh-attention {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 83, 9, 0.2);
  background: #fffbf5;
  text-decoration: none !important;
  color: inherit !important;
  font-size: 0.85rem;
}

.kh-attention--soft {
  border-color: var(--kh-line);
  background: #fff;
}

.kh-attention__label {
  font-weight: 600;
  color: var(--kh-ink);
}

.kh-attention__value {
  font-weight: 700;
  color: var(--kh-navy);
  font-variant-numeric: tabular-nums;
}

.kh-attention__meta {
  color: var(--kh-muted);
  font-size: 0.8rem;
}

.kh-attention__cta {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--kh-navy);
}

.kh-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.kh-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease;
  box-shadow: var(--kh-shadow);
}

.kh-stat:hover {
  border-color: var(--kh-line-strong);
}

.kh-stat.is-warn {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fffbf5;
}

.kh-stat--static {
  cursor: default;
}

.kh-stat__value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--kh-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.kh-stat__value--sm {
  font-size: 1.05rem;
}

.kh-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--kh-muted);
  letter-spacing: 0.01em;
}

.kh-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.kh-quick__item {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--kh-line);
  background: #fff;
  color: var(--kh-ink) !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.kh-quick__item:hover {
  border-color: var(--kh-line-strong);
  background: #fafbfc;
}

.kh-quick__item--accent {
  background: var(--kh-navy);
  border-color: var(--kh-navy);
  color: #fff !important;
}

.kh-quick__item--accent:hover {
  background: var(--kh-navy-deep);
  border-color: var(--kh-navy-deep);
}

/* —— Guest landing —— */
.kh-guest-hero {
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--kh-radius);
  border: 1px solid var(--kh-line);
  background:
    linear-gradient(135deg, rgba(42, 58, 122, 0.06), rgba(55, 172, 223, 0.08)),
    #fff;
  box-shadow: var(--kh-shadow);
}

.kh-guest-hero .kh-dash-lead a {
  color: var(--kh-navy);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kh-guest-hero .kh-dash-head__actions {
  margin-top: 1rem;
}

.kh-guest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kh-guest-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1rem 0.95rem;
  background: #fff;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
  min-height: 8.5rem;
}

.kh-guest-card:hover {
  border-color: var(--kh-line-strong);
  transform: translateY(-1px);
}

.kh-guest-card--accent {
  border-color: rgba(42, 58, 122, 0.28);
  background: linear-gradient(160deg, #fff 40%, rgba(55, 172, 223, 0.08));
}

.kh-guest-card h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--kh-navy-deep);
}

.kh-guest-card p {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  color: var(--kh-muted);
  line-height: 1.45;
}

.kh-guest-card__cta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--kh-navy);
}

.kh-guest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  font-weight: 650;
}

.kh-guest-meta a {
  color: var(--kh-navy) !important;
  text-decoration: none !important;
}

.kh-guest-meta a:hover {
  text-decoration: underline !important;
}

.kh-guest-news {
  margin-bottom: 0.5rem;
}

.kh-panel-card {
  background: #fff;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow);
  overflow: hidden;
  height: 100%;
}

.kh-panel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--kh-line);
}

.kh-panel-card__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--kh-ink);
}

.kh-panel-card__links {
  display: flex;
  gap: 0.65rem;
}

.kh-panel-card__link {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--kh-navy) !important;
  text-decoration: none !important;
}

.kh-panel-card__link:hover {
  text-decoration: underline !important;
}

.kh-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kh-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--kh-line);
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.12s ease;
}

.kh-list li:last-child .kh-list__row {
  border-bottom: 0;
}

.kh-list__row:hover {
  background: #fafbfc;
}

.kh-list__main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.kh-list__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kh-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kh-list__meta {
  font-size: 0.75rem;
  color: var(--kh-muted);
}

.kh-empty {
  padding: 1.5rem 1rem;
  text-align: center;
}

.kh-empty p {
  margin: 0 0 0.35rem;
  color: var(--kh-muted);
  font-size: 0.875rem;
}

.kh-empty a {
  font-size: 0.8125rem;
  font-weight: 650;
}

.kh-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--kh-radius);
  border: 1px solid var(--kh-line);
  background: #fff;
  font-size: 0.875rem;
}

.kh-banner--info {
  background: #f8f9fb;
}

.kh-banner__body {
  flex: 1;
  min-width: 12rem;
}

.kh-banner__body p:last-child {
  margin-bottom: 0;
}

/* Legacy shortcuts (other pages may still use) */
.kh-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.kh-action {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--kh-radius);
  background: #fff;
  border: 1px solid var(--kh-line);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease;
  box-shadow: var(--kh-shadow);
}

.kh-action:hover {
  border-color: var(--kh-line-strong);
}

.kh-action strong {
  color: var(--kh-ink);
  font-size: 0.9rem;
}

.kh-action span {
  color: var(--kh-muted);
  font-size: 0.78rem;
}

.kh-action.primary {
  background: var(--kh-navy);
  border-color: var(--kh-navy);
  color: #fff !important;
}

.kh-action.primary strong,
.kh-action.primary span {
  color: #fff;
}

.kh-action.primary span {
  opacity: 0.75;
}

/* Domain / order forms */
.kh-domain-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.kh-domain-search .input-group {
  flex: 1 1 260px;
  max-width: none !important;
}

.kh-domain-search .btn,
#domain-check,
#transfer-check,
#config-next {
  min-height: var(--kh-control-h) !important;
  padding-inline: 1.1rem !important;
  font-size: 0.875rem !important;
}

.nav-pills .nav-link {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--kh-muted);
}

.nav-pills .nav-link.active {
  background: var(--kh-navy);
}

.card-header-tabs .nav-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--kh-muted);
}

.card-header-tabs .nav-link.active {
  color: var(--kh-navy);
  border-bottom-color: var(--kh-navy);
}

#footer {
  margin-top: 1.75rem !important;
  font-size: 0.8rem;
}

/* —— Order wizard —— */
.kh-wizard {
  background: #fff;
  border: 1px solid var(--kh-line);
  border-radius: 12px;
  padding: 1.15rem 1.1rem 1.25rem;
  box-shadow: var(--kh-shadow);
}

.kh-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0 0 1.25rem;
}

.kh-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #eef0f4;
  color: var(--kh-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.kh-step span {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  color: var(--kh-navy);
  font-size: 0.72rem;
}

.kh-step.active {
  background: var(--kh-navy);
  color: #fff;
}

.kh-step.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.kh-step.done {
  background: rgba(42, 58, 122, 0.1);
  color: var(--kh-navy);
}

.kh-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 0.25rem;
}

.kh-panel-lead {
  color: var(--kh-muted);
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.kh-choice-grid,
.kh-plan-grid {
  display: grid;
  gap: 0.55rem;
}

.kh-choice-grid { grid-template-columns: repeat(3, 1fr); }
.kh-plan-grid { grid-template-columns: repeat(2, 1fr); }

.kh-choice,
.kh-plan {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--kh-line);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.kh-choice:has(input:checked),
.kh-plan:has(input:checked) {
  border-color: var(--kh-navy);
  box-shadow: 0 0 0 2px rgba(42, 58, 122, 0.12);
}

.kh-plan.featured {
  border-color: var(--kh-line-strong);
}

.kh-plan.muted { opacity: 0.92; }

.kh-choice input,
.kh-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kh-choice strong,
.kh-plan strong {
  color: var(--kh-ink);
  font-size: 0.9rem;
}

.kh-plan em {
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--kh-navy-deep);
}

.kh-plan em small {
  font-weight: 550;
  font-size: 0.8rem;
  color: var(--kh-muted);
}

.kh-choice span,
.kh-plan span {
  color: var(--kh-muted);
  font-size: 0.8rem;
}

.kh-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.kh-domain-status[data-state="ok"] { color: #0f7a4c; font-weight: 650; font-size: 0.875rem; }
.kh-domain-status[data-state="bad"] { color: #b42318; font-weight: 650; font-size: 0.875rem; }
.kh-domain-status[data-state="info"] { color: var(--kh-muted); font-size: 0.875rem; }

.kh-note,
.kh-summary,
.kh-cart-box {
  background: #fafbfc;
  border: 1px solid var(--kh-line);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  font-size: 0.875rem;
}

.kh-auth-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.kh-order-hero h1 {
  color: var(--kh-ink);
  font-weight: 700;
  font-size: 1.35rem;
}

.kh-path-badge {
  font-size: 0.82rem;
  color: var(--kh-muted, #5a6478);
  margin: 0;
}

.kh-path-badge a {
  color: var(--kh-cyan, #37acdf);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kh-path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.kh-plan-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--kh-navy);
  margin: 0 0 0.45rem;
}

.kh-path {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--kh-line);
  background: #fff;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease;
  box-shadow: var(--kh-shadow);
}

.kh-path:hover {
  border-color: var(--kh-line-strong);
}

.kh-path.featured {
  background: var(--kh-navy);
  border-color: var(--kh-navy);
  color: #fff !important;
}

.kh-path.featured span,
.kh-path.featured em {
  color: rgba(255, 255, 255, 0.8);
}

.kh-path strong {
  font-size: 0.95rem;
  color: var(--kh-ink);
}

.kh-path.featured strong { color: #fff; }

.kh-path span {
  color: var(--kh-muted);
  font-size: 0.8rem;
}

.kh-path em {
  margin-top: auto;
  font-style: normal;
  font-weight: 650;
  font-size: 0.8rem;
  color: var(--kh-navy);
}

.kh-path.featured em { color: rgba(255, 255, 255, 0.85); }

.kh-catalog-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 0.55rem;
}

.kh-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.kh-catalog-card {
  padding: 0.9rem 0.85rem;
  border: 1px solid var(--kh-line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--kh-shadow);
}

.kh-catalog-card strong {
  color: var(--kh-ink);
  font-size: 0.9rem;
}

.kh-catalog-card em {
  font-style: normal;
  font-weight: 700;
  color: var(--kh-navy);
  font-size: 0.95rem;
}

.kh-catalog-card p {
  margin: 0;
  color: var(--kh-muted);
  font-size: 0.8rem;
  flex: 1;
}

.kh-catalog-card .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

.kh-extra-grid {
  display: grid;
  gap: 0.5rem;
}

.kh-extra {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--kh-line);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}

.kh-extra:has(input:checked) {
  border-color: var(--kh-navy);
  box-shadow: 0 0 0 2px rgba(42, 58, 122, 0.1);
}

.kh-extra input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}

.kh-extra strong {
  display: block;
  color: var(--kh-ink);
  font-size: 0.9rem;
}

.kh-extra em {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--kh-navy-deep);
  margin: 0.1rem 0 0.25rem;
  font-size: 0.85rem;
}

.kh-extra span {
  color: var(--kh-muted);
  font-size: 0.8rem;
}

.kh-gateways {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kh-gateway {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--kh-line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.85rem;
  background: #fff;
}

.kh-gateway:has(input:checked) {
  border-color: var(--kh-navy);
  box-shadow: 0 0 0 2px rgba(42, 58, 122, 0.1);
}

/* —— Invoice payment method tiles (harmonized size/placement) —— */
.kh-pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.kh-pay-method {
  flex: 0 0 112px;
  width: 112px;
  max-width: 112px;
}

.kh-pay-method .btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.kh-pay-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  box-sizing: border-box;
  width: 112px;
  height: 72px;
  min-height: 72px;
  padding: 0.45rem 0.4rem 0.35rem;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--kh-navy, #2a3a7a) !important;
  color: #fff !important;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 2px rgba(27, 39, 79, 0.1);
}

.kh-pay-tile:hover,
.kh-pay-tile:focus-visible {
  background: var(--kh-navy-deep, #1b274f) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-color: #37acdf;
  box-shadow: 0 0 0 2px rgba(55, 172, 223, 0.3);
}

.kh-pay-method .btn-check:checked + .kh-pay-tile,
.kh-pay-tile:focus-visible {
  border-color: #37acdf;
  box-shadow: 0 0 0 2px rgba(55, 172, 223, 0.3);
}

.kh-pay-tile__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
  line-height: 0;
  color: #fff;
}

.kh-pay-tile__mark svg {
  display: block;
  width: 26px;
  height: 26px;
}

.kh-pay-tile__mark img,
.kh-pay-tile__paypal {
  display: block;
  width: auto;
  max-width: 78px;
  height: 22px;
  max-height: 22px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
}

.kh-pay-tile__label {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kh-pay-tile__icon {
  display: flex;
  color: #fff;
  line-height: 0;
}

.kh-pay-tile__icon svg {
  width: 26px;
  height: 26px;
}

.kh-pay-tile__text {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.15;
}

.kh-pay-tile__text--sm {
  font-size: 0.68rem;
  font-weight: 650;
  opacity: 0.95;
}

.kh-pay-tile--paypal,
.kh-pay-tile--cash,
.kh-pay-tile--card {
  /* same footprint for all payment kinds */
}

@media (max-width: 576px) {
  .kh-pay-method {
    flex: 1 1 calc(33.33% - 0.4rem);
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .kh-pay-tile {
    width: 100%;
  }
}

/* —— Invoice page: simple separated sections —— */
.kh-inv {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 900px;
}

.kh-inv-section {
  background: #fff;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  padding: 1rem 1.1rem;
}

.kh-inv-section--muted {
  color: var(--kh-muted);
  font-size: 0.88rem;
}

.kh-inv-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--kh-ink);
}

.kh-inv-section__lead {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--kh-muted);
}

.kh-inv-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.kh-inv-actions {
  display: flex;
  gap: 0.4rem;
}

.kh-inv-status {
  margin-top: 0.25rem;
}

.kh-inv-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0;
}

.kh-inv-dates > div {
  margin: 0;
}

.kh-inv-dates dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--kh-muted);
  font-weight: 600;
}

.kh-inv-dates dd {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
}

.kh-inv-sub {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--kh-navy);
}

.kh-inv-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.kh-inv-dl {
  margin: 0;
}

.kh-inv-dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.2rem 0;
  font-size: 0.88rem;
}

.kh-inv-dl dt {
  margin: 0;
  color: var(--kh-muted);
  font-weight: 500;
}

.kh-inv-dl dd {
  margin: 0;
  color: var(--kh-ink);
}

.kh-inv-table {
  font-size: 0.9rem;
}

.kh-inv-totals {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--kh-line);
  display: flex;
  justify-content: flex-end;
}

.kh-inv-totals table {
  width: auto;
  min-width: 220px;
}

@media (max-width: 720px) {
  .kh-inv-parties {
    grid-template-columns: 1fr;
  }

  .kh-inv-dl > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (max-width: 992px) {
  .kh-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— Services grouped by site —— */
.kh-services-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.kh-sites {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kh-site {
  background: var(--kh-card);
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow);
  overflow: hidden;
}

.kh-site__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--kh-line);
  background: linear-gradient(180deg, #fbfbfc 0%, #fff 100%);
}

.kh-site__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--kh-ink);
}

.kh-site__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: var(--kh-muted);
}

.kh-site__actions {
  flex-shrink: 0;
}

.kh-site__services {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kh-site__service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--kh-line);
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.12s ease;
}

.kh-site__services li:last-child .kh-site__service {
  border-bottom: 0;
}

.kh-site__service:hover {
  background: #fafbfc;
}

.kh-site__service-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.kh-site__service-main strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.kh-site__service-main span,
.kh-site__service-side em {
  font-size: 0.75rem;
  color: var(--kh-muted);
  font-style: normal;
}

.kh-site__service-side {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .kh-services-head,
  .kh-site__head,
  .kh-site__service {
    flex-direction: column;
    align-items: stretch;
  }

  .kh-site__service-side {
    justify-content: space-between;
  }

  .kh-actions,
  .kh-path-grid,
  .kh-catalog-grid,
  .kh-choice-grid,
  .kh-plan-grid {
    grid-template-columns: 1fr;
  }

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

  .kh-dash-head {
    align-items: flex-start;
  }

  .kh-guest-grid {
    grid-template-columns: 1fr;
  }

  .kh-attention {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .kh-auth-card {
    padding: 1.25rem 1rem;
  }

  .kh-step {
    font-size: 0.72rem;
    padding: 0.28rem 0.5rem;
  }
}
