/* ======================================================================== *
 *                           TABLA DE CONTENIDO                             *
 * ======================================================================== *
 * 1. NOTIFICACIONES                                                        *
 * 2. MODAL WALLET LANDING                                                  *
 * 3. SIDEBAR                                                               *
 * 4. HEADER                                                                *
 * 5. TELL A FRIEND                                                         *
 * 6. MENU HOMEPAGE                                                         *
 * 7. FOOTER HOMEPAGE                                                       *
 * ======================================================================== */


/* ======================================================================== *
 *                              NOTIFICACIONES                              *
 * ======================================================================== */

.notificacion-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999999 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.notificacion-toast {
    background: #ffffff;
    border-left: 5px solid #003087;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.notificacion-toast.active {
    transform: translateX(0);
}

.notificacion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notificacion-content {
    flex: 1;
}

.notificacion-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.notificacion-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.notificacion-close {
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s;
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 0 5px;
}

.notificacion-close:hover {
    color: #333;
}

/* Tipos de notificaciones */
.notificacion-toast.info {
    border-left-color: #3B82F6;
}

.notificacion-toast.success {
    border-left-color: #10B981;
}

.notificacion-toast.warning {
    border-left-color: #F59E0B;
}

.notificacion-toast.error {
    border-left-color: #EF4444;
}

@media (max-width: 600px) {
    .notificacion-container {
        top: 10px;
        bottom: auto;
        right: 10px;
        left: 10px;
        align-items: stretch;
        z-index: 999999999 !important;
        width: calc(100% - 20px);
        max-width: 100%;
    }

    .notificacion-toast {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        transform: translateY(-120%);
    }

    .notificacion-toast.active {
        transform: translateY(0);
    }
}


/* ======================================================================== *
 *                         MODAL WALLET LANDING                             *
 * ======================================================================== */

/* Overlay â€” fondo claro esmerilado, SIN oscuro */
.landimodal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(241, 245, 249, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}
.landimodal-overlay.landimodal-visible {
    opacity: 1;
    pointer-events: all;
}

/* Panel principal â€” blanco puro, sin fondo oscuro */
.landimodal-panel {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    /* Scrollbar oculta pero funcional */
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.10),
        0 0 0 1px rgba(226, 232, 240, 0.8);
    padding: 44px 40px 36px;
    animation: lm-slide-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.landimodal-panel::-webkit-scrollbar { display: none; }

@keyframes lm-slide-in {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* BotÃ³n cerrar */
.landimodal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.landimodal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
    border-color: #cbd5e1;
}

/* Icono de marca */
.landimodal-brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(255, 111, 0, 0.08);
    border: 1.5px solid rgba(255, 111, 0, 0.15);
    color: #ff6f00;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* TÃ­tulos */
.landimodal-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.landimodal-title-brand { color: #0f172a; }
.landimodal-title-accent { color: #ff6f00; }

.landimodal-subtitle {
    color: #64748b;
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Steps â€” columna alineada a la izquierda */
.landimodal-step {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.landimodal-step.lm-active {
    display: flex;
}

/* Tarjeta del patrocinador */
.landimodal-inviter-card {
    width: 100%;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.landimodal-inviter-card:hover {
    border-color: rgba(255, 111, 0, 0.4);
    box-shadow: 0 4px 16px rgba(255, 111, 0, 0.08);
}
.landimodal-inviter-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.landimodal-inviter-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 111, 0, 0.1);
    color: #ff6f00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.landimodal-inviter-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.landimodal-inviter-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.landimodal-inviter-name {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.landimodal-inviter-id {
    font-size: 0.78rem;
    color: #64748b;
}
.landimodal-inviter-id-val {
    color: #ff6f00;
    font-weight: 700;
}
.landimodal-inviter-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #ff6f00;
    flex-shrink: 0;
}
.landimodal-inviter-badge-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #fb923c;
}

/* Bloque de seguridad */
.landimodal-security-row {
    width: 100%;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 20px;
}
.landimodal-security-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.landimodal-security-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.landimodal-security-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #15803d;
}
.landimodal-security-desc {
    font-size: 0.78rem;
    color: #16a34a;
    line-height: 1.45;
}

