/* ── Checkout, Payment Methods, Order Confirmation, CRM, Invoice ────── */

/* ── Page layout helpers ────────────────────────────────────────────── */
.jsh-page-header { padding: 32px var(--jsh-pad-x) 0; }
.jsh-page-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--jsh-font-mono); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--jsh-text-dim);
}
.jsh-page-breadcrumb a { color: inherit; text-decoration: none; cursor: pointer; }
.jsh-page-breadcrumb a:hover { color: var(--jsh-text); }
.jsh-page-title {
  font-family: var(--jsh-font-display); font-weight: 400;
  font-size: clamp(48px, 7vw, 64px); line-height: 0.95;
  letter-spacing: -1.5px; margin: 14px 0 0; color: var(--jsh-text);
}

/* ── Two-column form layout ─────────────────────────────────────────── */
.jsh-checkout-body {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start;
  padding: 28px var(--jsh-pad-x) 80px;
}
@media (max-width: 860px) { .jsh-checkout-body { grid-template-columns: 1fr; } }
.jsh-checkout-panels { display: grid; gap: 18px; }
.jsh-panel {
  background: var(--jsh-surface); border: 1px solid var(--jsh-border);
  border-radius: 20px; padding: 24px;
}
.jsh-panel__label {
  font-family: var(--jsh-font-mono); font-size: 11px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--jsh-text-dim);
  margin-bottom: 18px;
}
.jsh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jsh-form-grid--full { grid-template-columns: 1fr; }
@media (max-width: 540px) { .jsh-form-grid { grid-template-columns: 1fr; } }
.jsh-field { display: flex; flex-direction: column; gap: 6px; }
.jsh-field--span { grid-column: 1 / -1; }
.jsh-field__label {
  font-family: var(--jsh-font-mono); font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--jsh-text-dim);
}
.jsh-field input,
.jsh-field select,
.jsh-field textarea {
  background: var(--jsh-bg); color: var(--jsh-text);
  border: 1.5px solid var(--jsh-border); border-radius: 10px;
  padding: 12px 14px; font-family: var(--jsh-font-body); font-size: 14px;
  width: 100%; outline: none; transition: border-color 150ms;
}
.jsh-field input:focus,
.jsh-field select:focus { border-color: var(--jsh-accent); }

/* ── Payment method selector ────────────────────────────────────────── */
.jsh-payment-methods { display: flex; flex-direction: column; gap: 8px; }
.jsh-payment-method {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  border-radius: 12px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--jsh-border); background: var(--jsh-surface);
  transition: border-color 150ms, background 150ms;
  width: 100%;
}
.jsh-payment-method.is-active {
  border-color: var(--jsh-accent); background: rgba(79,227,193,.06);
}
.jsh-payment-method__icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--jsh-surface-2); color: var(--jsh-text);
  transition: background 150ms, color 150ms;
}
.jsh-payment-method.is-active .jsh-payment-method__icon {
  background: var(--jsh-accent); color: var(--jsh-accent-fg);
}
.jsh-payment-method__info { flex: 1; }
.jsh-payment-method__name { font-family: var(--jsh-font-body); font-weight: 700; font-size: 14px; color: var(--jsh-text); }
.jsh-payment-method__sub { font-family: var(--jsh-font-mono); font-size: 10.5px; color: var(--jsh-text-dim); margin-top: 2px; letter-spacing: 0.4px; }
.jsh-payment-method__radio {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--jsh-border-strong);
  display: flex; align-items: center; justify-content: center;
}
.jsh-payment-method.is-active .jsh-payment-method__radio { border-color: var(--jsh-accent); }
.jsh-payment-method__radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--jsh-accent); opacity: 0; transition: opacity 150ms;
}
.jsh-payment-method.is-active .jsh-payment-method__radio::after { opacity: 1; }

/* Payment panel content */
.jsh-payment-panel { margin-top: 16px; }
.jsh-paypal-note {
  padding: 18px; border-radius: 12px;
  background: var(--jsh-surface-2); border: 1px solid var(--jsh-border);
  font-size: 13px; color: var(--jsh-text-soft); line-height: 1.6;
}

