/* Order screens: option cards (pick a plan/domain), the receipt ticket, and the purchase confirmation.
   Loaded by order/lib/ticket.php after the base page styles in order/lib/bootstrap.php. */
:root {
  --stage: #F1F1F3;
  --paper-t: #F3EFE6;
  --ink-t: #161618;
  --perf: rgba(22, 22, 24, .2);
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --shadow: 0 1px 2px rgba(16, 16, 32, .04), 0 14px 32px -18px rgba(16, 16, 32, .28);
}
@media (prefers-color-scheme: dark) {
  :root { --stage: #0B0B0C; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -18px rgba(0, 0, 0, .8); }
}
body { background: var(--stage); }
.card { max-width: 1080px; background: transparent; border: 0; padding: 0; }
.brand { margin-bottom: 1.25rem; }

.dnav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .9rem; font-weight: 600; margin: -.25rem 0 2rem; }
.dnav a { color: var(--text); text-decoration: none; }
.dnav a:hover, .dnav a[aria-current] { color: var(--red); }

/* ---------- Cart layout ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.shop > aside { position: sticky; top: 16px; }
@media (max-width: 920px) { .shop { grid-template-columns: minmax(0, 1fr); } .shop > aside { position: static; } }
.shop h1 { font: 700 clamp(2rem, 5vw, 2.8rem)/1.05 "Inter Tight", sans-serif; letter-spacing: -.035em; }
.shop .lead { max-width: 48ch; }
.step { margin-top: 2rem; }
.step-t { display: flex; align-items: center; gap: .6rem; font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.step-t i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--card); font-size: .68rem; }

/* ---------- Option cards ---------- */
.pick { display: grid; gap: 12px; }
.pick.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .pick.two { grid-template-columns: 1fr; } }
.opt {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 34px; gap: 14px; align-items: center;
  background: var(--card); border: 2px solid transparent; border-radius: 26px; padding: 16px 18px;
  box-shadow: var(--shadow); cursor: pointer; transition: border-color .2s, transform .15s;
}
.opt:hover { transform: translateY(-1px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--red); }
.opt .ic.or { background: #F97316; }
.opt .ic.ink { background: #1b1b1d; }
.opt b { display: block; font: 700 1.2rem/1.2 "Inter Tight", sans-serif; letter-spacing: -.015em; color: var(--text); }
.opt small { display: block; color: var(--muted); font-size: .84rem; margin-top: .2rem; line-height: 1.4; }
.opt small em { font-style: normal; color: var(--text); font-weight: 600; }
.opt .ck { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; font-size: 1rem; transition: background .2s, border-color .2s, color .2s; }
.opt:has(input:checked) { border-color: var(--red); }
.opt:has(input:checked) .ck { background: var(--red); border-color: var(--red); color: #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.pick.two .opt { grid-template-columns: 44px minmax(0, 1fr) 30px; padding: 14px; border-radius: 22px; }
.pick.two .ic { width: 44px; height: 44px; font-size: 1.1rem; }
.pick.two .ck { width: 30px; height: 30px; }
.pick.two b { font-size: 1.02rem; }

.field { margin-top: 12px; display: flex; gap: 6px; background: var(--card); border-radius: 20px; padding: 6px; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .2s; }
.field:focus-within { border-color: var(--red); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 1.05rem Inter, sans-serif; padding: .75rem .9rem; }
.field select { border: 0; outline: 0; border-radius: 14px; background: var(--stage); color: var(--text); font: 600 .95rem Inter, sans-serif; padding: 0 .8rem; max-width: 46%; }
.hint { font-size: .8rem; color: var(--muted); margin: .55rem .5rem 0; }
.hint.bad { color: var(--red); }

/* ---------- Receipt ticket ---------- */
.tk-wrap { position: relative; max-width: 380px; margin: 0 auto; padding-top: 58px; filter: drop-shadow(0 22px 28px rgba(16, 16, 32, .2)) drop-shadow(0 2px 3px rgba(16, 16, 32, .1)); }
.tk-string { position: absolute; z-index: 2; top: 0; left: 50%; width: 26px; height: 84px; transform: translateX(-50%); }
.tk-string::before, .tk-string::after { content: ""; position: absolute; top: -4px; width: 3px; height: 82px; border-radius: 3px; background: #1b1b1d; transform-origin: 50% 100%; }
.tk-string::before { left: 6px; transform: rotate(-6deg); }
.tk-string::after { right: 6px; transform: rotate(6deg); }
.tk {
  position: relative; z-index: 1; background: var(--paper-t); color: var(--ink-t); border-radius: 10px; padding: 26px 20px 18px;
  -webkit-mask: radial-gradient(circle 7px at 50% 0, #0000 96%, #000) 50% 0 / 18px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, #0000 96%, #000) 50% 100% / 18px 51% repeat-x;
  mask: radial-gradient(circle 7px at 50% 0, #0000 96%, #000) 50% 0 / 18px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, #0000 96%, #000) 50% 100% / 18px 51% repeat-x;
}
.tk-hole { position: absolute; top: 16px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--stage); box-shadow: inset 0 0 0 5px #1b1b1d; }
.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.tk-brand { display: block; font: 800 1.6rem/.95 "Inter Tight", sans-serif; letter-spacing: -.035em; }
.tk-chip { display: inline-block; margin-top: .7rem; border: 1.5px solid var(--ink-t); border-radius: 999px; padding: .15rem .65rem; font: 600 .68rem var(--mono); letter-spacing: .04em; }
.tk-head img { width: 46px; height: 46px; }
.tk-perf { position: relative; margin: 16px -20px; border-top: 2px dashed var(--perf); }
.tk-perf::before, .tk-perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--stage); }
.tk-perf::before { left: -8px; }
.tk-perf::after { right: -8px; }
.tk-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font: 500 .66rem/1.55 var(--mono); letter-spacing: .05em; color: var(--ink-t); margin: 0; }
.tk-meta p { color: inherit; margin: 0; }
.tk-meta p + p { border-left: 1.5px solid var(--perf); padding-left: 12px; }
.tk-poster { position: relative; overflow: hidden; height: 172px; margin: 16px 0; padding: 16px; border-radius: 6px; background: #0B0B0C; color: #fff; }
.tk-poster p { position: relative; z-index: 1; margin: 0; color: #fff; font: 700 1.85rem/1 "Inter Tight", sans-serif; letter-spacing: -.035em; }
.tk-poster span { position: absolute; display: block; }
.tk-poster .s1 { right: -34px; top: -34px; width: 136px; height: 136px; border-radius: 50%; background: #E11D48; }
.tk-poster .s2 { right: 52px; bottom: -44px; width: 70px; height: 124px; border-radius: 35px 35px 0 0; background: #F97316; }
.tk-poster .s3 { right: -10px; bottom: -36px; width: 62px; height: 112px; border-radius: 31px 31px 0 0; background: #9F1239; }
.tk-poster small { position: absolute; z-index: 1; left: 16px; bottom: 12px; max-width: 52%; font: 500 .72rem/1.35 var(--mono); opacity: .85; overflow-wrap: anywhere; }
.tk-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .86rem; }
.tk-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; animation: tkIn .35s ease both; }
.tk-lines small { display: block; font: 500 .62rem var(--mono); letter-spacing: .05em; text-transform: uppercase; opacity: .6; margin-top: .1rem; }
.tk-lines b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1.5px solid var(--ink-t); }
.tk-total span { font: 600 .7rem var(--mono); letter-spacing: .08em; }
.tk-total b { font: 700 1.75rem "Inter Tight", sans-serif; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.tk-total + small { display: block; font: 500 .62rem var(--mono); letter-spacing: .05em; opacity: .6; text-align: right; margin-top: .2rem; }
.tk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .74rem; }
.tk-grid div { padding: 0 8px; border-left: 1.5px solid var(--perf); }
.tk-grid div:first-child { padding-left: 0; border: 0; }
.tk-grid small { display: block; margin-bottom: .25rem; font: 500 .58rem var(--mono); letter-spacing: .07em; opacity: .6; }
.tk-grid b { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.tk-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.bars { display: flex; gap: 1px; height: 44px; overflow: hidden; }
.bars i { display: block; flex: none; height: 100%; background: var(--ink-t); }
.tk-code { display: block; margin-top: 5px; font: 500 .72rem var(--mono); letter-spacing: .12em; }
.tk-foot .r { display: flex; gap: 8px; align-items: flex-start; }
.tk-foot .r p { margin: 0; color: var(--ink-t); font: 500 .56rem/1.5 var(--mono); letter-spacing: .06em; }
.tk-foot .r .bi { font-size: 1.15rem; }
.tk-stamp { position: absolute; z-index: 3; right: 76px; top: 86px; transform: rotate(-12deg); padding: .1rem .7rem; border: 3px solid #15803d; border-radius: 8px; color: #15803d; font: 800 1.35rem var(--mono); letter-spacing: .12em; opacity: .85; }
.tk-stamp.wait { border-color: #c2410c; color: #c2410c; font-size: 1rem; }
@keyframes tkIn { from { opacity: 0; transform: translateY(-4px); } }

/* Pay button under the ticket */
.pay { max-width: 380px; margin: 18px auto 0; }
.pay .btn { margin: 0; padding: 1.05rem 1.4rem; font-size: 1rem; background: #1b1b1d; transition: background .2s; }
.pay .btn:hover { background: var(--red); }
.pay .btn[disabled] { opacity: .45; cursor: not-allowed; background: #1b1b1d; }
.note { display: flex; gap: .4rem; justify-content: center; align-items: center; margin: .7rem 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.note a { color: inherit; }

/* ---------- Purchase confirmation ---------- */
.done { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--card); border-radius: 40px; padding: clamp(1.25rem, 4vw, 3.5rem); box-shadow: var(--shadow); }
@media (max-width: 920px) { .done { grid-template-columns: minmax(0, 1fr); } }
.done-msg { max-width: 380px; margin: 0 auto; text-align: center; }
.done-msg > .bi { display: block; font-size: 4rem; line-height: 1; color: var(--red); margin-bottom: 1rem; }
.done-msg > .bi.wait { color: #F97316; animation: spin 2.4s linear infinite; }
.done-msg h1 { margin: 0; color: var(--red); font: 600 1.6rem "Inter Tight", sans-serif; letter-spacing: -.02em; }
.done-msg .sub { margin: .3rem 0 0; font-size: 1.05rem; }
.done-msg .sub b { color: var(--text); font-weight: 500; }
.done-msg hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.done-meta { color: var(--text); font-size: 1.1rem; }
.done-meta span { margin: 0 .55rem; color: var(--muted); }
.chip-dark { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; padding: .35rem .85rem; border-radius: 999px; background: #1b1b1d; color: #fff; font: 500 .72rem var(--mono); letter-spacing: .04em; }
.done-msg .btn { margin-top: 1.8rem; padding: 1.05rem; font-size: 1rem; background: #1b1b1d; }
.done-msg .btn:hover { background: var(--red); }
.done-msg .note { margin-top: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tk-lines li, .done-msg > .bi.wait { animation: none; } }

/* ---------- Account pages: sign up, log in, password, client area ---------- */
.form { display: grid; gap: 14px; margin-top: 1.75rem; max-width: 540px; }
.inp { display: grid; gap: .45rem; }
.inp > span { padding-left: .5rem; font: 600 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.inp .field { margin: 0; }
.inp > small { padding-left: .5rem; font-size: .78rem; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.form .btn { margin-top: .4rem; padding: 1.05rem 1.4rem; font-size: 1rem; background: #1b1b1d; transition: background .2s; }
.form .btn:hover { background: var(--red); }
.form .btn.ghost, .btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.form .btn.ghost:hover { background: var(--card); border-color: var(--text); }
.alt { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.4rem; font-size: .9rem; }
.alt a { color: var(--red); font-weight: 600; text-decoration: none; }
.alt a:hover { text-decoration: underline; }
.fine { font-size: .78rem; color: var(--muted); }
.fine a { color: inherit; }
.hp { position: absolute; left: -9999px; }
.okmsg { display: flex; gap: .6rem; align-items: flex-start; margin: 1.25rem 0 0; padding: .9rem 1rem; border-radius: 18px; background: rgba(34, 197, 94, .12); color: #15803d; font-size: .92rem; max-width: 540px; }
.okmsg .bi { font-size: 1.1rem; }
.err { max-width: 540px; border-radius: 18px; }
@media (prefers-color-scheme: dark) { .okmsg { color: #86efac; } }

/* Hosting accounts in the client area: INSPO5-style cards */
.accounts { display: grid; gap: 12px; margin-top: 1.75rem; }
.opt.acc { grid-template-columns: 52px minmax(0, 1fr) auto; cursor: default; }
.opt.acc:hover { transform: none; }
.opt.acc b { overflow-wrap: anywhere; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.acts form { display: contents; }
.btn.sm { width: auto; margin: 0; padding: .6rem 1rem; font-size: .84rem; background: #1b1b1d; }
.btn.sm:hover { background: var(--red); }
.btn.sm.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn.sm.ghost:hover { border-color: var(--text); }
.state { display: inline-block; margin-left: .4rem; padding: .12rem .5rem; border-radius: 999px; vertical-align: middle; background: rgba(34, 197, 94, .14); color: #15803d; font: 600 .6rem var(--mono); letter-spacing: .08em; }
.state.wait { background: rgba(249, 115, 22, .15); color: #c2410c; }
@media (max-width: 640px) { .opt.acc { grid-template-columns: 44px minmax(0, 1fr); } .opt.acc .ic { width: 44px; height: 44px; } .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.empty { display: grid; justify-items: start; gap: .4rem; margin-top: 1.75rem; padding: 1.5rem; border: 2px dashed var(--line); border-radius: 26px; }
.empty b { font: 700 1.15rem "Inter Tight", sans-serif; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.cta-row .btn { width: auto; margin: 0; padding: 1rem 1.5rem; background: #1b1b1d; }
.cta-row .btn:hover { background: var(--red); }
.secret { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); border: 2px solid #22c55e; max-width: 540px; }
.secret code { font-family: var(--mono); font-size: .95rem; }
.secret small { display: block; color: var(--muted); margin-top: .4rem; }
.cta-row .btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.cta-row .btn.ghost:hover { background: var(--card); border-color: var(--text); }
/* Lift the ticket so it lines up with the page heading (the string hangs into the space above) */
@media (min-width: 921px) {
  .shop > aside { margin-top: -100px; }
  .dnav + .shop > aside { margin-top: -160px; }
}
.tk-grid b[data-holder] { text-transform: capitalize; }
