:root {
    color-scheme: dark;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #ecfaf4;
    background: #081311;
    --panel: #0e1c19;
    --line: #28443b;
    --green: #75f5c3;
    --muted: #a8bfba;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 78% 0, #133830 0, transparent 63%);
}
a { color: inherit; text-decoration: none; }
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1160px;
    margin: 0 auto;
    padding: 1.3rem clamp(1rem, 4vw, 2.5rem);
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.back { color: var(--muted); font-size: .95rem; }
main { max-width: 1160px; margin: auto; padding: 2.2rem clamp(1rem, 4vw, 2.5rem) 3rem; }
.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding: clamp(1.4rem, 4vw, 2.7rem);
    margin-bottom: 1.1rem;
    border: 1px solid #315b4d;
    border-radius: 24px;
    background: linear-gradient(120deg, #162e27, #0c1c18);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); margin: 0; letter-spacing: -.025em; }
h2 { margin: 0; font-size: 1.35rem; }
p { color: var(--muted); line-height: 1.6; }
.hero p, .account p { margin: .6rem 0 0; }
.account { flex-shrink: 0; }
.account p { color: var(--green); font-size: .92rem; }
.account .button { margin-top: .75rem; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.offer {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.3rem, 3vw, 1.8rem);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
}
.offer form { margin-top: auto; }
.offer > p { margin: .5rem 0 1.25rem; }
.offer > .price { margin-bottom: 0; }
.price strong { color: var(--green); font-size: 2.35rem; font-weight: 760; }
fieldset { display: grid; gap: .55rem; border: 0; margin: 0; padding: 0; min-width: 0; }
label { margin-top: .2rem; font-size: .92rem; font-weight: 650; }
input, select {
    width: 100%;
    min-height: 44px;
    padding: .6rem .75rem;
    background: #091512;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: inherit;
    font: inherit;
}
input::placeholder, small { color: var(--muted); }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: .55rem 1rem;
    background: var(--green);
    color: #072318;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
fieldset .button { margin-top: .5rem; }
.button:hover:not(:disabled) { filter: brightness(1.12); }
:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.secondary { background: #12251e; color: var(--green); border-color: #3b6356; }
#resume { margin-bottom: 1rem; }
.error { color: #ffb2aa; }
dialog {
    position: fixed;
    width: min(420px, calc(100% - 2rem));
    padding: 1.6rem;
    border: 1px solid #427363;
    border-radius: 20px;
    background: #10221c;
    color: inherit;
    text-align: center;
}
dialog::backdrop { background: #020a08cc; }
.dialog-close { position: absolute; right: .7rem; top: .55rem; }
.close {
    background: transparent;
    color: var(--muted);
    border: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    font: 1.7rem system-ui;
    cursor: pointer;
}
#qr { display: block; margin: auto; border: 8px solid white; border-radius: 12px; }
#checkout-expiry { font-size: .85rem; margin: .6rem 0 0; }
@media (max-width: 640px) {
    main { padding-top: .8rem; }
    .hero { align-items: flex-start; flex-direction: column; }
    .offers { grid-template-columns: 1fr; }
}