/* Crypto panel */
.jsh-crypto-coins { display: flex; gap: 8px; }
.jsh-crypto-coin {
  flex: 1; padding: 10px 8px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--jsh-border); background: var(--jsh-surface);
  color: var(--jsh-text); font-family: var(--jsh-font-mono); font-weight: 700; font-size: 12px;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.jsh-crypto-coin.is-active {
  border-color: var(--jsh-accent); background: rgba(79,227,193,.06); color: var(--jsh-accent);
}
.jsh-crypto-detail {
  display: flex; gap: 16px; padding: 16px; border-radius: 12px; margin-top: 14px;
  background: var(--jsh-surface-2); border: 1px solid var(--jsh-border);
}
.jsh-crypto-qr {
  width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 12px;
  border: 1px solid var(--jsh-border); flex-shrink: 0;
  display: grid; /* cells rendered by JS */
}
.jsh-crypto-info { flex: 1; min-width: 0; }
.jsh-crypto-send-label { font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--jsh-text-dim); }
.jsh-crypto-amount { font-family: var(--jsh-font-display); font-size: 26px; color: var(--jsh-text); line-height: 1.1; margin-top: 2px; }
.jsh-crypto-amount span { font-size: 15px; }
.jsh-crypto-equiv { font-family: var(--jsh-font-mono); font-size: 11px; color: var(--jsh-text-dim); margin-top: 2px; }
.jsh-crypto-addr-label { font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--jsh-text-dim); margin-top: 12px; }
.jsh-crypto-addr-row {
  margin-top: 4px; display: flex; align-items: center; gap: 8px;
  background: var(--jsh-bg); border: 1px solid var(--jsh-border); border-radius: 8px; padding: 8px 10px;
}
.jsh-crypto-addr { flex: 1; font-family: var(--jsh-font-mono); font-size: 11px; color: var(--jsh-text); word-break: break-all; line-height: 1.4; }
.jsh-crypto-copy {
  flex-shrink: 0; padding: 5px 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--jsh-border); background: var(--jsh-surface-2); color: var(--jsh-text);
  font-family: var(--jsh-font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  transition: background 150ms, color 150ms;
}
.jsh-crypto-copy.copied { background: var(--jsh-accent); color: var(--jsh-accent-fg); border-color: var(--jsh-accent); }

/* Pay button */
.jsh-pay-btn {
  width: 100%; margin-top: 18px; height: 52px; border-radius: 999px; border: none;
  background: var(--jsh-accent); color: var(--jsh-accent-fg);
  font-family: var(--jsh-font-body); font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity 150ms;
}
.jsh-pay-btn:disabled { opacity: 0.7; cursor: default; }
.jsh-pay-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; color: var(--jsh-text-dim);
  font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 0.5px;
}
/* Spinner */
.jsh-spinner {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: jshSpin 0.7s linear infinite;
}
@keyframes jshSpin { to { transform: rotate(360deg); } }

/* ── Checkout sidebar summary ───────────────────────────────────────── */
.jsh-checkout-sidebar { position: sticky; top: 130px; }
.jsh-order-summary { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 20px; padding: 24px; }
.jsh-order-summary__title { font-family: var(--jsh-font-display); font-size: 26px; color: var(--jsh-text); margin-bottom: 16px; }
.jsh-order-summary__items { display: grid; gap: 12px; }
.jsh-order-item { display: flex; gap: 12px; align-items: center; }
.jsh-order-item__thumb {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: var(--jsh-cream-soft); color: var(--jsh-accent);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--jsh-border); position: relative;
}
body.jsh-dark .jsh-order-item__thumb { background: var(--jsh-forest-dark); }
.jsh-order-item__qty {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--jsh-text); color: var(--jsh-bg);
  font-family: var(--jsh-font-mono); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.jsh-order-item__name { font-family: var(--jsh-font-body); font-weight: 600; font-size: 13px; color: var(--jsh-text); flex: 1; min-width: 0; }
