/* ==========================================================================
   Design System & Master Variables - LoveGoBuy Finds VIP
   ========================================================================== */

:root {
    --bg-dark: #0a0c14;
    --bg-card: rgba(22, 26, 42, 0.7);
    --bg-card-hover: rgba(30, 36, 60, 0.85);
    --bg-input: rgba(18, 22, 36, 0.8);
    
    --primary-purple: #8b5cf6;
    --primary-cyan: #06b6d4;
    --primary-pink: #ec4899;
    --accent-glow: rgba(139, 92, 246, 0.35);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    --border-glow: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(139, 92, 246, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

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

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 50%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ambient Glow Background Blobs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--primary-purple);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-cyan);
    top: 40%;
    right: -150px;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--primary-pink);
    bottom: -100px;
    left: 20%;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--primary-purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1000;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    top: 24px;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 12, 20, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glow);
    padding: 1.1rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.6rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.code-badge:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-purple);
    transform: translateY(-1px);
}

.badge-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-code {
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
}

.copy-icon {
    color: var(--primary-cyan);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid var(--border-glow);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 3.5rem 0 2rem;
}

.hero-card {
    background: linear-gradient(135deg, rgba(22, 26, 42, 0.8) 0%, rgba(15, 18, 30, 0.9) 100%);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple), var(--primary-pink));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulse 1.8s infinite;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.2rem;
}

.highlight-code {
    color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px dashed rgba(6, 182, 212, 0.4);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Search & Filters
   ========================================================================== */
.controls-section {
    margin: 2.5rem 0 2rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-full);
    padding: 0.9rem 3rem;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
    background: rgba(22, 26, 42, 0.95);
}

.clear-btn {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glow);
    color: var(--text-muted);
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-purple), #6366f1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

/* ==========================================================================
   Products Grid & Cards
   ========================================================================== */
.products-section {
    padding-bottom: 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Featured Card (VIP Registration) */
.featured-card {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid var(--border-highlight);
}

.card-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(236, 72, 153, 0.2);
    color: var(--primary-pink);
    border: 1px solid rgba(236, 72, 153, 0.4);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    z-index: 2;
}

.featured-badge {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.4);
}

.card-image-wrapper {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.2rem;
    position: relative;
    background: rgba(15, 18, 30, 0.6);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, filter 0.3s ease;
    display: block;
}

.product-card:hover .card-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.card-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.product-card:hover .card-visual {
    transform: scale(1.08);
}

.visual-emoji {
    font-size: 4.5rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

/* Visual Background Themes */
.visual-vip { background: linear-gradient(135deg, #4f46e5, #9333ea); }
.visual-football { background: linear-gradient(135deg, #059669, #0d9488); }
.visual-trail { background: linear-gradient(135deg, #d97706, #b45309); }
.visual-phenom { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.visual-therma { background: linear-gradient(135deg, #0284c7, #0369a1); }
.visual-hoodie { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.visual-ensemble { background: linear-gradient(135deg, #e11d48, #be123c); }
.visual-gucci { background: linear-gradient(135deg, #854d0e, #713f12); }
.visual-nb { background: linear-gradient(135deg, #4b5563, #374151); }

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.platform-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.ali-tag { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.weidian-tag { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.vip-tag { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.price-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-code {
    font-size: 0.8rem;
    color: var(--primary-cyan);
    font-weight: 700;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-btn {
    width: 100%;
}

/* Empty Search State */
.no-results {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-glow);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.steps-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-glow);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    opacity: 0.6;
    margin-bottom: 0.8rem;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.step-card a {
    color: var(--primary-cyan);
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-glow);
    padding: 2.5rem 0;
    background: rgba(10, 12, 20, 0.95);
    margin-top: 2rem;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-top: 0.5rem;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-card {
        padding: 2.5rem 1.5rem;
    }
    
    .header-actions .code-badge {
        display: none;
    }
    
    .filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