/* BotÃ³n principal Conectar */
.landimodal-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff6f00 0%, #ff8c00 100%);
    color: #ffffff;
    border-radius: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 111, 0, 0.32);
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}
.landimodal-connect-btn:hover {
    background: linear-gradient(135deg, #e65c00 0%, #ff6f00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.42);
    color: #ffffff;
}
.landimodal-connect-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(255, 111, 0, 0.28);
}

/* Botones de Wallet (Paso InstalaciÃ³n) */
.lm-wallet-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 4px;
}
.lm-wallet-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.22s ease;
    width: 100%;
    text-align: left;
}
.lm-wallet-btn:hover {
    background: #fff7ed;
    border-color: rgba(255, 111, 0, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 111, 0, 0.08);
}
.lm-wallet-btn-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 111, 0, 0.1);
    color: #ff6f00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lm-wallet-btn-name { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.lm-wallet-btn-desc { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }
.lm-wallet-btn-arrow { margin-left: auto; color: #cbd5e1; }

/* Connected badge */
.lm-connected-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    margin-bottom: 18px;
}
.lm-connected-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.lm-connected-label { font-size: 0.78rem; color: #15803d; font-weight: 700; }
.lm-connected-addr  { font-size: 0.75rem; color: #166534; font-family: monospace; word-break: break-all; margin-top: 2px; }

/* Form fields */
.lm-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-bottom: 14px;
    text-align: left;
}
.lm-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.1px;
}
.lm-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lm-input-wrap:focus-within {
    border-color: #ff6f00;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.08);
}
.lm-input-wrap svg { color: #94a3b8; flex-shrink: 0; }
.lm-input-wrap input,
.lm-input-wrap select {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: #0f172a;
    padding: 13px 0;
    font-family: inherit;
}
.lm-input-wrap select { cursor: pointer; }

/* Terms */
.lm-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    text-align: left;
    width: 100%;
}
.lm-terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #ff6f00;
    flex-shrink: 0;
}
.lm-terms-text { font-size: 0.78rem; color: #64748b; line-height: 1.5; }
.lm-terms-text a { color: #ff6f00; font-weight: 600; text-decoration: none; }
.lm-terms-text a:hover { text-decoration: underline; }

/* Back button */
.lm-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 0.82rem;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: color 0.2s;
}
.lm-btn-back:hover { color: #0f172a; }

/* No invitation view */
.lm-no-invite {
    text-align: center;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.lm-no-invite-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
}
.lm-no-invite-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.lm-no-invite-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    max-width: 380px;
    margin: 0;
}

/* Divisor */
.lm-divider {
    width: 100%;
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0 16px;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 640px) {
    .landimodal-overlay { padding: 12px; align-items: flex-end; }
    .landimodal-panel {
        padding: 36px 22px 28px;
        border-radius: 20px 20px 12px 12px;
        max-height: calc(100vh - 24px);
    }
    .landimodal-title { font-size: 1.35rem; }
    .landimodal-inviter-card { flex-wrap: wrap; }
}
@media (max-width: 400px) {
    .landimodal-panel { padding: 30px 16px 24px; }
    .landimodal-title { font-size: 1.2rem; }
}



/* ======================================================================== *
 *                              SIDEBAR                                     *
 * ======================================================================== */

.reddashboard-body {
    background-color: #FAFAFA; /* Extemely clean, premium light background */
    color: #0F172A;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Load Animations */
@keyframes reddashboard-slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes reddashboard-slide-in-left {
    from {
        transform: translateX(-80px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scrollbar Customization - Hidden entirely */
.reddashboard-sidebar-body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.reddashboard-sidebar-body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Main Dashboard Responsive Grid */
.reddashboard-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Sidebar Styling - Static anchored to left edges */
.reddashboard-sidebar {
    width: 280px;
    background: #FFFFFF;
    margin: 0;
    height: 100vh;
    border-radius: 0; /* Flat modern edge */
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.015);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: none; /* No outer borders */
    flex-shrink: 0;
    /* Apply load animation on desktop */
    animation: reddashboard-slide-in-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reddashboard-sidebar-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
}

.reddashboard-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.reddashboard-sidebar-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.reddashboard-sidebar-logo:hover {
    transform: scale(1.03);
}

.reddashboard-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.reddashboard-sidebar-close:hover {
    color: #FF6B00;
}

.reddashboard-sidebar-close svg {
    width: 24px;
    height: 24px;
}

.reddashboard-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 30px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Sidebar Menu Items */
.reddashboard-menu-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 15px;
}

.reddashboard-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin: 0 10px;
    border-radius: 14px;
    color: #0F172A; /* Slate/Dark blue text */
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    outline: none;
    width: calc(100% - 20px); /* Explicitly stretch button to match anchors perfectly */
    box-sizing: border-box; /* Keep padding included in width */
}

.reddashboard-menu-indicator {
    display: none; /* Hide the bar-styled line indicator, not present in reference image */
}

.reddashboard-menu-icon-wrapper {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #64748B; /* High-quality slate for icons */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.reddashboard-menu-icon {
    width: 100%;
    height: 100%;
}

.reddashboard-menu-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reddashboard-chevron-icon {
    width: 16px;
    height: 16px;
    color: #64748B;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: auto; /* Pushes arrow to the far right side */
}

/* Accordion States */
.reddashboard-menu-item.reddashboard-accordion-trigger.open .reddashboard-chevron-icon {
    transform: rotate(180deg);
}

/* Hover Menu State */
.reddashboard-menu-item:hover {
    background: #FFF5EF; /* Soft peach orange background */
    color: #FF6B00; /* Vibrant orange text */
}

.reddashboard-menu-item:hover .reddashboard-menu-icon-wrapper {
    color: #FF6B00;
}

.reddashboard-menu-item:hover .reddashboard-chevron-icon {
    color: #FF6B00;
}

/* Active Menu State */
.reddashboard-menu-item.active {
    background: #FFF2EB; /* Soft solid orange background matching the reference */
    color: #FF6B00; /* Vibrant orange text */
}

.reddashboard-menu-item.active .reddashboard-menu-icon-wrapper {
    color: #FF6B00;
}

/* Collapsible Submenus */
.reddashboard-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reddashboard-submenu {
    list-style: none;
    padding: 6px 0 6px 20px;
    margin: 4px 10px 4px 22px;
    border-left: 2px solid #F1F5F9;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reddashboard-submenu-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #64748B;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.reddashboard-submenu-bullet {
    width: 6px;
    height: 6px;
    border: 1.5px solid #64748B;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.reddashboard-submenu-item a:hover {
    color: #FF6B00;
    background: #FFF8F5;
}

.reddashboard-submenu-item a:hover .reddashboard-submenu-bullet {
    border-color: #FF6B00;
    background-color: #FF6B00;
}

.reddashboard-submenu-item a.active {
    color: #FF6B00;
    background: #FFF2EB;
}

.reddashboard-submenu-item a.active .reddashboard-submenu-bullet {
    border-color: #FF6B00;
    background-color: #FF6B00;
}

/* Upgrade Button at Sidebar Footer */
.reddashboard-sidebar-footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.reddashboard-btn-upgrade {
    background: linear-gradient(135deg, #FF6B00 0%, #FFA800 100%);
    color: #FFFFFF;
    padding: 14px 20px;
    border-radius: 16px; /* Pill shaped to match menu items */
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.22);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.reddashboard-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 0, 0.3);
    filter: brightness(1.03);
}

.reddashboard-btn-upgrade-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.6s ease;
}

