/* ============================================
   Stack'd Error Pages
============================================ */

.error-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-card {
    width: 100%;
    max-width: 580px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.error-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.error-card h1 {
    font-family: 'Syne', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: #3551A4;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.error-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    color: #132442;
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-card p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.error-actions a,
.error-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 48px;
}

.btn-primary {
    background: #132442;
    color: #D6E264;
}

.btn-primary:hover {
    background: #3551A4;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Accent variants */
.error-danger h1 { color: #ef4444; }
.error-warning h1 { color: #f59e0b; }
.error-success h1 { color: #10b981; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .error-container {
        padding: 1.5rem 1rem;
        align-items: flex-start;
        padding-top: 3rem;
    }

    .error-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .error-card h1 {
        font-size: 3.5rem;
    }

    .error-card h2 {
        font-size: 1.3rem;
    }

    .error-card p {
        font-size: 0.9rem;
    }

    .error-icon {
        font-size: 2.5rem;
    }

    .error-actions {
        flex-direction: column;
        gap: 0.65rem;
    }

    .error-actions a,
    .error-actions button {
        width: 100%;
    }
}