:root{--action:#6e56e8;--on-action:#fff;--bg:#f4f6fa;--card:#fff;--line:#e0e5ef;--text:#192b40;--muted:#61718a}.payment-flow header{background:var(--card);color:var(--text);border-bottom:1px solid var(--line);padding:20px max(20px,calc((100vw - 1100px)/2));flex-wrap:wrap}.payment-flow header a{color:var(--text)}.payment-brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:23px}.payment-flow header img{width:42px;height:42px}.payment-flow header nav{font-size:12px}.payment-flow main{max-width:1100px}.payment-flow .card{border-radius:18px;box-shadow:0 5px 18px #172d4605}.payment-flow button,.payment-flow .button{border-radius:10px}.payment-flow .grid{grid-template-columns:repeat(auto-fit,minmax(min(255px,100%),1fr))}.payment-flow label.check{font-size:14px}.payment-flow .price{font-size:32px}.setup-status .card{margin:0;padding:16px}.setup-status{margin:24px 0}.setup-status p{margin-bottom:0}.row{gap:12px}@media(prefers-color-scheme:dark){:root{--bg:#111620;--card:#1a2230;--text:#edf1fa;--muted:#afbbcf;--line:#303d52;--action:#8c77ff;--on-action:#fff}}@media(max-width:600px){.payment-flow header nav{gap:12px}.payment-flow header{gap:16px}.payment-flow .grid{grid-template-columns:1fr}.row button{width:100%}}

/* === G22C PAYMENT PORTAL WARM EDITORIAL THEME === */
:root {
  --sx-bg: #f5f4f0;
  --sx-surface: #ffffff;
  --sx-surface-alt: #efede7;
  --sx-ink: #16181b;
  --sx-ink-muted: #5a5d63;
  --sx-accent: #2d4a6b;
  --sx-accent-hover: #1e334a;
  --sx-border: rgba(22, 24, 27, 0.09);
  --sx-border-strong: rgba(22, 24, 27, 0.18);
  --sx-success: #2e7d32;
  --sx-error: #c62828;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 8px 24px -12px rgba(22, 24, 27, 0.06);
  --shadow-md: 0 18px 42px -18px rgba(22, 24, 27, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]):not([data-lighting]) {
    --sx-bg: #111316;
    --sx-surface: #181b1f;
    --sx-surface-alt: #20242a;
    --sx-ink: #eceef1;
    --sx-ink-muted: #a0a4ab;
    --sx-accent: #a9c2d8;
    --sx-accent-hover: #c4d8e8;
    --sx-border: rgba(255, 255, 255, 0.09);
    --sx-border-strong: rgba(255, 255, 255, 0.20);
    --shadow-sm: 0 10px 28px -12px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 20px 48px -18px rgba(0, 0, 0, 0.60);
  }
}

html,
body,
body.payment-flow {
  background: var(--sx-bg) !important;
  color: var(--sx-ink) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Header & Topbar */
body.payment-flow > header,
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--sx-bg) 88%, transparent) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid var(--sx-border) !important;
}

/* header uses color-mix with --sx-bg across all 4 modes */

.header-bar,
.topbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem !important;
}

/* Surfaces & Cards */
body.payment-flow .card,
.panel,
.legal-card {
  background: var(--sx-surface) !important;
  border: 1px solid var(--sx-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--sx-ink) !important;
}

body.payment-flow .card {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) !important;
}

body.payment-flow h1,
.hero h1,
.legal-card h1 {
  font-weight: 750 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.12 !important;
  color: var(--sx-ink) !important;
}

body.payment-flow .lead,
.hero p,
.legal-card p {
  color: var(--sx-ink-muted) !important;
  line-height: 1.65 !important;
}

/* Pill Buttons (Replaces Legacy #635bff Stripe Purple) */
body.payment-flow .button,
body.payment-flow a.button,
body.payment-flow button,
.summary-panel button[type="submit"],
.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  background: var(--sx-ink) !important;
  color: var(--sx-bg) !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.78rem 1.6rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px -6px rgba(22, 24, 27, 0.22) !important;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease !important;
}

body.payment-flow .button:hover,
body.payment-flow a.button:hover,
body.payment-flow button:hover,
.summary-panel button[type="submit"]:hover {
  transform: translateY(-1px) !important;
  opacity: 0.92 !important;
}