.reddashboard-btn-upgrade:hover .reddashboard-btn-upgrade-icon {
    transform: rotate(180deg);
}

/* Sidebar Overlay for Mobile */
.reddashboard-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 180;
}

.reddashboard-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content Wrapper */
.reddashboard-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FAFAFA;
    height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
}






/* ======================================================================== *
 *                              HEADER                                      *
 * ======================================================================== */

/* Header (Topbar) Styling */
.reddashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px; /* Highly compact & professional */
    background: #FFFFFF; /* Solid white background */
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); /* Elegant separation line */
    z-index: 90;
    gap: 20px;
    position: sticky; /* Always anchored to the top */
    top: 0;
    flex-shrink: 0;   /* Never compress — always stays at top */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); /* Always visible above scrollable content */
}

.reddashboard-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

/* Hamburger Toggler - Hidden on desktop by default */
.reddashboard-hamburger {
    display: none !important;
    /* Hide on desktop */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #E2E8F0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #FF6B00;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    flex-shrink: 0;
}

.reddashboard-hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.reddashboard-hamburger svg {
    width: 22px;
    height: 22px;
}

/* Header Stat Cards Row */
.reddashboard-header-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Premium Stat Cards */
.reddashboard-stat-card {
    background: #F8FAFC; /* Embedded slate background for premium nesting inside white header */
    border-radius: 14px; /* More compact border-radius */
    padding: 10px 18px; /* Compact padding */
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.reddashboard-stat-card:hover {
    background: #F1F5F9;
    border-color: rgba(226, 232, 240, 0.8);
    transform: translateY(-1px);
}

.reddashboard-stat-card-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px; /* Balanced rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Dynamic colors matching reference - white containers inside slate cards */
.reddashboard-saldo-card .reddashboard-stat-card-icon-wrapper {
    background: #FFFFFF;
    color: #FF6B00; /* Bold orange */
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.08);
}

