/* ========================================
   LiuStudio - Neon Cyberpunk Theme
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700;900&display=swap');

:root {
    --bg-primary: #0D0D1A;
    --bg-secondary: #141428;
    --bg-card: #1A1A35;
    --bg-input: #222245;
    --pink: #FF6B9D;
    --pink-hover: #FF8BB5;
    --pink-dark: #E0527D;
    --pink-glow: rgba(255,107,157,0.3);
    --pink-light: #FFD1E0;
    --cyan: #00E5FF;
    --cyan-glow: rgba(0,229,255,0.3);
    --purple: #B24BF3;
    --purple-glow: rgba(178,75,243,0.25);
    --gold: #FFD700;
    --accent: #7B68EE;
    --gray-text: #C8C8D8;
    --gray-light: #E8E8F0;
    --gray-muted: #808098;
    --gray-border: #2A2A4A;
    --white: #FFFFFF;
    --success: #00E676;
    --warning: #FFD740;
    --error: #FF5252;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-hover: 0 8px 40px rgba(255,107,157,0.25);
    --shadow-cyan: 0 8px 40px rgba(0,229,255,0.15);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    --gradient-primary: linear-gradient(135deg, var(--pink), var(--purple));
    --gradient-accent: linear-gradient(135deg, var(--cyan), var(--accent));
    --border-color: var(--gray-border);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--gray-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(178,75,243,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(0,229,255,0.04) 0%, transparent 50%);
}
a { color: var(--pink); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--pink-hover); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { color: var(--white); font-weight: 900; line-height: 1.3; }

/* Page Transition */
.page-content {
    animation: fadeSlideIn 0.4s ease forwards;
    padding-top: 100px;
}
.page-content:has(.hero) {
    padding-top: 0;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-family: var(--font); font-weight: 700; font-size: 15px;
    border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none; position: relative;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.btn:active { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255,107,157,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--pink-hover), var(--pink));
    color: var(--white);
    box-shadow: 0 8px 32px rgba(255,107,157,0.4);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--gray-text);
    border: 1px solid var(--gray-border);
}
.btn-secondary:hover { border-color: var(--pink); color: var(--pink); }
.btn-outline {
    background: transparent;
    color: var(--pink);
    border: 2px solid var(--pink);
}
.btn-outline:hover { background: var(--pink); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13,13,26,0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(255,107,157,0.15);
    padding: 0 48px; height: 100px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 1px 0 rgba(0,229,255,0.08);
}
.nav-brand {
    display: flex; align-items: center; gap: 16px; text-decoration: none;
}
.nav-brand img {
    height: 56px; width: 56px; border-radius: 50%; object-fit: contain;
    border: 2px solid rgba(255,107,157,0.4);
    box-shadow: 0 0 16px rgba(255,107,157,0.2);
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-name {
    color: var(--white); font-weight: 900; font-size: 28px;
    background: linear-gradient(135deg, var(--white), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-brand-sub {
    color: var(--cyan); font-size: 11px; font-weight: 700;
    letter-spacing: 6px; text-transform: uppercase;
}
.nav-links {
    display: flex; align-items: center; gap: 4px;
    list-style: none;
}
.nav-links a {
    padding: 10px 18px; border-radius: var(--radius-sm);
    color: var(--gray-text); font-weight: 700; font-size: 15px;
    transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--pink); background: rgba(255,107,157,0.1);
}
.nav-links a.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; background: var(--pink); border-radius: 2px;
}
.nav-right {
    display: flex; align-items: center; gap: 16px;
}
.nav-cart {
    position: relative; cursor: pointer;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--bg-card); transition: var(--transition);
    border: 1px solid var(--gray-border);
}
.nav-cart:hover { background: rgba(255,107,157,0.2); transform: translateY(-2px); border-color: var(--pink); }
.nav-cart svg { width: 22px; height: 22px; fill: var(--gray-text); }
.nav-cart-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--pink); color: var(--white);
    font-size: 13px; font-weight: 700; min-width: 22px; height: 22px;
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}
.nav-user {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 20px; background: var(--bg-card);
    transition: var(--transition); cursor: pointer;
    border: 1px solid var(--gray-border);
}
.nav-user:hover { background: rgba(255,107,157,0.15); transform: translateY(-2px); border-color: var(--pink); }
.nav-user img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-user span { font-size: 14px; font-weight: 700; color: var(--gray-light); }
.nav-user-dropdown {
    position: absolute; top: 50px; right: 0;
    background: var(--bg-card); border: 1px solid var(--gray-border);
    border-radius: var(--radius); padding: 8px 0; min-width: 200px;
    box-shadow: var(--shadow); display: none; z-index: 100;
}
.nav-user-dropdown.show { display: block; animation: fadeSlideIn 0.2s ease; }
.nav-user-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px; color: var(--gray-text); font-size: 16px; font-weight: 700;
}
.nav-user-dropdown a:hover { background: rgba(255,107,157,0.1); color: var(--pink); }
.nav-user-dropdown hr { border: none; border-top: 1px solid var(--gray-border); margin: 4px 0; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; fill: var(--gray-text); }
/* Mobile-only actions hidden on desktop by default */
.mobile-nav-actions { display: none !important; }
@media (max-width: 1200px) {
    .navbar { height: 80px; }
    .nav-brand img { height: 44px; width: 44px; }
    .nav-brand-name { font-size: 22px; }
    .nav-brand-sub { font-size: 9px; }
    .nav-links a { font-size: 14px; padding: 8px 12px; }
    .page-content { padding-top: 80px; }
    .auth-container { padding-top: 100px; }
    .product-detail { padding-top: 100px; }
}
/* Mobile nav: hamburger at 960px */
@media (max-width: 960px) {
    .nav-links {
        display: flex; flex-direction: column;
        position: fixed; top: var(--navbar-h, 80px); left: 0; right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--gray-border);
        padding: 0 16px; z-index: 1100;
        max-height: 0; overflow: hidden; opacity: 0;
        transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
                    opacity 0.25s ease,
                    padding 0.35s cubic-bezier(0.4,0,0.2,1);
    }
    .nav-toggle { display: block; }
    .nav-links.open {
        max-height: 600px; opacity: 1; padding: 12px 16px;
    }
    .nav-links li a {
        font-size: 15px; padding: 12px 20px;
        border-radius: var(--radius-sm); display: block;
    }
    .nav-links li a:hover { background: rgba(255,107,157,0.1); }
    /* Mobile-only user actions inside the slide-down menu */
    .mobile-nav-actions {
        display: flex !important; flex-direction: column; gap: 8px;
        padding-top: 12px; margin-top: 8px;
        border-top: 1px solid var(--gray-border);
    }
    .mobile-nav-actions a,
    .mobile-nav-actions .mobile-nav-cart {
        font-size: 15px; padding: 12px 20px;
        border-radius: var(--radius-sm); display: flex;
        align-items: center; gap: 10px; color: var(--gray-text);
    }
    .mobile-nav-actions a:hover,
    .mobile-nav-actions .mobile-nav-cart:hover { background: rgba(255,107,157,0.1); }
    .mobile-nav-actions .btn { text-align: center; justify-content: center; }
    .mobile-nav-actions .mobile-nav-cart { cursor: pointer; }
    /* Hide desktop-only user actions at this breakpoint */
    .nav-right .nav-cart { display: none; }
    .nav-right > a.btn { display: none; }
    .nav-right > div:has(.nav-user) { display: none; }
}

