:root {
    --bg-base: #05020a;
    --accent-primary: #d946ef;
    --accent-secondary: #8b5cf6;
    --accent-dark: #4c1d95;
    --discord: #5865F2;
    --acbuy: #ff4d4d;
    --glass-card: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-primary: 0 0 15px rgba(217, 70, 239, 0.5);
    --glow-secondary: 0 0 15px rgba(139, 92, 246, 0.5);
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--bg-base);
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

.background-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: #05020a;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle at 50% 50%, #11061a 0%, #05020a 50%, #1a0821 100%);
    animation: rotateBg 20s linear infinite;
    filter: blur(60px);
    opacity: 0.8;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--accent-dark);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.15;
    animation: moveBlob 15s infinite alternate ease-in-out;
}

@keyframes rotateBg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes moveBlob { 0% { transform: translate(0, 0); } 100% { transform: translate(20vw, 30vh); } }

.announcement {
    background: #050505;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 0;
    position: fixed;
    top: 0; width: 100%;
    z-index: 2000;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-wrap {
    display: inline-flex;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 9px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4em;
}

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.top-nav {
    position: fixed;
    top: 37px;
    left: 0; right: 0;
    height: 80px;
    backdrop-filter: blur(30px);
    background: rgba(5, 2, 10, 0.6);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.nav-brand {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.profile-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.profile-section:hover { 
    background: rgba(255, 255, 255, 0.05); 
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.profile-section:hover .avatar-img {
    box-shadow: 0 0 20px var(--accent-secondary);
    transform: scale(1.05);
}

.avatar-container { position: relative; width: 40px; height: 40px; }
.avatar-img {
    width: 100%; height: 100%; border-radius: 50%; background: var(--accent-secondary);
    display: flex; align-items: center; justify-content: center; font-weight: 800;
    font-size: 14px; color: #fff; box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.status-dot {
    position: absolute; bottom: 0; right: 0; width: 14px; height: 14px;
    background: #23a55a; border: 3px solid #0a060f; border-radius: 50%;
}

.profile-dropdown {
    position: absolute; top: calc(100% + 12px); left: 0; width: 220px;
    background: #11091a; border: 1px solid var(--glass-border); border-radius: 14px;
    padding: 12px; display: none; flex-direction: column; gap: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); z-index: 1001;
}
.profile-dropdown.active { 
    display: flex; 
    animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-social-item {
    padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}
.dropdown-social-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.icon-tiktok { background: #000; }
.icon-discord { background: #5865F2; }
.social-info { display: flex; flex-direction: column; }
.social-label { font-size: 9px; font-weight: 800; color: #64748b; text-transform: uppercase; }
.social-handle { font-size: 12px; font-weight: 700; color: #fff; }

.nav-links { display: flex; gap: 8px; background: rgba(255,255,255,0.03); padding: 5px; border-radius: 12px; border: 1px solid var(--glass-border); }
.nav-item { 
    padding: 8px 18px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #64748b; 
    cursor: pointer; text-transform: uppercase; transition: all 0.3s ease;
}
.nav-item:hover { color: #fff; }
.nav-item.active { 
    background: var(--accent-primary); color: #fff; 
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4), 0 0 10px rgba(217, 70, 239, 0.2); 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.discord-btn-nav {
    background: var(--discord); color: white; padding: 10px 20px; border-radius: 10px;
    font-size: 11px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 10px;
    transition: all 0.3s ease;
}
.discord-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.page-content { 
    display: none; 
    opacity: 0; 
    min-height: 100vh; 
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    position: relative;
}

.page-content.active { 
    display: flex; 
    flex-direction: column; 
    animation: fadeIn 0.5s ease-out forwards; 
}

#page-home.active {
    justify-content: center; 
    align-items: center;
    padding-top: 0; 
}

#page-finds.active, #page-sellers.active {
    padding-top: 160px; 
    justify-content: flex-start;
    align-items: center;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.hero-title { 
    font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 900; text-transform: uppercase; 
    margin-bottom: 1.5rem; letter-spacing: -0.02em; line-height: 1;
    text-shadow: 0 0 30px rgba(217, 70, 239, 0.2);
}
.text-accent { 
    color: var(--accent-primary); 
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.6);
}

.search-input {
    width: 90%; max-width: 450px; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 14px 20px; color: #fff; outline: none; margin: 0 auto 1.5rem auto; 
    display: block; transition: all 0.3s ease;
}
.search-input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.1);
}

.filter-container { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 16px; border-radius: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase;
    border: 1px solid var(--glass-border); background: var(--glass-card); color: #64748b; 
    cursor: pointer; transition: all 0.3s ease;
}
.filter-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.filter-btn.active { 
    border-color: var(--accent-primary); color: #fff; background: var(--accent-primary); 
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(20px); z-index: 5000;
    align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active {
    display: flex;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-box {
    background: #0a060f; border: 1px solid var(--glass-border); border-radius: 24px;
    overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    animation: modalScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

#welcomeModal .modal-content-box { max-width: 500px; width: 100%; text-align: center; }
.welcome-header { padding: 40px 40px 20px; }
.welcome-icon {
    width: 70px; height: 70px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; font-size: 28px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.promo-banner { background: rgba(255, 255, 255, 0.03); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 24px; margin: 20px 0; }
.promo-tag { background: #ff4d4d; color: white; font-size: 10px; font-weight: 900; padding: 4px 10px; border-radius: 4px; display: inline-block; text-transform: uppercase; animation: pulse 2s infinite; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.acbuy-btn { 
    background: #fff; color: #000; width: 100%; padding: 14px; border-radius: 10px; 
    font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; 
    text-decoration: none; margin-top: 12px; transition: all 0.3s ease;
}
.acbuy-btn:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }

.btn-enter { 
    background: transparent; color: #64748b; padding: 16px; font-size: 11px; 
    font-weight: 700; text-transform: uppercase; cursor: pointer; border: none; 
    width: 100%; transition: color 0.3s ease;
}
.btn-enter:hover { color: #fff; }

.standard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; width: 100%; max-width: 1200px; padding: 0 24px; }
.glass-card {
    background: rgba(255, 255, 255, 0.01); backdrop-filter: blur(15px); border: 1px solid var(--glass-border);
    border-radius: 16px; transition: all 0.4s ease; cursor: pointer; padding: 20px; display: flex; flex-direction: column; align-items: center;
}
.glass-card:hover { 
    border-color: var(--accent-primary); transform: translateY(-8px); background: rgba(255, 255, 255, 0.04); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 20px rgba(217, 70, 239, 0.1);
}

.img-container { width: 100%; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: #000; position: relative; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.glass-card:hover .img-container img { transform: scale(1.1); }

.seller-pfp-circle { width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, 0.03); border: 2px solid var(--glass-border); overflow: hidden; margin-bottom: 16px; transition: all 0.3s ease; }
.glass-card:hover .seller-pfp-circle { border-color: var(--accent-primary); transform: scale(1.1); box-shadow: 0 0 15px rgba(217, 70, 239, 0.3); }
.seller-pfp-circle img { width: 100%; height: 100%; object-fit: cover; }

.btn-cta-small {
    background: transparent; color: var(--accent-primary); border: 1px solid rgba(217, 70, 239, 0.4);
    padding: 10px 24px; border-radius: 10px; font-size: 11px; font-weight: 800; text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: inline-block; cursor: pointer;
}
.btn-cta-small:hover { 
    background: var(--accent-primary); color: white; border-color: var(--accent-primary); 
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4); transform: scale(1.05);
}

.btn-primary { 
    background: var(--accent-primary); color: white; padding: 16px; border-radius: 12px; 
    text-align: center; font-weight: 900; text-transform: uppercase; cursor: pointer; 
    text-decoration: none; width: 100%; display: block; transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.4);
}

#productModal .modal-content-box { max-width: 850px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.modal-info { padding: 40px; text-align: left; display: flex; flex-direction: column; }

@media (max-width: 768px) {
    .top-nav { padding: 0 20px; }
    .nav-links { display: none; } 
    #productModal .modal-content-box { grid-template-columns: 1fr; }
}