.reddashboard-puntos-card .reddashboard-stat-card-icon-wrapper {
    background: #FFFFFF;
    color: #FFA800; /* Bold yellow/orange */
    box-shadow: 0 2px 6px rgba(255, 168, 0, 0.08);
}

.reddashboard-stat-card-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.reddashboard-stat-card-info {
    display: flex;
    flex-direction: column;
}

.reddashboard-stat-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
}

.reddashboard-stat-card-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    margin-top: 2px;
}

.reddashboard-stat-card-status {
    display: none !important; /* Completely hide "En tiempo real" status as requested */
}

/* Pulse Dot Animation for real-time status */
.reddashboard-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.reddashboard-pulse-dot::after {
    content: "";
    width: 100%;
    height: 100%;
    background: #10B981;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: redpulse 2s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes redpulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.reddashboard-status-text {
    font-size: 0.72rem;
    color: #10B981;
    font-weight: 700;
}

/* Header Utilities */
.reddashboard-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Notification Bell Toggler */
.reddashboard-notification-wrapper {
    position: relative;
}

.reddashboard-notif-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    outline: none;
}

.reddashboard-notif-btn:hover {
    color: #FF6B00;
    border-color: #FF6B00;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.reddashboard-notif-btn svg {
    width: 20px;
    height: 20px;
}

.reddashboard-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FF6B00;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
}

/* Notifications Panel Dropdown */
.reddashboard-notif-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 150;
    overflow: hidden;
}

.reddashboard-notif-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reddashboard-notif-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reddashboard-notif-dropdown-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
}

.reddashboard-notif-count {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 107, 0, 0.1);
    color: #FF6B00;
    padding: 4px 8px;
    border-radius: 20px;
}

.reddashboard-notif-dropdown-body {
    max-height: 280px;
    overflow-y: auto;
}

.reddashboard-notif-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #E2E8F0;
    transition: background 0.2s ease;
    cursor: pointer;
}

.reddashboard-notif-item:hover {
    background: rgba(255, 107, 0, 0.02);
}

.reddashboard-notif-item.unread {
    background: rgba(255, 107, 0, 0.01);
}

.reddashboard-notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.reddashboard-notif-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.reddashboard-notif-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.reddashboard-notif-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.reddashboard-notif-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reddashboard-notif-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #1E293B;
    font-weight: 500;
}

.reddashboard-notif-time {
    font-size: 0.7rem;
    color: #64748B;
}

.reddashboard-notif-dropdown-footer {
    padding: 12px;
    text-align: center;
    background: #FAF5F0;
}

.reddashboard-notif-dropdown-footer a {
    color: #FF6B00;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.reddashboard-notif-dropdown-footer a:hover {
    text-decoration: underline;
}

/* Profile Trigger Dropdown */
.reddashboard-profile-wrapper {
    position: relative;
}

.reddashboard-profile-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
    padding: 6px 20px 6px 6px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
    text-align: left;
    outline: none;
}

.reddashboard-profile-trigger:hover {
    border-color: #FF6B00;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.reddashboard-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #FF6B00;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #FF6B00;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
    flex-shrink: 0;
    overflow: hidden;
}

.reddashboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.reddashboard-profile-meta {
    display: flex;
    flex-direction: column;
}

.reddashboard-profile-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0F172A;
    display: block;
    text-transform: uppercase;
}

.reddashboard-profile-role {
    font-size: 0.78rem;
    font-weight: 700;
    color: #FF6B00;
    display: block;
    margin-top: 1px;
}

.reddashboard-profile-chevron {
    width: 16px;
    height: 16px;
    color: #FF6B00;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 4px;
    flex-shrink: 0;
}

/* Rotates chevron when open */
.reddashboard-profile-trigger[aria-expanded="true"] .reddashboard-profile-chevron {
    transform: rotate(180deg);
}

