﻿/* ============================================================
   Cloudy — Site layout (público) — mobile-first
   Reemplaza al antiguo app.css. Solo se carga en /Pages/Shared/_Layout.cshtml
   Requiere: core/tokens.css, core/base.css, core/components.css, core/utilities.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   NAVBAR SUPERIOR
   ══════════════════════════════════════════════════════════ */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff;
    border-bottom: 1px solid var(--cl-border);
    box-shadow: var(--cl-shadow-xs);
    height: 56px;
}

    .site-navbar .container-fluid {
        height: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0 0.85rem;
    }

@media (min-width: 768px) {
    .site-navbar {
        height: 60px;
    }

        .site-navbar .container-fluid {
            padding: 0 1.25rem;
            gap: 0.75rem;
        }
}

/* Brand */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cl-text);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

    .site-brand i {
        color: var(--cl-brand-500);
        font-size: 1.35rem;
    }

    .site-brand:hover {
        color: var(--cl-text);
    }

@media (min-width: 768px) {
    .site-brand {
        font-size: 1.1rem;
    }

        .site-brand i {
            font-size: 1.5rem;
        }
}

/* Toggler móvil */
.site-toggler {
    background: transparent;
    border: none;
    color: var(--cl-text);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-left: auto;
    transition: background var(--cl-t-fast);
}

    .site-toggler:hover {
        background: var(--cl-surface-2);
    }

@media (min-width: 992px) {
    .site-toggler {
        display: none;
    }
}

/* Menú de navegación */
.site-nav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
}

@media (min-width: 992px) {
    .site-nav {
        display: flex;
        flex: 1;
        margin-left: 1rem;
    }
}

.site-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cl-text);
    border-radius: 6px;
    text-decoration: none;
    transition: background var(--cl-t-fast), color var(--cl-t-fast);
    white-space: nowrap;
}

    .site-nav .nav-link:hover {
        background: var(--cl-surface-2);
        color: var(--cl-brand-500);
    }

    .site-nav .nav-link.active,
    .site-nav .nav-item.active > .nav-link {
        color: var(--cl-brand-500);
        background: var(--cl-brand-50);
        font-weight: 600;
    }

    .site-nav .nav-link i {
        font-size: 0.95rem;
    }

/* Menú móvil abierto */
@media (max-width: 991.98px) {
    .site-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--cl-border);
        padding: 0.5rem;
        gap: 0.15rem;
        box-shadow: var(--cl-shadow-md);
        z-index: 1030;
    }

        .site-nav.is-open .nav-link {
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
        }
}

/* Acciones a la derecha (búsqueda, campanita, avatar) */
.site-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .site-navbar-actions {
        margin-left: 0;
    }
}

/* Botón icono (buscar, notif, etc.) */
.site-icon-btn {
    background: transparent;
    border: none;
    color: var(--cl-text);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    transition: background var(--cl-t-fast), color var(--cl-t-fast);
    cursor: pointer;
}

    .site-icon-btn:hover {
        background: var(--cl-surface-2);
        color: var(--cl-brand-500);
    }

    /* Badge de notificaciones */
    .site-icon-btn .site-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        min-width: 18px;
        height: 18px;
        background: var(--cl-danger);
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border: 2px solid #fff;
        line-height: 1;
    }

/* ══════════════════════════════════════════════════════════
   DROPDOWNS (usuario, admin menu, notificaciones)
   ══════════════════════════════════════════════════════════ */
.dropdown-menu {
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow-md);
    padding: 0.4rem;
    min-width: 200px;
    margin-top: 6px;
}

.dropdown-item {
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--cl-text);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--cl-t-fast), color var(--cl-t-fast);
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: var(--cl-surface-2);
        color: var(--cl-brand-500);
    }

    .dropdown-item.text-danger:hover {
        background: #fef2f2;
        color: #b91c1c !important;
    }

    .dropdown-item i {
        width: 16px;
        text-align: center;
        flex-shrink: 0;
        font-size: 0.95rem;
    }

