/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a25;
    --primary: #7c5cfc;
    --primary-glow: #9b7bff;
    --accent: #00e5a0;
    --danger: #ff4d6a;
    --warning: #ffb020;
    --text: #f0f0f5;
    --text-muted: #9898a8;
    --border: #2a2a3a;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { display: none; }
.section.active { display: block; }
.section-pad { padding: 60px 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ========== URGENCY BANNER ========== */
.urgency-banner {
    background: linear-gradient(90deg, #7c5cfc, #00e5a0);
    color: #000;
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.urgency-content { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.urgency-banner strong { font-weight: 800; }

/* ========== HEADER ========== */
.header {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 40px;
    z-index: 900;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo i { color: var(--primary); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cart-btn:hover { background: var(--primary); }
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124,92,252,0.25), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0,229,160,0.08), transparent);
    pointer-events: none;
}
.hero-content { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,77,106,0.15);
    color: var(--danger);
    border: 1px solid rgba(255,77,106,0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,106,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,77,106,0); }
}
.hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary-glow), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.trust-pills {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
}
.trust-pills span { display: flex; align-items: center; gap: 6px; }
.trust-pills i { color: var(--accent); }
.social-proof-bar {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}
.avatars { display: flex; }
.avatars span {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #ff6b6b, #ffa502); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #1e90ff, #00cec9); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #fd79a8, #a29bfe); }

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ========== LIVE DEAL ========== */
.live-deal {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.live-deal-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,77,106,0.15);
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}
.pulse {
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.mini-timer {
    font-family: monospace;
    font-weight: 700;
    color: var(--warning);
    background: rgba(255,176,32,0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,92,252,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124,92,252,0.5);
}
.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text);
    background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

/* ========== PRODUCTS ========== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); }
.urgency-text { color: var(--warning) !important; font-weight: 600; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(124,92,252,0.15);
}
.product-image {
    height: 200px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}
.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card), transparent);
}
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-hot { background: var(--warning); color: #000; }
.badge-low { background: rgba(255,77,106,0.2); color: var(--danger); border: 1px solid var(--danger); }
.product-body { padding: 20px; }
.product-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.product-rating .stars { color: var(--warning); letter-spacing: 1px; }
.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.price-current { font-size: 24px; font-weight: 800; color: var(--accent); }
.price-old { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.price-save {
    font-size: 12px;
    font-weight: 700;
    color: var(--danger);
    background: rgba(255,77,106,0.12);
    padding: 2px 8px;
    border-radius: 4px;
}
.stock-info {
    font-size: 12px;
    color: var(--warning);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.viewing {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.viewing strong { color: var(--primary-glow); }
.add-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    transition: all 0.2s;
}
.add-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========== REVIEWS ========== */
.reviews-section {
    background: var(--bg-elevated);
    padding: 60px 0;
    border-top: 1px solid var(--border);
}
.section-header.light h2 { color: var(--text); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.stars { color: var(--warning); margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.reviewer { font-size: 13px; color: var(--text-muted); }
.reviewer strong { color: var(--text); }

/* ========== TRUST STRIP ========== */
.trust-strip {
    padding: 30px 0;
    border-top: 1px solid var(--border);
}
.trust-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.trust-items div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.trust-items i { color: var(--accent); font-size: 18px; }

/* ========== WHY US ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.why-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.why-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); }

/* ========== CART SIDEBAR ========== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 18px; }
.close-cart {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 16px;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-cart i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-cart p { margin-bottom: 20px; }
.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-img {
    width: 64px; height: 64px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item-info .price { color: var(--accent); font-weight: 700; font-size: 15px; }
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.cart-item-qty button {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 14px;
}
.cart-item-qty span { font-weight: 600; min-width: 20px; text-align: center; }
.remove-item {
    color: var(--text-muted);
    font-size: 14px;
    align-self: flex-start;
}
.remove-item:hover { color: var(--danger); }
.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 16px;
}
.cart-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ========== CHECKOUT ========== */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) {
    .checkout-wrapper { grid-template-columns: 1fr; }
}
.checkout-form-side h2 { font-size: 28px; margin-bottom: 4px; }
.checkout-sub { color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}
.payment-options { display: flex; gap: 12px; }
.pay-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}
.pay-option input { accent-color: var(--primary); }
.secure-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
}
.checkout-summary-side {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 120px;
}
.checkout-summary-side h3 { margin-bottom: 20px; font-size: 18px; }
.checkout-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.checkout-item-img {
    width: 56px; height: 56px;
    background: var(--bg-elevated);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.checkout-item-info h4 { font-size: 14px; margin-bottom: 2px; }
.checkout-item-info p { font-size: 13px; color: var(--text-muted); }
.summary-totals { margin-top: 8px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.summary-row .free { color: var(--accent); font-weight: 700; }
.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
}
.guarantee-box {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background: rgba(0,229,160,0.08);
    border: 1px solid rgba(0,229,160,0.2);
    border-radius: 12px;
}
.guarantee-box i { color: var(--accent); font-size: 20px; margin-top: 2px; }
.guarantee-box strong { display: block; font-size: 14px; margin-bottom: 2px; }
.guarantee-box p { font-size: 12px; color: var(--text-muted); }

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--accent); }
.toast i { margin-right: 8px; color: var(--accent); }

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 700px) {
    .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 14px; max-width: 280px; }
.footer-links h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer-links a, .footer-links p {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero { padding: 50px 0 40px; }
    .products-grid { grid-template-columns: 1fr; }
    .header { top: 48px; }
}