/* Profile Dropdown Container */
.reddashboard-profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 150;
}

.reddashboard-profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reddashboard-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    color: #0F172A;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reddashboard-dropdown-icon {
    width: 18px;
    height: 18px;
    color: #64748B;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reddashboard-dropdown-icon svg {
    width: 100%;
    height: 100%;
}

.reddashboard-dropdown-item:hover {
    background: #FFF5EF;
    color: #FF6B00;
}

.reddashboard-dropdown-item:hover .reddashboard-dropdown-icon {
    color: #FF6B00;
}

.reddashboard-dropdown-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 8px 12px;
}

/* Logout specialized color rules */
.reddashboard-dropdown-item.logout {
    color: #EF4444;
}

.reddashboard-dropdown-item.logout .reddashboard-dropdown-icon {
    color: #EF4444;
}

.reddashboard-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.04);
    color: #EF4444;
}

/* Main Content Wrapper */
.reddashboard-content {
    flex: 1;
    padding: 30px 40px; /* Elegant padding around dynamic content */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Enable safe vertical scroll if content is long */
    overflow-x: hidden; /* Prevent horizontal break out */
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reddashboard-content::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1200px) {
    .reddashboard-header {
        padding: 20px 30px;
    }

    .reddashboard-content {
        padding: 20px 30px;
    }
}

/* Responsive breakpoint for toggling static sidebar */
@media (max-width: 1024px) {
    .reddashboard-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        margin: 0;
        height: 100vh;
        border-radius: 0; /* Fully flat modern edge */
        z-index: 200;
        box-shadow: 15px 0 40px rgba(15, 23, 42, 0.1);
        animation: none !important; /* Disable load animation on mobile */
    }

    .reddashboard-sidebar.active {
        left: 0;
    }

    .reddashboard-sidebar-close {
        display: flex;
    }

    .reddashboard-sidebar-brand {
        justify-content: flex-start;
        padding-right: 30px;
    }

    .reddashboard-header {
        padding: 20px;
        animation: none !important; /* Disable load animation on mobile */
    }

    .reddashboard-content {
        padding: 20px;
    }

    /* Mobile Hamburger - visible only on tablet and mobile */
    .reddashboard-hamburger {
        display: flex !important;
    }
}

@media (max-width: 850px) {
    .reddashboard-header {
        flex-wrap: nowrap;
        padding: 12px 16px;
        gap: 8px;
        align-items: center;
    }

    .reddashboard-header-left {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .reddashboard-header-stats {
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
    }

    .reddashboard-stat-card {
        min-width: 0;
        padding: 6px 10px;
        gap: 0;
        border-radius: 12px;
        flex-shrink: 1;
    }

    .reddashboard-stat-card-icon-wrapper {
        display: none;
    }

    .reddashboard-stat-card-status {
        display: none;
    }

    .reddashboard-stat-card-title {
        font-size: 0.62rem;
    }

    .reddashboard-stat-card-value {
        font-size: 0.82rem;
        font-weight: 700;
        margin-top: 0;
    }

    .reddashboard-header-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .reddashboard-notif-btn {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* En mobile: ocultar nombre y rango del trigger — solo se ve el avatar con iniciales */
    .reddashboard-profile-meta {
        display: none;
    }

    /* En mobile: ocultar también las stat cards del header para dar espacio */
    .reddashboard-header-stats {
        display: none;
    }

    /* En mobile: reducir padding del trigger para que el avatar ocupe menos espacio */
    .reddashboard-profile-trigger {
        padding: 4px;
        border-radius: 50%;
        gap: 0;
    }

    /* En mobile: ocultar chevron del trigger */
    .reddashboard-profile-chevron {
        display: none;
    }
}

/* ——— Mobile Avatar Profile Dropdown Header ——— */
.reddashboard-profile-dropdown-header {
    display: none;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.04) 0%, rgba(255, 168, 0, 0.02) 100%);
    flex-direction: column;
    gap: 4px;
}

.reddashboard-profile-dropdown-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reddashboard-profile-dropdown-role {
    font-size: 0.76rem;
    font-weight: 700;
    color: #FF6B00;
}

.reddashboard-dropdown-divider.show-mobile-only {
    display: none;
}

