/* ═══ Home Page Premium Styles ═══ */

.home-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(236,72,153,0.05) 0%, transparent 50%),
        var(--bg);
}

/* Hero Enhancements */
.hero-carousel-section { padding: 20px 0 0; }
.hero-carousel {
    min-height: 360px;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-orbs span {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orbs span:nth-child(1) { width: 300px; height: 300px; top: -80px; right: 10%; animation-delay: 0s; }
.hero-orbs span:nth-child(2) { width: 180px; height: 180px; bottom: -40px; left: 5%; animation-delay: 2s; }
.hero-orbs span:nth-child(3) { width: 120px; height: 120px; top: 30%; left: 40%; animation-delay: 4s; }
@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-slide-v2 { padding: 52px 60px; min-height: 360px; }
.hero-content h1 {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-trust-mini {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px; font-size: 12px; font-weight: 600; opacity: 0.85;
}
.hero-trust-mini span {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-visual { position: relative; }
.hero-visual-glow {
    position: absolute; inset: -20px;
    background: radial-gradient(circle, rgba(167,139,250,0.4) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.hero-visual img { position: relative; animation: heroImgFloat 5s ease-in-out infinite; }
@keyframes heroImgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Trust Strip */
.trust-strip-section { padding: 20px 0 8px; margin-top: -8px; position: relative; z-index: 2; }
.trust-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 20px 24px; border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(91,33,182,0.08);
}
.trust-item {
    display: flex; align-items: center; gap: 14px;
    padding: 8px; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.trust-item:hover { background: var(--gradient-soft); transform: translateY(-2px); }
.trust-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ti-purple { background: #ede9fe; color: #7c3aed; }
.ti-blue { background: #dbeafe; color: #2563eb; }
.ti-green { background: #d1fae5; color: #059669; }
.ti-orange { background: #ffedd5; color: #ea580c; }
.trust-item strong { display: block; font-size: 13px; font-weight: 800; color: var(--text); }
.trust-item span { font-size: 11px; color: var(--text-muted); }

/* Section Headers */
.section-head-center { text-align: center; margin-bottom: 24px; }
.section-head-center .section-tag {
    display: inline-block; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--primary); background: var(--gradient-soft);
    padding: 5px 14px; border-radius: 50px; margin-bottom: 10px;
}
.section-head-center h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.section-head-center p { font-size: 14px; color: var(--text-muted); }

.category-pills-wrap {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 20px; border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* How It Works */
.how-works-section { padding: 32px 0; }
.how-works-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 36px 32px; border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
}
.how-works-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient);
}
.how-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap;
}
.how-step {
    text-align: center; padding: 20px 16px; flex: 1; min-width: 120px;
    border-radius: var(--radius); transition: var(--transition);
    position: relative;
}
.how-step:hover { background: var(--gradient-soft); transform: translateY(-4px); }
.how-step .step-num {
    position: absolute; top: 8px; right: 8px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gradient); color: #fff;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.how-step > i { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.how-step h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.how-step p { font-size: 12px; color: var(--text-muted); }
.step-arrow { color: var(--primary-light); font-size: 14px; opacity: 0.5; }

/* Section Title V2 */
.section-title-row-v2 {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px; padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.section-title-row-v2::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 60px; height: 2px; border-radius: 2px;
}
.accent-gold::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.accent-red::after { background: linear-gradient(90deg, #ef4444, #f97316); }
.accent-blue::after { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.accent-purple::after { background: var(--gradient); }

.section-title-left { display: flex; align-items: center; gap: 14px; }
.section-icon-wrap {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--gradient-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.section-title-left h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 2px; }
.section-title-left p { font-size: 12px; color: var(--text-muted); margin: 0; }

.view-all-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 50px;
    background: var(--gradient-soft); color: var(--primary);
    font-size: 13px; font-weight: 700; text-decoration: none;
    border: 1px solid rgba(109,40,217,0.15); transition: var(--transition);
}
.view-all-btn:hover {
    background: var(--gradient); color: #fff;
    gap: 12px; box-shadow: 0 4px 16px rgba(109,40,217,0.3);
}

/* Product Grid Home */
.product-grid-home {
    grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.product-grid-home .product-card-v2 {
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
.product-grid-home .product-card-img { height: 170px; }
.product-grid-home .product-card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.product-grid-home .product-card-v2:hover .product-card-img::after { opacity: 1; }

/* Empty State */
.empty-hero-card {
    text-align: center; padding: 64px 32px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 2px dashed rgba(109,40,217,0.2);
    box-shadow: var(--shadow);
}
.empty-hero-icon {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    box-shadow: 0 8px 24px rgba(109,40,217,0.3);
}
.empty-hero-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.empty-hero-card p { color: var(--text-muted); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* Sidebar Enhancements */
.widget-glass {
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(15,23,42,0.06) !important;
}
.widget-header-gold { background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(245,158,11,0.06)) !important; }
.widget-header-gold h3 i { color: #f59e0b !important; }
.widget-header-flash { background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(249,115,22,0.05)) !important; }
.widget-header-flash h3 i { color: #ef4444 !important; }

.seller-rank {
    width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
    background: var(--gradient-soft); color: var(--primary);
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.top-seller-item:first-child .seller-rank { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #fff; }

.widget-empty { padding: 20px 18px; font-size: 13px; color: var(--text-muted); text-align: center; }

.cta-icon-ring {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
    background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.btn-white-sm {
    background: #fff !important; color: var(--primary-dark) !important;
    font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Bottom CTA */
.home-bottom-cta { padding: 16px 0 56px; }
.bottom-cta-card {
    background: var(--gradient-hero); border-radius: var(--radius-lg);
    padding: 48px 40px; display: flex; align-items: center;
    justify-content: space-between; gap: 32px; flex-wrap: wrap;
    position: relative; overflow: hidden;
    box-shadow: 0 16px 48px rgba(91,33,182,0.25);
}
.bottom-cta-card::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20h20v20H20zM0 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
}
.bottom-cta-content { position: relative; color: #fff; }
.bottom-cta-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.bottom-cta-content p { opacity: 0.88; font-size: 15px; max-width: 480px; }
.bottom-cta-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* Scroll Reveal */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .product-grid-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-slide-v2 { padding: 32px 24px; min-height: 300px; }
    .trust-strip { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
    .trust-item strong { font-size: 12px; }
    .how-steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .section-title-row-v2 { flex-direction: column; align-items: flex-start; gap: 12px; }
    .product-grid-home { grid-template-columns: 1fr; }
    .bottom-cta-card { padding: 32px 24px; text-align: center; justify-content: center; }
    .bottom-cta-actions { justify-content: center; width: 100%; }
}
