:root {
    --bg: #0f1724;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #2563eb;
    --overlay: rgba(7, 11, 20, 0.6);
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, #071129 0%, #0b2440 100%);
    color: #0b1220;
    min-height: 100vh;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    color: var(--card);
}

h1 {
    margin: 0 0 18px 0;
    font-size: 28px;
    color: #e6eef8;
}

p.lead {
    color: #bcd2ff;
    margin: 0 0 18px 0;
}

.btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: var(--accent);
    border: 0;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

.btn:focus {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.overlay {
    position: fixed;
    inset: 0;
    display: none;
    /* visible when .open */
    align-items: center;
    justify-content: center;
    z-index: 1200;
    -webkit-tap-highlight-color: transparent;
}

.overlay.open {
    display: flex;
}

.overlay__backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(6px) saturate(120%);
    opacity: 0;
    transition: opacity .28s ease;
}

.overlay.open .overlay__backdrop {
    opacity: 1;
}

.modal {
    position: relative;
    width: min(720px, calc(100% - 32px));
    max-height: 85vh;
    overflow: auto;
    background: linear-gradient(180deg, #fbfdff, #f6fbff);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.6);
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2, .9, .25, 1), opacity .28s ease;
    z-index: 2;
    border: 1px solid rgba(11, 20, 40, 0.06);
}

.overlay.open .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #071331;
}

.modal__close {
    background: transparent;
    border: 0;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
}

.modal__close:focus {
    outline: 3px solid rgba(11, 20, 40, 0.08);
}

.modal__body {
    color: #0f1724;
    font-size: 15px;
    line-height: 1.45;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

label {
    font-size: 13px;
    color: #0b1220;
    font-weight: 600;
}

input[type="text"],
textarea {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6eef8;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.02);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn--ghost {
    background: transparent;
    color: #0f1724;
    border: 1px solid rgba(11, 20, 40, 0.06);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

@media (max-width:420px) {
    .modal {
        width: calc(100% - 20px);
        border-radius: 12px;
        padding: 14px;
    }

    .modal__header {
        gap: 8px;
    }
}

.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}