@media (max-width: 850px) {
    .reddashboard-profile-dropdown-header {
        display: flex;
    }
    .reddashboard-dropdown-divider.show-mobile-only {
        display: block;
    }

    /* En mobile, el dropdown del perfil se posiciona pegado a la derecha */
    .reddashboard-profile-dropdown {
        right: 0;
        width: 260px;
    }
}

.header-notif-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-notif-icon-circle svg {
    width: 18px;
    height: 18px;
}

/* Inner Circle Backgrounds for Dropdown - matching DB enum tipos */
.header-notif-icon-circle.notif-info,
.header-notif-icon-circle.notif-sistema {
    background: #eff6ff !important;
    color: #3b82f6 !important;
}
.header-notif-icon-circle.notif-recarga {
    background: #ecfdf5 !important;
    color: #10b981 !important;
}
.header-notif-icon-circle.notif-retiro {
    background: #fff7ed !important;
    color: #ea580c !important;
}
.header-notif-icon-circle.notif-pago {
    background: #ecfdf5 !important;
    color: #10b981 !important;
}
.header-notif-icon-circle.notif-transferencia {
    background: #eff6ff !important;
    color: #3b82f6 !important;
}
.header-notif-icon-circle.notif-rango {
    background: #f5f3ff !important;
    color: #8b5cf6 !important;
}
.header-notif-icon-circle.notif-invitacion {
    background: #fffbeb !important;
    color: #f59e0b !important;
}
.header-notif-icon-circle.notif-seguridad {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}
.header-notif-icon-circle.notif-soporte {
    background: #f0f9ff !important;
    color: #0284c7 !important;
}
.header-notif-icon-circle.notif-sorteo {
    background: #fdf2f8 !important;
    color: #ec4899 !important;
}
.header-notif-icon-circle.notif-boleto {
    background: #f0fdf4 !important;
    color: #16a34a !important;
}
.redheader-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.redheader-modal.active {
    display: flex;
    opacity: 1;
}

.redheader-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
    position: relative;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

.redheader-modal.active .redheader-modal-card {
    transform: scale(1) translateY(0);
}

.redheader-modal-card::-webkit-scrollbar { display: none; }

/* Top bar del modal */
.redheader-modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.redheader-modal-top-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.redheader-modal-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.redheader-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Hero: ícono + texto */
.redheader-modal-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 24px 20px;
}

.redheader-modal-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}

.redheader-modal-icon-circle svg {
    width: 34px;
    height: 34px;
}

