/* ================= HEADER STYLES - GHOSTLY VAPES ================= */

:root {
    --bg-dark: #161616;
    --nav-top-bg: #1e1f23;
    --nav-bottom-bg: #25262b;
    --text-muted: #8f919a;
    --text-white: #ffffff;
    --accent-orange: #06c7ff;
    --accent-purple: #7c4dff;
    --accent-green: #8bc34a;
}

/* Sticky Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.main-header a:hover {
    color: var(--text-white);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ================= TOP NAV ================= */
.top-nav {
    background-color: var(--nav-top-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
    border-bottom: 1px solid #2a2b30;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo img {
    height: 45px;
    width: auto;
}

/* Marcas de Vapes */
.game-nav ul {
    display: flex;
    gap: 25px;
}

.game-nav li {
    height: 70px;
    display: flex;
    align-items: center;
    position: relative;
}

/* TODOS item - no clickeable */
.game-nav li.todos-item {
    cursor: default;
}

.game-nav li.todos-item span {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

.game-nav a {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.game-nav .marca-logo {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.2s ease;
}

.game-nav li:hover .marca-logo,
.game-nav li.active .marca-logo {
    filter: grayscale(0%) brightness(1);
}

.game-nav li.active a {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

.game-nav li.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange);
}

/* Botones */
.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-white) !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-marketplace {
    background: linear-gradient(135deg, #8e66ff, #6a35ff);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.btn-marketplace:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

.btn-auth {
    padding: 8px 20px;
    background-color: #3a3b40 !important;
    border: 1px solid #3a3b40;
    border-radius: 6px;
    color: var(--text-white) !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth:hover {
    background-color: #45464c !important;
    border-color: #4a4b51;
    transform: translateY(-1px);
}

.btn-auth-primary {
    padding: 8px 20px;
    background-color: var(--accent-orange);
    border: none;
    border-radius: 6px;
    color: var(--text-white) !important;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

.btn-auth-primary:hover {
    background-color: #ff6b3d;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.3);
}

/* Balance Container */
.user-balance-container {
    display: flex;
    align-items: center;
    background-color: #141518;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #2a2b30;
}

.balance-points-container {
    border: 1px solid #2a2b30;
}

.balance-box {
    color: var(--text-white);
    font-weight: 700;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Sporty Pro', sans-serif;
}

.balance-credit-box i {
    color: #06ff83;
}

.balance-points-box i {
    color: #06c7ff;
}

.balance-box span {
    font-family: 'Sporty Pro', sans-serif;
    font-weight: 500;
    color: var(--text-white);
}

.btn-add-funds {
    background-color: var(--accent-green);
    color: var(--bg-dark);
    border: none;
    height: 28px;
    width: 28px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-add-funds:hover {
    background-color: #06ff83;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 255, 131, 0.3);
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 15px;
}

.icon-link {
    font-size: 18px;
    position: relative;
}

.icon-link.notification .dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    border: 2px solid var(--nav-top-bg);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

/* Desktop Avatar con efecto eléctrico */
.user-profile .desktop-avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.user-profile .avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
}

/* Borde eléctrico del avatar de escritorio del header */
.user-profile .desktop-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    border: 2px solid var(--avatar-color, var(--accent-orange));
    pointer-events: none;
    z-index: 1;
    animation: electricPulseDesktop 2s infinite;
    box-shadow: 0 0 8px var(--avatar-glow, rgba(6, 199, 255, 0.5));
}

/* Resplandor exterior del avatar de escritorio del header */
.user-profile .desktop-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 8px;
    background: radial-gradient(
        circle,
        var(--avatar-glow, rgba(6, 199, 255, 0.3)) 0%,
        transparent 70%
    );
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    animation: glowPulseDesktop 2s infinite;
}

@keyframes electricPulseDesktop {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

@keyframes glowPulseDesktop {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    color: var(--text-white);
    font-family: 'Sporty Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-name i {
    font-size: 10px;
}

.user-email {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Chakra Petch', sans-serif;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--nav-top-bg);
    border: 1px solid #2a2b30;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.user-dropdown.active,
.user-profile:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #2a2b30;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-white);
}

/* Mobile Container */
.mobile-container {
    display: none;
    align-items: center;
    gap: 15px;
}

/* Mobile Cart Button */
.mobile-cart-btn {
    display: none;
    position: relative;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

.mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--accent-orange);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.mobile-toggle.active {
    transform: rotate(90deg);
}

.mobile-toggle i {
    transition: transform 0.2s ease;
}

/* Mobile Icons (solo visible en móvil) */
.mobile-icons {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-icon-link {
    font-size: 18px;
    color: var(--text-white) !important;
}

/* Mobile Avatar Small con efecto eléctrico */
.mobile-icons .mobile-avatar-small {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.mobile-icons .mobile-avatar-small-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
}

/* Borde eléctrico del mobile-avatar-small del header */
.mobile-icons .mobile-avatar-small::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 6px;
    border: 2px solid var(--avatar-color, var(--accent-orange));
    pointer-events: none;
    z-index: 1;
    animation: electricPulseSmall 2s infinite;
    box-shadow: 0 0 6px var(--avatar-glow, rgba(6, 199, 255, 0.5));
}

/* Resplandor exterior del mobile-avatar-small del header */
.mobile-icons .mobile-avatar-small::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 6px;
    background: radial-gradient(
        circle,
        var(--avatar-glow, rgba(6, 199, 255, 0.3)) 0%,
        transparent 70%
    );
    filter: blur(5px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    animation: glowPulseSmall 2s infinite;
}

@keyframes electricPulseSmall {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

@keyframes glowPulseSmall {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
    background-color: var(--nav-top-bg);
    border-top: 1px solid #2a2b30;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.mobile-menu.active {
    max-height: 1000px;
    padding: 20px;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.mobile-menu.active .mobile-user-info {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu .mobile-avatar-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.mobile-menu .mobile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Borde eléctrico del avatar móvil del header */
.mobile-menu .mobile-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    border: 3px solid var(--avatar-color, var(--accent-orange));
    pointer-events: none;
    z-index: 1;
    animation: electricPulseMobile 2s infinite;
    box-shadow: 0 0 10px var(--avatar-glow, rgba(255, 87, 34, 0.5));
}

/* Resplandor exterior del avatar móvil del header */
.mobile-menu .mobile-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 8px;
    background: radial-gradient(
        circle,
        var(--avatar-glow, rgba(255, 87, 34, 0.4)) 0%,
        transparent 70%
    );
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
    animation: glowPulseMobile 2s infinite;
}

@keyframes electricPulseMobile {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

@keyframes glowPulseMobile {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
}

.mobile-user-name {
    font-family: 'Sporty Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-white);
}

.mobile-user-email {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
}

/* Mobile Buttons */
.mobile-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.mobile-menu.active .mobile-buttons {
    opacity: 1;
    transform: translateY(0);
}

.mobile-btn {
    padding: 12px;
    border-radius: 6px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-btn-marketplace {
    background: linear-gradient(135deg, #8e66ff, #6a35ff);
    color: var(--text-white) !important;
}

.mobile-btn-cart {
    background-color: var(--accent-orange);
    color: var(--text-white) !important;
    position: relative;
}

.mobile-cart-count {
    background-color: var(--text-white);
    color: var(--accent-orange);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

/* Mobile Balance Grid - Horizontal */
.mobile-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
}

.mobile-menu.active .mobile-balance-grid {
    opacity: 1;
    transform: translateY(0);
}

.mobile-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #141518;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #2a2b30;
}

.mobile-points-balance {
    justify-content: center;
}

.mobile-balance-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Sporty Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.mobile-credit-box i {
    color: #06ff83;
}

.mobile-points-box i {
    color: #06c7ff;
}

.mobile-balance-amount {
    font-family: 'Sporty Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.mobile-add-funds {
    background-color: var(--accent-green);
    color: var(--bg-dark);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-add-funds:hover {
    background-color: #06ff83;
    transform: translateY(-2px);
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.mobile-menu.active .mobile-auth-buttons {
    opacity: 1;
    transform: translateY(0);
}

.mobile-btn-auth {
    padding: 12px;
    background-color: #3a3b40 !important;
    border: 1px solid #3a3b40;
    border-radius: 6px;
    color: var(--text-white) !important;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-btn-auth:hover {
    background-color: #45464c !important;
    border-color: #4a4b51;
}

.mobile-btn-auth-primary {
    padding: 12px;
    background-color: var(--accent-orange);
    border: none;
    border-radius: 6px;
    color: var(--text-white) !important;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

.mobile-btn-auth-primary:hover {
    background-color: #ff6b3d;
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.3);
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s;
}

.mobile-menu.active .mobile-nav {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    border-bottom: 1px solid #2a2b30;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, #8e66ff, #6a35ff);
    color: var(--text-white) !important;
    border-radius: 6px;
    border-bottom: none;
}

.mobile-nav-link i {
    font-size: 16px;
}

/* ================= BOTTOM NAV ================= */
.bottom-nav {
    background-color: var(--nav-bottom-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 50px;
}

.account-links {
    display: flex;
    gap: 30px;
}

.account-links li {
    display: flex;
    align-items: center;
    height: 50px;
    position: relative;
}

.account-links a {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-links a i {
    font-size: 14px;
}

.account-links li.active a {
    color: var(--text-white);
}

/* Cart Button */
.btn-cart {
    background-color: #a806ff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    height: 50px;
    border-radius: 0;
    margin-right: -30px;
    font-size: 14px;
    font-weight: 800;
}

.cart-count {
    background-color: var(--text-white);
    color: var(--accent-orange);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .game-nav {
        display: none;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .user-balance-container,
    .user-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 15px;
        height: 60px;
    }
    
    /* Mostrar contenedor móvil */
    .mobile-container {
        display: flex;
    }
    
    /* Mostrar el toggle */
    .mobile-toggle {
        display: block;
    }
    
    /* Mostrar los iconos móviles */
    .mobile-icons {
        display: flex;
    }
    
    /* Mostrar botón de carrito móvil */
    .mobile-cart-btn {
        display: block;
    }
    
    /* Ocultar nav-right completo */
    .nav-right {
        display: none;
    }
    
    /* Ocultar bottom-nav */
    .bottom-nav {
        display: none;
    }
    
    .logo img {
        height: 35px;
    }
}

/* ============================================
   NOTIFICACIONES E INBOX DROPDOWNS
   ============================================ */

/* Action Dropdown Wrapper */
.action-dropdown-wrapper {
    position: relative;
}

/* Icon Links con badges */
.icon-link {
    font-size: 18px;
    position: relative;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.icon-link:hover {
    color: var(--text-white);
}

.icon-link.active {
    color: var(--accent-orange);
}

/* Badges */
.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: var(--accent-orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--nav-top-bg);
}

.inbox-badge {
    background-color: #667eea;
}

.notification-badge {
    background-color: var(--accent-orange);
}

/* ============================================
   DESKTOP DROPDOWNS (nav-right)
   ============================================ */

/* Dropdown Container - SOLO DESKTOP */
.nav-right .action-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -20px;
    width: 420px;
    max-height: 550px;
    background: var(--nav-top-bg);
    border: 1px solid #2a2b30;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nav-right .action-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Triangle pointer - SOLO DESKTOP */
.nav-right .action-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2a2b30;
}

/* Dropdown Header - DESKTOP */
.nav-right .dropdown-header {
    padding: 18px 20px;
    border-bottom: 1px solid #2a2b30;
}

.nav-right .dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right .dropdown-header h3 i {
    color: var(--accent-orange);
}

.nav-right .inbox-dropdown .dropdown-header h3 i {
    color: #667eea;
}

/* Ocultar botón cerrar en DESKTOP */
.nav-right .dropdown-close-btn {
    display: none !important;
}

/* Dropdown Content - DESKTOP */
.nav-right .dropdown-content {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
}

/* Loading State */
.dropdown-loading {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-loading i {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--accent-orange);
}

.dropdown-loading p {
    margin: 0;
    font-size: 14px;
}

/* Empty State */
.dropdown-empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-empty i {
    font-size: 56px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.dropdown-empty p {
    margin: 0;
    font-size: 14px;
}

/* Notification Item */
.notification-item,
.inbox-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 14px;
}

.notification-item:hover,
.inbox-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item:last-child,
.inbox-item:last-child {
    border-bottom: none;
}

.notification-item.unread,
.inbox-item.unread {
    background: rgba(255, 87, 34, 0.08);
    border-left: 3px solid var(--accent-orange);
}

/* Notification Icon */
.notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notif-icon.order-completed {
    background: rgba(6, 255, 131, 0.15);
    color: #06ff83;
}

.notif-icon.order-cancelled {
    background: rgba(255, 87, 34, 0.15);
    color: var(--accent-orange);
}

.notif-icon.points-earned,
.notif-icon.credit-redeemed {
    background: rgba(6, 199, 255, 0.15);
    color: #06c7ff;
}

.notif-icon.credit-used {
    background: rgba(6, 255, 131, 0.15);
    color: #06ff83;
}

/* Notification Details */
.notif-details,
.inbox-details {
    flex: 1;
    min-width: 0;
}

.notif-title,
.inbox-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.notif-message,
.inbox-message {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 6px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Inbox Image */
.inbox-item.has-image {
    align-items: flex-start;
}

.inbox-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Scrollbar - DESKTOP */
.nav-right .dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.nav-right .dropdown-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.nav-right .dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-right .dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   OVERLAY PARA MÓVIL
   ============================================ */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(3px);
}

.dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE DROPDOWNS (mobile-icons)
   ============================================ */

@media (max-width: 768px) {
    /* Ocultar dropdowns del nav-right en móvil */
    .nav-right {
        display: none !important;
    }
    
    /* Mobile icons posicionamiento */
    .mobile-icons {
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .mobile-icons .action-dropdown-wrapper {
        position: relative;
    }
    
    /* Badge móvil */
    .mobile-icon-link {
        position: relative;
    }
    
    .mobile-icon-link .badge {
        top: -5px;
        right: -5px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        border-width: 1px;
    }
    
    /* Dropdowns móviles como ventanas flotantes */
    .mobile-icons .action-dropdown {
        position: fixed;
        left: 10px; /* Alineado a la IZQUIERDA */
        right: 10px;
        width: auto;
        max-width: 400px;
        max-height: calc(100vh - 85px); /* No tapar nada */
        background: var(--nav-top-bg);
        border: 1px solid #2a2b30;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        margin: 0 auto; /* Centrado */
    }
    
    .mobile-icons .action-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Triangle móvil - Alineado con los iconos */
    .mobile-icons .action-dropdown::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 115px; /* Ajustado para notificaciones */
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #2a2b30;
    }
    
    /* Triangle para inbox (segundo icono desde la derecha) */
    .mobile-icons .inbox-dropdown::before {
        right: 70px; /* Más a la derecha para el inbox */
    }
    
    /* Header móvil SIN botón cerrar */
    .mobile-icons .dropdown-header {
        padding: 16px 18px;
        border-bottom: 1px solid #2a2b30;
    }
    
    .mobile-icons .dropdown-header h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: var(--text-white);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-icons .dropdown-header h3 i {
        color: var(--accent-orange);
    }
    
    .mobile-icons .inbox-dropdown .dropdown-header h3 i {
        color: #667eea;
    }
    
    /* OCULTAR botón cerrar en móvil */
    .mobile-icons .dropdown-close-btn {
        display: none !important;
    }
    
    /* Content móvil */
    .mobile-icons .dropdown-content {
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - 145px);
    }
    
    /* Items móvil */
    .mobile-icons .notification-item,
    .mobile-icons .inbox-item {
        padding: 14px 18px;
    }
    
    .mobile-icons .notif-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .mobile-icons .notif-title,
    .mobile-icons .inbox-title {
        font-size: 14px;
    }
    
    .mobile-icons .notif-message,
    .mobile-icons .inbox-message {
        font-size: 13px;
    }
    
    .mobile-icons .inbox-image {
        width: 60px;
        height: 60px;
    }
    
    /* Scrollbar móvil */
    .mobile-icons .dropdown-content::-webkit-scrollbar {
        width: 5px;
    }
    
    .mobile-icons .dropdown-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.02);
    }
    
    .mobile-icons .dropdown-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    /* Pantallas muy pequeñas */
    .mobile-icons .action-dropdown {
        left: 5px;
        right: 5px;
        max-height: calc(100vh - 75px);
    }
    
    /* Ajustar triangle para pantallas pequeñas */
    .mobile-icons .action-dropdown::before {
        right: 187px; /* Notificaciones */
    }
    
    .mobile-icons .inbox-dropdown::before {
        right: 155px; /* Inbox */
    }
    
    .mobile-icons .notification-item,
    .mobile-icons .inbox-item {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .mobile-icons .notif-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .mobile-icons .inbox-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 360px) {
    /* Pantallas extra pequeñas */
    .mobile-icons .action-dropdown {
        max-height: calc(100vh - 70px);
    }
    
    .mobile-icons .action-dropdown::before {
        right: 85px; /* Notificaciones */
    }
    
    .mobile-icons .inbox-dropdown::before {
        right: 50px; /* Inbox */
    }
}
/* ============================================
   ESTILOS INBOX MEJORADO - EXPANDIBLE
   Agregado para sistema de notificaciones
   ============================================ */

/* Inbox Header con tipo de mensaje */
.inbox-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.inbox-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inbox-unread-dot {
    width: 8px;
    height: 8px;
    background: #06ff83;
    border-radius: 50%;
    margin-left: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Preview y mensaje completo */
.inbox-preview {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0;
}

.inbox-full-message {
    color: var(--text-white);
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid var(--accent-cyan);
}

.inbox-full-message p {
    margin: 8px 0;
}

.inbox-full-message ul,
.inbox-full-message ol {
    margin: 8px 0;
    padding-left: 20px;
}

.inbox-full-message strong {
    font-weight: 700;
    color: var(--text-white);
}

.inbox-full-message a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Botones de acción del inbox */
.inbox-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.inbox-action-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.inbox-action-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(6, 199, 255, 0.1);
}

.inbox-action-btn.expand-btn {
    flex: 1;
}

.inbox-action-btn.delete-btn:hover {
    border-color: #ff5722;
    color: #ff5722;
    background: rgba(255, 87, 34, 0.1);
}

/* Inbox item ajustado */
.inbox-item {
    cursor: pointer;
    transition: all 0.3s;
}

.inbox-item[data-expanded="true"] {
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .inbox-type {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .inbox-preview {
        font-size: 12px;
    }
    
    .inbox-full-message {
        font-size: 13px;
        padding: 10px;
    }
    
    .inbox-action-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}
/* ==========================================
   INBOX - VISTA COMPACTA Y COMPLETA
   ========================================== */

.inbox-compact-view {
    display: block;
}

.inbox-full-view {
    display: none;
}

.inbox-back-btn {
    background: none;
    border: none;
    color: #06c7ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.inbox-back-btn:hover {
    color: #fff;
    transform: translateX(-3px);
}

.inbox-back-btn i {
    font-size: 12px;
}

.inbox-full-header {
    margin-bottom: 15px;
}

.inbox-full-header .inbox-title {
    margin-top: 8px;
    font-size: 16px;
}

.inbox-full-content {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #06c7ff;
}

.inbox-full-content p {
    margin: 10px 0;
}

.inbox-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.inbox-full-content strong {
    font-weight: 700;
    color: #fff;
}

.inbox-full-content a {
    color: #06c7ff;
    text-decoration: underline;
}

.inbox-preview {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.4;
    margin: 10px 0;
}
/* ===================================================
   INBOX DROPDOWN ADAPTADO PARA MÓVIL
   =================================================== */

/* Badge móvil */
.mobile-inbox-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5722;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-icon-link {
    position: relative;
}

/* Overlay cuando inbox está abierto en móvil */
body.inbox-modal-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

/* Adaptar dropdown para móvil */
@media (max-width: 768px) {
    #inboxDropdown.mobile-active {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 90% !important;
        max-width: 400px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5) !important;
        display: flex !important;
        flex-direction: column;
    }
    
    #inboxDropdown.mobile-active::before {
        display: none !important;
    }
    
    #inboxDropdown.mobile-active .dropdown-content {
        max-height: none !important;
        flex: 1;
    }
    
    /* Botón vaciar más grande en móvil */
    #inboxDropdown.mobile-active #btnVaciarBuzon {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}