:root {
    --bg: #0b1220;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #111827;
    --brand-2: #1f2937;
    --ok-bg: #ecfdf5;
    --ok-text: #065f46;
    --err-bg: #fef2f2;
    --err-text: #991b1b;
    --note-bg: #eff6ff;
    --note-text: #1d4ed8;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(59,130,246,.10), transparent 32%),
        radial-gradient(circle at top right, rgba(99,102,241,.10), transparent 28%),
        linear-gradient(180deg, #f3f4f6 0%, #eef2f7 100%);
    min-height: 100vh;
}

a { color: inherit; }

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 18px 64px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

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

.brand-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .5px;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.brand-subtitle {
    color: var(--muted);
    font-size: .95rem;
    margin-top: 3px;
}

.security-pill {
    background: rgba(17,24,39,.05);
    color: var(--brand);
    padding: 12px 16px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 22px;
    margin-bottom: 24px;
}

.hero-card,
.panel {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.03em;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.feature-list {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.feature {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
}

.feature strong {
    display: block;
    margin-bottom: 6px;
}

.summary {
    padding: 24px;
}

.summary h2,
.panel h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.summary-grid {
    display: grid;
    gap: 12px;
}

.summary-item {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
}

.summary-item span {
    display: block;
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 6px;
}

.summary-item strong {
    font-size: 1rem;
}

.panel {
    padding: 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full { grid-column: 1 / -1; }

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: .95rem;
}

.input-wrap {
    position: relative;
}

input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 14px 15px;
    font-size: .96rem;
    color: var(--text);
    outline: none;
    transition: .18s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148,163,184,.18);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.section-title {
    margin: 20px 0 12px;
    font-size: 1rem;
    font-weight: 800;
}

.section-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(17,24,39,.12), rgba(17,24,39,0));
    margin: 10px 0 22px;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.hint {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

button, .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    font-weight: 800;
    font-size: .96rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, opacity .18s ease;
}

button:hover, .button-link:hover { opacity: .95; transform: translateY(-1px); }

.note, .error, .success {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.note { background: var(--note-bg); color: var(--note-text); border-color: rgba(29,78,216,.12); }
.error { background: var(--err-bg); color: var(--err-text); border-color: rgba(153,27,27,.12); }
.success { background: var(--ok-bg); color: var(--ok-text); border-color: rgba(6,95,70,.12); }

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.check-row input {
    width: auto;
    margin-top: 4px;
}

.kv-grid {
    display: grid;
    gap: 12px;
}

.footer-note {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}

.state-panel {
    max-width: 780px;
    margin: 52px auto;
    text-align: center;
}

.state-panel h1 { margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.state-panel p { color: var(--muted); line-height: 1.7; }

.state-box {
    margin-top: 18px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: var(--shadow);
}

@media (max-width: 920px) {
    .hero { grid-template-columns: 1fr; }
    .grid, .feature-list { grid-template-columns: 1fr; }
    .header { flex-direction: column; align-items: flex-start; }
}


.simple-page { max-width: 1080px; }
.simple-page .panel { margin-top: 10px; }
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #475569 50%), linear-gradient(135deg, #475569 50%, transparent 50%); background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 14px) calc(50% - 4px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
@media (max-width: 900px) { .header { flex-direction: column; align-items: flex-start; } }