/* Colores del ícono en el modal por tipo - matching DB enum tipos */
.redheader-modal-icon-circle.notif-info,
.redheader-modal-icon-circle.notif-sistema    { background: #eff6ff; color: #3b82f6; }
.redheader-modal-icon-circle.notif-recarga    { background: #ecfdf5; color: #10b981; }
.redheader-modal-icon-circle.notif-retiro     { background: #fff7ed; color: #ea580c; }
.redheader-modal-icon-circle.notif-pago       { background: #ecfdf5; color: #10b981; }
.redheader-modal-icon-circle.notif-transferencia { background: #eff6ff; color: #3b82f6; }
.redheader-modal-icon-circle.notif-rango      { background: #faf5ff; color: #a855f7; }
.redheader-modal-icon-circle.notif-invitacion { background: #fffbeb; color: #f59e0b; }
.redheader-modal-icon-circle.notif-seguridad  { background: #fef2f2; color: #ef4444; }
.redheader-modal-icon-circle.notif-soporte    { background: #f0f9ff; color: #0284c7; }
.redheader-modal-icon-circle.notif-sorteo     { background: #fdf2f8; color: #ec4899; }
.redheader-modal-icon-circle.notif-boleto     { background: #f0fdf4; color: #16a34a; }

.redheader-modal-hero-text {
    flex-grow: 1;
    padding-top: 4px;
}

/* Badge de categoría dentro del modal */
.redheader-modal-category-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
}

.modal-badge-notif-info,
.modal-badge-notif-sistema      { background: #eff6ff; color: #3b82f6; }
.modal-badge-notif-recarga      { background: #ecfdf5; color: #10b981; }
.modal-badge-notif-retiro       { background: #fff7ed; color: #ea580c; }
.modal-badge-notif-pago         { background: #ecfdf5; color: #10b981; }
.modal-badge-notif-transferencia { background: #eff6ff; color: #3b82f6; }
.modal-badge-notif-rango        { background: #faf5ff; color: #a855f7; }
.modal-badge-notif-invitacion   { background: #fffbeb; color: #f59e0b; }
.modal-badge-notif-seguridad    { background: #fef2f2; color: #dc2626; }
.modal-badge-notif-soporte      { background: #f0f9ff; color: #0284c7; }
.modal-badge-notif-sorteo       { background: #fdf2f8; color: #db2777; }
.modal-badge-notif-boleto       { background: #f0fdf4; color: #15803d; }

.redheader-modal-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.redheader-modal-desc-text {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Caja Â¿QuÃ© significa esto? */
.redheader-modal-meaning-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 0 24px 16px;
    border-left: 3px solid #f97316;
}

.redheader-modal-meaning-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff7ed;
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redheader-modal-meaning-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.redheader-modal-meaning-text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* Caja de monto */
.redheader-modal-amount-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 24px 16px;
    border: 1px solid #e2e8f0;
}

.redheader-modal-amount-left {
    display: flex;
    flex-direction: column;
}

.redheader-modal-amount-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.redheader-modal-amount-value {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.redheader-modal-amount-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redheader-modal-amount-copy:hover {
    color: #f97316;
    background: #fff7ed;
}

/* Caja de fecha y hora del evento */
.redheader-modal-datetime-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 20px;
    margin: 0 24px 16px;
    border: 1px solid #f1f5f9;
}

.redheader-modal-datetime-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redheader-modal-datetime-content {
    display: flex;
    flex-direction: column;
}

.redheader-modal-datetime-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.redheader-modal-datetime-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Tabla detalles */
.redheader-modal-details-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 24px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.redheader-modal-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 24px 16px;
    border: 1px solid #e2e8f0;
}

.redheader-modal-details-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.redheader-modal-details-label {
    color: #64748b;
    font-weight: 500;
}

.redheader-modal-details-value {
    color: #0f172a;
    font-weight: 600;
}

/* Footer del modal */
.redheader-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

.redheader-modal-btn-close {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.redheader-modal-btn-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Responsive Modal Header */
@media (max-width: 576px) {
    .redheader-modal-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .redheader-modal-meaning-box,
    .redheader-modal-datetime-box,
    .redheader-modal-amount-box,
    .redheader-modal-details-title,
    .redheader-modal-details-list {
        margin-left: 16px;
        margin-right: 16px;
    }
}


/* ======================================================================== *
 *                            TELL A FRIEND                                 *
 * ======================================================================== */

/* ── Wrapper (posición fija en la esquina inferior derecha) ── */
.redtellaf-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

/* ── Botón flotante FAB ── */
.redtellaf-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B00 0%, #FFA800 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.38);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    position: relative;
    flex-shrink: 0;
    outline: none;
    pointer-events: auto;
}

.redtellaf-fab:hover {
    transform: scale(1.09) translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 107, 0, 0.46);
}

.redtellaf-fab:active {
    transform: scale(0.96);
}

/* Ícono abierto / cerrar */
.redtellaf-fab-icon {
    width: 22px;
    height: 22px;
    position: absolute;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.redtellaf-fab-icon--open  { opacity: 1; transform: rotate(0deg) scale(1); }
.redtellaf-fab-icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }

.redtellaf-fab.active .redtellaf-fab-icon--open  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.redtellaf-fab.active .redtellaf-fab-icon--close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Pulse ring al cargar */
.redtellaf-fab::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 0, 0.35);
    animation: redtellaf-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes redtellaf-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1);    }
    50%       { opacity: 0;   transform: scale(1.45); }
}

/* ── Panel / Card de invitación ── */
.redtellaf-panel {
    display: none;
    width: 320px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 20px 48px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(226, 232, 240, 0.7);
    padding: 0;
    overflow: hidden;
    /* Estado cerrado */
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom right;
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.28s ease;
    pointer-events: none;
}

.redtellaf-panel.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header del panel */
.redtellaf-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.04) 0%, rgba(255, 168, 0, 0.02) 100%);
}

.redtellaf-panel-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.2px;
}

.redtellaf-panel-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.redtellaf-panel-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.redtellaf-panel-close svg {
    width: 14px;
    height: 14px;
}

/* Formulario */
.redtellaf-form {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redtellaf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.redtellaf-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.15px;
}

.redtellaf-input,
.redtellaf-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 0.84rem;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    resize: none;
}

.redtellaf-input:focus,
.redtellaf-textarea:focus {
    border-color: #FF6B00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.09);
}

.redtellaf-textarea {
    min-height: 80px;
    line-height: 1.5;
}

/* Botón enviar */
.redtellaf-btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #FF6B00 0%, #FFA800 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.28);
    transition: all 0.25s ease;
    margin-top: 2px;
}

.redtellaf-btn-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #e85f00 0%, #ff9500 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.36);
}

.redtellaf-btn-send:active:not(:disabled) {
    transform: translateY(0);
}

.redtellaf-btn-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.redtellaf-btn-send svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Spinner de carga */
.redtellaf-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: redtellaf-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes redtellaf-spin {
    to { transform: rotate(360deg); }
}

/* Estado de éxito */
.redtellaf-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 20px 32px;
    text-align: center;
}

.redtellaf-done svg {
    width: 44px;
    height: 44px;
    color: #10b981;
    background: #ecfdf5;
    border-radius: 50%;
    padding: 10px;
    box-sizing: border-box;
}

.redtellaf-done p {
    font-size: 0.9rem;
    color: #1e293b;
    margin: 0;
    line-height: 1.5;
}

/* ── Responsive: móvil ── */
@media (max-width: 480px) {
    .redtellaf-wrap {
        bottom: 16px;
        right: 16px;
    }

    .redtellaf-panel {
        width: calc(100vw - 32px);
    }
}

/* ======================================================================== *
 *                             MENU HOMEPAGE                                *
 * ======================================================================== */
.redhome-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    padding: 16px 0;
}

.redhome-navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.08);
}

.redhome-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.redhome-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.redhome-nav-brand:hover {
    opacity: 0.95;
}

.redhome-nav-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.redhome-nav-brand:hover .redhome-nav-logo {
    transform: scale(1.03);
}

.redhome-brand-text {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    user-select: none;
}

.redhome-brand-accent {
    color: #ff6f00;
    background: linear-gradient(135deg, #ff6f00 0%, #ea580c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    margin-left: 2px;
}

.redhome-nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.redhome-nav-link {
    text-decoration: none;
    color: #334155;
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
    cursor: pointer;
}

.redhome-nav-link:hover,
.redhome-nav-link.active {
    color: #ff6f00;
}

.redhome-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, #ff6f00, #ea580c);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.redhome-nav-link:hover::after,
.redhome-nav-link.active::after {
    width: 100%;
}

.redhome-nav-actions {
    display: flex;
    align-items: center;
}

.redhome-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #0f172a;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.redhome-mobile-toggle:hover {
    background: #f1f5f9;
}

.redhome-mobile-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.redhome-mobile-drawer.open {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redhome-mobile-link {
    padding: 10px 14px;
    font-size: 0.96rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.redhome-mobile-link:hover {
    background: #fff7ed;
    color: #ff6f00;
}

.redhome-mobile-link.active {
    background: #fff7ed;
    color: #ff6f00;
    font-weight: 700;
    border-left-color: #ff6f00;
}

@media (max-width: 768px) {
    .redhome-nav-menu,
    .redhome-nav-actions {
        display: none;
    }
    .redhome-mobile-toggle {
        display: block;
    }
    .redhome-brand-text {
        font-size: 1.2rem;
    }
    .redhome-nav-logo {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .redhome-brand-text {
        font-size: 1.12rem;
    }
    .redhome-nav-logo {
        height: 33px;
    }
}

/* ======================================================================== *
 *                            FOOTER HOMEPAGE                               *
 * ======================================================================== */
.redhome-footer,
.redhome-footer-sec {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 54px 0 28px 0;
}

.redhome-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.redhome-footer-brand {
    display: flex;
    flex-direction: column;
}

.redhome-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 14px;
}

.redhome-footer-logo {
    height: 38px;
    width: auto;
    display: block;
}

.redhome-footer-brand-text {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1;
}

.redhome-footer-brand-highlight {
    color: #ff6f00;
}

.redhome-footer-brand p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    max-width: 360px;
    line-height: 1.6;
}

.redhome-footer-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.redhome-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.redhome-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.91rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 2px 0;
}

.redhome-footer-arrow {
    width: 14px;
    height: 14px;
    color: #ff6f00;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.redhome-footer-link:hover {
    color: #ff6f00;
    transform: translateX(4px);
}

.redhome-footer-link:hover .redhome-footer-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.redhome-footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 12px;
}

.redhome-footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .redhome-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .redhome-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