@media (max-width: 768px) {
    .nav-links { top: 64px; z-index: 1100; }
    .navbar { padding: 0 16px; height: 64px; }
    .nav-brand img { height: 36px; width: 36px; }
    .nav-brand-name { font-size: 20px; }
    .nav-brand-sub { font-size: 8px; letter-spacing: 4px; }
    .page-content { padding-top: 64px; }
    .auth-container { padding-top: 80px; }
    .product-detail { padding-top: 80px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .section { padding: 40px 16px; }
    .section-title { font-size: 22px; }
    .footer-brand { flex-direction: column; text-align: center; }
    .footer-brand img { height: 60px; width: 60px; }
    .footer-brand-name { font-size: 28px; }
    .footer-content { gap: 28px; }
    .footer h4 { font-size: 16px; }
    .footer-links a { font-size: 14px; }
    .footer { padding: 40px 16px 24px; }
    .profile-header { flex-direction: column; text-align: center; padding: 24px 16px; }
    .checkout-layout { grid-template-columns: 1fr; gap: 20px; }
    .news-grid { grid-template-columns: 1fr; }
    .nav-user span { font-size: 13px; }
    .nav-right { gap: 6px; }
}
/* Hide brand text on small screens */
@media (max-width: 600px) {
    .nav-brand-text { display: none !important; }
}
/* Compact navbar on very small screens */
@media (max-width: 480px) {
    .navbar { padding: 0 12px; height: 56px; }
    .nav-links { top: 56px; }
    .nav-brand img { height: 32px; width: 32px; }
    .page-content { padding-top: 56px; }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #0D0D1A;
    opacity: var(--hero-opacity, 0.55);
}
.hero-content {
    position: relative; z-index: 2; max-width: 800px; padding: 0 20px;
}
.hero-title {
    font-size: 52px; font-weight: 900; color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 0 40px rgba(255,107,157,0.4), 0 0 80px rgba(178,75,243,0.2);
}
.hero-title span {
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 20px; color: var(--gray-light); margin-bottom: 40px;
    font-weight: 700; letter-spacing: 2px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 60px 32px; max-width: 1400px; margin: 0 auto;
}
.section-full {
    padding: 60px 0; width: 100vw; margin-left: calc(-50vw + 50%); position: relative;
}
.section-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 32px;
}
.section-title {
    font-size: 32px; text-align: center; margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    border-radius: 2px; margin: 12px auto 0;
}
/* ========================================
   Reviews Section
   ======================================== */
.reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 24px; border: 1px solid var(--gray-border);
    transition: var(--transition);
}
.review-card:hover {
    border-color: rgba(255,107,157,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.review-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--gray-text); line-height: 1.8; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gradient-primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 14px;
}
.review-author span { font-size: 14px; color: var(--gray-muted); font-weight: 700; }

/* ========================================
   Features Grid (Why Choose Us)
   ======================================== */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 32px 24px; text-align: center;
    border: 1px solid var(--gray-border); transition: var(--transition);
}
.feature-card:hover {
    border-color: rgba(255,107,157,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(255,107,157,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h4 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-muted); line-height: 1.6; }

/* ========================================
   Product Cards
   ======================================== */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
/* Homepage: force 4 per row */
.product-grid.home-grid {
    grid-template-columns: repeat(4, 1fr);
}
.product-card {
    background: var(--bg-card); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition);
    border: 1px solid rgba(255,107,157,0.08); cursor: pointer; position: relative;
    text-decoration: none; display: block;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255,107,157,0.2), 0 0 20px rgba(0,229,255,0.08);
    border-color: rgba(255,107,157,0.4);
}
.product-card-img {
    position: relative; padding-top: 75%; overflow: hidden;
    background: var(--bg-secondary);
}
.product-card-img img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-sale {
    position: absolute; top: 12px; left: 12px;
    background: var(--error); color: var(--white);
    font-size: 12px; font-weight: 700; padding: 4px 10px;
    border-radius: 6px; z-index: 2;
}
.product-card-info {
    padding: 16px;
}
/* Category page keeps hover-reveal style */
.category-card .product-card-info,
.carousel-track .product-card-info {
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(13,13,26,0.95) 30%);
    padding-top: 40px;
}
.category-card:hover .product-card-info,
.carousel-track .product-card:hover .product-card-info {
    opacity: 1; transform: translateY(0);
}
.product-card-name {
    color: var(--white); font-size: 15px; font-weight: 700;
    margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-price {
    color: var(--pink); font-size: 16px; font-weight: 900;
}
.product-card-price .original {
    color: var(--gray-muted); font-size: 13px;
    text-decoration: line-through; margin-left: 8px; font-weight: 400;
}

/* ========================================
   Product Carousel
   ======================================== */
.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track {
    display: flex; gap: 24px; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.carousel-track .product-card { min-width: calc(33.333% - 16px); flex-shrink: 0; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,107,157,0.9); color: var(--white);
    border: none; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); font-size: 18px; font-weight: 700;
}
.carousel-btn:hover { background: var(--pink); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
@media (max-width: 768px) {
    .carousel-track .product-card { min-width: calc(50% - 12px); }
}

/* ========================================
   Top Spenders
   ======================================== */
.top-spenders {
    display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.top-spender-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 32px 40px;
    text-align: center; min-width: 240px; border: 1px solid rgba(255,215,0,0.15);
    transition: var(--transition);
}
.top-spender-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 8px 30px rgba(255,215,0,0.15); }
.top-spender-rank {
    font-size: 32px; font-weight: 900; color: var(--gold); margin-bottom: 12px;
}
.top-spender-card img {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--gold); margin-bottom: 12px;
}
.top-spender-name { color: var(--white); font-weight: 700; font-size: 17px; }
.top3-empty {
    text-align: center; color: rgba(255,215,0,0.55); font-size: 16px; font-style: italic;
    padding: 32px 0; letter-spacing: 1px;
}

/* ========================================
   Membership Badges
   ======================================== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.badge-normal { background: #555570; color: #ccc; }
.badge-silver { background: linear-gradient(135deg,#94A3B8,#CBD5E1); color: #1e293b; }
.badge-gold { background: linear-gradient(135deg,#F59E0B,#FCD34D); color: #78350f; }
.badge-diamond { background: linear-gradient(135deg,#6366F1,#A78BFA); color: #fff; }
.badge-vip { background: linear-gradient(135deg,#EC4899,#F43F5E); color: #fff; }

/* ========================================
   Membership Tiers
   ======================================== */
.tier-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.tier-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px 24px;
    text-align: center; border: 2px solid var(--gray-border);
    transition: var(--transition); position: relative; overflow: hidden;
}
.tier-card:hover { transform: translateY(-6px); }
.tier-card.current { border-color: var(--pink); }
.tier-card-icon { font-size: 48px; margin-bottom: 16px; }
.tier-card h3 { font-size: 20px; margin-bottom: 8px; }
.tier-card .threshold { color: var(--pink); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.tier-card ul { list-style: none; text-align: left; }
.tier-card li { padding: 6px 0; font-size: 13px; color: var(--gray-text); display: flex; align-items: flex-start; gap: 8px; }
.tier-card li::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--pink); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }

/* ========================================
   Forms
   ======================================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 700; color: var(--gray-light); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 16px;
    background: var(--bg-input); border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm); color: var(--white);
    font-family: var(--font); font-size: 15px;
    transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-glow);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }
.form-error { color: var(--error); font-size: 13px; margin-top: 4px; }
.form-hint { color: var(--gray-muted); font-size: 12px; margin-top: 4px; }

/* ========================================
   Auth Pages
   ======================================== */
