* { box-sizing: border-box; }
:root {
    --page-bg: #f3f1fb;
    --card-bg: #ffffff;
    --card-border: #ece9f7;
    --card-shadow: 0 24px 50px -20px rgba(76,29,149,.22);
    --accent: #7c3aed;
    --accent-2: #4f46e5;
    --accent-soft: #f1ebff;
    --text-h: #221c35;
    --text-b: #55506b;
    --text-s: #8b86a1;
    --input-bg: #f9f8fd;
    --danger: #ef4444;
    --danger-soft: #fdecec;
    --success: #10b981;
    --success-soft: #e7f8f1;
    --text-main: #221c35;
    --text-muted: #8b86a1;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 20px 16px; font-family: 'Inter', system-ui, sans-serif; background: var(--page-bg); color: var(--text-b); min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; -webkit-font-smoothing: antialiased; }
@media (min-height: 760px) { body { align-items: center; } }
.ws-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px; box-shadow: var(--card-shadow); width: 100%; max-width: 460px; padding: 32px 24px; }
.ws-card.wide { max-width: 620px; }
.ws-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 18px; }
.ws-brand img { width: 40px; height: 40px; border-radius: 12px; }
.ws-brand span { font-weight: 800; font-size: 20px; color: var(--text-h); letter-spacing: -.3px; }
h1 { font-size: 22px; color: var(--text-h); margin: 0 0 6px; text-align: center; letter-spacing: -.3px; }
h2 { font-size: 17px; color: var(--text-h); margin: 0 0 4px; }
.ws-sub { text-align: center; font-size: 14px; color: var(--text-s); margin: 0 0 22px; line-height: 1.5; }
.ws-tabs { display: flex; background: var(--page-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 4px; margin-bottom: 20px; }
.ws-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-s); text-decoration: none; }
.ws-tabs a.on { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(76,29,149,.1); }
.ws-field { margin-bottom: 14px; }
.ws-field label, .ws-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-b); margin-bottom: 6px; }
.ws-field small { display: block; font-size: 12px; color: var(--text-s); margin-top: 5px; line-height: 1.4; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--input-bg); font: inherit; font-size: 15px; color: var(--text-h); outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.ws-row { display: flex; gap: 10px; }
.ws-row > * { flex: 1; min-width: 0; }
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px -8px rgba(124,58,237,.6); }
.ws-btn:disabled { opacity: .5; cursor: not-allowed; }
.ws-btn.ghost { background: var(--page-bg); color: var(--text-h); box-shadow: none; border: 1px solid var(--card-border); }
.ws-btn.small { width: auto; padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.ws-actions { display: flex; gap: 10px; margin-top: 20px; }
.ws-actions .ws-btn { flex: 1; }
.ws-msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; margin-bottom: 16px; }
.ws-msg.err { background: var(--danger-soft); color: #b91c1c; }
.ws-msg.ok { background: var(--success-soft); color: #047857; }
.ws-msg.info { background: var(--accent-soft); color: #5b21b6; }
.ws-msg a { color: inherit; font-weight: 700; word-break: break-all; }
.ws-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-b); margin: 6px 0 14px; line-height: 1.45; }
.ws-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ws-check a { color: var(--accent); }
.ws-foot { text-align: center; font-size: 13px; color: var(--text-s); margin-top: 18px; line-height: 1.6; }
.ws-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.ws-choice { display: grid; gap: 12px; }
.ws-choice button { display: flex; gap: 14px; align-items: center; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--card-border); background: #fff; cursor: pointer; font: inherit; color: var(--text-b); }
.ws-choice button:hover { border-color: var(--accent); box-shadow: 0 8px 24px -12px rgba(124,58,237,.4); }
.ws-choice i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; flex: none; }
.ws-choice b { display: block; color: var(--text-h); font-size: 16px; margin-bottom: 2px; }
.ws-choice span { font-size: 13px; color: var(--text-s); line-height: 1.4; }
.ws-steps { display: flex; gap: 6px; margin-bottom: 20px; }
.ws-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--card-border); }
.ws-steps span.on { background: var(--accent); }
.ws-step { display: none; }
.ws-step.on { display: block; }
.ws-step-n { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ws-step-d { font-size: 13px; color: var(--text-s); margin: 0 0 16px; line-height: 1.5; }
.ws-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-seg label { flex: 1 1 120px; position: relative; cursor: pointer; }
.ws-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ws-seg span { display: block; text-align: center; padding: 11px 10px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--input-bg); font-weight: 600; font-size: 14px; color: var(--text-b); }
.ws-seg span small { display: block; font-weight: 500; font-size: 11px; color: var(--text-s); margin-top: 2px; }
.ws-seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ws-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(124,58,237,.25); }
.ws-times { display: grid; gap: 8px; margin-top: 12px; }
.ws-time-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; }
.ws-time-row b { font-size: 13px; color: var(--text-h); }
.ws-extra { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.ws-extra button { border: 1px solid var(--card-border); background: #fff; border-radius: 10px; width: 42px; cursor: pointer; color: var(--text-s); }
.ws-sum { border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; margin: 6px 0 18px; }
.ws-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; border-bottom: 1px solid var(--card-border); }
.ws-sum div:last-child { border-bottom: none; }
.ws-sum dt, .ws-sum span:first-child { color: var(--text-s); }
.ws-sum b { color: var(--text-h); text-align: right; }
.ws-code { text-align: center; margin: 8px 0 18px; }
.ws-code .code { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 30px; font-weight: 800; letter-spacing: 5px; color: var(--accent); background: var(--accent-soft); padding: 14px 20px; border-radius: 16px; }
.ws-code small { display: block; color: var(--text-s); font-size: 13px; margin-top: 10px; line-height: 1.5; }
.ws-hidden { display: none !important; }
@media (max-width: 420px) {
    .ws-card { padding: 26px 18px; border-radius: 20px; }
    .ws-time-row { grid-template-columns: 1fr 1fr; }
    .ws-time-row b { grid-column: 1 / -1; }
    .ws-code .code { font-size: 24px; letter-spacing: 3px; }
}
.ws-tos { border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 14px; margin: -4px 0 14px; background: var(--input-bg); }
.ws-top { display: flex; justify-content: flex-start; margin: -12px 0 6px; }
.ws-lang { display: flex; gap: 6px; }
.ws-lang a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--card-border); background: var(--page-bg); color: var(--text-s); font-size: 12px; font-weight: 700; text-decoration: none; }
.ws-lang a.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.ws-coffee { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--card-border); text-align: center; }
.ws-coffee p { font-size: 12px; color: var(--text-s); margin: 0 0 10px; }
.ws-coffee a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: linear-gradient(135deg, #ffdd00 0%, #f59e0b 100%); color: #0f172a; font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 4px 12px rgba(245,158,11,.25); }
.ws-login-b { margin-top: 16px; font-size: 13px; text-align: center; line-height: 1.35; }