.jsh-order-item__opts { font-family: var(--jsh-font-mono); font-size: 10px; color: var(--jsh-text-dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jsh-order-item__price { font-family: var(--jsh-font-mono); font-size: 13px; font-weight: 700; color: var(--jsh-text); }
.jsh-order-summary__rows { display: grid; gap: 10px; border-top: 1px solid var(--jsh-border); margin-top: 18px; padding-top: 16px; }
.jsh-order-row { display: flex; justify-content: space-between; align-items: baseline; }
.jsh-order-row__label { font-size: 13.5px; color: var(--jsh-text-soft); }
.jsh-order-row__value { font-size: 13.5px; font-weight: 600; color: var(--jsh-text); }
.jsh-order-row__value--muted { color: var(--jsh-teal); font-family: var(--jsh-font-mono); }
.jsh-order-summary__total {
  border-top: 1px solid var(--jsh-border); margin-top: 16px; padding-top: 14px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.jsh-order-summary__total-label { font-family: var(--jsh-font-body); font-weight: 700; font-size: 15px; color: var(--jsh-text); }
.jsh-order-summary__total-amount { font-family: var(--jsh-font-display); font-size: 34px; color: var(--jsh-text); }
.jsh-checkout-back { margin-top: 14px; background: transparent; color: var(--jsh-accent); border: none; font-family: var(--jsh-font-body); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* ── Order confirmation ─────────────────────────────────────────────── */
.jsh-order-confirmed { max-width: 760px; margin: 0 auto; padding: 56px var(--jsh-pad-x); }
.jsh-order-confirmed__hero { text-align: center; }
.jsh-order-confirmed__check {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px;
  background: rgba(43,179,151,.15); color: var(--jsh-teal);
  display: flex; align-items: center; justify-content: center;
}
body.jsh-dark .jsh-order-confirmed__check { background: rgba(79,227,193,.15); color: var(--jsh-mint); }
.jsh-order-confirmed__title { font-family: var(--jsh-font-display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 0.98; letter-spacing: -1.5px; margin: 14px 0 0; color: var(--jsh-text); }
.jsh-order-confirmed__title em { font-style: italic; color: var(--jsh-forest-mid); }
body.jsh-dark .jsh-order-confirmed__title em { color: var(--jsh-gold); }
.jsh-order-confirmed__sub { font-size: 16px; color: var(--jsh-text-soft); margin-top: 14px; line-height: 1.6; }
.jsh-order-confirmed__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.jsh-order-stat { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 14px; padding: 18px; text-align: center; }
.jsh-order-stat__label { font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--jsh-text-dim); }
.jsh-order-stat__value { font-family: var(--jsh-font-display); font-size: 24px; color: var(--jsh-text); margin-top: 6px; }
.jsh-order-confirmed__items { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 20px; padding: 24px; margin-top: 16px; }
.jsh-order-confirmed__items-label { font-family: var(--jsh-font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--jsh-text-dim); margin-bottom: 16px; }
.jsh-confirmed-item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--jsh-border); }
.jsh-confirmed-item:first-of-type { border-top: none; }
.jsh-confirmed-item__thumb { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: var(--jsh-cream-soft); color: var(--jsh-accent); display: flex; align-items: center; justify-content: center; border: 1px solid var(--jsh-border); }
body.jsh-dark .jsh-confirmed-item__thumb { background: var(--jsh-forest-dark); }
.jsh-confirmed-item__name { font-family: var(--jsh-font-body); font-weight: 600; font-size: 14px; color: var(--jsh-text); flex: 1; }
.jsh-confirmed-item__qty { font-family: var(--jsh-font-mono); font-size: 11px; color: var(--jsh-text-dim); margin-top: 2px; }
.jsh-confirmed-item__price { font-family: var(--jsh-font-mono); font-size: 13px; font-weight: 700; color: var(--jsh-text); }
.jsh-order-confirmed__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.jsh-next-step { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 14px; padding: 18px; }
.jsh-next-step__title { font-family: var(--jsh-font-body); font-weight: 700; font-size: 14px; color: var(--jsh-text); margin-top: 10px; }
.jsh-next-step__body { font-size: 12.5px; color: var(--jsh-text-soft); margin-top: 4px; line-height: 1.5; }
.jsh-order-confirmed__actions { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ── CRM Portal ─────────────────────────────────────────────────────── */
.jsh-account { padding-bottom: 80px; }
.jsh-account__header { padding: 36px var(--jsh-pad-x) 8px; display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.jsh-account__avatar { width: 60px; height: 60px; border-radius: 16px; background: var(--jsh-accent); color: var(--jsh-accent-fg); display: flex; align-items: center; justify-content: center; font-family: var(--jsh-font-display); font-size: 26px; flex-shrink: 0; }
.jsh-account__name-block { flex: 1; min-width: 240px; }
.jsh-account__business { font-family: var(--jsh-font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--jsh-text-dim); }
.jsh-account__title { font-family: var(--jsh-font-display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 0.95; letter-spacing: -1.5px; margin: 6px 0 0; color: var(--jsh-text); }
.jsh-account__title em { font-style: italic; color: var(--jsh-forest-mid); }
body.jsh-dark .jsh-account__title em { color: var(--jsh-gold); }

/* CRM toggle widget */
.jsh-crm-toggle { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 14px; padding: 14px 16px; width: 248px; flex-shrink: 0; }
.jsh-crm-toggle__top { display: flex; align-items: center; gap: 8px; }
.jsh-crm-toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jsh-text-dim); }
.jsh-crm-toggle__dot--on { background: var(--jsh-teal); animation: jshPulse 1.8s infinite; }
body.jsh-dark .jsh-crm-toggle__dot--on { background: var(--jsh-mint); }
.jsh-crm-toggle__name { font-family: var(--jsh-font-body); font-weight: 700; font-size: 13px; color: var(--jsh-text); }
.jsh-crm-toggle__status { font-family: var(--jsh-font-mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-left: auto; }
.jsh-crm-toggle__status--on { color: var(--jsh-teal); }
body.jsh-dark .jsh-crm-toggle__status--on { color: var(--jsh-mint); }
.jsh-crm-toggle__btn { margin-top: 12px; width: 100%; background: transparent; color: var(--jsh-text-soft); border: 1px solid var(--jsh-border); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-family: var(--jsh-font-mono); font-size: 9.5px; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.jsh-crm-toggle__btn:hover { background: var(--jsh-surface-2); }

/* Outstanding banner */
.jsh-outstanding-banner { margin: 16px var(--jsh-pad-x) 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--jsh-border); background: linear-gradient(135deg, #e8c27333, var(--jsh-cream-soft)); }
body.jsh-dark .jsh-outstanding-banner { background: linear-gradient(135deg, var(--jsh-forest-dark), var(--jsh-forest-deep)); }
.jsh-outstanding-banner__inner { padding: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.jsh-outstanding-banner__text { flex: 1; min-width: 220px; }
.jsh-outstanding-banner__eyebrow { font-family: var(--jsh-font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--jsh-gold-deep); }
body.jsh-dark .jsh-outstanding-banner__eyebrow { color: var(--jsh-gold-soft); }
.jsh-outstanding-banner__title { font-family: var(--jsh-font-display); font-size: 34px; color: var(--jsh-text); margin-top: 4px; letter-spacing: -0.5px; }
.jsh-outstanding-banner__sub { font-size: 13.5px; color: var(--jsh-text-soft); margin-top: 4px; }
.jsh-outstanding-banner__sub strong { color: var(--jsh-text); }

/* Tabs */
.jsh-account-tabs { margin: 24px var(--jsh-pad-x) 0; display: flex; gap: 6px; border-bottom: 1px solid var(--jsh-border); flex-wrap: wrap; }
.jsh-account-tab { background: transparent; border: none; cursor: pointer; padding: 12px 14px; font-family: var(--jsh-font-body); font-weight: 700; font-size: 14px; color: var(--jsh-text-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px; }
.jsh-account-tab.is-active { color: var(--jsh-text); border-bottom-color: var(--jsh-accent); }
.jsh-account-tab__count { font-family: var(--jsh-font-mono); font-size: 11px; color: var(--jsh-text-dim); }
.jsh-account-content { padding: 24px var(--jsh-pad-x) 0; }

/* Stat strip */
.jsh-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 700px) { .jsh-stat-strip { grid-template-columns: repeat(2, 1fr); } }
.jsh-stat-card { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 16px; padding: 18px; }
.jsh-stat-card__label { font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--jsh-text-dim); }
.jsh-stat-card__value { font-family: var(--jsh-font-display); font-size: 32px; color: var(--jsh-text); margin-top: 6px; line-height: 1; }
.jsh-stat-card__sub { font-size: 12px; color: var(--jsh-text-soft); margin-top: 4px; }

/* Card list */
.jsh-card-list { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 18px; overflow: hidden; }
.jsh-card-list__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--jsh-border); }
.jsh-card-list__title { font-family: var(--jsh-font-body); font-weight: 700; font-size: 15px; color: var(--jsh-text); }
.jsh-card-list__all { background: transparent; border: none; color: var(--jsh-accent); font-family: var(--jsh-font-body); font-weight: 600; font-size: 12.5px; cursor: pointer; }

/* Invoice row */
.jsh-inv-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--jsh-border); }
.jsh-inv-row:first-child { border-top: none; }
.jsh-inv-row--overdue { border-color: rgba(233,113,66,.4) !important; }
.jsh-inv-row__icon { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; background: var(--jsh-surface-2); color: var(--jsh-text-soft); display: flex; align-items: center; justify-content: center; }
.jsh-inv-row__main { flex: 1; min-width: 0; }
.jsh-inv-row__num-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jsh-inv-row__number { font-family: var(--jsh-font-mono); font-size: 12.5px; font-weight: 700; color: var(--jsh-text); }
.jsh-inv-row__title { font-family: var(--jsh-font-body); font-size: 13.5px; color: var(--jsh-text); font-weight: 600; margin-top: 4px; }
.jsh-inv-row__meta { font-family: var(--jsh-font-mono); font-size: 11px; color: var(--jsh-text-dim); margin-top: 3px; }
.jsh-inv-row__amount { font-family: var(--jsh-font-mono); font-weight: 700; font-size: 16px; color: var(--jsh-text); flex-shrink: 0; white-space: nowrap; }
.jsh-inv-row__pay { flex-shrink: 0; background: var(--jsh-accent); color: var(--jsh-accent-fg); border: none; border-radius: 999px; padding: 10px 18px; font-family: var(--jsh-font-body); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; }
.jsh-inv-row__view { flex-shrink: 0; background: transparent; color: var(--jsh-text); border: 1px solid var(--jsh-border); border-radius: 999px; padding: 10px 16px; font-family: var(--jsh-font-body); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }

/* Status badge */
.jsh-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 700; }
.jsh-status__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.jsh-status--ok   { color: var(--jsh-teal-dark); background: rgba(43,179,151,.12); }
.jsh-status--gold { color: var(--jsh-gold-deep); background: rgba(214,162,74,.12); }
.jsh-status--warn { color: #E97142; background: rgba(233,113,66,.12); }
.jsh-status--dim  { color: var(--jsh-text-dim); background: var(--jsh-surface-2); }
body.jsh-dark .jsh-status--ok   { color: var(--jsh-mint); background: rgba(79,227,193,.12); }
body.jsh-dark .jsh-status--gold { color: var(--jsh-gold-soft); background: rgba(232,194,115,.12); }

/* Quote row */
.jsh-quote-row { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 16px; padding: 20px; }
.jsh-quote-row--compact { border-radius: 0; border: none; border-top: 1px solid var(--jsh-border); padding: 16px 20px; }
.jsh-quote-row__head { display: flex; align-items: flex-start; gap: 16px; }
.jsh-quote-row__main { flex: 1; min-width: 0; }
.jsh-quote-row__actions { display: flex; gap: 8px; margin-top: 14px; }
.jsh-quote-decline { flex: 1; background: transparent; color: var(--jsh-text-soft); border: 1px solid var(--jsh-border); border-radius: 999px; padding: 11px; font-family: var(--jsh-font-body); font-weight: 600; font-size: 13px; cursor: pointer; }
.jsh-quote-accept { flex: 2; background: var(--jsh-accent); color: var(--jsh-accent-fg); border: none; border-radius: 999px; padding: 11px; font-family: var(--jsh-font-body); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.jsh-quote-note { font-size: 12.5px; color: var(--jsh-text-soft); line-height: 1.5; margin-top: 12px; }

/* PO row */
.jsh-po-row { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 16px; overflow: hidden; }
.jsh-po-row__head { padding: 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; }
.jsh-po-row__chevron { color: var(--jsh-text-dim); transition: transform 150ms; flex-shrink: 0; }
.jsh-po-row__chevron.is-open { transform: rotate(90deg); }
.jsh-po-row__rail { padding: 0 20px 18px; display: flex; align-items: center; gap: 0; }
.jsh-rail-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jsh-rail-step__dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--jsh-border); background: var(--jsh-surface-2); color: var(--jsh-text-dim); }
.jsh-rail-step__dot--done { background: var(--jsh-accent); border-color: var(--jsh-accent); color: var(--jsh-accent-fg); }
.jsh-rail-step__label { font-family: var(--jsh-font-mono); font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--jsh-text-dim); }
.jsh-rail-step__label--done { color: var(--jsh-text); }
.jsh-rail-line { flex: 1; height: 2px; background: var(--jsh-border); margin: 0 4px 18px; }
.jsh-rail-line--done { background: var(--jsh-accent); }
.jsh-po-row__body { padding: 20px; border-top: 1px solid var(--jsh-border); }
.jsh-po-tracking { margin-top: 16px; background: var(--jsh-surface-2); border: 1px solid var(--jsh-border); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.jsh-po-tracking__info { flex: 1; }
.jsh-po-tracking__carrier { font-family: var(--jsh-font-body); font-weight: 700; font-size: 13px; color: var(--jsh-text); }
.jsh-po-tracking__note { font-size: 12px; color: var(--jsh-text-soft); margin-top: 2px; }

/* Orders list */
.jsh-orders-list { display: grid; gap: 12px; }
.jsh-order-row-item { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 16px; }

/* Connect prompt */
.jsh-crm-connect { margin-top: 24px; background: var(--jsh-surface); border: 1px dashed var(--jsh-border-strong); border-radius: 20px; padding: 32px; text-align: center; }
.jsh-crm-connect__icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px; background: rgba(79,227,193,.1); color: var(--jsh-accent); display: flex; align-items: center; justify-content: center; }
.jsh-crm-connect__title { font-family: var(--jsh-font-display); font-size: 30px; color: var(--jsh-text); }
.jsh-crm-connect__body { font-size: 14px; color: var(--jsh-text-soft); margin-top: 10px; max-width: 460px; margin-inline: auto; line-height: 1.6; }