.auth-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 20px 40px;
}
.auth-card {
    background: var(--bg-secondary); border-radius: var(--radius-lg);
    padding: 48px 40px; width: 100%; max-width: 440px;
    border: 1px solid rgba(255,107,157,0.12); box-shadow: var(--shadow), 0 0 60px rgba(255,107,157,0.06);
}
.auth-card h1 {
    font-size: 28px; text-align: center; margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center; color: var(--gray-muted); margin-bottom: 32px; font-size: 14px;
}
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-size: 14px; font-weight: 700;
}
.alert-error { background: rgba(244,67,54,0.15); color: #EF5350; border: 1px solid rgba(244,67,54,0.3); }
.alert-success { background: rgba(76,175,80,0.15); color: #66BB6A; border: 1px solid rgba(76,175,80,0.3); }
.alert-warning { background: rgba(255,193,7,0.15); color: #FFC107; border: 1px solid rgba(255,193,7,0.3); }

/* ========================================
   Cart Sidebar
   ======================================== */
.cart-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 2000;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed; top: 0; right: -420px; bottom: 0; width: 400px;
    background: var(--bg-secondary); z-index: 2001;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    border-left: 1px solid var(--gray-border);
}
.cart-sidebar.open { right: 0; }
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--gray-border);
}
.cart-header h3 { font-size: 18px; }
.cart-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-card); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.cart-close:hover { background: rgba(255,107,157,0.2); }
.cart-close svg { width: 18px; height: 18px; fill: var(--gray-text); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--gray-border);
}
.cart-item-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--bg-card); }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.cart-item-type { font-size: 12px; color: var(--gray-muted); }
.cart-item-price { font-size: 14px; color: var(--pink); font-weight: 700; margin-top: 4px; }
.cart-item-remove {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--gray-muted); transition: var(--transition);
}
.cart-item-remove:hover { color: var(--error); }
.cart-footer {
    padding: 20px 24px; border-top: 1px solid var(--gray-border);
}
.cart-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.cart-total-label { font-size: 16px; font-weight: 700; color: var(--gray-light); }
.cart-total-amount { font-size: 22px; font-weight: 900; color: var(--pink); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--gray-muted); }
@media (max-width: 480px) { .cart-sidebar { width: 100%; right: -100%; } }

/* ========================================
   Product Detail
   ======================================== */
.product-detail { padding-top: 120px; }
.product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.product-gallery { position: relative; }
.product-gallery-main {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-secondary); aspect-ratio: 1;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.product-gallery-thumb {
    width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.product-gallery-thumb.active, .product-gallery-thumb:hover { border-color: var(--pink); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-viewers {
    display: flex; align-items: center; gap: 8px; margin-top: 12px;
    font-size: 13px; color: var(--gray-muted);
}
.product-viewers .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.product-info h1 { font-size: 28px; margin-bottom: 16px; }
.product-price-range { font-size: 28px; font-weight: 900; color: var(--pink); margin-bottom: 20px; }
.product-desc { color: var(--gray-text); line-height: 1.8; margin-bottom: 24px; font-size: 15px; white-space: pre-line; }
.product-video { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.product-video iframe { width: 100%; aspect-ratio: 16/9; border: none; }
.product-buy { background: var(--bg-card); border-radius: var(--radius); padding: 24px; }
.product-buy .form-group { margin-bottom: 16px; }
.product-qty { display: flex; align-items: center; gap: 12px; }
.qty-btn {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--bg-input); border: 1px solid var(--gray-border);
    color: var(--white); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { border-color: var(--pink); color: var(--pink); }
.qty-input {
    width: 60px; text-align: center; background: var(--bg-input);
    border: 1px solid var(--gray-border); border-radius: 8px;
    color: var(--white); font-size: 16px; padding: 8px;
    font-family: var(--font);
}
@media (max-width: 768px) {
    .product-main { grid-template-columns: 1fr; }
}

/* Content Blocks */
.content-blocks { max-width: 1200px; margin: 40px auto; padding: 0 32px; }
.content-block { margin-bottom: 24px; }
.content-block-text {
    background: var(--bg-card); border-radius: var(--radius); padding: 24px;
    color: var(--gray-text); line-height: 1.8; font-size: 15px; white-space: pre-line;
}
.content-block-image img { border-radius: var(--radius); width: 100%; }
.content-block-youtube { border-radius: var(--radius); overflow: hidden; }
.content-block-youtube iframe { width: 100%; aspect-ratio: 16/9; border: none; }

/* ========================================
   Checkout
   ======================================== */
.checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.checkout-card { background: var(--bg-card); border-radius: var(--radius); padding: 32px; }
.checkout-card h3 { margin-bottom: 24px; font-size: 20px; }
.checkout-summary-item {
    display: flex; justify-content: space-between; padding: 8px 0;
    font-size: 14px;
}
.checkout-total {
    display: flex; justify-content: space-between; padding: 16px 0;
    border-top: 1px solid var(--gray-border); margin-top: 12px;
    font-size: 20px; font-weight: 900;
}
.checkout-total .amount { color: var(--pink); }
.payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm); margin-bottom: 12px;
    cursor: pointer; transition: var(--transition);
}
.payment-option:hover, .payment-option.selected { border-color: var(--pink); }
.payment-option input[type="radio"] { accent-color: var(--pink); }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ========================================
   Profile & Wallet
   ======================================== */
.profile-header {
    display: flex; align-items: center; gap: 24px;
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px;
    margin-bottom: 32px;
}
.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--pink);
}
.profile-name { font-size: 24px; color: var(--white); font-weight: 900; }
.wallet-balance {
    font-size: 36px; font-weight: 900; color: var(--pink); margin: 20px 0;
}
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table th {
    text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 700;
    color: var(--gray-muted); border-bottom: 1px solid var(--gray-border);
}
.tx-table td {
    padding: 12px 16px; border-bottom: 1px solid rgba(58,58,90,0.5);
    font-size: 14px;
}
.tx-table tr:hover { background: rgba(255,107,157,0.05); }
.tx-positive { color: var(--success); font-weight: 700; }
.tx-negative { color: var(--error); font-weight: 700; }

