/* =====================================================
   GENERIC ERROR SYSTEM – ADAPTIVE THEMES
===================================================== */

.error-page {
    --accent: #b0b0b0;
    --accent-glow: rgba(176, 176, 176, 0.3);
    --bg-soft: rgba(255,255,255,.04);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.error-box {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(
        180deg,
        rgba(16,16,28,.95),
        rgba(10,10,20,.95)
    );
    border-radius: 22px;
    padding: 42px;
    border: 1px solid var(--accent);
    box-shadow:
        0 0 40px var(--accent-glow),
        0 30px 90px rgba(0,0,0,.85);
}

/* =====================================================
   HEADER
===================================================== */

.error-header {
    margin-bottom: 34px;
}

/* 🔥 WICHTIG: KEIN FLEX MEHR */
.error-title {
    margin: 0;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--accent);
    letter-spacing: .02em;
}

/* Optional: Error-ID */
.error-id {
    margin-top: 8px;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
}

/* Optionaler erklärender Text */
.error-subtitle {
    margin-top: 10px;
    opacity: .75;
    max-width: 760px;
}

/* =====================================================
   SECTIONS
===================================================== */

.error-section {
    margin-bottom: 30px;
}

.error-section h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

/* =====================================================
   BLOCKS
===================================================== */

.error-block {
    background: #050507;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .85rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.error-message {
    color: #eaeaea;
}

.error-trace {
    color: #ffb4b4;
}

/* =====================================================
   ACTIONS
===================================================== */

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

.error-actions-left {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.error-actions-right {
    margin-left: auto;
}

.error-btn {
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.error-btn.primary {
    background: var(--accent);
    color: #111;
}

.error-btn.primary:hover {
    filter: brightness(1.1);
}

.error-btn.secondary {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.error-btn.secondary:hover {
    background: rgba(255,255,255,.14);
}

/* =====================================================
   THEMES
===================================================== */

.error-theme-danger      { --accent: #ff5a5a; --accent-glow: rgba(255, 90, 90, 0.3); }
.error-theme-warning     { --accent: #ffb84d; --accent-glow: rgba(255, 184, 77, 0.3); }
.error-theme-security    { --accent: #60a5fa; --accent-glow: rgba(96, 165, 250, 0.3); }
.error-theme-permission  { --accent: #ff9a3b; --accent-glow: rgba(255, 154, 59, 0.3); }
.error-theme-neutral     { --accent: #b0b0b0; --accent-glow: rgba(176, 176, 176, 0.3); }
.error-theme-rate        { --accent: #ff9f1a; --accent-glow: rgba(255, 159, 26, 0.3); }
.error-theme-system      { --accent: #c9a6ff; --accent-glow: rgba(201, 166, 255, 0.3); }
.error-theme-maintenance { --accent: #7dd3fc; --accent-glow: rgba(125, 211, 252, 0.3); }

.error-btn.ghost {
    background: rgba(255,255,255,.03);
    border: 1.5px solid var(--accent);
    color: var(--accent);
    opacity: 1;
    font-size: .9rem;
    padding: 10px 22px;
}

.error-btn.ghost:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}