:root {
  --text: #27251f;
  --muted: #625e53;
  --bg: #f7f3eb;
  --card: #fffdf9;
  --line: #e7dfd1;
  --border: #e7dfd1;
  --accent: #e6bd75;
  --accent-dark: #73511c;
  --hero: #f2e9da;
  --ink-dark: #292d26;
  --radius: 16px;
  --shadow: 0 8px 28px #4734180b;
}
body, body.insight-page { background: var(--bg); color: var(--text); }
.site-header { background: var(--card); border-color: var(--line); }
.site-header-inner, .site-footer-inner, .shell, .insight-wrap { width: min(1200px, calc(100% - 48px)); }
.site-header-inner { min-height: 71px; }
.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: #815542;
  mask: url('/images/logo-mask.png') center / contain no-repeat;
  mix-blend-mode: normal;
}
.brand-name { font-weight: 700; }
.brand-name small { color: var(--accent-dark); }
.site-nav a, .site-footer a { color: var(--muted); font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 6px; }
.site-footer { background: #eae4d8; border-color: #e0d6c6; }
.site-footer-inner { min-height: auto; }
.primary { background: var(--accent); border-color: #d4a757; color: #31230e; }
.primary:hover { background: #e0ae59; color: #31230e; }

.minihero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 26px;
  min-height: 0;
  margin: 0;
  padding: 44px max(24px, calc((100vw - 1200px) / 2));
  background: var(--hero);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.minihero-copy, .minihero-art { padding: 0; }
.minihero-art { align-self: center; }
.minihero-illustration { max-height: none; mix-blend-mode: multiply; }
.minihero .eyebrow { color: var(--accent-dark); letter-spacing: .15em; }
.minihero h1 { margin: 0; color: var(--text); font-weight: 500; line-height: 1.04; font-size: clamp(2.6rem, 6vw, 4.75rem); }
.minihero h1 .minihero-title-line { font-size: 1em; line-height: inherit; }
.minihero h1 em { margin-top: 9px; color: #77562f; font-size: clamp(1.18rem, 2.8vw, 1.85rem); font-style: italic; }
.minihero-copy > p.minihero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 15px 0 0; }
.minihero-cta .hero-action { text-decoration: none; }
.minihero-copy .minihero-cta strong { background: #f0e1c7; color: #5f4a2d; border: 0; border-radius: 99px; margin: 0; padding: 5px 10px; white-space: normal; }
.shell { padding-top: 32px; }
.order-header { display: none; }
.embedded .order-header { display: flex; justify-content: flex-end; }
.embedded .order-header #closeOrderPanel { display: inline-flex; }
.desktop-layout { gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(255px, 325px); }
.accordion, .summary-card, .result-card { background: var(--card); border-color: var(--line); }
.accordion-header { gap: 12px; }
.accordion.open .step-badge { background: var(--ink-dark); color: #f6dcac; }
.filter-panel { background: #f8f4eb; }
.pattern-details { background: transparent; }
.filter.active, .choice-card:has(input:checked) { background: #efe0c3; border-color: #c89d59; color: #543a14; }
.number-card { border-color: var(--line); border-radius: 11px; }
.selected-order-label { display: none; }
.selected-number-row > #selectedNumber { font-size: 1.12rem; letter-spacing: .08em; }
.desktop-summary { background: #f8f0e2; }
.desktop-summary h2, .status-summary h2 { font: 700 1.68rem/1.2 system-ui, sans-serif; letter-spacing: 0; }
.desktop-summary h3 { font-weight: 500; letter-spacing: -.035em; }
/* Keep the native radio controls and style the labels like the proposed tabs. */
.customer-switch .customer-options { gap: 6px; border: 0; overflow: visible; }
.customer-switch .customer-tab {
  position: relative;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  box-shadow: none;
}
.customer-switch .customer-tab:hover { background: #f5ead9; }
.customer-switch .customer-tab:has(input:checked) {
  border-color: #c89d59;
  background: #efe0c3;
  color: #543a14;
}
.transfer-info {
  padding: 13px 15px;
  background: #f3ecde;
  border-left: 3px solid #b88846;
  border-radius: 6px;
  color: #534735;
  overflow-wrap: anywhere;
}
.checkout-payment { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.checkout-payment h3, .checkout-payment p { margin: 0; }
.checkout-payment .payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkout-payment .choice-card:has(input:disabled) { display: none; }
.checkout-payment .payment-extra { margin: 0; }
.status-mode .result-header { margin-bottom: 20px; }
.status-mode .result-header h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 500; }
.status-content { min-width: 0; display: grid; gap: 16px; }
.status-timeline { gap: 0; margin: 14px 0 0; }
.status-timeline li { min-height: 48px; position: relative; align-items: start; }
.status-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 25px; bottom: 0; border-left: 1px solid #d7ccba; }
.status-timeline li.done::before { background: #e5eee6; border-color: #d6e2d3; color: #265642; }
.status-timeline li.active::before { color: #31230e; }
.status-mode .order-status-banner.success { background: #edf2e8; border-color: #d6e2d3; }

.insight-wrap { padding-block: 30px 52px; }
.insight-hero, .insight-article > h1, .insight-article > .insight-back { background: transparent; color: var(--text); }
.insight-hero { border: 0; box-shadow: none; padding: 0; }
.insight-hero h1, .insight-article h1 { font-size: clamp(2.3rem, 5vw, 4.15rem); font-weight: 500; }
.insight-card, .insight-article, .insight-filter, .info-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.insight-article { min-width: 0; padding: clamp(18px, 3vw, 36px); overflow-wrap: anywhere; }
.insight-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding: 15px; }
.insight-filter label { flex: 1 1 200px; }
.insight-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 265px); align-items: start; gap: 22px; }
.info-aside { display: grid; gap: 8px; padding: 18px; position: sticky; top: 16px; }
.info-aside h2 { font-size: 1.16rem; margin: 0 0 6px; }
.info-aside a { color: var(--accent-dark); }
.help-page { max-width: none; }
.help-page .contact-layout { grid-template-columns: 1.15fr .85fr; gap: 18px; }
.help-page .contact-chat-section, .help-page .contact-email-card { background: var(--card); border: 1px solid var(--line); padding: 18px; border-radius: var(--radius); }
.help-page .contact-chat-section { order: -1; }

.admin-layout main { width: min(1440px, calc(100% - 40px)); }
.admin-layout #adminView { display: grid; grid-template-columns: 206px minmax(0, 1fr); gap: 16px 22px; align-items: start; }
.admin-layout #adminView > header { grid-column: 1 / -1; padding-block: 4px 11px; border-bottom: 1px solid var(--line); }
.admin-layout #adminView > header h1 { margin: 0; }
.site-header .site-logo .brand-name { font-family: inherit; }
.site-header .site-logo, .admin-layout .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 700 clamp(1.3rem, 4vw, 1.75rem)/1.1 system-ui, sans-serif;
  letter-spacing: -.045em;
  text-decoration: none;
}
.admin-layout .admin-tabs { grid-column: 1; grid-row: 2; align-self: start; display: grid; margin: 0; padding: 12px; gap: 5px; background: var(--ink-dark); border-radius: 13px; }
.admin-layout .admin-tabs button { text-align: left; padding: 8px 10px; background: transparent; border-color: transparent; color: #eee8d9; }
.admin-layout .admin-tabs button:hover, .admin-layout .admin-tabs button[aria-current="page"] { background: #45473b; color: #ffe0a1; }
.admin-layout .admin-tab-panel { grid-column: 2; grid-row: 2; min-width: 0; }
.admin-layout .admin-tab-panel > :first-child { margin-top: 0; }
.admin-layout .admin-tab-panel .panel { border-color: var(--line); background: var(--card); }
.admin-layout .admin-tab-panel .stats { margin-bottom: 15px; }
.admin-layout .stats .stat { min-width: 0; }
@media (max-width: 1100px) {
  .admin-layout #adminView { grid-template-columns: 1fr; }
  .admin-layout .admin-tabs { grid-row: 2; display: flex; flex-wrap: wrap; }
  .admin-layout .admin-tab-panel { grid-column: 1; grid-row: 3; }
}
@media (max-width: 800px) {
  .site-header-inner, .site-footer-inner, .shell, .insight-wrap { width: calc(100% - 28px); }
  .site-nav { gap: 12px; }
  .minihero { grid-template-columns: minmax(0, 1fr); padding: 25px 14px; }
  .minihero-art { display: none; }
  .desktop-layout, .insight-layout, .help-page .contact-layout { grid-template-columns: minmax(0, 1fr); }
  #orderFormView .desktop-layout > .desktop-summary { display: none; }
  .selected-number-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .selected-order-label, .selected-number-row .outline-button { grid-column: 1 / -1; }
  .selected-order-label { display: block; color: var(--muted); font-weight: 650; }
  .result-layout > .desktop-summary { position: static; display: grid; grid-row: 1; padding: 13px 16px; gap: 5px; }
  .result-layout > .desktop-summary > .benefit, .result-layout > .desktop-summary > .eyebrow { display: none; }
  .info-aside { position: static; }
  .admin-layout main { width: calc(100% - 24px); }
  .admin-layout #adminView > header > div { flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .site-header-inner { gap: 8px; flex-wrap: wrap; padding-block: 10px; }
  .site-nav { gap: 10px; font-size: .82rem; }
  .checkout-payment .payment-options { grid-template-columns: minmax(0, 1fr); }
  .admin-layout .admin-tabs button { font-size: .8rem; }
}

.admin-layout #adminView[hidden] { display: none; }
.status-mode .result-header { flex-wrap: wrap; }
.status-pill { display: inline-block; border-radius: 999px; padding: 4px 10px; background: #efe0c3; color: #543a14; font-weight: 700; }
.status-side { display: grid; gap: 12px; }
.status-summary { display: grid; gap: 9px; }
.status-summary h2, .status-summary p { margin: 0; }
.status-summary .status-number { font-size: clamp(1.45rem, 3vw, 2.15rem); }
@media (max-width: 750px) { .status-side { order: initial; } }
.minihero h1 br { display: none; }
.minihero h1 em { display: block; }
@media (min-width: 801px) { .number-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

#paymentTrustText:empty { display: none; }

#directTransferDetails {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 68%, #fff);
}
.status-step-note {
  display: block;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 400;
  white-space: pre-line;
}
#directTransferDetails label { display: grid; gap: 6px; width: min(100%, 300px); font-weight: 650; }
#directOperator {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #a58a70;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
#directTransferDetails ol { display: grid; gap: 13px; margin: 0; padding-left: 1.6rem; }
#directTransferDetails li { padding-left: 4px; }
#directTransferDetails li::marker { color: #815542; font-weight: 700; }
.admin-layout [data-field="transfer_status"] { width: 100%; max-width: 12rem; min-width: 0; text-overflow: ellipsis; }