/* ========================================
   News
   ======================================== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.news-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 24px;
    transition: var(--transition); border: 1px solid transparent;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(255,107,157,0.3); }
.news-card h3 { font-size: 18px; margin-bottom: 8px; }
.news-card .date { font-size: 13px; color: var(--gray-muted); margin-bottom: 12px; }
.news-card p { font-size: 14px; color: var(--gray-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Homepage News List (left image, right info) --- */
.news-list-home { display: flex; flex-direction: column; gap: 16px; }
.news-row-card {
    display: flex; gap: 20px; align-items: center;
    background: var(--bg-card); border-radius: var(--radius); padding: 16px;
    border: 1px solid var(--gray-border); text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.news-row-card:hover { transform: translateY(-2px); border-color: rgba(178,75,243,0.3); box-shadow: 0 8px 30px rgba(178,75,243,0.12); }
.news-row-img { flex-shrink: 0; width: 140px; height: 100px; border-radius: 8px; overflow: hidden; }
.news-row-img img { width: 100%; height: 100%; object-fit: cover; }
.news-row-placeholder { width: 100%; height: 100%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.news-row-info { flex: 1; min-width: 0; }
.news-row-title { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-row-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--gray-muted); margin-bottom: 6px; }
.news-row-author { color: var(--pink); font-weight: 600; }
.news-row-excerpt { font-size: 14px; color: var(--gray-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
@media (max-width: 600px) {
    .news-row-card { flex-direction: column; align-items: stretch; }
    .news-row-img { width: 100%; height: 160px; }
}

/* ========================================
   Raffle
   ======================================== */
.raffle-hero { text-align: center; padding: 60px 20px; }
.raffle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 200px; height: 200px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: var(--white); font-size: 20px; font-weight: 900;
    border: none; cursor: pointer; position: relative;
    animation: breathe 2s infinite ease-in-out;
    box-shadow: 0 0 40px var(--pink-glow);
}
@keyframes breathe {
    0%,100% { transform: scale(1); box-shadow: 0 0 40px var(--pink-glow); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px var(--pink-glow); }
}
.raffle-btn:hover { animation-play-state: paused; transform: scale(1.12); }
.raffle-btn:disabled { opacity: 0.5; cursor: not-allowed; animation: none; }
.raffle-results { margin-top: 48px; }
.raffle-result-item {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 20px; background: var(--bg-card); border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-secondary); margin-top: 80px;
    border-top: 1px solid rgba(255,107,157,0.1);
    padding: 60px 48px 36px;
    background-image: radial-gradient(ellipse at 30% 100%, rgba(255,107,157,0.04) 0%, transparent 50%);
}
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer-brand img {
    height: 56px; width: 56px; border-radius: 50%; object-fit: contain;
    border: 2px solid rgba(255,107,157,0.3);
}
.footer-brand-name {
    font-size: 28px; font-weight: 900;
    background: linear-gradient(135deg, var(--white), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--gray-muted); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--pink); padding-left: 4px; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-bottom {
    text-align: center; padding-top: 24px; margin-top: 32px;
    border-top: 1px solid var(--gray-border);
    font-size: 13px; color: var(--gray-muted);
}
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
}