.dropdown-divider {
    margin: 0.35rem 0;
    border-color: var(--cl-border-2);
}

.dropdown-header {
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cl-text-subtle);
}

/* ── User dropdown (avatar + nombre + correo) ── */
.user-dropdown-menu {
    min-width: 280px;
    padding: 0;
    overflow: hidden;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, var(--cl-brand-500) 0%, var(--cl-brand-700) 100%);
    color: #fff;
}

.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 2px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    color: #fff;
}

.user-dropdown-info {
    min-width: 0;
    flex: 1;
}

.user-dropdown-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-menu .dropdown-item {
    border-radius: 0;
    padding: 0.7rem 1.1rem;
}

    .user-dropdown-menu .dropdown-item i {
        width: 20px;
    }

/* ── Admin menu dropdown (agrupado) ── */
.admin-menu-dropdown {
    min-width: 320px;
    max-height: 78vh;
    overflow-y: auto;
    padding: 6px 0;
}

    .admin-menu-dropdown .dropdown-header {
        padding: 8px 16px 4px;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
        color: var(--cl-text-subtle);
        border-bottom: 1px dashed var(--cl-border-2);
        margin-bottom: 4px;
    }

    .admin-menu-dropdown .dropdown-item {
        padding: 0.55rem 16px;
        border-radius: 0;
    }

        .admin-menu-dropdown .dropdown-item i {
            width: 18px;
        }

/* ── Campanita de notificaciones (drawer) ── */
.notification-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 100vw;
    background: #fff;
    box-shadow: -8px 0 32px rgba(15,23,42,0.18);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

    .notification-drawer.visible {
        transform: translateX(0);
    }

    .notification-drawer .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.1rem;
        border-bottom: 1px solid var(--cl-border);
        background: #fff;
    }

    .notification-drawer .drawer-list {
        flex: 1;
        overflow-y: auto;
        padding: 0.25rem 0;
    }

.notification-item {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--cl-border-2);
    cursor: pointer;
    transition: background var(--cl-t-fast);
}

    .notification-item:hover {
        background: var(--cl-surface-2);
    }

    .notification-item.is-unread {
        background: var(--cl-brand-50);
    }

        .notification-item.is-unread:hover {
            background: var(--cl-brand-100);
        }

    .notification-item .notification-msg {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .notification-item .unread-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--cl-brand-500);
        flex-shrink: 0;
        margin-top: 6px;
        box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
    }

.notification-delete-btn {
    background: transparent;
    border: none;
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--cl-text-subtle);
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity var(--cl-t-fast), background var(--cl-t-fast);
}

.notification-item:hover .notification-delete-btn {
    opacity: 1;
}

.notification-delete-btn:hover {
    background: #fee2e2;
    color: var(--cl-danger);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--cl-border);
    padding: 1.25rem 0;
    margin-top: 2rem;
    font-size: 0.82rem;
    color: var(--cl-text-muted);
}

    .site-footer a {
        color: var(--cl-text-muted);
    }

        .site-footer a:hover {
            color: var(--cl-brand-500);
        }

/* ══════════════════════════════════════════════════════════
   WIDGETS FLOTANTES (timer, focus)
   ══════════════════════════════════════════════════════════ */
.active-timer-widget {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cl-gradient-accent);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(13,110,253,0.35);
    max-width: calc(100vw - 32px);
}

@media (max-width: 576px) {
    .active-timer-widget {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
        justify-content: center;
    }
}

