* {
    font-family: 'Inter', sans-serif;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Logo Styles */
.logo-nav {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.logo-nav:hover {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    transform: scale(1.05);
}

.logo-footer {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.logo-footer:hover {
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

.logo-copyright {
    height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.3));
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
}

/* Promo Banner Expires */
.promo-expires {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #fca5a5;
    margin-left: 0.5rem;
}

.promo-expires i {
    font-size: 0.625rem;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links Enhanced */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Chevron rotation animation */
.language-switcher i.bi-chevron-down {
    transition: transform 0.3s ease;
}

.language-switcher.active i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Header scroll effect */
header {
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    /* GPU acceleration for scroll hide/show */
}

header.scrolled {
    background: rgba(17, 24, 39, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

/* Hide header on scroll down */
header.nav-hidden {
    transform: translateY(-100%);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 150px;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Dropdown opens upward (for footer) */
.language-dropdown.dropdown-up {
    top: auto;
    bottom: calc(100% + 0.5rem);
    transform: translateY(10px);
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    white-space: nowrap;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(99, 102, 241, 0.15);
}

.language-option.active {
    background: rgba(99, 102, 241, 0.2);
}

.language-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 51;
    /* Above promo banner */
}

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

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-menu-link:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(8px);
}

.mobile-menu-link.active-lang {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.mobile-lang-switcher {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Hamburger Menu Animation */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #9ca3af;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger:hover span {
    background: #fff;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Product Cards */
.product-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: scale(1.03);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.15),
        0 0 30px rgba(139, 92, 246, 0.1);
}

/* Button gradient */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

/* Info card styling */
.info-card {
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* Hero Section Styling */


/* Hero Particles */




.section-dark {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

.section-darker {
    background: linear-gradient(135deg, #0a0a15 0%, #12121f 100%);
    position: relative;
}

.section-pattern {
    background:
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(99, 102, 241, 0.03) 10px,
            rgba(99, 102, 241, 0.03) 20px);
    position: relative;
}

/* Discord Card Styling */
.discord-card {
    background: linear-gradient(135deg, #3b4199 0%, #4a5ab8 100%);
    border: 2px solid rgba(59, 65, 153, 0.5);
    transition: all 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 65, 153, 0.4);
    border-color: rgba(59, 65, 153, 0.8);
}

.discord-stat {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.discord-stat:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

/* Scroll offset for anchor links */
section[id] {
    scroll-margin-top: 40px;
}

/* Footer Wave Animation */
.footer-wave {
    width: 100%;
    height: 150px;
    animation: wave-float 15s ease-in-out infinite;
}

@keyframes wave-float {

    0%,
    100% {
        transform: translateY(0) scaleY(1);
    }

    50% {
        transform: translateY(-10px) scaleY(1.1);
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #6366f1;
}

.breadcrumb-separator {
    color: #4b5563;
}

.breadcrumb-item.active {
    color: #e5e7eb;
    font-weight: 500;
}

/* Promo Banner (Under Navigation) */
.promo-banner {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 50%, rgba(236, 72, 153, 0.9) 100%);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 49;
    /* Just below header z-index */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner.hidden {
    height: 0;
    padding: 0;
    opacity: 0;
    border-bottom: none;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-code-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    padding: 0.15rem 0.6rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.promo-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.promo-code-btn:active {
    transform: translateY(0);
}

.promo-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    right: 1rem;
}

.promo-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .promo-banner {
        padding: 1.25rem 1rem 1rem 1rem;
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .promo-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
        padding-right: 0;
    }

    .promo-tag {
        order: 1;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        margin-bottom: 0.1rem;
    }

    .promo-content>span:nth-child(2) {
        order: 2;
        font-size: 0.85rem;
        line-height: 1.4;
        display: block;
        padding: 0 0.5rem;
    }

    .promo-code-btn {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .promo-close-btn {
        top: 0.25rem;
        right: 0.25rem;
        width: 2rem;
        height: 2rem;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
    }

    .promo-close-btn:hover {
        background: rgba(0, 0, 0, 0.2);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
        transform: translateY(10px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   NEW HERO SECTION STYLES (BRUTAL DESIGN)
   ========================================= */

/* Custom Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-left {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-right {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    }
}

@keyframes glow-intense {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), inset 0 0 30px rgba(0, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 60px rgba(0, 255, 255, 0.8), inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate-360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scale-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes flip-in {
    from {
        opacity: 0;
        transform: rotateY(90deg);
    }

    to {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 30px #00d4ff, 0 0 40px #0099ff;
    }

    20%,
    24%,
    55% {
        text-shadow: 0 0 5px #00d4ff;
    }
}

@keyframes cyber-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

@keyframes scan-line {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes glitchEffect {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(-2px, 2px);
    }

    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-2px, -2px);
    }

    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(2px, 2px);
    }

    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(2px, -2px);
    }

    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(0);
    }
}

@keyframes neonPulse {

    0%,
    100% {
        text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 30px #00d4ff;
        filter: brightness(1);
    }

    50% {
        text-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff, 0 0 60px #00d4ff;
        filter: brightness(1.2);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

@keyframes orbitSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), inset 0 0 30px rgba(0, 212, 255, 0.2);
    }
}

@keyframes shimmerWave {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8));
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
    opacity: 0;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(90deg, #00d4ff, #0099ff, #00d4ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

/* Button effects */
button {
    position: relative;
    overflow: hidden;
}

button:hover::before {
    left: 100%;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 255, 255, 0.3);
}

/* Loading animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

/* Pulse effect */
@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* New Animation Classes */
.animate-slide-down {
    animation: slide-down 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slide-left 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slide-right 0.8s ease-out forwards;
    opacity: 0;
}

.animate-glow-intense {
    animation: glow-intense 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate-360 3s linear infinite;
}

.animate-bounce-in {
    opacity: 1;
}

.animate-flip-in {
    opacity: 1;
}

.animate-neon-flicker {
    color: #00d4ff;
    font-weight: bold;
}

/* Gaming-themed Hover Effects */
.gaming-hover {
    position: relative;
    transition: all 0.3s ease;
}

.gaming-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), inset 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Neon Border Effect */
.neon-border {
    position: relative;
    border: 2px solid #00d4ff;
}

/* Cyber Grid Background */
.cyber-grid {
    position: relative;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(0, 212, 255, 0.05) 25%, rgba(0, 212, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 212, 255, 0.05) 75%, rgba(0, 212, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 212, 255, 0.05) 25%, rgba(0, 212, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 212, 255, 0.05) 75%, rgba(0, 212, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    animation: cyber-pulse 4s ease-in-out infinite;
}

/* Glitch Text Effect - DISABLED to prevent icon hiding */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
}

/* Button Glow Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::after {
    width: 300px;
    height: 300px;
}

/* Particle Effect */
.particle {
    position: absolute;
    pointer-events: none;
}

.particle-dot {
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

/* Card Lift Effect */
.card-lift {
    transition: all 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

/* Pulse Border */
.pulse-border {
    border: 2px solid #00d4ff;
    animation: glow-intense 2s ease-in-out infinite;
}

/* Rotate Icon */
.rotate-icon {
    transition: transform 0.3s ease;
}

/* Text Glow */
.text-glow {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Brutal Effects */
.brutal-glitch {
    animation: glitchEffect 0.3s infinite;
}

.neon-pulse-text {
    animation: neonPulse 2s ease-in-out infinite;
}

.brutal-overlay {
    position: relative;
}

.brutal-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 212, 255, 0.1) 50%, rgba(0, 212, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.05;
}

/* Weapon Inventory v2 (Vertical) */
.weapon-inventory.vertical {
    position: absolute;
    bottom: 80px;
    right: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 30;
    animation: fadeIn 2s ease-in-out;
}

.weapon-slot {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.weapon-slot.active {
    opacity: 1;
    transform: scale(1.1);
}

.weapon-slot span {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.weapon-slot img {
    width: 80px;
    /* Larger icons */
    height: auto;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.weapon-slot:not(.active) img {
    filter: grayscale(80%) brightness(0.8) drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.weapon-slot:hover {
    opacity: 1;
    transform: translateX(-10px);
}

.weapon-slot.grenades {
    flex-direction: row;
    flex-wrap: wrap;
    /* Allow wrapping if needed */
    width: auto;
    /* Adjust width to content */
    gap: 5px;
}

.weapon-slot.grenades img {
    width: 40px;
    /* Larger grenade icons */
    height: 40px;
}

.weapon-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weapon-name-skin {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    margin-top: 5px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.selected-text {
    font-size: 8px !important;
    /* Force size */
    font-weight: 700;
    color: #fff;
    background: rgba(0, 212, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
}

/* Player Status (HP/Armor) v2 */
.player-status {
    position: absolute;
    bottom: 60px;
    left: 60px;
    display: flex;
    align-items: flex-end;
    /* Align to bottom */
    gap: 25px;
    z-index: 30;
    animation: fadeIn 2s ease-in-out;
    font-family: 'Roboto', sans-serif;
    color: #fff;
}

.armor-status {
    position: relative;
    width: 50px;
    /* Increased size */
    height: 50px;
}

.armor-status img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.armor-status span {
    position: absolute;
    top: 58%;
    /* Perfect vertical center */
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 17px;
    /* Optimal font size */
}

.hp-status {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.hp-icon {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.hp-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hp-text span {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

.hp-bar {
    width: 100%;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    margin-top: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* CS2 Radar */
.cs-radar {
    position: absolute;
    top: 120px;
    left: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 30;
    animation: fadeIn 2s ease-in-out;
}

.radar-map {
    position: relative;
    width: 150px;
    height: 150px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.radar-map::before,
.radar-map::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 212, 255, 0.1);
}

.radar-map::before {
    width: 100%;
    height: 1px;
}

.radar-map::after {
    width: 1px;
    height: 100%;
}

.player-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 2s ease-in-out infinite;
}

.player-dot.friendly {
    background: #4db6ac;
    /* Cyan */
}

.player-dot.enemy {
    background: #ff6b6b;
    /* Red */
}

.player-dot.self {
    background: #fff;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
}

.map-name {
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.7);
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Death Message */
.death-message {
    position: absolute;
    top: 110px;
    right: -400px;
    /* Start off-screen */
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    /* A more game-like font */
    font-weight: 700;
    color: #fff;
    z-index: 30;
    animation: slideInAndOut 8s ease-in-out infinite 2s;
}

.death-message .killer {
    color: #ff6b6b;
    /* Red for killer */
}

.death-message .victim {
    color: #4db6ac;
    /* Cyan for victim */
}

.death-message .weapon-icon {
    width: 28px;
    height: 28px;
    filter: invert(1);
}

@keyframes slideInAndOut {
    0% {
        right: -400px;
        opacity: 0;
    }

    10% {
        right: 60px;
        opacity: 1;
    }

    80% {
        right: 60px;
        opacity: 1;
    }

    100% {
        right: -400px;
        opacity: 0;
    }
}

/* HUD Elements v2 */
.hud-element {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.8;
    z-index: 20;
}

.hud-element::before,
.hud-element::after {
    content: '';
    position: absolute;
    background: rgba(0, 212, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Top-Left Corner */
.hud-element.top-left {
    top: 100px;
    left: 50px;
}

.hud-element.top-left::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.hud-element.top-left::after {
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

/* Top-Right Corner */
.hud-element.top-right {
    top: 100px;
    right: 50px;
}

.hud-element.top-right::before {
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
}

.hud-element.top-right::after {
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

/* Bottom-Left Corner */
.hud-element.bottom-left {
    bottom: 50px;
    left: 50px;
}

.hud-element.bottom-left::before {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.hud-element.bottom-left::after {
    bottom: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

/* Bottom-Right Corner */
.hud-element.bottom-right {
    bottom: 50px;
    right: 50px;
}

.hud-element.bottom-right::before {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
}

.hud-element.bottom-right::after {
    bottom: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

/* Hero Section Animations */
.hero-title {
    animation: titleGlow 3s ease-in-out infinite;
}

.floating-particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    animation: floatUp 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    background: #fff;
}

.orbit-element {
    animation: orbitSpin 8s linear infinite;
}

.pulse-element {
    animation: pulseGlow 2s ease-in-out infinite;
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    background-size: 200% 100%;
    animation: shimmerWave 3s infinite;
}

/* Responsive adjustments for HUD */

/* Hide all HUD elements on screens smaller than 1300px */
@media (max-width: 1300px) {

    .cs-radar,
    .death-message,
    .player-status,
    #weapon-inventory,
    .hud-element {
        display: none !important;
    }
}

/* =========================================
   CUSTOM ORDERS SYSTEM STYLES (co-* prefix)
   ========================================= */

/* Animated Background Effects */
.co-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.co-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: co-orb-float 20s ease-in-out infinite;
}

.co-bg-orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.co-bg-orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    bottom: 10%;
    right: -50px;
    animation-delay: -7s;
}

.co-bg-orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes co-orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.co-floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(99, 102, 241, 0.1);
    animation: co-icon-float 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes co-icon-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.2;
    }
}

/* Make icons different colors */
.co-floating-icon:nth-child(odd) {
    color: rgba(139, 92, 246, 0.15);
}

.co-floating-icon:nth-child(even) {
    color: rgba(6, 182, 212, 0.12);
}

.co-floating-icon:nth-child(3n) {
    color: rgba(236, 72, 153, 0.1);
    animation-duration: 10s;
}

.co-floating-icon:nth-child(4n) {
    font-size: 2.5rem;
    animation-duration: 12s;
}

/* Container */
.co-container {
    min-height: calc(100vh - 200px);
}

/* Orders Panel */
.co-orders-panel {
    height: fit-content;
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.co-orders-header {
    flex-shrink: 0;
}

.co-orders-list {
    overflow-y: auto;
    flex: 1;
    max-height: 600px;
}

/* Order Item */
.co-order-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.co-order-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.co-order-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-left: 3px solid #6366f1;
}

.co-order-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.co-order-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.co-order-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.co-order-preview {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.co-order-date {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Unread Badge */
.co-unread-badge {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    min-width: 1.5rem;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Status Badges */
.co-status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.co-status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.co-status-in_progress {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.co-status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.co-status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* No Orders State */
.co-no-orders {
    padding: 3rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.co-create-order-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.co-create-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Chat Panel */
.co-chat-panel {
    height: calc(100vh - 200px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* Chat Empty State */
.co-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

/* Chat Active */
.co-chat-active {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chat Header */
.co-chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 24, 39, 0.5);
    flex-shrink: 0;
}

.co-back-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.co-back-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: white;
}

.co-chat-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Messages Container */
.co-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.5) 0%, rgba(26, 26, 46, 0.5) 100%);
}

/* Message Styles */
.co-message {
    display: flex;
    gap: 0.75rem;
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.co-message-own {
    margin-left: auto;
    flex-direction: row-reverse;
}

.co-message-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.co-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.co-message-own .co-message-content {
    align-items: flex-end;
}

.co-message-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.co-role-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
}

.co-role-admin {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
}

.co-role-customer {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
}

.co-role-user {
    background: rgba(107, 114, 128, 0.3);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

/* Keep old class for backwards compatibility */
.co-admin-badge {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
}

.co-message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.co-message-other .co-message-bubble {
    background: rgba(55, 65, 81, 0.8);
    color: #e5e7eb;
    border-bottom-left-radius: 0.25rem;
}

.co-message-own .co-message-bubble {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.co-message-admin .co-message-bubble {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.co-message-time {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Message Input */
.co-message-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(17, 24, 39, 0.5);
    flex-shrink: 0;
}

.co-send-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.co-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

.co-send-btn:active {
    transform: scale(0.95);
}

/* Loading Spinner */
.co-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.co-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .co-container {
        display: flex;
        flex-direction: column;
    }

    .co-orders-panel {
        max-height: none;
    }

    .co-orders-list {
        max-height: 300px;
    }

    .co-chat-panel {
        height: 500px;
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .co-message {
        max-width: 90%;
    }

    .co-chat-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .co-chat-header>div:first-child {
        width: 100%;
    }

    .co-chat-header h3 {
        font-size: 0.95rem;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .co-chat-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        padding-left: 2.75rem;
        /* Align with title (after back button) */
    }

    .co-chat-meta span {
        font-size: 0.75rem;
    }

    .co-messages {
        padding: 1rem;
    }

    .co-message-input {
        padding: 0.75rem 1rem;
    }

    /* Hide floating icons on very small screens */
    .co-floating-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .co-chat-header h3 {
        max-width: 140px;
    }

    .co-chat-meta {
        padding-left: 0;
    }

    .co-status-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

/* Profile Cards */
.profile-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.profile-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Avatar Section */
.profile-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.profile-avatar-wrapper:hover {
    border-color: rgba(6, 182, 212, 0.6);
    transform: scale(1.05);
}

.profile-avatar-wrapper:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-avatar-wrapper:hover .profile-avatar {
    filter: brightness(0.6);
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 182, 212, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    padding: 1rem;
}

.profile-avatar-hint {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Account Info Grid */
.profile-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.2s ease;
}

.profile-info-item:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(6, 182, 212, 0.2);
}

.profile-info-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.profile-info-value {
    font-size: 0.875rem;
    color: #f1f5f9;
    font-weight: 500;
}

/* Role Badges */
.profile-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-role-1 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.profile-role-2 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.profile-role-3 {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Forms */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
}

.profile-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.5rem;
    color: #f1f5f9;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.profile-form-input:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.profile-form-input::placeholder {
    color: #64748b;
}

/* Buttons */
.profile-btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.profile-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.profile-btn-save:active {
    transform: translateY(0);
}

.profile-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.profile-btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.profile-btn-reset:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.profile-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-btn-secondary:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}

/* Security Settings */
.profile-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Modal Styles */
.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.profile-modal {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.profile-modal-overlay.show .profile-modal {
    transform: scale(1);
}

.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.profile-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.profile-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.profile-modal-close:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #f1f5f9;
}

.profile-modal-body {
    padding: 1.5rem;
}

.profile-modal-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.profile-btn-cancel {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn-cancel:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.3);
}

/* Toast Notifications */
.profile-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.profile-toast-success {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.profile-toast-success i {
    color: #22c55e;
}

.profile-toast-error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

.profile-toast-error i {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-card {
        padding: 1rem;
    }

    .profile-avatar-wrapper {
        width: 150px;
        height: 150px;
    }

    .profile-security-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-btn-secondary {
        width: 100%;
    }

    .profile-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .profile-modal {
        margin: 1rem;
    }

    .profile-modal-footer {
        flex-direction: column;
    }

    .profile-btn-cancel,
    .profile-modal-footer .profile-btn-save {
        width: 100%;
    }
}

/* =========================================
   RESOURCES PAGE STYLES
   ========================================= */

/* Filter Container */
.resources-filter-container {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Filter Tabs */
.resources-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resources-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.resources-filter-tab:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
}

.resources-filter-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Filter Controls */
.resources-filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Search Group */
.resources-search-group {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

/* Search Wrapper */
.resources-search-wrapper {
    position: relative;
    flex: 1;
}

.resources-search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.resources-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.resources-search-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.resources-search-input::placeholder {
    color: #6b7280;
}

/* Search Button */
.resources-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.resources-search-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.resources-search-btn i {
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .resources-search-btn span {
        display: none;
    }

    .resources-search-btn {
        padding: 0.75rem;
    }
}

/* Select Dropdown */
.resources-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    min-width: 180px;
}

.resources-select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.resources-select option {
    background: #1e1e2e;
    color: #fff;
}

/* Resources Section Container */
.resources-section {
    max-width: 80rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.resources-section.has-divider {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1280px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== View Toggle Buttons ===== */
.resources-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
}

.view-toggle-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.view-toggle-btn i {
    font-size: 1rem;
}

/* Clear Filters Button */
.resources-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #f87171;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.resources-clear-filters:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.resources-clear-filters i {
    font-size: 1rem;
}

.resources-clear-filters span {
    display: inline;
}

@media (max-width: 768px) {
    .resources-clear-filters span {
        display: none;
    }

    .resources-clear-filters {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }
}

/* ===== Resources List View ===== */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.resource-list-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(17, 24, 39, 0.95);
    transform: translateX(4px);
}

.resource-list-image {
    position: relative;
    width: 120px;
    min-width: 120px;
    height: 70px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.resource-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.resource-list-item:hover .resource-list-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.resource-list-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.65rem;
}

.resource-list-badge.free {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
}

.resource-list-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}

.resource-list-content {
    flex: 1;
    min-width: 0;
}

.resource-list-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.resource-list-category {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resource-list-category i {
    font-size: 0.65rem;
}

.resource-list-version {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 0.25rem;
    color: #a78bfa;
}

.resource-list-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-list-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-list-title a:hover {
    color: #a78bfa;
}

.resource-list-desc {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-list-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-list-stats span {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.resource-list-stats i {
    font-size: 0.7rem;
    color: #4b5563;
}

.resource-list-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 130px;
}

.resource-list-price {
    font-size: 0.9rem;
    font-weight: 600;
}

.resource-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-list-btn:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
    transform: translateX(2px);
}

/* List View Responsive */
@media (max-width: 768px) {
    .resource-list-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .resource-list-image {
        width: 100px;
        min-width: 100px;
        height: 60px;
    }

    .resource-list-content {
        flex: 1 1 calc(100% - 120px);
    }

    .resource-list-stats {
        flex-direction: row;
        gap: 1rem;
        border: none;
        padding: 0;
        width: 100%;
        order: 3;
    }

    .resource-list-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        order: 4;
    }
}

@media (max-width: 480px) {
    .resource-list-image {
        width: 80px;
        min-width: 80px;
        height: 50px;
    }

    .resources-view-toggle {
        display: none;
    }
}

/* Resource Card */
.resource-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(99, 102, 241, 0.15);
}

/* Card Image - Fixed aspect ratio */
.resource-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.resource-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.resource-card:hover .resource-card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Badges */
.resource-badge-free {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 0.375rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.resource-badge-premium {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 0.375rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

/* Card Content */
.resource-card-content {
    padding: 1.25rem;
}

.resource-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #8b5cf6;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.resource-card-title {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-card-title a:hover {
    color: #a78bfa;
}

.resource-card-desc {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Stats */
.resource-card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.resource-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.resource-stat i {
    color: #8b5cf6;
}

/* Card Footer */
.resource-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-card-price {
    font-size: 1rem;
    font-weight: 600;
}

.resource-price-free {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.resource-price-premium {
    color: #f59e0b;
    font-size: 1.25rem;
}

/* Resource Action Buttons */
.resource-card-actions,
.resource-action-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.resource-action-btn.view {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.resource-action-btn.view:hover {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.resource-action-btn.cart {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.resource-action-btn.cart:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.resource-action-btn.docs {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.resource-action-btn.docs:hover {
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.resource-action-btn.demo {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.resource-action-btn.demo:hover {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* No Results */
.resources-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
}

.resources-no-results i {
    font-size: 4rem;
    color: #4b5563;
    margin-bottom: 1rem;
    display: block;
}

.resources-no-results h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resources-no-results p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.resources-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.resources-reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.resources-reset-btn i {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0;
    display: inline;
    transition: transform 0.3s ease;
}

.resources-reset-btn:hover i {
    transform: rotate(180deg);
}

/* Resources Page Responsive */
@media (max-width: 768px) {
    .resources-filter-container {
        padding: 1rem;
    }

    .resources-filter-tabs {
        width: 100%;
    }

    .resources-filter-tab {
        flex: 1;
        justify-content: center;
        padding: 0.65rem 1rem;
    }

    .resources-filter-controls {
        flex-direction: column;
    }

    .resources-search-wrapper {
        min-width: 100%;
    }

    .resources-select {
        width: 100%;
    }

    .resource-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .resource-card-btn {
        justify-content: center;
    }
}

/* ===== Resources Section Headers ===== */
.resources-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.resources-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.resources-section-header.premium::before {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.resources-section-header.free::before {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.resources-section-header.latest::before {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.resources-section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a78bfa;
}

.resources-section-header.premium .resources-section-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.resources-section-header.free .resources-section-icon,
.resources-section-icon.free {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.resources-section-header.latest .resources-section-icon,
.resources-section-icon.latest {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.resources-section-header.popular::before {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.resources-section-header.popular .resources-section-icon,
.resources-section-icon.popular {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.resources-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.resources-section-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.resources-section-count {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a78bfa;
}

.resources-section-header.premium .resources-section-count {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.resources-section-header.free .resources-section-count {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.resources-section-header.popular .resources-section-count {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.resources-section-header.latest .resources-section-count {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* ===== Resources Pagination ===== */
.resources-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Responsive Section Headers */
@media (max-width: 768px) {
    .resources-section-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }

    .resources-section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .resources-section-title {
        font-size: 1.25rem;
    }

    .resources-section-count {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .resources-pagination {
        flex-wrap: wrap;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
    }
}

/* ===== Resource Detail Page ===== */
.resource-detail-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.8) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.resource-detail-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.resource-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
    position: relative;
    z-index: 1;
}

.resource-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-breadcrumb a:hover {
    color: #a78bfa;
}

.resource-breadcrumb i {
    font-size: 0.75rem;
    color: #4b5563;
}

.resource-breadcrumb span {
    color: #fff;
    font-weight: 500;
}

.resource-detail-section {
    padding: 2rem 0 4rem;
}

.resource-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    /* Important for sticky to work */
}

/* Main Content */
.resource-detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    /* Prevent flex item overflow */
    max-width: 100%;
    overflow: hidden;
}

.resource-detail-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.resource-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.resource-detail-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-detail-badge.free {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
}

.resource-detail-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}

/* Gallery Thumbnails */
.resource-gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Container */
.resource-gallery-container {
    position: relative;
}

.resource-detail-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    background: #1e1e2e;
}

.resource-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f0f17;
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    margin-top: -24px;
    /* Half of height instead of transform */
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.gallery-nav-btn:hover {
    background: rgba(99, 102, 241, 0.9);
}

.gallery-nav-prev {
    left: 1rem;
}

.gallery-nav-next {
    right: 1rem;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Gallery Progress Bar */
.gallery-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 15;
    overflow: hidden;
}

.gallery-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    animation: progressSlide 3000ms linear;
    transform-origin: left;
}

@keyframes progressSlide {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Gallery Autoplay Button */
.gallery-autoplay-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.gallery-autoplay-btn:hover {
    background: rgba(99, 102, 241, 0.9);
    transform: scale(1.1);
}

/* Main Image Transition */
.resource-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f0f17;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ============================================
   GALLERY LIGHTBOX STYLES
   ============================================ */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    margin-top: -28px;
    /* Half of height (56px) for vertical centering */
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* Lightbox Content */
.lightbox-content {
    position: relative;
    max-width: calc(100% - 140px);
    max-height: calc(100% - 100px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.15s ease;
    user-select: none;
    cursor: zoom-in;
}

/* Lightbox Controls */
.lightbox-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2rem;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.lightbox-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-control-btn:hover {
    background: rgba(99, 102, 241, 0.7);
    transform: scale(1.1);
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 0.5rem;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
        margin-top: -22px;
        /* Half of new height */
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-content {
        max-width: calc(100% - 100px);
    }

    .lightbox-controls {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .lightbox-control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* Touch-friendly on mobile */
@media (max-width: 480px) {
    .lightbox-content {
        max-width: 100%;
        max-height: calc(100% - 120px);
    }

    .lightbox-container {
        padding: 1rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        /* Half of new height */
    }
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-nav-prev {
        left: 0.5rem;
    }

    .gallery-nav-next {
        right: 0.5rem;
    }

    .resource-detail-image {
        aspect-ratio: 4 / 3;
    }
}

.resource-detail-header {
    padding: 1rem 0;
}

.resource-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b5cf6;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.resource-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.resource-detail-short-desc {
    font-size: 1.125rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Stats Bar */
.resource-detail-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
}

.resource-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    text-align: center;
}

.resource-stat-item i {
    font-size: 1.5rem;
    color: #8b5cf6;
    margin-bottom: 0.25rem;
}

.resource-stat-item span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.resource-stat-item small {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

/* Tabs */
.resource-detail-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding-bottom: 0;
}

.resource-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.resource-tab:hover {
    color: #fff;
}

.resource-tab.active {
    color: #a78bfa;
    border-bottom-color: #8b5cf6;
}

.resource-tab i {
    font-size: 1rem;
}

/* Tab Content */
.resource-detail-tab-content {
    min-height: 300px;
    max-width: 100%;
    overflow-x: hidden;
}

.resource-tab-pane {
    display: none;
}

.resource-tab-pane.active {
    display: block;
}

.resource-description-content {
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
    color: #d1d5db;
    line-height: 1.8;
}

.resource-description-content h1,
.resource-description-content h2,
.resource-description-content h3,
.resource-description-content h4 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.resource-description-content h1 {
    font-size: 1.75rem;
}

.resource-description-content h2 {
    font-size: 1.5rem;
}

.resource-description-content h3 {
    font-size: 1.25rem;
}

.resource-description-content p {
    margin-bottom: 1rem;
}

.resource-description-content ul,
.resource-description-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.resource-description-content li {
    margin-bottom: 0.5rem;
}

.resource-description-content code {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    color: #a78bfa;
}

.resource-description-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.resource-description-content pre code {
    background: transparent;
    padding: 0;
}

.resource-description-content a {
    color: #8b5cf6;
    text-decoration: none;
}

.resource-description-content a:hover {
    text-decoration: underline;
}

.resource-description-content img {
    max-width: 100%;
    border-radius: 0.5rem;
}

/* Video Wrapper */
.resource-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #000;
}

.resource-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tags */
.resource-detail-tags {
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
}

.resource-detail-tags h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.resource-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 2rem;
    color: #a78bfa;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-tag:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Sidebar */
.resource-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.1s ease-out;
}

/* Purchase Card - Enhanced Glassmorphism */
.resource-purchase-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1), rgba(17, 24, 39, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 1rem;
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

.resource-purchase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.resource-purchase-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.resource-detail-price-free {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.resource-detail-price-premium {
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
}

.resource-purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.resource-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    color: #a78bfa;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-btn-secondary:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
}

/* Info Card */
.resource-info-card {
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1rem;
}

.resource-info-card h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.resource-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-info-list li:last-child {
    border-bottom: none;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.info-label i {
    color: #6b7280;
}

.info-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Secure Purchase Badge */
.secure-purchase-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
}

.secure-purchase-badge>i {
    font-size: 1.5rem;
    color: #10b981;
    flex-shrink: 0;
}

.secure-purchase-badge>div {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.secure-purchase-badge .badge-title {
    color: #10b981;
    font-size: 0.8125rem;
    font-weight: 600;
}

.secure-purchase-badge .badge-desc {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Share Card */
.resource-share-card {
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1rem;
}

.resource-share-card h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.resource-share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn i {
    font-size: 1.125rem;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.15);
    color: #1da1f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.share-btn.facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-btn.linkedin {
    background: rgba(10, 102, 194, 0.15);
    color: #0a66c2;
}

.share-btn.linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.share-btn.copy {
    background: rgba(99, 102, 241, 0.15);
    color: #a78bfa;
}

.share-btn.copy:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Related Resources */
.resource-related-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.resource-related-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.resource-related-title i {
    color: #8b5cf6;
}

/* Responsive */
@media (max-width: 1024px) {
    .resource-detail-grid {
        grid-template-columns: 1fr;
    }

    .resource-detail-sidebar {
        order: -1;
        position: static;
        /* Remove sticky on mobile */
    }

    .resource-purchase-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .resource-detail-title {
        font-size: 1.5rem;
    }

    .resource-detail-stats {
        flex-wrap: wrap;
    }

    .resource-stat-item {
        min-width: 45%;
    }

    .resource-detail-tabs {
        overflow-x: auto;
    }

    .resource-tab {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    /* Tab Content Responsive */
    .resource-detail-tab-content {
        min-height: auto;
    }

    .resource-description-content {
        padding: 1rem;
        overflow-x: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .resource-description-content pre {
        max-width: 100%;
        overflow-x: auto;
        font-size: 0.8rem;
    }

    .resource-description-content img {
        max-width: 100%;
        height: auto;
    }

    .resource-description-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .resource-video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .resource-video-wrapper iframe {
        width: 100%;
        height: 100%;
    }
}

/* Resource Notification */
.resource-notification {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.9375rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.resource-notification.warning {
    border-color: rgba(245, 158, 11, 0.5);
}

.resource-notification.warning i:first-child {
    color: #f59e0b;
}

.resource-notification.success {
    border-color: rgba(34, 197, 94, 0.5);
}

.resource-notification.success i:first-child {
    color: #22c55e;
}

.resource-notification button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}

.resource-notification button:hover {
    color: #fff;
}

/* Download Button Style */
.resource-action-btn.download {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.resource-action-btn.download:hover {
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-color: transparent;
    color: #fff;
}

/* ============================================
   SHOPPING CART STYLES
   ============================================ */

/* Navigation Cart Button */
.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.nav-cart-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
    transform: translateY(-2px);
}

.nav-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Navigation Search */
.nav-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
    margin: 0 1rem;
}

.nav-search-form {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-search-form:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.nav-search-icon {
    position: absolute;
    left: 0.875rem;
    color: #64748b;
    font-size: 0.875rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.nav-search-form:focus-within .nav-search-icon {
    color: #a5b4fc;
}

.nav-search-form input {
    flex: 1;
    padding: 0.625rem 2.5rem 0.625rem 2.5rem;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 0.875rem;
    outline: none;
}

.nav-search-form input::placeholder {
    color: #64748b;
}

.nav-search-submit {
    position: absolute;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.nav-search-form:focus-within .nav-search-submit,
.nav-search-form input:not(:placeholder-shown)+.nav-search-submit {
    opacity: 1;
    transform: scale(1);
}

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

/* Search Dropdown */
.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

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

.nav-search-loading,
.nav-search-empty {
    display: none;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.nav-search-loading.active,
.nav-search-empty.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-search-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-search-results {
    max-height: 350px;
    overflow-y: auto;
}

.nav-search-results::-webkit-scrollbar {
    width: 4px;
}

.nav-search-results::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.nav-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.nav-search-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.nav-search-item img {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.nav-search-item-info {
    flex: 1;
    min-width: 0;
}

.nav-search-item-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-search-item-desc {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-search-item-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #22c55e;
    flex-shrink: 0;
}

.nav-search-item-price.free {
    color: #a5b4fc;
}

.nav-search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: rgba(99, 102, 241, 0.1);
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-search-view-all:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

/* Mobile Search */
.mobile-search-wrapper {
    position: relative;
    padding: 1rem 0;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
}

.mobile-search-form:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mobile-search-icon {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
}

.mobile-search-form input {
    flex: 1;
    padding: 0.875rem 3rem 0.875rem 2.75rem;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1rem;
    outline: none;
}

.mobile-search-form input::placeholder {
    color: #64748b;
}

.mobile-search-submit {
    position: absolute;
    right: 0.625rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
}

.mobile-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
    max-height: 60vh;
    overflow-y: auto;
}

.mobile-search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cart Dropdown Wrapper */
.nav-cart-wrapper {
    position: relative;
    overflow: visible;
}

.nav-cart-wrapper .nav-cart-btn {
    overflow: visible;
}

.nav-cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

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

.nav-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.nav-cart-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.nav-cart-count {
    font-size: 0.8125rem;
    color: #a5b4fc;
    font-weight: 500;
}

/* Cart Empty State */
.nav-cart-empty {
    padding: 2rem;
    text-align: center;
}

.nav-cart-empty i {
    font-size: 2.5rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.nav-cart-empty p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Cart Items */
.nav-cart-items {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.nav-cart-items::-webkit-scrollbar {
    width: 4px;
}

.nav-cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.nav-cart-items::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

.nav-cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    transition: background 0.2s ease;
}

.nav-cart-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.nav-cart-item img {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.nav-cart-item-info {
    flex: 1;
    min-width: 0;
}

.nav-cart-item-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    text-decoration: none;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.nav-cart-item-title:hover {
    color: #a5b4fc;
}

.nav-cart-item-price {
    font-size: 0.8125rem;
    color: #22c55e;
    font-weight: 600;
}

.nav-cart-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6b7280;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Cart Footer */
.nav-cart-footer {
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.nav-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
}

.nav-cart-total span:first-child {
    font-size: 0.875rem;
    color: #94a3b8;
}

.nav-cart-total-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.nav-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-cart-checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.nav-cart-checkout-btn i {
    font-size: 1rem;
}

/* Cart Page */
.cart-page-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.cart-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cart-page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}

.cart-page-title i {
    color: #a5b4fc;
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
}

.cart-empty i {
    font-size: 4rem;
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.cart-browse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    max-width: 220px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
    color: #fff;
}

.cart-browse-btn i {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

/* Cart Grid */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Cart Items Section */
.cart-items-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    overflow: hidden;
}

.cart-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    align-items: center;
}

.cart-item:last-of-type {
    border-bottom: none;
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    /* Allow text truncation */
    overflow: hidden;
}

.cart-item-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cart-item-title {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.cart-item-title:hover {
    color: #a5b4fc;
}

.cart-item-desc {
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-weight: 600;
    color: #a5b4fc;
}

.cart-item-total {
    font-weight: 700;
    color: #22c55e;
}

/* Quantity Controls */
.cart-item-quantity {
    display: flex;
    justify-content: center;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-qty-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

.cart-qty-input {
    width: 40px;
    height: 32px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Remove Button */
.cart-remove-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    color: #f87171;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-remove-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* Cart Items Footer */
.cart-items-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.cart-clear-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #f87171;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-clear-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

.cart-continue-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    color: #a5b4fc;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.cart-continue-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Cart Summary Section */
.cart-summary-section {
    position: sticky;
    top: 100px;
}

.cart-summary-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

/* Promo Code */
.cart-promo-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.cart-promo-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.cart-promo-form {
    display: flex;
    gap: 0.5rem;
}

.cart-promo-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
}

.cart-promo-input::placeholder {
    color: #64748b;
}

.cart-promo-btn {
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-promo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.cart-promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.5rem;
    color: #22c55e;
    font-weight: 600;
}

.cart-promo-remove {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.cart-promo-remove:hover {
    color: #ef4444;
}

.cart-promo-error {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #f87171;
}

/* Price Summary */
.cart-summary-prices {
    margin-bottom: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: #94a3b8;
}

.cart-summary-row.cart-discount {
    color: #22c55e;
}

.cart-summary-row.cart-total-row {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* Payment Methods */
.cart-payment-section {
    margin-bottom: 1.5rem;
}

.cart-payment-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.cart-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-payment-option {
    cursor: pointer;
}

.cart-payment-option input {
    display: none;
}

.cart-payment-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.cart-payment-option input:checked+.cart-payment-card {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.cart-payment-card i {
    font-size: 1.5rem;
    color: #a5b4fc;
}

.cart-payment-card span {
    font-weight: 600;
    color: #fff;
}

.cart-payment-card small {
    margin-left: auto;
    font-size: 0.75rem;
    color: #64748b;
}

/* Checkout Button */
.cart-checkout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.cart-secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.cart-secure-text i {
    color: #22c55e;
}

/* Cart Responsive */
@media (max-width: 1024px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-items-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .cart-item-product {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cart-item-product img {
        width: 80px;
        height: 80px;
    }

    .cart-item-price::before {
        content: 'Price: ';
        color: #64748b;
    }

    .cart-item-total::before {
        content: 'Subtotal: ';
        color: #64748b;
    }

    .cart-item-quantity {
        justify-content: flex-start;
    }

    .cart-item-remove {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .cart-item {
        position: relative;
    }
}

/* =====================================================
   PAYMENT RESULT PAGES
   ===================================================== */
.payment-result-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.payment-result-container {
    max-width: 600px;
    width: 100%;
}

.payment-result-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
}

.payment-result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.payment-success .payment-result-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.payment-error .payment-result-icon.error,
.payment-cancelled .payment-result-icon.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.payment-result-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.payment-result-desc {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.payment-order-details {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.payment-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    margin-bottom: 1rem;
}

.payment-order-number {
    font-weight: 600;
    color: #6366f1;
}

.payment-order-date {
    color: #64748b;
    font-size: 0.875rem;
}

.payment-order-items {
    margin-bottom: 1rem;
}

.payment-order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.payment-order-item:last-child {
    border-bottom: none;
}

.payment-order-item img {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.payment-order-item-info {
    flex: 1;
}

.payment-order-item-title {
    display: block;
    font-weight: 500;
    color: #e2e8f0;
}

.payment-order-item-qty {
    font-size: 0.75rem;
    color: #64748b;
}

.payment-order-item-price {
    font-weight: 600;
    color: #22c55e;
}

.payment-order-summary {
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    padding-top: 1rem;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #94a3b8;
}

.payment-summary-row.payment-discount span:last-child {
    color: #22c55e;
}

.payment-summary-row.payment-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.payment-txn-id {
    font-family: monospace;
    font-size: 0.75rem;
    color: #64748b;
}

.payment-result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.payment-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.payment-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    font-weight: 500;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.payment-btn-secondary:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #e2e8f0;
}

.payment-cancelled-info {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
}

.payment-cancelled-info i {
    color: #f59e0b;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.payment-cancelled-info p {
    color: #fbbf24;
    font-size: 0.875rem;
    margin: 0;
}

/* =====================================================
   MY PURCHASES PAGE
   ===================================================== */
.purchases-section {
    min-height: 80vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.purchases-container {
    max-width: 1000px;
    margin: 0 auto;
}

.purchases-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.purchases-title i {
    color: #6366f1;
}

.purchases-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.purchases-stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.purchases-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.purchases-stat-icon.spent {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.purchases-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.purchases-stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.purchases-thank-you {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.purchases-thank-you i {
    color: #f43f5e;
    font-size: 1.5rem;
}

.purchases-thank-you p {
    color: #22c55e;
    margin: 0;
    font-weight: 500;
}

.purchases-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1.5rem;
}

.purchases-empty i {
    font-size: 4rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.purchases-empty h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.purchases-browse-btn i {
    font-size: 1rem !important;
    color: #fff !important;
    margin: 0 !important;
}

.purchases-empty p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.purchases-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.purchases-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.purchase-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.25rem;
    align-items: center;
    transition: all 0.3s ease;
}

.purchase-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.purchase-image {
    position: relative;
}

.purchase-image img {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.purchase-admin-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
}

.purchase-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.purchase-title:hover {
    color: #818cf8;
}

.purchase-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.purchase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.purchase-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.purchase-meta .purchase-promo {
    color: #22c55e;
}

.purchase-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #22c55e;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.purchase-download-btn,
.purchase-invoice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-download-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.purchase-download-btn:hover {
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.purchase-invoice-btn {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.purchase-invoice-btn:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #e2e8f0;
}

/* Invoice Modal */
.invoice-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.invoice-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.invoice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.invoice-modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-modal-header button {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.invoice-modal-header button:hover {
    color: #fff;
}

.invoice-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.invoice-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.invoice-print-btn {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.invoice-print-btn:hover {
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.invoice-close-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.invoice-close-btn:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #e2e8f0;
}

.invoice-loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.invoice-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Invoice Document Styles */
.invoice-document {
    color: #e2e8f0;
}

.invoice-document .invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #6366f1;
    margin-bottom: 1.5rem;
}

.invoice-document .invoice-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    margin: 0;
}

.invoice-document .invoice-number {
    color: #64748b;
    margin: 0.25rem 0;
}

.invoice-document .invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.invoice-document .invoice-parties h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.invoice-document .invoice-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
}

.invoice-document .invoice-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.invoice-document .invoice-summary {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(100, 116, 139, 0.3);
}

.invoice-document .invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.invoice-document .invoice-row.invoice-total {
    font-size: 1.125rem;
    font-weight: 700;
    border-top: 2px solid #6366f1;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.invoice-document .invoice-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.invoice-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.invoice-status-paid {
    color: #22c55e;
    font-weight: 600;
}

.invoice-thank-you {
    text-align: center;
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
}

/* Cart Checkout Error */
.cart-checkout-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Mobile Responsive for Purchases */
@media (max-width: 768px) {
    .purchase-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .purchase-image img {
        width: 100px;
        height: 100px;
    }

    .purchase-meta {
        justify-content: center;
    }

    .purchase-actions {
        flex-direction: row;
        justify-content: center;
    }

    .purchases-stats {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   PAYMENT RESULT PAGES
   ===================================================== */

.payment-result-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.payment-result-container {
    max-width: 600px;
    width: 100%;
}

.payment-result-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.payment-result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
}

.payment-success .payment-result-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.payment-error .payment-result-icon.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.payment-result-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.payment-result-desc {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.payment-order-details {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.payment-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.payment-order-number {
    font-weight: 600;
    color: #f8fafc;
}

.payment-order-date {
    color: #64748b;
    font-size: 0.875rem;
}

.payment-order-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
}

.payment-order-item img {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.payment-order-item-info {
    flex: 1;
}

.payment-order-item-title {
    display: block;
    font-weight: 500;
    color: #f8fafc;
}

.payment-order-item-qty {
    font-size: 0.75rem;
    color: #64748b;
}

.payment-order-item-price {
    font-weight: 600;
    color: #22c55e;
}

.payment-order-summary {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 1rem;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #94a3b8;
}

.payment-summary-row.payment-discount {
    color: #22c55e;
}

.payment-summary-row.payment-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.payment-summary-row.payment-method {
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.payment-txn-id {
    font-family: monospace;
    font-size: 0.75rem;
    color: #64748b;
}

.payment-result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.payment-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.payment-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.payment-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.payment-btn-secondary:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #f8fafc;
}

/* =====================================================
   MY PURCHASES PAGE
   ===================================================== */

.purchases-section {
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.purchases-container {
    max-width: 1000px;
    margin: 0 auto;
}

.purchases-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.purchases-title i {
    color: #6366f1;
}

.purchases-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.purchases-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.purchases-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.purchases-stat-icon.spent {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.purchases-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
}

.purchases-stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.purchases-thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    color: #a5b4fc;
}

.purchases-thank-you i {
    color: #f472b6;
}

.purchases-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.purchases-empty i {
    font-size: 4rem;
    color: #475569;
    margin-bottom: 1rem;
}

.purchases-empty h2 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.purchases-empty p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.purchases-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.purchases-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.purchase-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.purchase-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.purchase-image {
    position: relative;
}

.purchase-image img {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.purchase-admin-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.purchase-title {
    font-weight: 600;
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s;
}

.purchase-title:hover {
    color: #818cf8;
}

.purchase-desc {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.purchase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
}

.purchase-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.purchase-promo {
    color: #22c55e !important;
}

.purchase-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #22c55e;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.purchase-download-btn,
.purchase-invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.purchase-download-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.purchase-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.purchase-invoice-btn {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.purchase-invoice-btn:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #f8fafc;
}

/* =====================================================
   INVOICE MODAL
   ===================================================== */

.invoice-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.invoice-modal-overlay.active {
    display: flex;
}

.invoice-modal {
    background: #1e293b;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.invoice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.invoice-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-modal-header button {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.invoice-modal-header button:hover {
    color: #f8fafc;
}

.invoice-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.invoice-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.invoice-print-btn,
.invoice-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.invoice-print-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.invoice-print-btn:hover {
    transform: translateY(-2px);
}

.invoice-close-btn {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.invoice-close-btn:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #f8fafc;
}

.invoice-loading,
.invoice-error {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.invoice-error {
    color: #ef4444;
}

/* Invoice Document Styles */
.invoice-document {
    color: #e2e8f0;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #6366f1;
}

.invoice-logo h2 {
    font-size: 1.5rem;
    color: #6366f1;
}

.invoice-info {
    text-align: right;
}

.invoice-info .invoice-title {
    font-size: 1.25rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.invoice-info .invoice-number {
    color: #64748b;
    font-size: 0.875rem;
}

.invoice-info .invoice-date {
    color: #64748b;
    font-size: 0.875rem;
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.invoice-parties h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.invoice-parties p {
    color: #e2e8f0;
    margin: 0.25rem 0;
}

.invoice-items {
    margin-bottom: 1.5rem;
}

.invoice-items-header {
    display: grid;
    grid-template-columns: 2fr 0.5fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6366f1;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.invoice-item {
    display: grid;
    grid-template-columns: 2fr 0.5fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.invoice-item-name {
    font-weight: 500;
}

.invoice-summary {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #94a3b8;
}

.invoice-row.invoice-discount {
    color: #22c55e;
}

.invoice-row.invoice-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.invoice-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.invoice-payment-info p {
    margin: 0.5rem 0;
    color: #94a3b8;
}

.invoice-payment-info strong {
    color: #e2e8f0;
}

.invoice-status-paid {
    color: #22c55e;
    font-weight: 600;
}

.invoice-admin-badge {
    color: #818cf8;
}

/* =========================================
   My Purchases Page - Responsive Styles
   ========================================= */

/* Stats Grid */
.purchases-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.purchases-stat-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.purchases-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.purchases-stat-icon.spent {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.purchases-stat-info {
    display: flex;
    flex-direction: column;
}

.purchases-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f3f4f6;
}

.purchases-stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Thank You Message */
.purchases-thank-you {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: #c7d2fe;
}

.purchases-thank-you i {
    color: #ec4899;
    font-size: 1.25rem;
}

/* Purchases List */
.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Purchase Card - Base Styles */
.purchase-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.purchase-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.purchase-image {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0f172a;
}

.purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-admin-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(15, 23, 42, 0.9);
    color: #818cf8;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.purchase-info {
    flex: 1;
    min-width: 0;
}

.purchase-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #f3f4f6;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.purchase-title:hover {
    color: #818cf8;
}

.purchase-desc {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.purchase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.813rem;
    color: #94a3b8;
}

.purchase-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.purchase-date i,
.purchase-method i,
.purchase-promo i,
.purchase-version i {
    font-size: 0.75rem;
}

.purchase-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f3f4f6;
    white-space: nowrap;
    padding: 0 1rem;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.purchase-download-btn,
.purchase-invoice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    min-width: 110px;
}

.purchase-download-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.purchase-download-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.purchase-invoice-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #e2e8f0;
}

.purchase-invoice-btn:hover {
    background: rgba(51, 65, 85, 0.5);
    border-color: #64748b;
}

/* Empty State */
.purchases-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(17, 24, 39, 0.4);
    border-radius: 1rem;
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

.purchases-empty i {
    font-size: 4rem;
    color: rgba(99, 102, 241, 0.5);
    margin-bottom: 1rem;
    display: block;
}

.purchases-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f3f4f6;
}

.purchases-empty p {
    color: #9ca3af;
    margin-bottom: 2rem;
}

.purchases-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.purchases-browse-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

purchases-browse-btn i {
    font-size: 1rem !important;
}

/* Invoice Modal */
.invoice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.invoice-modal {
    background: #0f172a;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.invoice-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.invoice-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.invoice-modal-header button {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.invoice-modal-header button:hover {
    color: #f1f5f9;
}

.invoice-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.invoice-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.invoice-loading,
.invoice-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #94a3b8;
    gap: 1rem;
}

.invoice-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    color: #6366f1;
}

.invoice-error {
    color: #ef4444;
}

.invoice-print-btn,
.invoice-close-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.invoice-print-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
}

.invoice-print-btn:hover {
    opacity: 0.9;
}

.invoice-close-btn {
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
}

.invoice-close-btn:hover {
    background: rgba(71, 85, 105, 0.3);
}

/* =========================================
   RESPONSIVE STYLES FOR MY PURCHASES
   ========================================= */
@media (max-width: 768px) {
    .purchase-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        position: relative;
        padding: 1rem;
    }

    .purchase-image {
        width: 100%;
        height: 180px;
        border-radius: 0.5rem;
    }

    .purchase-info {
        width: 100%;
        text-align: center;
    }

    .purchase-title {
        font-size: 1rem;
        padding-right: 0;
        text-align: center;
        display: block;
    }

    .purchase-desc {
        text-align: center;
    }

    .purchase-meta {
        justify-content: center;
        gap: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .purchase-price {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(15, 23, 42, 0.9);
        padding: 0.375rem 0.75rem;
        border-radius: 0.5rem;
        backdrop-filter: blur(4px);
        font-size: 1rem;
        z-index: 2;
    }

    .purchase-actions {
        width: 100%;
        flex-direction: row;
        margin-top: 0.5rem;
    }

    .purchase-download-btn,
    .purchase-invoice-btn {
        flex: 1;
        min-width: auto;
        padding: 0.75rem 0.5rem;
    }

    /* Stats Grid */
    .purchases-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .purchases-stat-card {
        padding: 1rem;
    }

    .purchases-stat-value {
        font-size: 1.25rem;
    }

    /* Thank You */
    .purchases-thank-you {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    /* Invoice Modal */
    .invoice-modal {
        max-height: 95vh;
        margin: 0.5rem;
    }

    .invoice-modal-header {
        padding: 1rem;
    }

    .invoice-modal-header h3 {
        font-size: 1rem;
    }

    .invoice-modal-body {
        padding: 1rem;
        overflow-x: hidden;
    }

    .invoice-modal-footer {
        flex-direction: column-reverse;
        padding: 1rem;
    }

    .invoice-print-btn,
    .invoice-close-btn {
        width: 100%;
        justify-content: center;
    }

    /* Invoice content responsive */
    .invoice-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .invoice-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .invoice-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .invoice-row span:last-child {
        text-align: left;
    }

    /* Invoice Bill To - prevent email overflow */
    .invoice-parties {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .invoice-from,
    .invoice-to {
        width: 100%;
        min-width: 0;
    }

    .invoice-from p,
    .invoice-to p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100%;
    }

    /* Invoice table responsive */
    .invoice-items-table {
        font-size: 0.813rem;
    }

    .invoice-items-table th,
    .invoice-items-table td {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .purchase-actions {
        flex-direction: column;
    }

    .purchase-download-btn span,
    .purchase-invoice-btn span {
        display: inline;
    }

    .purchase-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    /* Invoice table very small screens */
    .invoice-items-table {
        font-size: 0.75rem;
    }

    .invoice-items-table th:first-child,
    .invoice-items-table td:first-child {
        max-width: 100px;
        word-break: break-word;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   Navigation Dropdown Responsive
   ========================================= */

/* User Dropdown Desktop */
#userDropdown {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Cart Dropdown Responsive */
.nav-cart-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

.nav-cart-items {
    max-height: 250px;
    overflow-y: auto;
}

/* Mobile responsive for dropdowns */
@media (max-width: 768px) {
    #userDropdown {
        position: fixed;
        top: 60px;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-radius: 0.75rem;
    }

    .nav-cart-dropdown {
        position: fixed;
        top: 60px;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-cart-items {
        max-height: calc(100vh - 250px);
    }
}

/* Scrollbar styling for dropdowns */
#userDropdown::-webkit-scrollbar,
.nav-cart-dropdown::-webkit-scrollbar,
.nav-cart-items::-webkit-scrollbar {
    width: 6px;
}

#userDropdown::-webkit-scrollbar-track,
.nav-cart-dropdown::-webkit-scrollbar-track,
.nav-cart-items::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
}

#userDropdown::-webkit-scrollbar-thumb,
.nav-cart-dropdown::-webkit-scrollbar-thumb,
.nav-cart-items::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

#userDropdown::-webkit-scrollbar-thumb:hover,
.nav-cart-dropdown::-webkit-scrollbar-thumb:hover,
.nav-cart-items::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* =========================================
   Legal Pages Styles (Terms, Privacy, Refund)
   ========================================= */

.legal-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-heading::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.legal-text {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.legal-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: #94a3b8;
    line-height: 1.6;
}

.legal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.legal-highlight {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1rem 0;
}

.legal-highlight-red {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.legal-highlight-green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.legal-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.legal-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.legal-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    color: #818cf8;
    text-decoration: none;
    transition: all 0.2s;
}

.legal-contact-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.legal-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.legal-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.75rem;
}

.legal-step-number {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.legal-step p {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .legal-heading {
        font-size: 1.25rem;
    }

    .legal-warning {
        flex-direction: column;
        text-align: center;
    }

    .legal-contact {
        flex-direction: column;
    }

    .legal-contact-link {
        justify-content: center;
    }
}

/* =========================================
   REDUCED MOTION PREFERENCES
   For users who prefer reduced motion and 
   for better performance on slower devices
   ========================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-float,
    .animate-glow,
    .pulse-glow,
    .floating-particle,
    .animate-spin-slow,
    .animate-glow-intense,
    .animate-rotate,
    .gradient-text,
    .shimmer-effect,
    .orbit-element,
    .pulse-element,
    .cyber-grid,
    .hero-title {
        animation: none !important;
    }

    .hud-element::before,
    .hud-element::after,
    .player-dot,
    .death-message {
        animation: none !important;
    }
}