/* ========================================
   Admin Panel
   ======================================== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: var(--bg-secondary);
    border-right: 1px solid var(--gray-border);
    padding: 24px 0; flex-shrink: 0; position: fixed; top: 0; bottom: 0;
    overflow-y: auto;
}
.admin-sidebar-brand {
    padding: 0 20px 24px; border-bottom: 1px solid var(--gray-border);
    margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.admin-sidebar-brand img { width: 32px; height: 32px; border-radius: 50%; }
.admin-sidebar-brand span { font-weight: 900; color: var(--white); font-size: 16px; }
.admin-nav { list-style: none; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; color: var(--gray-text); font-size: 14px; font-weight: 700;
    transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { color: var(--pink); background: rgba(255,107,157,0.1); }
.admin-nav a svg { width: 18px; height: 18px; fill: currentColor; }
.admin-main { flex: 1; margin-left: 240px; padding: 32px; }
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
}
.admin-header h1 { font-size: 28px; }
.admin-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 24px;
    margin-bottom: 24px;
}
.admin-stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; margin-bottom: 32px;
}
.admin-stat {
    background: var(--bg-card); border-radius: var(--radius); padding: 24px;
    border-left: 4px solid var(--pink);
}
.admin-stat-label { font-size: 13px; color: var(--gray-muted); margin-bottom: 8px; font-weight: 700; }
.admin-stat-value { font-size: 28px; font-weight: 900; color: var(--white); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left; padding: 12px 16px; font-size: 13px; color: var(--gray-muted);
    border-bottom: 2px solid var(--gray-border); font-weight: 700;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid rgba(58,58,90,0.4); font-size: 14px; }
.admin-table tr:hover { background: rgba(255,107,157,0.05); }
.admin-pagination {
    display: flex; gap: 8px; justify-content: center; margin-top: 24px;
}
.admin-pagination a, .admin-pagination span {
    padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 700;
}
.admin-pagination a { background: var(--bg-card); color: var(--gray-text); }
.admin-pagination a:hover { background: rgba(255,107,157,0.2); color: var(--pink); }
.admin-pagination span.current { background: var(--pink); color: var(--white); }

/* ========================================
   Popup / Modal
   ======================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 3000;
    display: none; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--bg-secondary); border-radius: var(--radius-lg);
    padding: 40px; max-width: 500px; width: 90%;
    border: 1px solid var(--gray-border); text-align: center;
    animation: fadeSlideIn 0.3s ease;
}

/* Upgrade Celebration Modal */
.modal-overlay.upgrade-overlay.show {
    animation: overlayFadeIn 0.3s ease;
}
.modal-overlay.upgrade-overlay .modal {
    animation: upgradeBounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,107,157,0.4);
    box-shadow: 0 0 60px rgba(255,107,157,0.2), 0 0 120px rgba(255,107,157,0.05);
    overflow: hidden;
    position: relative;
}
.modal-overlay.upgrade-overlay .modal::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--pink), #A855F7, #3B82F6, var(--pink));
    background-size: 300% 100%;
    animation: shimmerBar 2s linear infinite;
}
.upgrade-emoji {
    font-size: 100px; line-height: 1; margin-bottom: 24px;
    display: inline-block;
    animation: emojiCelebrate 0.8s ease 0.3s both;
}
.upgrade-sparkle {
    position: absolute; font-size: 24px; opacity: 0; pointer-events: none;
}
.upgrade-sparkle:nth-child(1) { top: 10%; left: 15%; animation: sparkleFloat 1.5s ease 0.4s both; }
.upgrade-sparkle:nth-child(2) { top: 15%; right: 15%; animation: sparkleFloat 1.5s ease 0.6s both; }
.upgrade-sparkle:nth-child(3) { top: 40%; left: 8%; animation: sparkleFloat 1.5s ease 0.8s both; }
.upgrade-sparkle:nth-child(4) { top: 40%; right: 8%; animation: sparkleFloat 1.5s ease 1.0s both; }
.upgrade-sparkle:nth-child(5) { bottom: 20%; left: 20%; animation: sparkleFloat 1.5s ease 0.5s both; }
.upgrade-sparkle:nth-child(6) { bottom: 20%; right: 20%; animation: sparkleFloat 1.5s ease 0.7s both; }