.active-timer-widget.timer-paused {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

.focus-widget {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(124,58,237,0.35);
    max-width: calc(100vw - 32px);
}

body.focus-active .active-timer-widget {
    top: 130px;
}

@media (max-width: 576px) {
    .focus-widget {
        top: auto;
        bottom: 82px;
        left: 16px;
        right: 16px;
    }

    body.focus-active .active-timer-widget {
        top: auto;
        bottom: 16px;
    }
}

/* ══════════════════════════════════════════════════════════
   PRESENCE DOT
   ══════════════════════════════════════════════════════════ */
.presence-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 2px #fff;
}

    .presence-dot.presence-available {
        background: #22c55e;
    }

    .presence-dot.presence-busy {
        background: #ef4444;
    }

    .presence-dot.presence-incall {
        background: #f59e0b;
        animation: presence-pulse 1.5s ease-in-out infinite;
    }

    .presence-dot.presence-away {
        background: #6b7280;
    }

    .presence-dot.presence-offhours {
        background: #94a3b8;
        opacity: 0.6;
    }

    .presence-dot.presence-unknown {
        background: #cbd5e1;
    }

@keyframes presence-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.15);
    }
}

/* Wrapper para avatar con dot */
.user-presence-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}

    .user-presence-wrapper .presence-dot {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 10px;
        height: 10px;
        box-shadow: 0 0 0 2px #fff;
    }
/* ══════════════════════════════════════════════════════════
   SIGN IN
   ══════════════════════════════════════════════════════════ */
.signin-wrapper {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.signin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.signin-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd 0%, #6366f1 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(13,110,253,0.35);
}

.signin-brand-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.signin-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 32px rgba(15,23,42,0.06);
}

.signin-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

    .signin-header h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 0.35rem 0;
        color: var(--cl-text);
    }

    .signin-header p {
        margin: 0;
        font-size: 0.9rem;
        color: var(--cl-text-muted);
    }

.signin-providers {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.signin-provider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--cl-text);
    transition: all 0.15s ease;
    cursor: pointer;
    min-height: 62px;
}

    .signin-provider:not(.disabled):hover {
        border-color: var(--cl-brand-500);
        box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
        transform: translateY(-1px);
    }

    .signin-provider.disabled {
        opacity: 0.55;
        cursor: not-allowed;
        background: var(--cl-surface-2);
    }

.signin-provider-logo {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--cl-border-2);
    flex-shrink: 0;
}

    .signin-provider-logo img {
        display: block;
    }

.signin-provider-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

    .signin-provider-text strong {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--cl-text);
        line-height: 1.2;
    }

    .signin-provider-text small {
        font-size: 0.75rem;
        color: var(--cl-text-muted);
        line-height: 1.2;
    }

.signin-provider-state {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cl-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

    .signin-provider-state.ok {
        color: var(--cl-brand-500);
        font-size: 1rem;
    }

.signin-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cl-border-2);
}

    .signin-footer a {
        font-size: 0.85rem;
        color: var(--cl-text-muted);
        text-decoration: none;
    }

        .signin-footer a:hover {
            color: var(--cl-brand-500);
        }

@media (max-width: 480px) {
    .signin-card {
        padding: 1.5rem 1.25rem;
    }

    .signin-header h1 {
        font-size: 1.3rem;
    }
}
/* ══════════════════════════════════════════════════════════
   UNSUBSCRIBE
   ══════════════════════════════════════════════════════════ */
.unsubscribe-wrapper {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.unsubscribe-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(15,23,42,0.06);
}

.unsubscribe-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

    .unsubscribe-icon.ok {
        background: #dcfce7;
        color: #166534;
    }

    .unsubscribe-icon.warn {
        background: #fef3c7;
        color: #92400e;
    }

    .unsubscribe-icon.info {
        background: #dbeafe;
        color: #1e40af;
    }

.unsubscribe-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--cl-text);
}

.unsubscribe-text {
    font-size: 0.95rem;
    color: var(--cl-text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.unsubscribe-hint {
    font-size: 0.82rem;
    color: var(--cl-text-subtle);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

    .unsubscribe-hint a {
        color: var(--cl-brand-500);
    }

.unsubscribe-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .unsubscribe-card {
        padding: 1.75rem 1.25rem;
    }

    .unsubscribe-actions .btn {
        width: 100%;
    }
}
/* ══════════════════════════════════════════════════════════
   PROFILE
   ══════════════════════════════════════════════════════════ */
.profile-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #6366f1 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(13,110,253,0.30);
}
/* ══════════════════════════════════════════════════════════
   PROFILE — Identidad del usuario
   ══════════════════════════════════════════════════════════ */
.pf-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.pf-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #6366f1 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.30);
    letter-spacing: -0.02em;
    line-height: 1;
}

