.public-nav {
    width: 100%;
    z-index: 1030;
    height: 80px;
    background: linear-gradient(135deg, #EAB308, #ea580c);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.1);
    animation: nav-fade-in 0.6s ease-out;
    overflow: hidden;
}

@keyframes nav-fade-in {
    0% { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.public-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 600px 80px at 50% 0%, rgba(234, 179, 8, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 400px 60px at 20% 0%, rgba(150, 200, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 400px 60px at 80% 0%, rgba(234, 179, 8, 0.1) 0%, transparent 60%);
}

/* Cracker spark burst — top edge sparks */
.public-nav::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(2px 2px at 15% 50%, #EAB308, transparent),
        radial-gradient(1.5px 1.5px at 28% 50%, #96C8FF, transparent),
        radial-gradient(2.5px 2.5px at 42% 50%, #EAB308, transparent),
        radial-gradient(1px 1px at 55% 50%, #fff, transparent),
        radial-gradient(2px 2px at 68% 50%, #EAB308, transparent),
        radial-gradient(1.5px 1.5px at 82% 50%, #96C8FF, transparent),
        radial-gradient(2px 2px at 92% 50%, #EAB308, transparent);
    animation: cracker-sparks 0.8s ease-in-out infinite alternate;
}

@keyframes cracker-sparks {
    0% {
        background:
            radial-gradient(2px 2px at 10% 50%, #EAB308, transparent),
            radial-gradient(1.5px 1.5px at 25% 50%, #96C8FF, transparent),
            radial-gradient(2.5px 2.5px at 40% 50%, #EAB308, transparent),
            radial-gradient(1px 1px at 58% 50%, #fff, transparent),
            radial-gradient(2px 2px at 72% 50%, #EAB308, transparent),
            radial-gradient(1.5px 1.5px at 85% 50%, #96C8FF, transparent),
            radial-gradient(2px 2px at 95% 50%, #EAB308, transparent);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        background:
            radial-gradient(2.5px 2.5px at 18% 50%, #EAB308, transparent),
            radial-gradient(2px 2px at 32% 50%, #96C8FF, transparent),
            radial-gradient(1.5px 1.5px at 48% 50%, #EAB308, transparent),
            radial-gradient(2px 2px at 62% 50%, #fff, transparent),
            radial-gradient(1.5px 1.5px at 75% 50%, #EAB308, transparent),
            radial-gradient(2.5px 2.5px at 88% 50%, #96C8FF, transparent),
            radial-gradient(2px 2px at 98% 50%, #EAB308, transparent);
        opacity: 0.8;
    }
}

/* Flying spark particles */
@keyframes spark-fly-1 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(30px, -60px) scale(0); opacity: 0; }
}
@keyframes spark-fly-2 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(-20px, -50px) scale(0); opacity: 0; }
}
@keyframes spark-fly-3 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(40px, -40px) scale(0); opacity: 0; }
}
@keyframes spark-fly-4 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(-35px, -55px) scale(0); opacity: 0; }
}

.public-nav .spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    top: 50%;
}

.public-nav .spark:nth-child(1) {
    left: 20%;
    background: #EAB308;
    box-shadow: 0 0 4px #EAB308;
    animation: spark-fly-1 0.6s ease-out infinite;
    animation-delay: 0s;
}
.public-nav .spark:nth-child(2) {
    left: 40%;
    background: #96C8FF;
    box-shadow: 0 0 4px #96C8FF;
    animation: spark-fly-2 0.7s ease-out infinite;
    animation-delay: 0.2s;
}
.public-nav .spark:nth-child(3) {
    left: 60%;
    background: #EAB308;
    box-shadow: 0 0 4px #EAB308;
    animation: spark-fly-3 0.5s ease-out infinite;
    animation-delay: 0.4s;
}
.public-nav .spark:nth-child(4) {
    left: 80%;
    background: #fff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
    animation: spark-fly-4 0.65s ease-out infinite;
    animation-delay: 0.6s;
}

.public-nav .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Brand / Logo ── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.brand-logo-icon {
    font-size: 24px;
    color: #EAB308;
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.4));
}

.brand-text-name {
    color: #fff;
    font-size: 24px;
}

.nav-logo {
    height: 38px;
    width: auto;
    border-radius: 6px;
}

/* ── Desktop Nav Links ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 6px;
    transition: color 0.3s ease, background 0.3s ease;
    letter-spacing: 0.2px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #EAB308, #96C8FF);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.nav-links li a:hover {
    color: #EAB308;
    background: rgba(234, 179, 8, 0.08);
}

.nav-links li a:hover::after {
    width: 60%;
}

.nav-links li a.active {
    color: #fff;
    background: rgba(234, 179, 8, 0.12);
}

.nav-links li a.active::after {
    width: 70%;
}

/* ── Right Section ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-icon-btn:hover {
    background: rgba(234, 179, 8, 0.15);
    color: #EAB308;
    transform: translateY(-1px);
}

.nav-icon-btn .cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-login-btn {
    background: linear-gradient(135deg, #EAB308, #96C8FF);
    border: none;
    color: #0a0a0f;
    padding: 9px 22px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.25);
    letter-spacing: 0.3px;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234, 179, 8, 0.4);
    color: #0a0a0f;
}

.nav-login-btn:active {
    transform: translateY(0);
}

/* ── Mobile Hamburger ── */
.mobile-toggle-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-toggle-btn:hover {
    background: rgba(234, 179, 8, 0.12);
    color: #EAB308;
}

/* ── Mobile Drawer ── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    z-index: 1050;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-brand {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.drawer-brand i {
    color: #EAB308;
    font-size: 22px;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: rgba(234, 179, 8, 0.15);
    color: #EAB308;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.drawer-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.drawer-link:hover {
    background: rgba(234, 179, 8, 0.1);
    color: #EAB308;
    padding-left: 22px;
}

.drawer-link:hover i {
    color: #EAB308;
}

.drawer-link.active {
    background: rgba(234, 179, 8, 0.12);
    color: #EAB308;
    border-left: 3px solid #EAB308;
}

.drawer-link.active i {
    color: #EAB308;
}

.drawer-login {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 12px 16px 16px;
    background: linear-gradient(135deg, #EAB308, #96C8FF);
    color: #0a0a0f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.drawer-login i {
    font-size: 18px;
}

.drawer-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.3);
    color: #0a0a0f;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .public-nav {
        height: 65px;
    }

    .nav-links {
        display: none !important;
    }

    .nav-login-btn {
        display: none !important;
    }

    .nav-icon-btn {
        display: none !important;
    }

    .mobile-toggle-btn {
        display: flex;
    }

    .public-nav .container {
        padding: 0 16px;
    }

    .nav-brand {
        gap: 8px;
    }

    .brand-logo-icon {
        font-size: 20px;
    }

    .nav-logo {
        height: 32px;
    }
}

@media (min-width: 992px) {
    .mobile-toggle-btn {
        display: none !important;
    }

    .mobile-drawer,
    .drawer-overlay {
        display: none !important;
    }
}

@media (max-width: 375px) {
    .public-nav .container {
        padding: 0 12px;
    }

    .nav-brand {
        gap: 6px;
    }

    .brand-logo-icon {
        font-size: 18px;
    }

    .nav-logo {
        height: 28px;
    }
}

@media (min-width: 1920px) {
    .public-nav .container {
        max-width: 1600px;
    }
}



