:root {
  /* Insider Hosting palette (matches www.insiderhosting.com) */
  --accent: #4aa3ff;
  --accent2: #7c5cff;
  --bg: #0b1118;
  --bg2: #0f1720;
  --surface: #141e2a;
  --surface2: #182433;
  --ink: #e6edf3;
  --ink-2: #9aa9bc;
  --ink-3: #8596ab;
  --line: #223043;
  --line-2: #2e4058;
  --good: #3fd07a;
  --good-bg: rgba(63, 208, 122, .12);
  --bad: #ff6b6b;
  --bad-bg: rgba(255, 107, 107, .1);
  --amber: #f2b84b;
  --radius: 16px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-display: var(--font);
  /* Brand-dependent component colours (skins override these) */
  --on-accent: #fff;
  --primary-bg: var(--accent);
  --primary-bg-hover: #3690f0;
  --on-primary: #fff;
  --primary-shadow: 0 8px 24px -8px rgba(74,163,255,.6);
  --plan-on-bg: linear-gradient(180deg, #172539, var(--surface));
  --plan-on-border: rgba(74,163,255,.55);
  --plan-on-shadow: 0 0 0 1px rgba(74,163,255,.25), 0 30px 70px -30px rgba(74,163,255,.45);
  --line-hover: #42577a;
  --surface-hover: #1d2b3d;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.mono { font-family: var(--mono); font-size: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-primary); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }
.container, .ih-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }


.secure { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; }
.secure svg { width: 14px; height: 14px; fill: var(--good); }
.who { padding: 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }



/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding: 28px 20px 90px; }
.steps { display: grid; gap: 18px; min-width: 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step__title { font-family: var(--font-display); display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--on-accent); font-family: var(--mono); font-size: 13px; font-weight: 700; flex: none; }
.loading, .fatal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--ink-2); }
.fatal h2 { margin: 0 0 6px; color: var(--ink); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.plan:hover { border-color: var(--line-2); transform: translateY(-1px); }
.plan:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan.is-on { background: var(--plan-on-bg); border-color: var(--plan-on-border); box-shadow: var(--plan-on-shadow); }
.plan__name { font-weight: 800; font-size: 16px; }
.plan__price { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.plan__price small { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan__feats { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 5px; color: var(--ink-2); font-size: 13.5px; flex: 1; }
.plan__feats li { padding-left: 20px; position: relative; }
.plan__feats li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.plan__pick { margin-top: 6px; text-align: center; padding: 9px; border-radius: 9px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink); }
.plan.is-on .plan__pick { border-color: transparent; background: var(--primary-bg); color: var(--on-primary); box-shadow: var(--primary-shadow); }

/* cycles */
.cycles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cycle { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; gap: 2px; padding: 14px 14px 12px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.cycle:hover { border-color: var(--line-2); }
.cycle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cycle.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.cycle__label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cycle__price { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.cycle__per { font-size: 12.5px; color: var(--ink-3); }
.badge { position: absolute; top: -10px; right: 10px; padding: 2px 9px; border-radius: 99px; background: #13281f; border: 1px solid rgba(63,208,122,.35); color: var(--good); font-family: var(--mono); font-size: 11px; font-weight: 700; }

/* tabs */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 14px; }
.tab { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.tab:focus-visible { outline: 2px solid var(--accent); }
.tab.is-on { background: var(--surface2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* domain */
.domain-row { display: flex; gap: 8px; }
.domain-row .input { flex: 1; }
#domain-extras { margin-top: 14px; display: grid; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* forms */
.field { display: grid; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0; }
.field label em, .check em, .choice em { font-style: normal; color: var(--ink-3); font-weight: 600; margin-left: 6px; font-size: 12.5px; }
.field--inline { grid-template-columns: 1fr auto; align-items: center; }
.field--full { grid-column: 1 / -1; }
.opt { font-weight: 500; color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.input { width: 100%; font: inherit; color: var(--ink); background: var(--bg2); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 14%, transparent); }
.input--lg { font-size: 16px; min-height: 50px; }
.input--sm { min-height: 40px; padding: 8px 10px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.hint--good { color: var(--good); font-weight: 700; }
.hint--bad { color: var(--bad); font-weight: 700; }
.note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.note--good { background: var(--good-bg); color: var(--good); }
.note--bad { background: var(--bad-bg); color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; margin: 4px 0; }
.check input, .choice input, .gateway input { accent-color: var(--accent); width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.check--card { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.choice span, .check span { display: flex; flex-wrap: wrap; gap: 0 4px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.stepper button { all: unset; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px; color: var(--ink-2); }
.stepper button:hover { background: var(--bg); }
.stepper .input { width: 56px; border: 0; border-radius: 0; text-align: center; min-height: 38px; box-shadow: none; -moz-appearance: textfield; }
.stepper .input::-webkit-inner-spin-button { display: none; }
.pw { position: relative; }
.pw .input { padding-right: 92px; }
.pw__btn { all: unset; cursor: pointer; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.pw__btn:hover { background: var(--bg); }
.row { display: flex; align-items: center; gap: 16px; }
.link { all: unset; cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 700; }
a.link { text-decoration: none; }
.signed { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--good-bg); }
.signed div { display: grid; }
.signed span { font-size: 13px; color: var(--ink-2); }

/* gateways */
.gateways { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 16px; }
.gateway { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14px; }
.gateway.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
#captcha:not(:empty) { margin-top: 14px; }

/* buttons */
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; min-height: 44px; border-radius: 10px; font-weight: 800; font-size: 14.5px; white-space: nowrap; transition: filter .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--primary { background: var(--primary-bg); color: var(--on-primary); box-shadow: var(--primary-shadow); }
.btn--primary:hover { background: var(--primary-bg-hover); }
.btn--dark { background: var(--surface2); border: 1px solid var(--line-2); color: var(--ink); min-height: 50px; }
.btn--dark:hover { border-color: var(--line-hover); background: var(--surface-hover); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn--block { width: 100%; min-height: 52px; font-size: 16px; }
.btn.is-busy::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* summary */
.summary { position: sticky; top: 88px; }
.summary__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.summary__title { font-family: var(--font-display); margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.line > div { display: grid; min-width: 0; }
.line__label { font-weight: 700; overflow-wrap: anywhere; }
.line__sub { font-size: 12.5px; color: var(--ink-3); }
.line__amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line--quiet .line__amt { color: var(--ink-3); font-weight: 600; }
.line--promo .line__amt, .line--promo .line__label { color: var(--good); }
.promo { margin: 14px 0 4px; }
.promo__row { display: flex; gap: 8px; }
.promo__row .input { flex: 1; text-transform: uppercase; }
.totals { margin: 12px 0 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { font-weight: 700; }
.total strong { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.renew { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: right; }
.error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; font-weight: 700; }
.fine { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }

/* done */
.done { position: fixed; inset: 0; display: grid; place-items: center; background: rgb(5 8 12 / .7); backdrop-filter: blur(4px); padding: 16px; z-index: 10; }
.done__card { background: var(--surface); border-radius: 18px; padding: 32px; width: min(420px, 100%); text-align: center; box-shadow: var(--shadow); }
.done__card h2 { margin: 12px 0 6px; }
.done__card p { color: var(--ink-2); margin: 0 0 20px; }
.done__check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--good-bg); position: relative; }
.done__check::after { content: ''; position: absolute; left: 19px; top: 18px; width: 18px; height: 10px; border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg); }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; padding-top: 20px; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .step { padding: 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .secure { display: none; }
  .domain-row { flex-direction: column; }
  .field--inline { grid-template-columns: 1fr; }
}

/* card fields */
.card-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; padding: 16px; margin: -4px 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.card-fields .hint { margin: 0; }
.cc { position: relative; }
.cc .input { padding-right: 96px; letter-spacing: .04em; }
.cc__brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.done__card.is-warn .done__check { background: var(--bad-bg); }
.done__card.is-warn .done__check::after { left: 26px; top: 14px; width: 0; height: 20px; border-left: 3px solid var(--bad); border-bottom: 0; transform: none; }
@media (max-width: 560px) { .card-fields { grid-template-columns: 1fr; } }

/* continue arrow in the domain step */
.btn--arrow { min-height: 50px; width: 56px; padding: 0; }
.btn--arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.btn--arrow:hover svg { transform: translateX(3px); }
.step { scroll-margin-top: 88px; }
@media (max-width: 560px) { .btn--arrow { width: 100%; } }

/* single-plan mode (?pid= link) */
.plans--single { grid-template-columns: minmax(0, 420px); }
.plans--single .plan { cursor: default; }
.plans--single .plan:hover { transform: none; }
.plans__all { grid-column: 1 / -1; justify-self: start; margin-top: 2px; }


/* address suggestions */
.field--ac { position: relative; }
.addr-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); }
.addr-opt { display: grid; gap: 1px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.addr-opt:hover, .addr-opt.is-active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.addr-main { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.addr-sub { color: var(--ink-2); font-size: 13px; }
.addr-credit { padding: 6px 12px 2px; text-align: right; font-size: 11.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { .plan:hover { transform: none; } }

/* region picker (USA / Europe / Asia) */
.regions { margin: 0 0 16px; }
.regions__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.regions__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.region { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, background-color .15s; }
.region:hover { border-color: var(--line-2); }
.region:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.region.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.region[disabled] { opacity: .45; cursor: not-allowed; }
.region__name { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.region__note { font-size: 12.5px; color: var(--ink-3); }
.region__text { display: grid; gap: 2px; min-width: 0; }
.region__flag { flex: none; width: 30px; height: 20px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
@media (max-width: 560px) { .regions__opts { grid-template-columns: 1fr; } .region { padding: 10px 14px; } }
.plan__sub { display: block; margin-top: 4px; font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }

/* "you are here": the step being worked on */
.step { transition: border-color .3s ease, box-shadow .3s ease; }
.step.is-current { border-color: var(--plan-on-border); box-shadow: var(--plan-on-shadow); }
.step.is-current .num { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
@media (prefers-reduced-motion: reduce) { .step { transition: none; } }
