/* assets/css/ui_main.css - Core UI variables, typography, dark mode */
:root {
  --primary: #ff6600; /* Shopee orange */
  --primary-dark: #e65500;
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --bg-light: #f5f7fa;
  --bg-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-dark: #212121;
  --font-base: 'Inter', sans-serif;
  --gold: #d4a853;
  --gold-light: #f5e6c8;
  --gold-dark: #b8942e;
}

/* Global reset already applied via reset.css */
body {
  font-family: var(--font-base);
  background: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

/* Dark mode */
.dark-mode body {
  background: var(--bg-dark);
  color: var(--text-light);
}

.dark-mode .header {
  background: rgba(26,26,26,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.dark-mode .nav-menu a {
  color: var(--text-light);
}

.dark-mode .search-form {
  background: #333;
  border-color: #555;
}

.dark-mode .product-card {
  background: rgba(26,26,26,0.8);
  color: var(--text-light);
}


/* Primary button used across site */
.btn-primary {
    background: var(--gradient-purple);
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background .2s, transform .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: var(--gradient-purple);
    transform: translateY(-2px);
}

/* =========================================
   GLOBAL MODERN BUTTONS & ICONS OVERRIDE
========================================= */
button, .btn, .btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-shop, .btn-ec-shop, .btn-custom {
    font-family: var(--font-base);
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-transform: capitalize;
}

/* Primary buttons */
.btn-primary, .btn-shop, .btn-ec-shop {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3) !important;
}
.btn-primary:hover, .btn-shop:hover, .btn-ec-shop:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.45) !important;
}
.btn-primary:active, .btn-shop:active, .btn-ec-shop:active {
    transform: translateY(1px) !important;
}

/* Success buttons */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}
.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45) !important;
}

/* Danger buttons */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}
.btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45) !important;
}

/* Icons styling */
i.bi, i.fa, i.fas, i.far, i.fa-solid {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Make icons inside buttons subtly pop on hover */
button:hover i.bi, button:hover i.fa, button:hover i.fas, 
.btn:hover i.bi, .btn:hover i.fa, .btn:hover i.fas {
}

/* Luxurious Sweep Glare Animation */
@keyframes shimmerVIP {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes sweepGlare {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}
.lux-badge-vip {
    position: absolute !important;
    overflow: hidden !important;
    top: 15px !important;
    left: 15px !important;
    background: linear-gradient(110deg, #f97316 20%, #ffedd5 40%, #ea580c 60%) !important;
    background-size: 200% auto !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    letter-spacing: 1px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.5) !important;
    text-transform: uppercase !important;
    animation: shimmerVIP 3s linear infinite !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    border: 1px solid rgba(255, 237, 213, 0.4) !important;
}
.lux-badge-vip i {
    color: #fef08a !important;
    text-shadow: 0 0 5px #fef08a !important;
    z-index: 2;
}
.lux-badge-vip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: sweepGlare 3s infinite;
    z-index: 1;
}

/* ==============================================
   ULTRA LUXURIOUS VIP CARD — PREMIUM REDESIGN
   ============================================== */

@keyframes cardBorderGlow {
    0%, 100% { border-color: rgba(212, 168, 83, 0.2); }
    50% { border-color: rgba(212, 168, 83, 0.6); }
}
@keyframes goldShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.ultra-lux-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 168, 83, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardBorderGlow 4s ease-in-out infinite;
    cursor: pointer !important;
    z-index: 50;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.ultra-lux-card * {
    cursor: pointer !important;
}
/* Gold shimmer sweep on hover */
.ultra-lux-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.08), transparent);
    z-index: 30;
    pointer-events: none;
    transition: none;
}
.ultra-lux-card:hover::before {
    animation: goldShine 0.8s ease forwards;
}

.ultra-lux-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 168, 83, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border-color: rgba(212, 168, 83, 0.5);
}
.ultra-lux-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(1) brightness(0.7);
    pointer-events: none;
    animation: none;
}
.ultra-lux-card.out-of-stock::before { display: none; }

/* Image Wrapper */
.ul-img-wrap {
    width: 100%;
    padding-top: 85%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0f1a 0%, #111827 100%);
}
.ul-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(12, 18, 32, 1), transparent);
    z-index: 5;
    pointer-events: none;
}
.ul-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
}
.ultra-lux-card:hover .ul-img-wrap img {
    transform: scale(1.1);
}

/* Action Buttons — Always Visible for Mobile */
.ul-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}
.ul-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212, 168, 83, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 83, 0.3);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
}
.ul-btn:hover {
    background: var(--gold);
    color: #0f172a;
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
}
.ul-btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: #0f172a;
}
.ul-btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.5);
}

/* Info Section */
.ul-info {
    padding: 16px 16px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(12,18,32,0.95), rgba(8,12,24,1));
    border-top: 1px solid rgba(212, 168, 83, 0.1);
    cursor: pointer !important;
    position: relative;
    z-index: 2;
}