@keyframes overlayFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes upgradeBounceIn {
    0% { opacity: 0; transform: scale(0.3) translateY(40px); }
    50% { opacity: 1; transform: scale(1.05) translateY(-10px); }
    70% { transform: scale(0.95) translateY(5px); }
    100% { transform: scale(1) translateY(0); }
}
@keyframes emojiCelebrate {
    0% { transform: scale(0) rotate(-30deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    70% { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes sparkleFloat {
    0% { opacity: 0; transform: scale(0) translateY(10px); }
    30% { opacity: 1; transform: scale(1.2) translateY(-5px); }
    70% { opacity: 1; transform: scale(1) translateY(-15px); }
    100% { opacity: 0; transform: scale(0.5) translateY(-30px); }
}
@keyframes shimmerBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translateY(calc(100vh - 50px)) rotate(720deg) scale(0.3); }
}
/* Upgrade Announcement Bar */
.upgrade-bar {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0d0a1a 0%, #1a1030 50%, #0d0a1a 100%);
    padding: 18px 24px;
    animation: upgradeBarFadeIn 0.6s ease;
}
.upgrade-bar-glow {
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.06), rgba(245,158,11,0.12), rgba(245,158,11,0.06), transparent);
    animation: upgradeBarShine 3.5s ease-in-out infinite;
    pointer-events: none;
}
.upgrade-bar-border-top, .upgrade-bar-border-bottom {
    position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, #B8860B 15%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 85%, transparent 100%);
    background-size: 200% 100%;
    animation: goldBorderFlow 4s linear infinite;
}
.upgrade-bar-border-top { top: 0; }
.upgrade-bar-border-bottom { bottom: 0; }
.upgrade-bar-inner {
    display: flex; align-items: center; gap: 28px;
    max-width: 1100px; margin: 0 auto; position: relative; z-index: 1;
}
.upgrade-bar-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 900; white-space: nowrap;
    background: linear-gradient(90deg, #FFD700, #FFF8DC, #FFD700);
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldTextShimmer 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.4));
}
.upgrade-bar-title .emoji-float {
    -webkit-text-fill-color: initial; font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.5));
}
.upgrade-bar-list {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.upgrade-bar-item {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,215,0,0.04);
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: 999px; padding: 6px 16px 6px 6px;
    animation: upgradeItemSlideIn 0.5s ease both;
}
.upgrade-bar-item:nth-child(2) { animation-delay: 0.15s; }
.upgrade-bar-item:nth-child(3) { animation-delay: 0.3s; }
.upgrade-bar-avatar {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid #FFD700;
}
.upgrade-bar-name {
    color: #fff; font-weight: 700; font-size: 14px;
}
.upgrade-bar-arrow {
    color: #FFD700; font-size: 14px; font-weight: 700;
}
.upgrade-bar-empty {
    color: rgba(255,215,0,0.55); font-size: 15px; font-style: italic; letter-spacing: 1px;
}
@keyframes upgradeBarFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes upgradeBarShine {
    0% { left: -100%; } 50% { left: 150%; } 100% { left: 150%; }
}
@keyframes goldBorderFlow {
    0% { background-position: 0% 0; } 100% { background-position: 200% 0; }
}
@keyframes goldTextShimmer {
    0%, 100% { background-position: 0% 50%; } 50% { background-position: 200% 50%; }
}
@keyframes upgradeItemSlideIn {
    from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); }
}

.modal h2 { margin-bottom: 16px; }
.modal p { color: var(--gray-text); margin-bottom: 24px; }

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-pink { color: var(--pink); }
.text-muted { color: var(--gray-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 16px; }
.gap-2 { gap: 8px; }
.hidden { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.category-card {
    background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); text-decoration: none; display: block;
    border: 1px solid transparent;
}
.category-card:hover { transform: translateY(-6px); border-color: rgba(255,107,157,0.3); box-shadow: var(--shadow-hover); }
.category-card-img { padding-top: 70%; position: relative; background: var(--bg-secondary); overflow: hidden; }
.category-card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.category-card:hover .category-card-img img { transform: scale(1.08); }
.category-card-name { padding: 16px; text-align: center; color: var(--white); font-weight: 700; font-size: 16px; }
.category-card-count { padding: 0 16px 16px; text-align: center; color: var(--gray-muted); font-size: 13px; }

/* Footer Legal */
.footer-legal {
    max-width: 1200px; margin: 24px auto 0; padding-top: 24px;
    border-top: 1px solid var(--gray-border);
}
.footer-legal h4 { color: var(--white); font-size: 14px; margin-bottom: 12px; font-weight: 900; }
.footer-legal p { color: var(--gray-muted); font-size: 12px; line-height: 1.7; margin-bottom: 6px; }

/* Upgrade modal */
.upgrade-confetti { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 3001; }

/* ========================================
   Enhanced Neon Effects
   ======================================== */
/* Neon text gradient utility */
.text-gradient {
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow card hover for category cards */
.category-card {
    border: 1px solid rgba(0,229,255,0.06);
}
.category-card:hover {
    border-color: rgba(0,229,255,0.2);
    box-shadow: 0 12px 40px rgba(0,229,255,0.1);
}

/* Neon news card */
.news-card { border: 1px solid rgba(178,75,243,0.06); }
.news-card:hover { border-color: rgba(178,75,243,0.3); box-shadow: 0 8px 30px rgba(178,75,243,0.12); }

/* Tier card neon borders */
.tier-card { border: 2px solid rgba(255,107,157,0.1); }
.tier-card:hover { border-color: rgba(0,229,255,0.3); box-shadow: 0 8px 30px rgba(0,229,255,0.1); }
.tier-card.current { border-color: var(--pink); box-shadow: 0 0 20px rgba(255,107,157,0.15); }

/* Checkout card */
.checkout-card { border: 1px solid rgba(255,107,157,0.08); }

/* Profile header gradient */
.profile-header {
    border: 1px solid rgba(255,107,157,0.1);
    background: linear-gradient(135deg, var(--bg-card), rgba(178,75,243,0.05));
}

/* Enhanced form focus glow */
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.15), 0 0 20px rgba(0,229,255,0.05);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gray-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* Selection color */
::selection { background: rgba(255,107,157,0.3); color: var(--white); }

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
    display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(178,75,243,0.05));
    border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border);
    padding: 0;
}
.stat-item {
    display: flex; align-items: center; gap: 12px; padding: 20px 32px;
    border-right: 1px solid var(--gray-border);
}
.stat-item:last-child { border-right: none; }
.stat-item strong { font-size: 22px; color: var(--white); display: block; }
.stat-item span { font-size: 12px; color: var(--gray-muted); }

