:root {
    color-scheme: dark;
    --bg: #060b12;
    --panel: #0c1520;
    --panel-soft: #101c29;
    --border: rgba(184, 213, 238, .14);
    --text: #eef7ff;
    --muted: #91a8bb;
    --accent: #62ebc4;
    --accent-2: #7ab8ff;
    --danger: #ff899b;
    --warning: #ffd37a;
    --shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 10%, rgba(98, 235, 196, .12), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(122, 184, 255, .14), transparent 28rem),
        linear-gradient(160deg, #07101a 0%, #07131f 48%, #050910 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 34px;
}

.hero { max-width: 850px; margin-bottom: 28px; }

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(98,235,196,.42);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(98,235,196,.18), rgba(122,184,255,.08));
    color: var(--accent);
    font-size: 31px;
    box-shadow: inset 0 0 30px rgba(98,235,196,.08);
}

.kicker {
    margin: 0 0 5px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(39px, 7vw, 67px);
    line-height: .94;
    letter-spacing: -.05em;
}

.hero p {
    max-width: 760px;
    margin: 22px 0 17px;
    color: #bfd0de;
    line-height: 1.72;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.026);
    color: #adc1d1;
    font-size: 12px;
    font-weight: 800;
}

.security-note {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(98,235,196,.18);
    border-radius: 15px;
    background: rgba(98,235,196,.06);
    color: #c8eee3;
    line-height: 1.55;
}

.security-note.warning {
    border-color: rgba(255,211,122,.24);
    background: rgba(255,211,122,.07);
    color: #ffe5ae;
}

.card {
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid var(--border);
    border-radius: 27px;
    background: linear-gradient(145deg, rgba(15,28,41,.96), rgba(8,18,29,.95));
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    grid-template-columns: 1.25fr .95fr;
    gap: 16px;
}

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-label { color: #dcebf5; font-size: 13px; font-weight: 850; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.5; }

select, input, textarea {
    width: 100%;
    border: 1px solid rgba(171,202,227,.17);
    outline: none;
    border-radius: 15px;
    color: var(--text);
    background: #091722;
    transition: border-color .18s ease, box-shadow .18s ease;
}

select, input { min-height: 50px; padding: 0 14px; }
textarea {
    min-height: 205px;
    padding: 16px;
    resize: vertical;
    line-height: 1.55;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

select:focus, input:focus, textarea:focus {
    border-color: rgba(98,235,196,.65);
    box-shadow: 0 0 0 4px rgba(98,235,196,.08);
}

.password-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }

.actions, .result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), #69d8ff);
    color: #041018;
    font-weight: 900;
    box-shadow: 0 10px 32px rgba(98,235,196,.14);
}

.button.secondary {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    color: #bfd1df;
    box-shadow: none;
}

.button.secondary:hover:not(:disabled) { background: rgba(255,255,255,.075); }

.status {
    min-height: 24px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.status.success { color: #9bf1d6; }
.status.error { color: #ffb1be; }
.status.working { color: #b8d7ee; }

.result {
    margin-top: 26px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.result-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 9px;
}

.result-title { margin: 0; color: #dcebf5; font-size: 13px; font-weight: 850; }
.result-actions { justify-content: flex-end; }
.result-actions .button { min-height: 38px; padding: 0 12px; font-size: 12px; }

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.security-item {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255,255,255,.025);
}
.security-item strong { display: block; margin-bottom: 5px; color: #dcebf5; font-size: 13px; }
.security-item span { color: var(--muted); font-size: 12px; line-height: 1.5; }

footer {
    padding: 21px 4px 0;
    color: #71879a;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

[hidden] { display: none !important; }

@media (max-width: 780px) {
    .shell { padding-top: 34px; }
    .grid, .security-grid { grid-template-columns: 1fr; }
    .result-head { align-items: stretch; flex-direction: column; }
    .result-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .shell { width: min(100% - 20px, 1120px); }
    .brand { align-items: flex-start; }
    .logo { width: 52px; height: 52px; border-radius: 15px; }
    .password-row { grid-template-columns: 1fr; }
    .actions .button { flex: 1 1 100%; }
}
