:root { color-scheme: dark; --bg:#0b1020; --card:#151c31; --line:#2a3655; --text:#f4f7ff; --muted:#aeb9d2; --accent:#6ea8fe; --ok:#55d68b; --danger:#ff7185; }
    * { box-sizing:border-box; }
    body { margin:0; min-height:100vh; font:15px/1.45 system-ui,-apple-system,Segoe UI,sans-serif; background:linear-gradient(160deg,#101a35,var(--bg) 45%); color:var(--text); }
    main { width:min(720px,100%); margin:auto; padding:18px 14px calc(30px + env(safe-area-inset-bottom)); }
    h1 { margin:4px 0 6px; font-size:25px; }
    h2 { margin:0 0 12px; font-size:18px; }
    .lead,.muted { color:var(--muted); }
    .card { margin:14px 0; padding:16px; border:1px solid var(--line); border-radius:16px; background:rgba(21,28,49,.96); box-shadow:0 12px 35px #0005; }
    .badge { display:inline-flex; gap:7px; align-items:center; padding:6px 10px; border-radius:999px; background:#173a2b; color:#9af0ba; font-size:13px; font-weight:700; }
    .grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
    .full { grid-column:1/-1; }
    label { display:block; color:var(--muted); font-size:13px; }
    input,select { width:100%; margin-top:5px; padding:12px; border:1px solid var(--line); border-radius:11px; background:#0e1528; color:var(--text); font:inherit; outline:none; }
    input:focus,select:focus { border-color:var(--accent); box-shadow:0 0 0 3px #6ea8fe26; }
    .check { display:flex; gap:10px; align-items:flex-start; padding:11px 0; color:var(--text); font-size:14px; }
    .check input { width:20px; height:20px; margin:1px 0 0; flex:0 0 auto; }
    button,.pay { width:100%; border:0; border-radius:12px; padding:13px 16px; font:700 15px system-ui; cursor:pointer; text-align:center; text-decoration:none; display:block; }
    button:disabled { opacity:.48; cursor:not-allowed; }
    .primary { color:#07101f; background:linear-gradient(135deg,#78b2ff,#55d68b); }
    .secondary { color:var(--text); background:#263352; margin-top:9px; }
    .danger { color:#ffd8de; background:#4a1f2a; margin-top:9px; }
    .pay { margin-top:12px; color:#07101f; background:var(--ok); }
    .summary { display:grid; gap:7px; padding:12px; border-radius:12px; background:#0e1528; border:1px solid var(--line); overflow-wrap:anywhere; }
    .summary b { color:#fff; }
    .notice { margin:10px 0; padding:11px 12px; border-radius:11px; background:#302b18; color:#f7dfa0; }
    .status { min-height:22px; margin-top:10px; color:var(--muted); }
    .status.ok { color:var(--ok); }
    .status.error { color:var(--danger); }
    .hidden { display:none !important; }
    .spinner { width:24px; height:24px; margin:40px auto; border:3px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
    @keyframes spin { to { transform:rotate(360deg); } }
    @media (max-width:560px) { .grid { grid-template-columns:1fr; } .full { grid-column:auto; } }