body.payment-flow .button.secondary {
  background: var(--sx-surface-alt) !important;
  color: var(--sx-ink) !important;
  border: 1px solid var(--sx-border-strong) !important;
  box-shadow: none !important;
}

/* Catalog Grid & Cards (/services) */
.shell {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 2rem 1.5rem 4rem !important;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem !important;
}

.catalog-card {
  background: var(--sx-surface-alt) !important;
  border: 1px solid var(--sx-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.15rem !important;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease !important;
}

.catalog-card:hover {
  border-color: var(--sx-accent) !important;
  transform: translateY(-1px);
}

.catalog-card:has(input:checked),
.catalog-card.selected {
  background: var(--sx-surface) !important;
  border-color: var(--sx-accent) !important;
  box-shadow: 0 0 0 2px rgba(45, 74, 107, 0.15) !important;
}

/* Inputs & Selects */
body.payment-flow select,
body.payment-flow input:not([type="checkbox"]):not([type="radio"]),
.shell select,
.shell input:not([type="checkbox"]):not([type="radio"]),
.shell textarea {
  background: var(--sx-surface-alt) !important;
  color: var(--sx-ink) !important;
  border: 1px solid var(--sx-border-strong) !important;
  border-radius: 12px !important;
  padding: 0.65rem 0.9rem !important;
}

.lang-picker select {
  border-radius: var(--radius-pill) !important;
  padding: 0.42rem 0.95rem !important;
  font-weight: 500 !important;
}

/* Footer Links */
body.payment-flow footer,
.footer-links {
  border-top: 1px solid var(--sx-border) !important;
  background: transparent !important;
  color: var(--sx-ink-muted) !important;
}

body.payment-flow footer a,
.footer-links a {
  color: var(--sx-ink-muted) !important;
  text-decoration: none !important;
}

body.payment-flow footer a:hover,
.footer-links a:hover {
  color: var(--sx-ink) !important;
  text-decoration: underline !important;
}

/* Language Dropdown Box + Action Nav Pills + Domain Selection UI */
body.payment-flow header nav.lang-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

body.payment-flow header details.lang-dropdown {
  position: relative;
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.payment-flow header summary.lang-dropdown-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--sx-surface);
  color: var(--sx-ink) !important;
  border: 1px solid var(--sx-border-strong);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(22, 24, 27, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.payment-flow header summary.lang-dropdown-toggle::-webkit-details-marker {
  display: none;
}

body.payment-flow header summary.lang-dropdown-toggle:hover,
body.payment-flow header details.lang-dropdown[open] summary.lang-dropdown-toggle {
  border-color: var(--sx-accent);
}

body.payment-flow header summary.lang-dropdown-toggle .lang-current-sep {
  color: var(--sx-ink-muted);
  font-weight: 400;
}

body.payment-flow header summary.lang-dropdown-toggle::after {
  content: "▾";
  font-size: 11px;
  color: var(--sx-ink-muted);
  margin-inline-start: 3px;
  transition: transform 0.15s ease;
}

body.payment-flow header details.lang-dropdown[open] summary.lang-dropdown-toggle::after {
  transform: rotate(180deg);
}

body.payment-flow header .lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: 220px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 2px;
  padding: 6px;
  background: var(--sx-surface);
  border: 1px solid var(--sx-border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 42px -12px rgba(22, 24, 27, 0.20), 0 4px 12px rgba(22, 24, 27, 0.08);
  z-index: 200;
}

body.payment-flow header .lang-dropdown-menu a.lang-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  color: var(--sx-ink) !important;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.12s ease, color 0.12s ease;
}

body.payment-flow header .lang-dropdown-menu a.lang-pill strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--sx-ink-muted);
}

body.payment-flow header .lang-dropdown-menu a.lang-pill:hover {
  background: var(--sx-surface-alt);
  color: var(--sx-ink) !important;
}

body.payment-flow header .lang-dropdown-menu a.lang-pill.active {
  background: var(--sx-ink);
  color: var(--sx-bg) !important;
  border-color: var(--sx-ink);
  font-weight: 600;
}

body.payment-flow header .lang-dropdown-menu a.lang-pill.active strong {
  color: var(--sx-bg) !important;
}

