:root { --bg:#071226; --panel:#0f1e38; --line:#1d3155; --text:#eaf2ff; --muted:#b0bccf; --blue:#1e88ff; --cyan:#00e5ff; --ok:#22c55e; --bad:#f87171; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
main { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px; flex: 1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.center { text-align: center; padding: 36px 18px; }
.hero h1 { margin: 0 0 6px; font-size: 22px; }
h1 { font-size: 20px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); font-size: 13px; flex: none; }
.muted { color: var(--muted); margin: 0; }
.pill { display: inline-block; margin: 10px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(0,229,255,.12); color: var(--cyan); font-size: 13px; }
.options { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg); }
.opt input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.opt.on { border-color: var(--blue); background: rgba(30,136,255,.1); }
.opt .main { flex: 1; min-width: 0; }
.opt b { display: block; overflow-wrap: anywhere; }
.opt small { color: var(--muted); display: block; overflow-wrap: anywhere; }
.opt .price { white-space: nowrap; font-weight: 700; color: var(--cyan); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip { flex: none; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; text-align: center; line-height: 1.25; }
.chip small { display: block; color: var(--muted); font-size: 12px; }
.chip.on { background: var(--blue); border-color: var(--blue); }
.chip.on small { color: #dbeafe; }
label { display: block; color: var(--muted); margin-bottom: 12px; font-size: 14px; }
input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.terms { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 14px; }
.terms summary { cursor: pointer; color: var(--text); }
.terms ul { padding-left: 18px; margin: 8px 0; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary .row span:last-child { text-align: right; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
button { cursor: pointer; width: 100%; padding: 13px 16px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 700; margin-top: 8px; }
button:disabled { opacity: .45; cursor: default; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
button.small { width: auto; padding: 6px 12px; margin: 0; font-weight: 600; }
.error { color: var(--bad); min-height: 1.2em; margin: 8px 0 0; }
.ok-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.18); color: var(--ok); font-size: 28px; }
.code { font-size: 22px; font-weight: 800; letter-spacing: .04em; color: var(--cyan); margin: 6px 0; }
.detail { text-align: left; margin: 16px 0; }
.spinner { width: 32px; height: 32px; margin: 0 auto; border: 3px solid var(--line); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { text-align: center; color: var(--muted); padding: 18px; font-size: 13px; }
.foot a { color: var(--cyan); text-decoration: none; }