/* ========================================
   Showcase Videos
   ======================================== */
.showcase-videos {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto;
}
.showcase-video-card {
    position: relative; padding-bottom: 56.25%; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid rgba(0,229,255,0.15); box-shadow: 0 4px 30px rgba(0,229,255,0.08);
}
.showcase-video-card iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.decor-videos-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto;
}

/* ========================================
   Features Grid
   ======================================== */
/* Features grid (unused, kept for reference) */

/* ========================================
   Tools Grid
   ======================================== */
.tools-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.tool-card {
    background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(0,229,255,0.08); transition: var(--transition);
}
.tool-card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.3); box-shadow: var(--shadow-cyan); }
.tool-card-img { height: 160px; overflow: hidden; }
.tool-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tool-card-info { padding: 16px 20px; }
.tool-card-info h3 { font-size: 16px; margin-bottom: 6px; color: var(--white); }
.tool-card-info p { font-size: 13px; color: var(--gray-muted); line-height: 1.5; }

/* ========================================
   Section Backgrounds
   ======================================== */
.showcase-bg {
    background: linear-gradient(135deg, rgba(0,229,255,0.04) 0%, rgba(13,13,26,1) 50%, rgba(0,229,255,0.03) 100%);
    border-top: 1px solid rgba(0,229,255,0.08); border-bottom: 1px solid rgba(0,229,255,0.08);
}
.top3-bg {
    background: linear-gradient(135deg, rgba(255,215,0,0.04) 0%, rgba(13,13,26,1) 50%, rgba(255,215,0,0.03) 100%);
    border-top: 1px solid rgba(255,215,0,0.1); border-bottom: 1px solid rgba(255,215,0,0.1);
}
.decor-bg {
    background: linear-gradient(135deg, rgba(178,75,243,0.04) 0%, rgba(13,13,26,1) 50%, rgba(178,75,243,0.03) 100%);
    border-top: 1px solid rgba(178,75,243,0.08); border-bottom: 1px solid rgba(178,75,243,0.08);
}

/* ========================================
   Hover Reveal Product Cards
   ======================================== */
.product-card.hover-reveal .product-card-info {
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(13,13,26,0.95) 30%);
    padding: 40px 16px 16px;
}
.product-card.hover-reveal:hover .product-card-info {
    opacity: 1; transform: translateY(0);
}

/* ========================================
   Emoji Float Animation
   ======================================== */
.emoji-float {
    display: inline-block; animation: emojiFloat 2s ease-in-out infinite;
    font-size: 28px; vertical-align: middle; margin: 0 8px;
}
.emoji-float:nth-child(odd) { animation-delay: 0.3s; }
@keyframes emojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   Why Choose Us Grid
   ======================================== */
.why-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; max-width: 1200px; margin: 0 auto;
}
.why-card {
    background: rgba(26,26,53,0.7); backdrop-filter: blur(12px);
    border-radius: var(--radius-lg); padding: 36px 24px; text-align: center;
    border: 1px solid var(--gray-border); transition: var(--transition);
    position: relative; overflow: hidden;
}
.why-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gradient-primary); opacity: 0;
    transition: opacity 0.3s ease;
}
.why-card:hover {
    border-color: rgba(255,107,157,0.35);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(255,107,157,0.15);
}
.why-card:hover::before { opacity: 1; }
.why-card-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; transition: var(--transition);
}
.why-card-icon svg { width: 32px; height: 32px; }
.why-card-icon.icon-tech { background: rgba(0,229,255,0.12); color: var(--cyan); }
.why-card-icon.icon-safe { background: rgba(0,230,118,0.12); color: var(--success); }
.why-card-icon.icon-service { background: rgba(178,75,243,0.12); color: var(--purple); }
.why-card-icon.icon-pay { background: rgba(255,215,0,0.12); color: var(--gold); }
.why-card:hover .why-card-icon { transform: scale(1.1); }
.why-card h4 {
    font-size: 18px; font-weight: 700; color: var(--white);
    margin-bottom: 10px;
}
.why-card p {
    font-size: 14px; color: var(--gray-muted); line-height: 1.7;
}

/* ========================================
   Responsive additions
   ======================================== */
@media (max-width: 768px) {
    .stats-bar { flex-direction: column; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--gray-border); justify-content: center; padding: 12px 20px; }
    .stat-item:last-child { border-bottom: none; }
    .showcase-videos { grid-template-columns: 1fr; gap: 24px; }
    .tools-grid { grid-template-columns: 1fr; }
    .decor-videos-grid { grid-template-columns: 1fr; gap: 20px; }
    .section-inner { padding: 0 16px; }
    .section-full { padding: 40px 0; }
    .reviews-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-grid.home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .why-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .product-grid.home-grid { grid-template-columns: 1fr; }
}