body.payment-flow header .nav-sep {
  width: 1px;
  height: 20px;
  background: var(--sx-border-strong);
  margin: 0 2px;
}

body.payment-flow header a.nav-action-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  background: var(--sx-surface-alt);
  color: var(--sx-ink) !important;
  border: 1px solid var(--sx-border-strong);
}

body.payment-flow header a.nav-action-link:hover {
  border-color: var(--sx-accent);
}

.domain-card .domain-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.domain-card a.domain-pill {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--sx-border-strong);
  background: var(--sx-surface-alt);
  color: var(--sx-ink) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.domain-card a.domain-pill:hover {
  border-color: var(--sx-accent);
}

.domain-card a.domain-pill.active {
  background: var(--sx-surface);
  border-color: var(--sx-accent);
  box-shadow: 0 0 0 2px rgba(45, 74, 107, 0.18);
  font-weight: 650;
}

.domain-card .domain-select-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.domain-card .domain-select-row label {
  margin: 0;
}

.domain-card .domain-help-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sx-surface-alt);
  color: var(--sx-ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.outside-us-note {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sx-surface-alt);
  font-size: 14px;
}

@media (max-width: 640px) {
  .domain-card .domain-select-row {
    grid-template-columns: 1fr;
  }
}



/* CBB_DUAL_THEME_20261111: Zero-JS SSR 4-Mode Continuation + Dual Logo + Header Switcher */
:root[data-lighting="light"], :root[data-theme="light"]:not([data-lighting="dim"]) {
  --sx-bg: #f5f4f0;
  --sx-surface: #ffffff;
  --sx-surface-alt: #efede7;
  --sx-ink: #16181b;
  --sx-ink-muted: #555960;
  --sx-accent: #2d4a6b;
  --sx-accent-hover: #1e334a;
  --sx-border: rgba(22, 24, 27, 0.09);
  --sx-border-strong: rgba(22, 24, 27, 0.18);
  color-scheme: light;
}
:root[data-lighting="dim"] {
  --sx-bg: #e6e1d6;
  --sx-surface: #f2efe8;
  --sx-surface-alt: #dad4c7;
  --sx-ink: #181a1d;
  --sx-ink-muted: #4a5058;
  --sx-accent: #26415e;
  --sx-accent-hover: #1b3047;
  --sx-border: rgba(24, 26, 29, 0.11);
  --sx-border-strong: rgba(24, 26, 29, 0.22);
  color-scheme: light;
}
:root[data-lighting="semi-dark"] {
  --sx-bg: #1a2028;
  --sx-surface: #232b35;
  --sx-surface-alt: #2b3542;
  --sx-ink: #eef2f6;
  --sx-ink-muted: #aeb9c6;
  --sx-accent: #a9c2d8;
  --sx-accent-hover: #c4d8e8;
  --sx-border: rgba(255, 255, 255, 0.10);
  --sx-border-strong: rgba(255, 255, 255, 0.22);
  --shadow-sm: 0 10px 28px -12px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 20px 48px -18px rgba(0, 0, 0, 0.52);
  color-scheme: dark;
}
:root[data-lighting="dark"], :root[data-theme="dark"]:not([data-lighting="semi-dark"]) {
  --sx-bg: #111316;
  --sx-surface: #181b1f;
  --sx-surface-alt: #20242a;
  --sx-ink: #eceef1;
  --sx-ink-muted: #a2aab4;
  --sx-accent: #a9c2d8;
  --sx-accent-hover: #c4d8e8;
  --sx-border: rgba(255, 255, 255, 0.09);
  --sx-border-strong: rgba(255, 255, 255, 0.20);
  --shadow-sm: 0 10px 28px -12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 20px 48px -18px rgba(0, 0, 0, 0.60);
  color-scheme: dark;
}
.logo-on-dark { display: none !important; }
.logo-on-light { display: inline-block !important; }
:root[data-theme="dark"] .logo-on-dark,
:root[data-lighting="semi-dark"] .logo-on-dark,
:root[data-lighting="dark"] .logo-on-dark { display: inline-block !important; }
:root[data-theme="dark"] .logo-on-light,
:root[data-lighting="semi-dark"] .logo-on-light,
:root[data-lighting="dark"] .logo-on-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]):not([data-lighting]) .logo-on-dark { display: inline-block !important; }
  :root:not([data-theme]):not([data-lighting]) .logo-on-light { display: none !important; }
}
.pay-header-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pay-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--sx-border-strong);
  background: var(--sx-surface);
}
.pay-theme-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sx-ink-muted);
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.pay-theme-pill:hover {
  color: var(--sx-ink);
}
.pay-theme-pill.active {
  background: var(--sx-ink);
  color: var(--sx-bg) !important;
}

