/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Visibility ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Component: field ──────────────────────────────────────────────────────── */
.field {
    display: block;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #334155;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    margin-bottom: 12px;
    resize: vertical;
}
.field::placeholder { color: #94a3b8; }
.field:focus {
    border-color: #1B5FAA;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 95, 170, 0.12);
}

/* ── Component: buttons ────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1B5FAA;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-family: 'Inter', system-ui, sans-serif;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.btn-primary:hover  { background: #1650a0; }
.btn-primary:active { background: #143d86; transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    color: #475569;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-family: 'Inter', system-ui, sans-serif;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.btn-secondary:hover  { background: #f8fafc; }
.btn-secondary:active { background: #f1f5f9; transform: scale(0.99); }

/* ── Component: card ───────────────────────────────────────────────────────── */
.card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    padding: 20px 24px;
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60%  { transform: translateX(-6px); }
    40%, 80%  { transform: translateX(6px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeUp 0.3s ease forwards; }