.pf-identity-info {
    flex: 1;
    min-width: 0;
}

.pf-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cl-text, #0f172a);
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
    word-break: break-word;
}

.pf-email {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--cl-text-muted, #64748b);
    word-break: break-all;
}

    .pf-email i {
        color: var(--cl-brand-500, #0d6efd);
        flex-shrink: 0;
        font-size: 0.95rem;
    }

@media (max-width: 480px) {
    .pf-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .pf-name {
        font-size: 1.05rem;
    }
}

/* Contenedor principal para páginas NO-admin (mantiene el ancho cómodo) */
.main-content > .cl-content {
    max-width: 1080px;
    margin: 0 auto;
}
.main-header {
    position: sticky;
    top: 0;
    z-index: 1035;
}
/* ══════════════════════════════════════════════════════════
   ERROR PAGE
   ══════════════════════════════════════════════════════════ */
.err-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at top, rgba(220, 53, 69, 0.06) 0%, transparent 55%), linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.err-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid var(--cl-border, #e2e8f0);
    border-radius: 1rem;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.err-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.10);
    color: #dc3545;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.05);
}

.err-code {
    display: inline-block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.err-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cl-text, #0f172a);
    margin: 0 0 0.6rem 0;
    letter-spacing: -0.01em;
}

.err-text {
    font-size: 0.92rem;
    color: var(--cl-text-muted, #64748b);
    line-height: 1.55;
    margin: 0 0 1.75rem 0;
}

.err-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.err-btn-primary,
.err-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.6rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s ease;
}

.err-btn-primary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.22);
}

    .err-btn-primary:hover {
        background: #0a58ca;
        border-color: #0a58ca;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(13, 110, 253, 0.32);
    }

.err-btn-outline {
    background: #fff;
    color: var(--cl-text, #0f172a);
    border-color: var(--cl-border, #e2e8f0);
}

    .err-btn-outline:hover {
        background: var(--cl-surface-2, #f8fafc);
        border-color: #cbd5e1;
        color: var(--cl-text, #0f172a);
    }

.err-meta {
    font-size: 0.78rem;
    color: var(--cl-text-subtle, #94a3b8);
    padding-top: 1.25rem;
    border-top: 1px solid var(--cl-border-2, #f1f5f9);
    line-height: 1.5;
}

    .err-meta a {
        color: var(--cl-brand-500, #0d6efd);
        font-weight: 600;
        text-decoration: none;
    }

        .err-meta a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .err-card {
        padding: 2rem 1.35rem 1.5rem;
    }

    .err-title {
        font-size: 1.3rem;
    }

    .err-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .err-actions .err-btn-primary,
    .err-actions .err-btn-outline {
        width: 100%;
    }
}
/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.main-footer {
    background: #fff;
    border-top: 1px solid var(--cl-border, #e2e8f0);
    padding: 1.25rem 1rem;
    margin-top: 2rem;
    color: var(--cl-text-muted, #64748b);
    font-size: 0.82rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copyright {
    color: var(--cl-text-muted, #64748b);
    line-height: 1.4;
}

    .footer-copyright strong {
        color: var(--cl-text, #0f172a);
        font-weight: 700;
    }

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

    .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        color: var(--cl-text-muted, #64748b);
        background: transparent;
        text-decoration: none;
        font-size: 1rem;
        transition: background 0.15s ease, color 0.15s ease;
    }

        .footer-social a:hover {
            background: var(--cl-surface-2, #f8fafc);
            color: var(--cl-brand-500, #0d6efd);
        }

        .footer-social a:focus-visible {
            outline: 2px solid var(--cl-brand-500, #0d6efd);
            outline-offset: 2px;
        }

@media (max-width: 575.98px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}