/* Extra Credit Top-Up & Native Warm Editorial Credit Usage Table */
.credit-summary-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.credit-summary-head h2 {
  margin: 0 0 2px;
}
.credit-summary-head p {
  margin: 0;
}
.credit-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--sx-border-strong);
  background: var(--sx-surface-alt);
  color: var(--sx-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.credit-pill-accent {
  border-color: var(--sx-accent);
  color: var(--sx-accent);
}
.credit-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.credit-metric {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sx-surface-alt);
  border: 1px solid var(--sx-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.credit-metric span {
  font-size: 12px;
  color: var(--sx-ink-muted);
}
.credit-metric strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--sx-ink);
  font-variant-numeric: tabular-nums;
}
.credit-formula-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.credit-preset-row,
.credit-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 14px;
}
.credit-preset-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--sx-border-strong);
  background: var(--sx-surface-alt);
  color: var(--sx-ink) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.credit-preset-chip:hover,
.credit-preset-chip.active {
  border-color: var(--sx-accent);
  background: var(--sx-surface);
  color: var(--sx-accent) !important;
}
.credit-calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: end;
}
.credit-quote-dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sx-surface-alt);
  border: 1px solid var(--sx-border);
  margin: 12px 0;
}
.credit-quote-dl dt {
  color: var(--sx-ink-muted);
  font-size: 13.5px;
}
.credit-quote-dl dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--sx-ink);
  font-variant-numeric: tabular-nums;
}
.credit-table-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--sx-ink);
}
.credit-tier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.credit-tier-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sx-surface-alt);
  border: 1px solid var(--sx-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.credit-tier-box strong {
  color: var(--sx-ink);
  margin-bottom: 2px;
}
.credit-tier-box span {
  color: var(--sx-ink-muted);
  font-variant-numeric: tabular-nums;
}
.credit-table-scroll {
  max-height: 440px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--sx-border);
  background: var(--sx-surface);
}
.credit-usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.credit-usage-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 10px 14px;
  background: var(--sx-surface-alt);
  color: var(--sx-ink-muted);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--sx-border);
}
.credit-usage-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--sx-border);
  color: var(--sx-ink);
  vertical-align: top;
}
.credit-usage-table td:first-child {
  min-width: 240px;
  max-width: 520px;
}
.credit-usage-table td:nth-child(2),
.credit-usage-table td:nth-child(3) {
  white-space: nowrap;
}
.credit-usage-table tr:last-child td {
  border-bottom: 0;
}
.credit-usage-table code,
.credit-full-breakdown-table code {
  display: inline-block;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--sx-surface-alt);
  border: 1px solid var(--sx-border);
}
.credit-row-prohibited td {
  color: var(--sx-ink-muted);
}
.credit-full-breakdown {
  margin-top: 14px;
  border: 1px solid var(--sx-border-strong);
  border-radius: 12px;
  background: var(--sx-surface);
  overflow: hidden;
}
.credit-full-breakdown summary {
  cursor: pointer;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sx-ink);
  background: var(--sx-surface-alt);
}
.credit-full-breakdown-body {
  padding: 12px 14px;
}
.credit-full-breakdown-wrap {
  overflow-x: auto;
}
.credit-full-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.credit-full-breakdown-table th,
.credit-full-breakdown-table td {
  padding: 8px 11px;
  border: 1px solid var(--sx-border);
  text-align: left;
  vertical-align: top;
  color: var(--sx-ink);
}
.credit-full-breakdown-table th {
  font-weight: 600;
  background: var(--sx-surface-alt);
  color: var(--sx-ink-muted);
}
.credit-full-breakdown-table td:nth-child(2) {
  min-width: 220px;
}
.credit-sanction-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