.ul-info * {
    cursor: pointer !important;
}

.ul-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: 0.3px;
}
.ul-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.ul-price-final {
    font-size: 1.15rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fcd34d, var(--gold), #fcd34d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerVIP 4s linear infinite;
    letter-spacing: 0.5px;
}
.ul-price-old {
    font-size: 0.8rem;
    color: #475569;
    text-decoration: line-through;
}
.ul-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
}
.ul-sold {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Badges */
.ul-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 6px !important;
    border-radius: 4px !important; /* Uniform modern rounded rectangle */
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease !important;
}
.ul-badge-vip { 
    overflow: hidden !important;
    background: linear-gradient(135deg, #121212 0%, #262626 50%, #0c0c0c 100%) !important;
    color: #f5e6c8 !important;
    font-weight: 900 !important;
    border: 1px solid #d4a853 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.4), inset 0 0 8px rgba(212, 168, 83, 0.2) !important;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
    max-width: 95%;
    white-space: nowrap;
}
.ul-badge-vip i {
    color: #d4a853 !important;
    text-shadow: 0 0 5px rgba(212, 168, 83, 0.5) !important;
    z-index: 2;
}
.ul-badge-vip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: sweepGlare 3s infinite;
    z-index: 1;
}
.ul-badge-fs-biasa { 
    overflow: hidden !important;
    background: linear-gradient(135deg, #e11d48, #9f1239) !important; /* Deep crimson/ruby gradient */
    color: #fff !important;
    font-weight: 800 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4) !important;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
    max-width: 95%;
    white-space: nowrap;
    animation: pulseGlowFS 2s infinite ease-in-out !important;
}
.ul-badge-diskon { 
    background: linear-gradient(135deg, #0284c7, #0369a1) !important; /* Deep sapphire gradient */
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #e0f2fe !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3) !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
}
.ul-badge-terlaris { 
    overflow: hidden !important;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important; /* Deep emerald gradient */
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #ecfdf5 !important;
    box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25) !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
}
.ul-badge-terlaris::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: sweepGlare 3.5s infinite 1s;
    z-index: 1;
}
.ul-badge-out { 
    background: rgba(30, 30, 36, 0.85) !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    animation: none !important; 
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
}

/* Best Seller Ranks (TOP 1, 2, 3, other) Badges - Super Luxury & High Contrast */
.ul-badge-rank-1,
.m-badge-rank-1 {
    background: linear-gradient(135deg, #fff3c4 0%, #ffd700 45%, #d4af37 75%, #b8860b 100%) !important;
    color: #000000 !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.6) !important;
    font-weight: 900 !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.3px !important;
}
.ul-badge-rank-1 i,
.m-badge-rank-1 i {
    color: #000000 !important;
    margin-right: 3px;
}
.ul-badge-rank-2,
.m-badge-rank-2 {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 40%, #cbd5e1 75%, #94a3b8 100%) !important;
    color: #0f172a !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(226, 232, 240, 0.6) !important;
    font-weight: 900 !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.3px !important;
}
.ul-badge-rank-2 i,
.m-badge-rank-2 i {
    color: #0f172a !important;
    margin-right: 3px;
}
.ul-badge-rank-3,
.m-badge-rank-3 {
    background: linear-gradient(135deg, #ffedd5 0%, #fb923c 40%, #ea580c 75%, #9a3412 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.5) !important;
    font-weight: 900 !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.3px !important;
}
.ul-badge-rank-3 i,
.m-badge-rank-3 i {
    color: #ffffff !important;
    margin-right: 3px;
}
.ul-badge-rank-other,
.m-badge-rank-other {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 45%, #d97706 75%, #b45309 100%) !important;
    color: #000000 !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5) !important;
    font-weight: 900 !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.3px !important;
}
.ul-badge-rank-other i,
.m-badge-rank-other i {
    color: #000000 !important;
    margin-right: 3px;
}

/* Animations */
@keyframes pulseGlowFS {
    0% { box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4); }
    50% { box-shadow: 0 4px 22px rgba(225, 29, 72, 0.7); }
    100% { box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4); }
}