/* Doc items table */
.jsh-doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.jsh-doc-table th { text-align: left; padding: 0 0 10px; color: var(--jsh-text-dim); font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.jsh-doc-table th:last-child,
.jsh-doc-table td:last-child { text-align: right; }
.jsh-doc-table td { padding: 12px 0; color: var(--jsh-text); border-top: 1px solid var(--jsh-border); }
.jsh-doc-totals { margin-left: auto; width: 260px; margin-top: 16px; }
.jsh-doc-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.jsh-doc-grand { border-top: 1px solid var(--jsh-border); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.jsh-doc-grand__label { font-size: 14px; font-weight: 700; color: var(--jsh-text); }
.jsh-doc-grand__amount { font-family: var(--jsh-font-display); font-size: 30px; color: var(--jsh-text); }

/* ── Invoice pay page ───────────────────────────────────────────────── */
.jsh-inv-pay { padding: 20px var(--jsh-pad-x) 80px; }
.jsh-inv-pay__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .jsh-inv-pay__grid { grid-template-columns: 1fr; } }
.jsh-inv-preview { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 20px; padding: 28px; }
.jsh-inv-from-to { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.jsh-inv-from-label,
.jsh-inv-to-label { font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--jsh-text-dim); }
.jsh-inv-from-body,
.jsh-inv-to-body { font-size: 13px; color: var(--jsh-text); line-height: 1.6; margin-top: 6px; }
.jsh-inv-to-body { text-align: right; }
.jsh-inv-operated { font-family: var(--jsh-font-mono); font-size: 9.5px; color: var(--jsh-text-dim); margin-top: 8px; letter-spacing: 0.5px; }
.jsh-inv-notes { margin-top: 20px; background: var(--jsh-surface-2); border-radius: 12px; padding: 14px; font-size: 12.5px; color: var(--jsh-text-soft); line-height: 1.6; }
.jsh-inv-notes-label { font-family: var(--jsh-font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--jsh-text-dim); margin-bottom: 4px; }

.jsh-pay-panel { position: sticky; top: 130px; display: grid; gap: 14px; }
.jsh-pay-card { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 20px; padding: 22px; }
.jsh-pay-card__label { font-family: var(--jsh-font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--jsh-text-dim); }
.jsh-pay-card__amount { font-family: var(--jsh-font-display); font-size: 40px; color: var(--jsh-text); line-height: 1; margin-top: 4px; }
.jsh-pay-card__currency { font-family: var(--jsh-font-mono); font-size: 11px; color: var(--jsh-text-dim); margin-top: 2px; }
.jsh-paid-success { margin-top: 18px; display: grid; gap: 14px; place-items: center; text-align: center; padding: 16px 8px; }
.jsh-paid-success__icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(43,179,151,.15); color: var(--jsh-teal); display: flex; align-items: center; justify-content: center; }
body.jsh-dark .jsh-paid-success__icon { background: rgba(79,227,193,.15); color: var(--jsh-mint); }
.jsh-paid-success__title { font-family: var(--jsh-font-display); font-size: 26px; color: var(--jsh-text); }
.jsh-paid-success__body { font-size: 13px; color: var(--jsh-text-soft); line-height: 1.5; margin: 0; }
.jsh-inv-copy-card { background: var(--jsh-surface); border: 1px solid var(--jsh-border); border-radius: 14px; padding: 16px; font-size: 12.5px; color: var(--jsh-text-soft); }
.jsh-inv-copy-card__head { display: flex; align-items: center; gap: 8px; color: var(--jsh-text); font-weight: 700; margin-bottom: 6px; }
