:root {
    --bg-primary: #08090a; 
    --bg-secondary: rgba(20, 22, 25, 0.6); 
    --bg-tertiary: rgba(30, 33, 38, 0.8);
    --border-color: #2a2d34; 
    --accent: #00ff9f; 
    --accent-hover: #00cc7f;
    --accent-glow: rgba(0, 255, 159, 0.15);
    --danger: #ef4444; 
    --shadow: rgba(0, 0, 0, 0.5);
    --window-highlight: rgba(255, 255, 255, 0.03);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@media (hover: hover) and (pointer: fine) { body { cursor: none; } }
body { font-family: 'Poppins', sans-serif; background: var(--bg-primary); color: #fff; min-height: 100vh; overflow-x: hidden; }

.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: transform 0.15s ease, width 0.3s, height 0.3s, background 0.3s; }
.cursor-dot { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid var(--accent); opacity: 0.5; transition: transform 0.2s ease-out, width 0.3s, height 0.3s, opacity 0.3s; }
.cursor-outline.hover { width: 70px; height: 70px; background: var(--accent-glow); border-color: transparent; opacity: 1; }

#particle-network { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.orb { position: fixed; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; opacity: 0.4; }
.orb-1 { width: 400px; height: 400px; background: #00ff9f; top: -100px; left: -100px; animation: floatOrb1 20s ease-in-out infinite; }
.orb-2 { width: 300px; height: 300px; background: #5865F2; bottom: -50px; right: -50px; animation: floatOrb2 25s ease-in-out infinite; }
.orb-3 { width: 250px; height: 250px; background: #8b5cf6; top: 40%; left: 50%; animation: floatOrb3 30s ease-in-out infinite; }
@keyframes floatOrb1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(100px, 200px); } }
@keyframes floatOrb2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-150px, -100px); } }
@keyframes floatOrb3 { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(20%, -80%); } }

.sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100vh; background: var(--bg-secondary); backdrop-filter: blur(20px); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 30px 20px; z-index: 100; box-shadow: 4px 0 30px var(--shadow); }
.sidebar-logo { font-size: 28px; font-weight: 800; margin-bottom: 50px; letter-spacing: 2px; }
.sidebar-logo span { color: var(--accent); text-shadow: 0 0 15px var(--accent-glow); }
.sidebar-nav { display: flex; flex-direction: column; gap: 10px; }
.sidebar-link { color: #888; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 18px; border-radius: 12px; transition: var(--transition); border-left: 3px solid transparent; display: flex; align-items: center; gap: 10px; }
.sidebar-link:hover, .sidebar-link.active { color: #fff; background: var(--bg-tertiary); border-left-color: var(--accent); transform: translateX(5px); box-shadow: 0 4px 12px var(--shadow); }
.discord-link:hover { background: rgba(88, 101, 242, 0.15); border-left-color: #5865F2; color: #fff; }
.sidebar-bottom { margin-top: auto; }
.login-btn { width: 100%; padding: 14px; background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 12px; font-weight: 700; cursor: none; transition: var(--transition); }
.login-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 25px var(--accent-glow); }
.user-info { display: flex; align-items: center; gap: 10px; background: var(--bg-tertiary); padding: 10px; border-radius: 12px; border: 1px solid var(--border-color); }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); }
.user-name { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.logout-btn { background: rgba(255,50,50,0.1); border: none; color: #ff5050; cursor: pointer; padding: 8px; border-radius: 8px; transition: var(--transition); }
.logout-btn:hover { background: #ff5050; color: #fff; }
.sidebar-footer { font-size: 12px; color: #444; text-align: center; margin-top: 15px; }

.main-content { margin-left: 260px; padding: 40px; position: relative; z-index: 1; }
.marquee-container { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; margin-bottom: 40px; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 0 var(--window-highlight); }
.marquee { display: flex; gap: 40px; white-space: nowrap; animation: marquee 20s linear infinite; padding: 15px 0; }
.marquee span { font-weight: 700; letter-spacing: 2px; color: #888; }
.marquee .m-sep { color: var(--accent); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.hero-section { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; margin-bottom: 60px; position: relative; }
.hero-title { font-size: 72px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: 2px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-title span { background: linear-gradient(90deg, #00ff9f, #5865F2, #00ff9f); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineText 3s linear infinite; }
@keyframes shineText { to { background-position: 200% center; } }
.hero-subtitle { font-size: 18px; color: #888; margin-bottom: 30px; max-width: 500px; }
.hero-btn { background: var(--accent); color: #000; border: none; padding: 16px 50px; border-radius: 50px; font-weight: 700; font-size: 16px; cursor: none; transition: var(--transition); box-shadow: 0 0 30px var(--accent-glow); }
.hero-btn:hover { transform: scale(1.05); box-shadow: 0 0 50px var(--accent-glow); }

.products-section { margin-bottom: 50px; }
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.featured-title { font-size: 40px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.featured-title span { background: linear-gradient(90deg, #00ff9f, #5865F2, #00ff9f); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineText 3s linear infinite; }
.cart-btn-top { background: var(--bg-secondary); color: #fff; border: 1px solid var(--border-color); padding: 14px 30px; border-radius: 50px; font-weight: 700; cursor: none; transition: var(--transition); display: flex; align-items: center; gap: 10px; backdrop-filter: blur(10px); }
.cart-btn-top:hover { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.badge { background: var(--accent); color: #000; padding: 4px 10px; border-radius: 20px; font-size: 12px; box-shadow: 0 0 10px var(--accent-glow); }

.categories-scroll { display: flex; gap: 12px; margin-bottom: 40px; overflow-x: auto; padding-bottom: 5px; }
.categories-scroll::-webkit-scrollbar { height: 6px; }
.categories-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.category-btn { padding: 10px 24px; background: var(--bg-secondary); border: 1px solid var(--border-color); color: #888; border-radius: 20px; cursor: none; font-weight: 600; transition: var(--transition); white-space: nowrap; backdrop-filter: blur(5px); }
.category-btn:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.category-btn.active { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 4px 15px var(--accent-glow); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; perspective: 1000px; }
.product-card { background: var(--bg-secondary); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.3s ease; position: relative; box-shadow: 0 4px 20px var(--shadow), inset 0 1px 0 0 var(--window-highlight); transform-style: preserve-3d; animation: fadeInUp 0.5s ease backwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.product-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent); transform: translateX(-100%) translateY(-100%); transition: 0.6s; pointer-events: none; z-index: 2; }
.product-card:hover::after { transform: translateX(100%) translateY(100%); }
.product-image { width: 100%; height: 250px; background: #000; overflow: hidden; position: relative; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 0.9; }
.product-emoji-fallback { font-size: 64px; opacity: 0.8; }
.product-info { padding: 20px; }
.product-category { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.product-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-desc { font-size: 12px; color: #666; margin-bottom: 20px; height: 30px; overflow: hidden; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 22px; font-weight: 800; color: #fff; }
.product-btn { background: var(--accent); color: #000; border: none; padding: 10px 20px; border-radius: 10px; font-weight: 700; cursor: none; transition: var(--transition); box-shadow: 0 4px 10px var(--accent-glow); }
.product-btn:hover { background: #fff; transform: scale(1.05); }

.discord-banner { background: var(--bg-secondary); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; text-align: center; margin-bottom: 40px; box-shadow: 0 4px 20px var(--shadow), inset 0 1px 0 0 var(--window-highlight); animation: floatBanner 6s ease-in-out infinite; }
@keyframes floatBanner { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.discord-banner h3 { font-size: 22px; margin-bottom: 20px; }
.discord-join-btn { display: inline-block; background: #5865F2; color: #fff; padding: 14px 40px; border-radius: 12px; text-decoration: none; font-weight: 700; transition: var(--transition); box-shadow: 0 4px 15px rgba(88,101,242,0.3); cursor: none; }
.discord-join-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(88,101,242,0.5); }

.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 1000; justify-content: center; align-items: center; }
.modal.active { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { background: var(--bg-secondary); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 1px 0 0 var(--window-highlight); animation: scaleIn 0.3s ease; }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 25px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.modal-header h2 { font-size: 20px; color: var(--accent); letter-spacing: 1px; }
.close-btn { background: transparent; border: none; color: #666; font-size: 22px; cursor: none; transition: var(--transition); }
.close-btn:hover { color: #fff; transform: rotate(90deg); }
.size-btn { padding: 12px 24px; background: var(--bg-tertiary); border: 1px solid var(--border-color); color: #fff; border-radius: 10px; cursor: none; margin: 5px; font-weight: 600; transition: var(--transition); }
.size-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,255,159,0.1); transform: scale(1.05); }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.cart-item-remove { background: rgba(255,50,50,0.1); color: #ff5050; border: 1px solid rgba(255,50,50,0.2); width: 32px; height: 32px; border-radius: 8px; cursor: none; transition: var(--transition); }
.cart-item-remove:hover { background: #ff5050; color: #fff; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin: 25px 0; font-size: 18px; }
.cart-total span:last-child { color: var(--accent); font-size: 22px; }
.cart-actions { display: flex; gap: 15px; }
.btn-danger, .btn-success { flex: 1; padding: 16px; border: none; border-radius: 12px; font-weight: 700; cursor: none; transition: var(--transition); }
.btn-danger { background: rgba(255,50,50,0.2); color: #ff5050; border: 1px solid rgba(255,50,50,0.3); }
.btn-danger:hover { background: #ff5050; color: #fff; }
.btn-success { background: var(--accent); color: #000; box-shadow: 0 4px 15px var(--accent-glow); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 16px 24px; background: var(--bg-secondary); backdrop-filter: blur(15px); border: 1px solid var(--border-color); border-radius: 12px; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px var(--shadow); animation: slideIn 0.3s ease; min-width: 250px; }
.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.removing { animation: slideOut 0.3s ease forwards; }
@keyframes slideOut { to { transform: translateX(100%); opacity: 0; } }

/* PASKUTINIO PERŽIŪRĖTO PRODUKTO JUOSTELĖ */
.recently-viewed-bar {
    position: fixed;
    bottom: 20px; left: 20px;
    background: var(--bg-secondary);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 0 var(--window-highlight);
    display: flex; align-items: center; gap: 15px;
    z-index: 900;
    transform: translateY(150%) scale(0.5);
    opacity: 0;
    max-width: 350px;
    pointer-events: none;
}

.recently-viewed-bar.show {
    animation: rvPopIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
}

@keyframes rvPopIn {
    0% { transform: translateY(150%) scale(0.5); opacity: 0; }
    60% { transform: translateY(-10px) scale(1.05); opacity: 1; }
    80% { transform: translateY(5px) scale(0.98); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.rv-close-btn {
    position: absolute;
    top: -8px; right: -8px;
    width: 24px; height: 24px;
    background: #ff5050;
    color: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: none;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.rv-close-btn:hover { transform: scale(1.1) rotate(90deg); }
.rv-content { display: flex; align-items: center; gap: 15px; }
.rv-image {
    width: 50px; height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.rv-info { display: flex; flex-direction: column; gap: 2px; }
.rv-label { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.rv-name { font-size: 14px; font-weight: 700; color: #fff; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-price { font-size: 13px; color: var(--accent); font-weight: 700; }
.rv-view-btn {
    background: var(--accent); color: #000; border: none;
    padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 12px;
    cursor: none; transition: var(--transition);
}
.rv-view-btn:hover { background: #fff; transform: scale(1.05); }

@media (max-width: 768px) {
    .sidebar { width: 70px; padding: 20px 5px; }
    .sidebar-logo, .sidebar-link span, .sidebar-footer, .user-name { display: none; }
    .main-content { margin-left: 70px; padding: 20px; }
    .featured-title { font-size: 28px; }
    .hero-title { font-size: 42px; }
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    .recently-viewed-bar { left: 10px; right: 10px; max-width: none; bottom: 10px; }
    .rv-name { max-width: 100px; }
}