/* Out of Stock Overlay global luxury design */
.product-out-of-stock-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(10, 10, 12, 0.65) !important;
    backdrop-filter: grayscale(100%) blur(4px) !important;
    -webkit-backdrop-filter: grayscale(100%) blur(4px) !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
    border-radius: 14px !important;
}
.product-out-of-stock-overlay span,
.product-out-of-stock-badge {
    background: rgba(10, 10, 12, 0.92) !important;
    border: 1.5px solid #d4a853 !important;
    color: #d4a853 !important;
    padding: 5px 12px !important; /* Shrunk from 8px 18px */
    border-radius: 20px !important; /* Shrunk from 30px */
    font-weight: 900 !important;
    font-size: 9px !important;    /* Shrunk from 11px */
    letter-spacing: 1px !important; /* Shrunk from 2px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-transform: uppercase !important;
}

/* Price Discount Percentage Badge luxurious gold style */
.discount-pct-badge {
    background: rgba(212, 168, 83, 0.12) !important;
    color: #d4a853 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    border: 1px solid rgba(212, 168, 83, 0.25) !important;
}

/* Live Countdown display styling */
.timer-sep {
    margin: 0 3px !important;
    opacity: 0.6;
}
.timer-digits {
    font-family: Consolas, Monaco, monospace;
    font-weight: 800;
    color: #fcd34d !important; /* Premium gold countdown digits */
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(212, 168, 83, 0.2); }
    50% { box-shadow: 0 0 20px rgba(212, 168, 83, 0.5); }
    100% { box-shadow: 0 0 5px rgba(212, 168, 83, 0.2); }
}

/* Wishlist */
.ul-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(212, 168, 83, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    z-index: 20;
    cursor: pointer;
    border: 1px solid rgba(212, 168, 83, 0.25);
    transition: all 0.3s;
}
.ul-wishlist:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
}
.ul-stock-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(12, 18, 32, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gold-light);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 20;
    border: 1px solid rgba(212, 168, 83, 0.2);
    letter-spacing: 0.3px;
}

/* Progress Bar */
.ul-progress-wrap {
    width: 100%;
    height: 3px;
    background: rgba(212, 168, 83, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}
.ul-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold-dark));
    background-size: 200% 100%;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    animation: progressBarFlow 2s linear infinite;
}

.ul-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

/* ===============================================
   FLASH SALE POPUP NOTIFICATION - LUXURY STYLE
   =============================================== */
@keyframes popupSlideIn {
    0% { transform: translateY(30px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes popupSlideOut {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(30px) scale(0.9); opacity: 0; }
}
@keyframes firePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}
@keyframes confettiFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-60px) rotate(720deg); opacity: 0; }
}

.fs-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.fs-popup-overlay.closing {
    animation: popupSlideOut 0.3s ease forwards;
}

.fs-popup {
    background: linear-gradient(165deg, #0c1220, #111827, #0c1220);
    border: 2px solid rgba(212, 168, 83, 0.4);
    border-radius: 24px;
    padding: 35px 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(212, 168, 83, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
/* Decorative corner accents */
.fs-popup::before,
.fs-popup::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.fs-popup::before {
    top: -60px;
    right: -60px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.3), transparent);
}
.fs-popup::after {
    bottom: -60px;
    left: -60px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.2), transparent);
}

.fs-popup-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
}
.fs-popup-icon.starting {
    animation: firePulse 1s ease infinite;
}
.fs-popup-icon.ending {
    animation: urgentPulse 1.5s ease infinite;
    color: #ef4444;
}

.fs-popup-title {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fcd34d, var(--gold), #fcd34d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerVIP 3s linear infinite;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.fs-popup-title.ending-title {
    background: linear-gradient(135deg, #ef4444, #fca5a5, #ef4444);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fs-popup-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}
.fs-popup-desc strong {
    color: var(--gold-light);
}

.fs-popup-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}
.fs-popup-timer-box {
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 55px;
    text-align: center;
}
.fs-popup-timer-box .num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-light);
    display: block;
    line-height: 1;
}
.fs-popup-timer-box .label {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.fs-popup-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0f172a;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
}
.fs-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 168, 83, 0.5);
}

.fs-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 5;
    transition: all 0.3s;
}
.fs-popup-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Ending variant */
.fs-popup.ending-variant {
    border-color: rgba(239, 68, 68, 0.4);
}
.fs-popup.ending-variant::before {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3), transparent);
}
.fs-popup.ending-variant::after {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent);
}
.fs-popup.ending-variant .fs-popup-timer-box {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}
.fs-popup.ending-variant .fs-popup-timer-box .num {
    color: #fca5a5;
}
.fs-popup.ending-variant .fs-popup-cta {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ul-img-wrap { padding-top: 90%; }
    .ul-info { padding: 12px 12px 10px; }
    .ul-title { font-size: 0.85rem; }
    .ul-price-final { font-size: 1rem; }
    .ul-btn { width: 32px; height: 32px; font-size: 0.85rem; border-radius: 8px; }
    .ul-actions { bottom: 8px; right: 8px; gap: 6px; }
    .ul-badge { font-size: 0.65rem; padding: 4px 8px; top: 8px; left: 8px; }
    .ul-wishlist { width: 30px; height: 30px; top: 8px; right: 8px; }
    .ul-stock-tag { font-size: 0.65rem; padding: 3px 7px; }
    
    .fs-popup { padding: 25px 20px; }
    .fs-popup-title { font-size: 1.3rem; }
    .fs-popup-timer-box { padding: 8px 10px; min-width: 45px; }
    .fs-popup-timer-box .num { font-size: 1.4rem; }
}
