/* ==========================================================================
   CSS STYLING SYSTEM - KYYBO SHOP WEBSTORE
   Aesthetics: Slate Dark Mode, Sky Blue Accents, Glassmorphism, Micro-animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0f172a;          /* Slate 900 */
    --primary-dark: #070a13;     /* Deep Slate */
    --primary-light: #1e293b;    /* Slate 800 */
    --secondary: #0ea5e9;          /* Sky 500 */
    --secondary-rgb: 14, 165, 233;
    --secondary-hover: #0284c7;  /* Sky 600 */
    --accent: #38bdf8;           /* Sky 400 */
    --bg-main: #0b0f19;          /* Premium Dark Blue-Black */
    --card-bg: rgba(30, 41, 59, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;        /* Slate 50 */
    --text-muted: #94a3b8;       /* Slate 400 */
    --success: #10b981;          /* Emerald 500 */
    --danger: #ef4444;           /* Red 500 */
    --warning: #f59e0b;          /* Amber 500 */
    --font-sans: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

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

/* Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navbar */
.header {
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transform: translateZ(0);
    will-change: transform;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 2.25rem;
    object-fit: contain;
}

.logo span {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

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

.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--secondary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(var(--secondary-rgb), 0.4);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
}

.btn-select-product:disabled {
    background-color: #475569 !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--text-muted);
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav Backdrop Overlay */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Nav Menu - Modern Floating Pop-up Card */
.mobile-nav {
    display: none;
    position: fixed;
    top: calc(4.5rem + 10px);
    left: 12px;
    right: 12px;
    max-width: 440px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: 0.85rem;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(14, 165, 233, 0.15);
    z-index: 9999;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    transform-origin: top center;
    animation: mobileNavPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileNavPop {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.mobile-nav a i {
    width: 1.4rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.mobile-nav a:hover, .mobile-nav a.active {
    background-color: var(--primary-light);
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.25);
}

.mobile-nav a:hover i, .mobile-nav a.active i {
    color: var(--accent);
}

@media (max-width: 768px) {
    .mobile-nav {
        top: calc(3.75rem + 8px);
        left: 10px;
        right: 10px;
        max-height: calc(100vh - 4.5rem);
    }
}

@media (min-width: 769px) {
    .mobile-nav,
    .mobile-nav-backdrop {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 6rem 0;
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), var(--bg-main)), url('https://premify.store/assets/images/bg-pattern.svg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0) 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.search-box {
    position: relative;
    max-width: 36rem;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 1.25rem;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 1.15rem 1rem 1.15rem 3.25rem;
    background-color: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(var(--secondary-rgb), 0.25);
    background-color: rgba(30, 41, 59, 0.95);
}

/* Toolbar Section */
.toolbar-container {
    padding: 2.5rem 0 1rem 0;
    position: relative;
    z-index: 10;
}

.toolbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
}

.dropdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 250px;
}

.toolbar-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.dropdown-select:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.15);
}

.custom-dropdown.open .dropdown-select {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(var(--secondary-rgb), 0.25);
}

.dropdown-select .arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-select .arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background-color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 50;
    max-height: 250px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.dropdown-option:hover {
    background-color: var(--primary-light);
    color: #ffffff;
}

.dropdown-option.active {
    background-color: rgba(var(--secondary-rgb), 0.15);
    color: var(--accent);
    border-left: 3px solid var(--secondary);
    font-weight: 700;
}

/* Load More / Show All Section */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.btn-load-more {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 2rem;
    border-color: var(--border-color);
    background-color: rgba(30, 41, 59, 0.5);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.btn-load-more:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(var(--secondary-rgb), 0.35);
    transform: translateY(-2px);
}

/* Responsive Toolbar */
@media (max-width: 768px) {
    .toolbar-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .dropdown-wrapper {
        width: 100%;
    }
}

/* Products Catalog */
.catalog-section {
    padding: 2rem 0 6rem 0;
    flex-grow: 1;
}

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

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 300ms cubic-bezier(0.25, 1, 0.3, 1), 
                border-color 300ms cubic-bezier(0.25, 1, 0.3, 1), 
                box-shadow 300ms cubic-bezier(0.25, 1, 0.3, 1);
    position: relative;
    overflow: visible;
    content-visibility: auto;
    contain-intrinsic-size: 0 340px;
    contain: layout style;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--secondary-rgb), 0.7);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(var(--secondary-rgb), 0.25);
}

.badge-stock {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.badge-stock.empty {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--danger);
}

.badge-stock .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
    animation: pulse 1.5s infinite;
}

.badge-stock.empty .dot {
    background-color: var(--danger);
    animation: none;
}

.product-img-wrapper {
    background-color: rgba(15, 23, 42, 0.6);
    aspect-ratio: 1 / 1;
    border-radius: 0.85rem;
    overflow: visible;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

/* 3D Pop-up Logo Component Styles */
.logo-container-3d {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.logo-2d {
    position: absolute;
    width: 65%;
    height: 65%;
    object-fit: contain;
    transition: transform 550ms cubic-bezier(0.25, 1, 0.3, 1), 
                filter 550ms cubic-bezier(0.25, 1, 0.3, 1), 
                opacity 550ms cubic-bezier(0.25, 1, 0.3, 1);
    transform: translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    z-index: 2;
    transform-origin: center center;
}

.logo-3d {
    position: absolute;
    width: 65%;
    height: 65%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0px) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.9);
    transition: transform 550ms cubic-bezier(0.25, 1, 0.3, 1), 
                opacity 550ms cubic-bezier(0.25, 1, 0.3, 1),
                visibility 550ms cubic-bezier(0.25, 1, 0.3, 1),
                filter 550ms cubic-bezier(0.25, 1, 0.3, 1);
    transform-style: preserve-3d;
    z-index: 3;
    pointer-events: none;
}

/* Specific Category Logo Sizing Adjustments for Visual Consistency */
.netflix-logo .logo-2d {
    transform: translateZ(0) rotateX(0deg) rotateY(0deg) scale(0.65) !important;
}
.netflix-logo .logo-3d {
    transform: translateY(0px) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.58) !important;
}
.product-card:hover .netflix-logo .logo-3d,
.flash-sale-card:hover .netflix-logo .logo-3d,
.product-image-wrapper:hover .netflix-logo .logo-3d,
.product-card.touch-hover .netflix-logo .logo-3d,
.product-image-wrapper.touch-hover .netflix-logo .logo-3d,
.flash-sale-card.touch-hover .netflix-logo .logo-3d {
    transform: translateY(-40px) translateZ(80px) rotateX(18deg) rotateY(-12deg) rotateZ(4deg) scale(0.7) !important;
}

.duolingo-logo .logo-2d {
    transform: translateZ(0) rotateX(0deg) rotateY(0deg) scale(1.3) !important;
}
.duolingo-logo .logo-3d {
    transform: translateY(0px) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.17) !important;
}
.product-card:hover .duolingo-logo .logo-3d,
.flash-sale-card:hover .duolingo-logo .logo-3d,
.product-image-wrapper:hover .duolingo-logo .logo-3d,
.product-card.touch-hover .duolingo-logo .logo-3d,
.product-image-wrapper.touch-hover .duolingo-logo .logo-3d,
.flash-sale-card.touch-hover .duolingo-logo .logo-3d {
    transform: translateY(-40px) translateZ(80px) rotateX(18deg) rotateY(-12deg) rotateZ(4deg) scale(1.4) !important;
}

.logo-3d img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
}

/* Layer thickness elements for 3D logo */
.logo-3d img.layer-1 { transform: translateZ(1px); filter: brightness(0.5) saturate(0.8); }
.logo-3d img.layer-2 { transform: translateZ(2px); filter: brightness(0.65) saturate(0.9); }
.logo-3d img.layer-front { 
    transform: translateZ(4px); 
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.logo-floor-shadow {
    position: absolute;
    bottom: 8%;
    left: 15%;
    width: 70%;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 75%);
    opacity: 0.2;
    filter: blur(2px);
    transform: scale(0.8);
    transition: transform 550ms cubic-bezier(0.25, 1, 0.3, 1), 
                opacity 550ms cubic-bezier(0.25, 1, 0.3, 1),
                filter 550ms cubic-bezier(0.25, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}

/* Hover effects for product catalog card */
.product-card:hover .logo-2d,
.flash-sale-card:hover .logo-2d {
    transform: rotateX(70deg) translateY(20px) translateZ(-5px) scaleY(0.4) scaleX(1);
    filter: blur(3px) brightness(0.08) saturate(0);
    opacity: 0.35;
}

.product-card:hover .logo-3d,
.flash-sale-card:hover .logo-3d {
    opacity: 1;
    visibility: visible;
    transform: translateY(-40px) translateZ(80px) rotateX(18deg) rotateY(-12deg) rotateZ(4deg) scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(14, 165, 233, 0.35)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.25));
}

.product-card:hover .logo-floor-shadow,
.flash-sale-card:hover .logo-floor-shadow {
    opacity: 0.8;
    transform: scale(1.25);
    filter: blur(3px);
}

/* Hover effects for product detail page */
.product-image-wrapper:hover .logo-2d {
    transform: rotateX(70deg) translateY(20px) translateZ(-5px) scaleY(0.4) scaleX(1);
    filter: blur(3px) brightness(0.08) saturate(0);
    opacity: 0.35;
}

.product-image-wrapper:hover .logo-3d {
    opacity: 1;
    visibility: visible;
    transform: translateY(-40px) translateZ(80px) rotateX(18deg) rotateY(-12deg) rotateZ(4deg) scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(14, 165, 233, 0.35)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.25));
}

.product-image-wrapper:hover .logo-floor-shadow {
    opacity: 0.8;
    transform: scale(1.25);
    filter: blur(3px);
}

/* Touch active classes for mobile support */
.product-card.touch-hover .logo-2d,
.product-image-wrapper.touch-hover .logo-2d,
.flash-sale-card.touch-hover .logo-2d {
    transform: rotateX(70deg) translateY(20px) translateZ(-5px) scaleY(0.4) scaleX(1);
    filter: blur(3px) brightness(0.08) saturate(0);
    opacity: 0.35;
}

.product-card.touch-hover .logo-3d,
.product-image-wrapper.touch-hover .logo-3d,
.flash-sale-card.touch-hover .logo-3d {
    opacity: 1;
    visibility: visible;
    transform: translateY(-40px) translateZ(80px) rotateX(18deg) rotateY(-12deg) rotateZ(4deg) scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(14, 165, 233, 0.35)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.25));
}

.product-card.touch-hover .logo-floor-shadow,
.product-image-wrapper.touch-hover .logo-floor-shadow,
.flash-sale-card.touch-hover .logo-floor-shadow {
    opacity: 0.8;
    transform: scale(1.25);
    filter: blur(3px);
}

/* Prefers Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .logo-2d, .logo-3d, .logo-floor-shadow, .product-card {
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
    .logo-3d {
        display: none !important;
    }
}

.product-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5rem;
}

.product-sold-catalog {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-top: -0.25rem;
    margin-bottom: 0.25rem;
}

.product-footer {
    margin-top: 1.15rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.price-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.btn-select-product {
    width: 100%;
    padding: 0.65rem 0;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--primary);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 30rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-header {
    background-color: var(--primary-dark);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--secondary);
}

.btn-close-modal {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-modal:hover {
    color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.modal-body {
    padding: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

/* Modal Product Summary */
.checkout-summary {
    display: flex;
    gap: 1rem;
    background-color: var(--primary-dark);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.checkout-summary img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.checkout-summary-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-summary-info h4 {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.checkout-summary-info p {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-select, .form-input {
    width: 100%;
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 0.85rem 1.15rem;
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-select:focus, .form-input:focus {
    border-color: var(--secondary);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
    font-family: var(--font-sans);
}

/* Flex Row Inputs */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group-half {
    flex: 1;
}

.form-row .form-group-double {
    flex: 2;
}

/* Voucher Field Overlay */
.voucher-wrapper {
    position: relative;
}

.voucher-input {
    padding-right: 4.5rem !important;
}

.btn-apply-voucher {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-apply-voucher:hover {
    background-color: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.voucher-message {
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.voucher-message.success { color: var(--success); }
.voucher-message.error { color: var(--danger); }

/* Billing Table */
.billing-table {
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.billing-row span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.billing-row.discount span {
    color: var(--success);
}

.billing-row.total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.billing-row.total span {
    font-size: 0.9rem;
    color: var(--text-main);
}

.billing-row.total .total-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
}

.btn-checkout-submit {
    width: 100%;
    padding: 1.1rem 0;
    font-size: 1rem;
    border-radius: 0.85rem;
    margin-top: 1rem;
}

/* QRIS Payment Screen Overlay inside Modal */
.payment-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.payment-screen.active {
    display: flex;
}

.qris-badge {
    background-color: #ffffff;
    color: #0b0f19;
    padding: 0.35rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.qris-qr-container {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    width: 180px;
}

.qris-qr-container img {
    width: 100%;
    height: 100%;
}

.payment-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.payment-status-checker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.payment-status-checker i {
    animation: spin 1.5s linear infinite;
    color: var(--secondary);
}

.payment-success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 0;
}

.payment-success-screen.active {
    display: flex;
}

.success-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.success-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 20rem;
}

.btn-invoice-copy {
    width: 100%;
}

/* Floating Widgets */
.float-wa-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 90;
    transition: var(--transition-smooth);
    animation: bounce-loop 2s infinite;
}

.float-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* Toast Notification (Recent Purchases) */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1.15rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 22rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    z-index: 99;
    transition: var(--transition-smooth);
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.toast-body {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.toast-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.toast-time {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Footer styling */
.footer {
    background-color: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 20rem;
    line-height: 1.6;
}

.footer-links-col h5 {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col ul li {
    margin-bottom: 0.75rem;
}

.footer-links-col ul li a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-links-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-bottom-badges {
    display: flex;
    gap: 1.25rem;
}

.footer-bottom-badges span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Page: Cek Invoice Styles */
.invoice-page {
    padding: 4rem 0 6rem 0;
    flex-grow: 1;
}

.invoice-search-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 32rem;
    margin: 0 auto 2.5rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.invoice-search-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.invoice-search-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1.75rem;
}

.invoice-results {
    display: none;
    max-width: 36rem;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1.5rem;
}

.invoice-results.active {
    display: block;
}

.invoice-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 1.25rem;
}

.invoice-meta-item {
    display: flex;
    flex-direction: column;
}

.invoice-meta-item span.label {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.invoice-meta-item span.val {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.invoice-meta-item span.val.success {
    color: var(--success);
}

.invoice-credentials-box {
    margin-top: 1.5rem;
}

.invoice-credentials-box h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.invoice-textarea {
    width: 100%;
    height: 12rem;
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--accent);
    resize: none;
    outline: none;
    margin-bottom: 1.25rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce-loop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Media Queries */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger-btn {
        display: block;
    }

    /* Mobile Header Layout Enhancements */
    .navbar {
        height: 3.75rem;
    }

    .logo img {
        height: 1.8rem;
    }

    .logo span {
        font-size: 1.1rem;
    }

    /* Hide Dashboard/Login button on mobile header actions to prevent overlap */
    .nav-actions a[href="/dashboard"],
    .nav-actions a[href="/login"] {
        display: none !important;
    }

    .nav-actions {
        gap: 0.65rem;
    }

    /* Smaller button padding on mobile header actions */
    .nav-actions .btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
        border-radius: 0.6rem;
    }

    /* Form Rows Layout */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row .form-group-half,
    .form-row .form-group-double {
        width: 100%;
        flex: none;
    }

    /* Payment Method inside Checkout Modal (index.html inline style fallback) */
    #payment-method-group > div {
        grid-template-columns: 1fr !important;
    }

    /* Invoice Search & Details Adjustments */
    .invoice-search-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .invoice-meta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    .toast-notification {
        left: 1rem;
        right: auto;
        bottom: 5.5rem;
        max-width: 20rem;
        width: calc(100% - 2rem);
        padding: 0.6rem 0.8rem;
        gap: 0.75rem;
        border-radius: 0.85rem;
    }
    
    .toast-notification .toast-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.95rem;
    }
    
    .toast-notification .toast-title {
        font-size: 0.6rem;
    }
    
    .toast-notification .toast-text {
        font-size: 0.75rem;
    }
    
    .toast-notification .toast-time {
        font-size: 0.55rem;
        margin-top: 0.15rem;
    }
    
    .float-wa-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.5rem;
    }
    
    .modal-box {
        align-self: flex-end;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: 90vh;
    }
    
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
}

/* ==========================================================================
   CUSTOM DIALOG — Menggantikan browser alert() native
   ========================================================================== */
#kyy-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#kyy-dialog-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#kyy-dialog-box {
    background: linear-gradient(145deg, #0f1a2e, #0d1524);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 22rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.04) inset;
    overflow: hidden;
    transform: scale(0.88) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

#kyy-dialog-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 1.5rem 1.5rem 0 0;
}

#kyy-dialog-box.type-info::before    { background: linear-gradient(90deg, #0ea5e9, transparent, #38bdf8); }
#kyy-dialog-box.type-success::before { background: linear-gradient(90deg, #10b981, transparent, #34d399); }
#kyy-dialog-box.type-error::before   { background: linear-gradient(90deg, #ef4444, transparent, #f87171); }
#kyy-dialog-box.type-warning::before { background: linear-gradient(90deg, #f59e0b, transparent, #fbbf24); }

#kyy-dialog-overlay.show #kyy-dialog-box {
    transform: scale(1) translateY(0);
}

.kyy-dialog-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 0.75rem;
}

.kyy-dialog-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.type-info    .kyy-dialog-icon { background: rgba(var(--secondary-rgb),0.12); border: 1px solid rgba(var(--secondary-rgb),0.3); color: #38bdf8; }
.type-success .kyy-dialog-icon { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.type-error   .kyy-dialog-icon { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.type-warning .kyy-dialog-icon { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }

.kyy-dialog-body {
    padding: 0.5rem 1.75rem 1.5rem;
    text-align: center;
}

.kyy-dialog-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.kyy-dialog-message {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    font-weight: 500;
}

.kyy-dialog-footer {
    padding: 0.25rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.kyy-dialog-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    color: #fff;
}

.type-info    .kyy-dialog-btn.btn-ok { background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 6px 18px rgba(var(--secondary-rgb),0.4); }
.type-success .kyy-dialog-btn.btn-ok { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 18px rgba(16,185,129,0.4); }
.type-error   .kyy-dialog-btn.btn-ok { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 6px 18px rgba(239,68,68,0.4); }
.type-warning .kyy-dialog-btn.btn-ok { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 18px rgba(245,158,11,0.4); }

.kyy-dialog-btn.btn-ok:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.kyy-dialog-btn.btn-ok:active {
    transform: none;
}

/* Payment Method Selection Cards */
.payment-method-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    min-height: 70px;
}
.payment-method-card::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    transition: var(--transition-smooth);
}
.payment-method-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--secondary-rgb), 0.5);
}
.payment-method-card.active {
    background: rgba(var(--secondary-rgb), 0.12);
    border: 1px solid var(--secondary);
    box-shadow: 0 0 12px rgba(var(--secondary-rgb), 0.25);
}
.payment-method-card.active::after {
    border-color: var(--secondary);
    background: var(--secondary);
    box-shadow: 0 0 6px var(--secondary);
}

/* Flash Sale styling */
.badge-flash-sale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 10;
    letter-spacing: 0.05em;
    animation: flash-pulse 2s infinite ease-in-out;
}

@keyframes flash-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.15); box-shadow: 0 6px 16px rgba(239, 68, 68, 0.55); }
}

.product-card.flash-sale-active {
    border-color: rgba(239, 68, 68, 0.25);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.02) 0%, rgba(13, 21, 36, 0.5) 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 15px rgba(239, 68, 68, 0.03);
}

.original-price-strike {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.25rem;
}

.price-value.discounted {
    color: var(--accent);
    font-weight: 900;
}

.modal-price-original-strike {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.8em;
    margin-right: 8px;
}

.modal-price-discounted {
    color: var(--accent);
    font-weight: 800;
}

/* ==========================================================================
   STATISTICS SECTION - PREMIUM GLASSMORPHISM STYLE
   ========================================================================== */
.stats-section {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--primary-dark) 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(56, 189, 248, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 12px 25px -10px rgba(var(--secondary-rgb), 0.3);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.15) 0%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(var(--secondary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.50rem;
    color: var(--accent);
    flex-shrink: 0;
    z-index: 1;
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.25) 0%, rgba(56, 189, 248, 0.1) 100%);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.4);
}

.stat-info {
    z-index: 1;
}

.stat-info h3 {
    font-size: 2.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-info p {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

@media (max-width: 992px) {
    .stats-grid {
        gap: 1.25rem;
    }
    .stat-info h3 {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 1.75rem 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .stat-card {
        padding: 1.25rem 1.5rem;
    }
}

/* ==========================================================================
   PRODUCT VARIANTS POPUP TRIGGER LINK
   ========================================================================== */
.product-variants-link-wrapper {
    margin-top: 0.85rem;
    text-align: center;
}

.btn-variants-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    width: auto;
}

.btn-variants-link:hover {
    color: var(--accent);
    background-color: rgba(56, 189, 248, 0.06);
}

.variants-modal-list-wrapper {
    margin-top: 1.25rem;
}

.variant-list {
    list-style: none;
    padding: 0.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.variant-item {
    padding: 0.75rem;
    background-color: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: var(--transition-smooth);
    text-align: left;
}

.variant-item:hover {
    border-color: rgba(var(--secondary-rgb), 0.2);
    background-color: rgba(15, 23, 42, 0.6);
}

.variant-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.variant-item-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
}

.variant-item-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}

.variant-item-stock {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.35rem;
    margin-bottom: 0.4rem;
}

.variant-item-stock.empty {
    color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.variant-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 0.4rem;
    margin-top: 0.25rem;
}

/* Mobile Optimization - 2 Columns Product Grid */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .product-card {
        padding: 0.85rem !important;
        border-radius: 1rem !important;
    }
    .product-img-wrapper {
        margin-bottom: 0.75rem !important;
        border-radius: 0.65rem !important;
    }
    .product-title {
        font-size: 0.85rem !important;
        height: 2.2rem !important;
        margin-bottom: 0.25rem !important;
        -webkit-line-clamp: 2;
    }
    .product-sold-catalog {
        font-size: 0.65rem !important;
    }
    .product-footer {
        margin-top: 0.75rem !important;
        padding-top: 0.65rem !important;
    }
    .price-label {
        font-size: 0.58rem !important;
    }
    .price-value {
        font-size: 1.05rem !important;
        margin-bottom: 0.65rem !important;
    }
    .btn-select-product {
        padding: 0.5rem 0 !important;
        font-size: 0.8rem !important;
        border-radius: 0.6rem !important;
    }
    .btn-variants-link {
        font-size: 0.68rem !important;
        padding: 0.2rem 0.4rem !important;
        width: 100%;
        justify-content: center;
        display: flex !important;
    }
    .badge-stock {
        top: 1.25rem !important;
        right: 1.25rem !important;
        padding: 0.15rem 0.45rem !important;
        font-size: 0.62rem !important;
    }
    .badge-flash-sale {
        top: 0.75rem !important;
        left: 0.75rem !important;
        padding: 0.2rem 0.5rem !important;
        font-size: 0.62rem !important;
    }
}

/* ==========================================================================
   PRODUCT DETAIL & CHECKOUT PAGE STYLE
   ========================================================================== */
.product-page {
    padding: 3rem 0 6rem 0;
    flex-grow: 1;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

/* Left Column: Product Info Card */
.product-info-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-info-card .product-image-wrapper {
    background-color: rgba(15, 23, 42, 0.6);
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 340px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-info-card .product-image-wrapper img,
#product-detail-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}


.product-detail-title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.product-detail-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.product-detail-meta .meta-item {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.product-detail-desc-box {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.product-detail-desc-box h3 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.product-detail-desc-box .desc-content {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

.product-detail-desc-box .desc-content ol {
    list-style-type: decimal !important;
    margin-left: 20px !important;
    padding-left: 5px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.product-detail-desc-box .desc-content ul {
    list-style-type: disc !important;
    margin-left: 20px !important;
    padding-left: 5px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.product-detail-desc-box .desc-content li {
    display: list-item !important;
    margin-bottom: 4px !important;
}

.product-detail-desc-box .desc-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 8px 0;
}

.product-detail-desc-box .desc-content table {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 12px 0;
}

.product-detail-desc-box .desc-content pre,
.product-detail-desc-box .desc-content code {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 2px 4px;
}

/* Right Column: Checkout Steps */
.product-form-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: visible;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
}
.step-card:nth-child(1) { z-index: 10; }
.step-card:nth-child(2) { z-index: 9; }
.step-card:nth-child(3) { z-index: 8; }
.step-card:nth-child(4) { z-index: 7; }
.step-card:nth-child(5) { z-index: 6; }

.step-header {
    background-color: rgba(15, 23, 42, 0.4);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

.step-number {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.3);
    flex-shrink: 0;
}

.step-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.step-body {
    padding: 1.5rem;
}

/* Input layout with WhatsApp icon */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 1.15rem;
    font-size: 1.2rem;
    color: var(--success);
}

.input-icon-wrapper .form-input {
    padding-left: 3rem;
}

/* Step 2: Variant Selector Grid */
.variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.variant-card {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.15rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 6rem;
    position: relative;
    user-select: none;
}

.variant-card:hover {
    border-color: rgba(var(--secondary-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.variant-card.active {
    background: rgba(var(--secondary-rgb), 0.08);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.15);
}

.variant-card.active::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.variant-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    padding-right: 1.5rem; /* prevent overlap with checkmark */
    line-height: 1.35;
}

.variant-card-price-wrapper {
    display: flex;
    flex-direction: column;
}

.variant-card-price-wrapper .original-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.variant-card-price-wrapper .current-price {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--accent);
}

.variant-card.active .variant-card-price-wrapper .current-price {
    color: var(--success);
}

.variant-card-stock {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.variant-card.disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: none;
    background-color: rgba(30, 41, 59, 0.2);
}

.variant-desc-box {
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-color);
    border-radius: 0.85rem;
    padding: 0.9rem 1.15rem;
}

.variant-desc-content {
    font-size: 0.85rem;
    color: var(--danger);
    font-weight: 600;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Step 3: Payment Method Refinement */
.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-card {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    user-select: none;
}

.payment-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.payment-card.active {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

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

.payment-card .payment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-card .payment-info i {
    font-size: 1.4rem;
}

.payment-card .payment-info .icon-qris {
    color: var(--accent);
}

.payment-card .payment-info .icon-saldo {
    color: var(--success);
}

.payment-card .payment-text {
    display: flex;
    flex-direction: column;
}

.payment-card .payment-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.payment-card .payment-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.payment-card .payment-check {
    opacity: 0;
    color: var(--success);
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.payment-card.active .payment-check {
    opacity: 1;
}

.payment-card-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.6rem;
    margin-top: 0.25rem;
}

.payment-card.active .payment-card-price {
    color: var(--success);
}

/* Step 4: Qty Spinner & Voucher */
.qty-spinner {
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 0.25rem 0.5rem;
    max-width: 140px;
}

.qty-spinner .btn-qty {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    user-select: none;
}

.qty-spinner .btn-qty:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-spinner input {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.qty-spinner input::-webkit-outer-spin-button,
.qty-spinner input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.limit-info-text {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.4rem;
}

/* Responsive Grid columns */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-info-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .payment-method-grid {
        grid-template-columns: 1fr;
    }
    
    .variant-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    html body.theme-theme2 .variant-card,
    html body.theme-theme3 .variant-card,
    html body.theme-theme4 .variant-card,
    body.theme-theme2 .variant-card,
    body.theme-theme3 .variant-card,
    body.theme-theme4 .variant-card,
    .variant-card {
        padding: 0.75rem !important;
        min-height: 5.5rem !important;
    }
    
    .variant-card-title {
        font-size: 0.8rem !important;
        padding-right: 1.2rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    .variant-card-price-wrapper .current-price {
        font-size: 0.95rem !important;
    }
    
    .variant-card-warranty {
        font-size: 0.65rem !important;
        margin-top: 2px !important;
    }
    
    .variant-card-stock {
        font-size: 0.65rem !important;
        margin-top: 0.25rem !important;
    }
}

/* Country Selector Styles */
.country-select-trigger {
    transition: var(--transition-smooth);
}
.country-select-trigger:hover {
    border-color: rgba(var(--secondary-rgb), 0.4) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}
.country-dropdown-menu {
    border-color: rgba(255,255,255,0.08) !important;
    z-index: 9999 !important;
}
.country-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.65rem 1rem !important;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap !important;
}
.country-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.country-item-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.85rem !important;
    color: var(--text-main) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}
.country-item-right {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}
.country-list-scroll::-webkit-scrollbar {
    width: 6px;
}
.country-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.country-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE LOADING OVERLAY ===== */
#page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    visibility: visible;
}

#page-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loading-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 1rem;
    animation: loadingPulse 1.6s ease-in-out infinite;
}

.page-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(var(--secondary-rgb), 0.15);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spinRing 0.75s linear infinite;
}

.page-loading-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    animation: loadingTextBlink 1.6s ease-in-out infinite;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes loadingTextBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* Fade-in content after loading */
.product-page {
    animation: none;
}
.product-page.content-ready {
    animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TRANSACTION WARRANTY & REAL-TIME CHAT STYLING
   ========================================================================== */
.warranty-chat-container {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.warranty-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.chat-messages-area {
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.chat-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}

.chat-bubble.admin {
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--text-main);
    border-bottom-left-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--secondary);
    color: #ffffff;
    border-bottom-right-radius: 0.25rem;
    box-shadow: 0 4px 10px rgba(var(--secondary-rgb), 0.2);
}

.chat-bubble-time {
    display: block;
    font-size: 0.65rem;
    margin-top: 0.35rem;
    opacity: 0.7;
    text-align: right;
}

.chat-bubble img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 0.5rem;
    margin-bottom: 0.35rem;
    display: block;
    object-fit: contain;
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.chat-btn-attach {
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-btn-attach:hover {
    color: var(--accent);
    background-color: var(--primary-dark);
    border-color: var(--secondary);
}

.chat-input-field {
    flex: 1;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input-field:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 8px rgba(var(--secondary-rgb), 0.2);
}

.chat-btn-send {
    background: var(--secondary);
    border: none;
    color: #ffffff;
    padding: 0 1.25rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.chat-btn-send:hover {
    background-color: var(--secondary-hover);
}

.chat-attachment-preview-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--secondary-rgb), 0.1);
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.78rem;
}

.chat-attachment-preview-box img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

.chat-attachment-remove {
    cursor: pointer;
    color: var(--danger);
    font-weight: bold;
}

/* ==========================================================================
   FLASH SALE SECTION
   ========================================================================== */
.flash-sale-section {
    padding: 2.5rem 0 1rem 0;
    position: relative;
}

.flash-sale-container {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.1) 0%, rgba(30, 41, 59, 0.3) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--secondary-rgb), 0.2);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flash-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.flash-sale-title h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.025em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    margin: 0;
}

.flash-sale-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    font-family: monospace;
}

.flash-sale-timer i {
    color: var(--accent);
    font-size: 0.95rem;
}

.flash-sale-carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) rgba(15, 23, 42, 0.2);
}

.flash-sale-carousel::-webkit-scrollbar {
    height: 6px;
}

.flash-sale-carousel::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 10px;
}

.flash-sale-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.flash-sale-card {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.flash-sale-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--secondary-rgb), 0.35);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.fs-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--danger);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.fs-card-img-wrapper {
    background-color: rgba(15, 23, 42, 0.6);
    aspect-ratio: 1 / 1;
    border-radius: 0.85rem;
    overflow: visible;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}



.fs-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-card-prices {
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.fs-card-original {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.1rem;
}

.fs-card-sale {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
}

.fs-card-progress-container {
    margin-top: auto;
}

.fs-card-countdown-wrapper {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.65rem;
    display: inline-flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.fs-card-countdown-wrapper div {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #ef4444;
    font-weight: 700;
    font-size: 0.65rem;
    font-family: inherit;
}

.fs-card-stock-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.fs-card-stock-label span.sisa-pcs {
    color: var(--accent);
}

.fs-card-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.fs-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 10px;
}

/* Product Page Guide Styling */
#product-guide-section .guide-card {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
}

#product-guide-section .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: #000;
}

#product-guide-section .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#product-guide-section .video-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

#product-guide-section .guide-rich-content ul, #product-guide-section .guide-rich-content ol {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1rem;
}

#product-guide-section .guide-rich-content li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

#product-guide-section .terms-content li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    top: -0.1rem;
    color: #8b5cf6;
    font-size: 1.25rem;
    font-weight: bold;
}

#product-guide-section .warranty-content li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    top: -0.1rem;
    color: #10b981;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Custom CSS Counter overrides for public terms, privacy, guide, and product pages */
.terms-card,
.privacy-card,
.guide-rich-content,
.desc-content,
.terms-content {
    counter-reset: custom-ol-counter 0;
}

.terms-card ol,
.privacy-card ol,
.guide-rich-content ol,
.desc-content ol,
.terms-content ol {
    list-style-type: none !important;
    counter-reset: none !important;
    padding-left: 0 !important;
}

.terms-card ol > li:not([class*="ql-indent-"]),
.privacy-card ol > li:not([class*="ql-indent-"]),
.guide-rich-content ol > li:not([class*="ql-indent-"]),
.desc-content ol > li:not([class*="ql-indent-"]),
.terms-content ol > li:not([class*="ql-indent-"]) {
    counter-increment: custom-ol-counter !important;
    position: relative !important;
    padding-left: 1.5rem !important;
}

.terms-card ol > li:not([class*="ql-indent-"])::before,
.privacy-card ol > li:not([class*="ql-indent-"])::before,
.guide-rich-content ol > li:not([class*="ql-indent-"])::before,
.desc-content ol > li:not([class*="ql-indent-"])::before,
.terms-content ol > li:not([class*="ql-indent-"])::before {
    content: counter(custom-ol-counter, decimal) ". " !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: 700;
    color: #ffffff;
}

/* Indented list items styling on public pages (sub-items / nested lists) */
.terms-card li[class*="ql-indent-"],
.privacy-card li[class*="ql-indent-"],
.guide-rich-content li[class*="ql-indent-"],
.desc-content li[class*="ql-indent-"],
.terms-content li[class*="ql-indent-"] {
    list-style-type: none !important;
    position: relative !important;
}

.terms-card li.ql-indent-1,
.privacy-card li.ql-indent-1,
.guide-rich-content li.ql-indent-1,
.desc-content li.ql-indent-1,
.terms-content li.ql-indent-1 {
    padding-left: 2.5rem !important;
}

.terms-card li.ql-indent-1::before,
.privacy-card li.ql-indent-1::before,
.guide-rich-content li.ql-indent-1::before,
.desc-content li.ql-indent-1::before,
.terms-content li.ql-indent-1::before {
    content: "•" !important;
    position: absolute !important;
    left: 1.5rem !important;
    color: var(--text-muted);
}

.terms-card li.ql-indent-2,
.privacy-card li.ql-indent-2,
.guide-rich-content li.ql-indent-2,
.desc-content li.ql-indent-2,
.terms-content li.ql-indent-2 {
    padding-left: 3.5rem !important;
}

.terms-card li.ql-indent-2::before,
.privacy-card li.ql-indent-2::before,
.guide-rich-content li.ql-indent-2::before,
.desc-content li.ql-indent-2::before,
.terms-content li.ql-indent-2::before {
    content: "◦" !important;
    position: absolute !important;
    left: 2.5rem !important;
    color: var(--text-muted);
}

/* Quill Color & Highlight Preservations on Storefront */
.desc-content [style*="color"],
.terms-content [style*="color"],
.guide-rich-content [style*="color"],
.variant-desc-content [style*="color"] {
    -webkit-text-fill-color: currentcolor !important;
}

.ql-color-white { color: #ffffff !important; }
.ql-color-red { color: #e60000 !important; }
.ql-color-orange { color: #ff9900 !important; }
.ql-color-yellow { color: #ffff00 !important; }
.ql-color-green { color: #008a00 !important; }
.ql-color-blue { color: #0066cc !important; }
.ql-color-purple { color: #9933ff !important; }

.ql-bg-black { background-color: #000000 !important; }
.ql-bg-red { background-color: #e60000 !important; }
.ql-bg-orange { background-color: #ff9900 !important; }
.ql-bg-yellow { background-color: #ffff00 !important; color: #1e293b !important; }
.ql-bg-green { background-color: #008a00 !important; }
.ql-bg-blue { background-color: #0066cc !important; }
.ql-bg-purple { background-color: #9933ff !important; }



/* ==========================================================================
   TOP UP GAMES STYLES
   ========================================================================== */

/* Catalog Page */
.topup-catalog-section {
    padding: 3rem 0;
    min-height: 70vh;
}

.catalog-header-text {
    text-align: center;
    margin-bottom: 2.5rem;
}

.catalog-header-text h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.catalog-header-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

.search-filter-wrapper {
    max-width: 32rem;
    margin: 0 auto 3rem auto;
}

.search-box-container {
    position: relative;
    width: 100%;
}

.search-box-container .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.search-box-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.15);
}

.game-card-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.game-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.game-card:hover .game-card-img-wrapper img {
    transform: scale(1.08);
}

.game-card-info {
    padding: 1rem;
    text-align: center;
}

.game-card-info h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Detail Page */
.topup-detail-section {
    padding: 3rem 0;
}

.topup-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.game-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.game-detail-banner {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.game-info-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.game-desc-wrapper {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.guide-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 0.85rem;
}

.guide-box h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
}

.guide-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.topup-form-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.75rem;
}

.step-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.step-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.form-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.nominal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.nominal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.nominal-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.nominal-card.active {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.08);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.nominal-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
}

.nominal-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.nominal-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.nominal-card.active .nominal-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.payment-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.payment-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
}

.payment-card.active {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.08);
}

.payment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.payment-title {
    font-weight: 800;
    font-size: 0.95rem;
}

.payment-logo img {
    height: 1.25rem;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.wallet-icon {
    font-size: 1.25rem;
    color: var(--success);
}

.payment-fee-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group-row {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

.flex-1 {
    flex: 1;
}

.voucher-input-wrapper {
    display: flex;
    gap: 8px;
}

.btn-check-voucher {
    background: var(--accent);
    border: none;
    border-radius: 0.85rem;
    color: #fff;
    padding: 0 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-check-voucher:hover {
    filter: brightness(1.1);
}

.points-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 2.75rem;
}

.points-checkbox-wrapper input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.points-checkbox-wrapper label {
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.billing-summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.bill-row.discount-row {
    color: var(--danger);
}

.bill-row.total-row {
    border-top: 1px dashed rgba(255,255,255,0.08);
    padding-top: 0.75rem;
    color: #fff;
}

.highlight-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--accent);
}

.btn-submit-purchase {
    width: 100%;
    background: var(--accent);
    border: none;
    border-radius: 1rem;
    padding: 1rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45);
}

.confirmation-details-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.confirm-row span {
    color: var(--text-muted);
    font-weight: 600;
}

.confirm-row strong {
    color: #fff;
}

.confirm-row.total-row {
    border-top: 1px dashed rgba(255,255,255,0.08);
    padding-top: 0.75rem;
}

.confirm-modal-buttons {
    display: flex;
    gap: 10px;
}

@media (max-width: 992px) {
    .topup-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    .form-group-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   HERO REDESIGN & MASCOT ORBIT (GAMBAR 2)
   ========================================================================== */
.hero-redesign {
    position: relative;
    padding: 3.5rem 0 2.5rem 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.14) 0%, transparent 65%),
                var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.hero-glow-redesign {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 450px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 70%);
    pointer-events: none;
    filter: blur(60px);
}

.hero-container-redesign {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left-redesign {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
    margin: 0 auto;
}

.hero-headline {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.2rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.hero-benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-primary-redesign {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary-redesign:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.6);
    color: #ffffff !important;
}

.btn-outline-redesign {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-outline-redesign:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.hero-benefits {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-benefits {
        justify-content: center;
    }
}

.benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.benefit-pill i.text-cyan { color: #38bdf8; }
.benefit-pill i.text-blue { color: #60a5fa; }
.benefit-pill i.text-yellow { color: #fbbf24; }

/* Mascot & Orbit Right Column */
.hero-right-redesign {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 380px;
}

.mascot-orbit-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 576px) {
    .mascot-orbit-container {
        width: 300px;
        height: 300px;
        transform: scale(0.85);
    }
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.25);
    pointer-events: none;
}

.orbit-ring.ring-1 {
    width: 290px;
    height: 290px;
    transform: rotateX(60deg) rotateY(15deg);
}

.orbit-ring.ring-2 {
    width: 360px;
    height: 360px;
    transform: rotateX(65deg) rotateY(-25deg);
}

.mascot-wrapper {
    position: relative;
    z-index: 10;
    cursor: grab;
    user-select: none;
    animation: mascot-idle 3s ease-in-out infinite;
}

@keyframes mascot-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mascot-image {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(14, 165, 233, 0.35));
    pointer-events: none;
}

/* Floating Card Pills */
.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 12;
    transition: all 0.3s ease;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card:hover {
    border-color: var(--accent);
    transform: scale(1.08) !important;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

.floating-card .card-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card .card-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.pos-netflix { top: 12%; left: 15%; animation-delay: 0s; }
.pos-disney { top: 8%; right: 8%; animation-delay: 0.8s; }
.pos-chatgpt { top: 48%; left: 0%; animation-delay: 1.6s; }
.pos-spotify { top: 42%; right: -2%; animation-delay: 2.4s; }
.pos-youtube { bottom: 12%; left: 12%; animation-delay: 3.2s; }
.pos-capcut { bottom: 14%; right: 10%; animation-delay: 4s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==========================================================================
   STATISTIKA CARDS (GAMBAR 3)
   ========================================================================== */
.hero-stats-container {
    margin-top: 2.5rem;
    position: relative;
    z-index: 5;
}

.stats-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .stats-grid-redesign {
        grid-template-columns: 1fr;
    }
}

.stat-card-redesign {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    padding: 1.25rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.stat-card-redesign:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.stat-icon-redesign {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card-redesign:nth-child(2) .stat-icon-redesign {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: #22c55e;
}

.stat-card-redesign:nth-child(3) .stat-icon-redesign {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.25);
    color: #38bdf8;
}

.stat-info-redesign {
    display: flex;
    flex-direction: column;
}

.stat-info-redesign h3 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    font-family: var(--font-sans);
}

.stat-info-redesign p {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0 0 0;
}

/* ==========================================================================
   FLASH SALE REDESIGN - UPOINT.ID STYLE (GAMBAR 4)
   ========================================================================== */
.flash-sale-section {
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}

.flash-sale-container {
    background: #0f121d;
    background: linear-gradient(180deg, #131726 0%, #0d101a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: stretch;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

@media (max-width: 992px) {
    .flash-sale-container {
        grid-template-columns: 1fr;
    }
}

.flash-sale-left-promo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0.5rem;
}

.flash-sale-left-promo h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.flash-sale-left-promo p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.flash-sale-nav-buttons {
    display: flex;
    gap: 10px;
}

.btn-fs-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-fs-nav:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
    transform: scale(1.05);
}

/* ==========================================================================
   HERO BANNER CAROUSEL SLIDER (DARI PENGATURAN ADMIN)
   ========================================================================== */
.hero-banner-container-wrap {
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.banner-carousel-container {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f121d;
    max-height: 420px;
}

.banner-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.banner-slide-item {
    min-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-slide-item img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .banner-carousel-container,
    .banner-slide-item img {
        max-height: 220px;
        border-radius: 1rem;
    }
}

.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.banner-nav-btn.prev { left: 16px; }
.banner-nav-btn.next { right: 16px; }

.banner-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.banner-dots-container {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    width: 24px;
    background: var(--accent);
}

/* ==========================================================================
   FLASH SALE REDESIGN - UPOINT.ID STYLE (GAMBAR 1 / UPOINT.ID)
   ========================================================================== */
.flash-sale-section {
    padding: 1.75rem 0;
    position: relative;
    z-index: 10;
}

.flash-sale-container {
    background: #0b0d13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    position: relative;
}

@media (max-width: 992px) {
    .flash-sale-container {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
}

.flash-sale-left-promo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
}

.flash-sale-left-promo h2 {
    font-size: 2.3rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    font-family: var(--font-sans);
}

.flash-sale-left-promo p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Carousel Outer Wrapper with Floating Nav Buttons */
.flash-sale-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.fs-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 18, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-nav-arrow.prev {
    left: 4px;
}

.fs-nav-arrow.next {
    right: 4px;
}

.fs-nav-arrow:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Flash Sale Carousel Grid (Smooth Continuous Marquee Looping) */
.flash-sale-carousel {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: marqueePromo 24s linear infinite;
    will-change: transform;
    padding: 0.5rem 0.25rem 0.75rem 0.25rem;
}

.flash-sale-carousel-wrapper:hover .flash-sale-carousel,
.flash-sale-carousel:hover {
    animation-play-state: paused;
}

@keyframes marqueePromo {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* UPOINT.ID Card Style with Rich Animations */
.flash-sale-card {
    background: radial-gradient(circle at 90% 10%, rgba(220, 38, 38, 0.28) 0%, transparent 55%), #141724;
    border: 1px solid rgba(255, 70, 86, 0.5);
    border-radius: 1.25rem;
    min-width: 260px;
    max-width: 260px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 0 1px rgba(255, 2, 2, 0.2), 0 0 20px rgba(255, 28, 70, 0.25);
    animation: upointCardPulse 3s ease-in-out infinite alternate;
    flex-shrink: 0;
}

@keyframes upointCardPulse {
    0% {
        border-color: rgba(255, 70, 86, 0.4);
        box-shadow: inset 0 0 0 1px rgba(255, 2, 2, 0.15), 0 0 15px rgba(255, 28, 70, 0.2);
    }
    100% {
        border-color: rgba(255, 70, 86, 0.85);
        box-shadow: inset 0 0 0 1px rgba(255, 2, 2, 0.35), 0 0 28px rgba(255, 28, 70, 0.45);
    }
}

/* Moving Light Sweep Shimmer Across Card */
.flash-sale-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    transform: skewX(-25deg);
    animation: cardLightSweep 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes cardLightSweep {
    0% { left: -150%; }
    35%, 100% { left: 200%; }
}

.flash-sale-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(255, 34, 68, 0.6), 0 0 35px rgba(255, 34, 68, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Logo Watermark in Card Background (UPOINT.ID style) */
.fs-card-watermark {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    overflow: hidden;
}

.fs-card-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.18;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
    transition: all 0.4s ease;
}

.flash-sale-card:hover .fs-card-watermark img {
    opacity: 0.32;
    transform: scale(1.1) rotate(4deg);
}

.fs-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ff262d 0%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 3px 12px rgba(255, 38, 45, 0.5);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(239, 68, 68, 0.45); }
    50% { transform: scale(1.05); box-shadow: 0 4px 18px rgba(239, 68, 68, 0.85); }
}

.fs-card-brand-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1.8rem;
    position: relative;
    z-index: 2;
}

.fs-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    position: relative;
    z-index: 2;
}

.fs-card-variant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2;
}

.fs-card-variant-pill .pill-price {
    color: #ef4444;
    font-weight: 800;
}

/* 4 Countdown Timer Boxes: Hari, Jam, Menit, Detik */
.fs-card-timer-section {
    background: rgba(8, 10, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 10px;
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

.fs-card-timer-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.fs-card-timer-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    text-align: center;
}

.timer-unit-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
}

.timer-unit-box .num {
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    font-family: monospace;
    line-height: 1;
}

.timer-unit-box .lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 600;
}

/* Bottom Sisa Kuota Capsule Bar */
.fs-card-quota-bar {
    background: rgba(8, 10, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    padding: 6px 12px;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.fs-card-quota-bar .quota-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fs-card-quota-bar .quota-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 9999px;
}

/* ==========================================================================
   CART SYSTEM - SLIDE DRAWER, FLOATING BUTTON & STEPPER
   ========================================================================== */

/* Navbar Cart Button */
.btn-cart-nav {
    position: relative;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 0.9rem;
    border-radius: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-cart-nav:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--accent);
    transform: translateY(-1px);
}

.cart-nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 19px;
    height: 19px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    border: 2px solid var(--primary-dark);
}

/* Floating Cart Action Button (FAB) - Stacked above WhatsApp button */
.cart-floating-btn {
    position: fixed;
    bottom: calc(2rem + 3.5rem + 12px);
    right: 2rem;
    z-index: 9998;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45), 0 0 0 1px rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-floating-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.6);
}

.cart-floating-btn .cart-nav-badge {
    top: -4px;
    right: -4px;
    font-size: 0.75rem;
    min-width: 22px;
    height: 22px;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.22); box-shadow: 0 0 25px rgba(14, 165, 233, 0.9); }
    100% { transform: scale(1); }
}

.cart-fab-pulse {
    animation: cartPulse 0.45s ease-out;
}

/* Cart Drawer Backdrop Overlay */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Slide-over Drawer Panel */
.cart-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 460px;
    height: 100vh;
    background: #0b1120;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer-panel.open {
    transform: translateX(0);
}

/* Drawer Header */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
}

.cart-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.cart-counter-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 6px;
    margin-top: 2px;
}

.btn-clear-cart {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-clear-cart:hover {
    background: rgba(239, 68, 68, 0.12);
}

.btn-close-drawer {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-close-drawer:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Drawer Body (Items list) */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cart Item Card */
.cart-item-card {
    display: flex;
    gap: 14px;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px;
    transition: var(--transition-smooth);
}

.cart-item-card:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(56, 189, 248, 0.25);
}

.cart-item-img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 2px;
}

.cart-item-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-cart-item {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-remove-cart-item:hover {
    color: #ef4444;
}

.cart-item-variant {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
}

.cart-item-po-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 1px 6px;
    border-radius: 4px;
}

.cart-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.cart-item-unit-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Stepper Component */
.cart-stepper {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.stepper-btn {
    background: none;
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.15s;
}

.stepper-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.stepper-val {
    width: 28px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.cart-item-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* Drawer Footer */
.cart-drawer-footer {
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.cart-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.cart-voucher-msg {
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 600;
}
.cart-voucher-msg.success { color: #10b981; }
.cart-voucher-msg.error { color: #ef4444; }
.cart-voucher-msg.info { color: #38bdf8; }

/* Payment Methods Grid */
.cart-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.cart-pay-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: var(--transition-smooth);
}

.cart-pay-card:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.3);
}

.cart-pay-card.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--secondary);
    color: #fff;
    box-shadow: 0 0 0 1px var(--secondary);
}

/* Bill Summary */
.cart-bill-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #94a3b8;
}

.cart-summary-line.total {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
    padding-top: 4px;
}

.btn-cart-submit {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 10px;
    font-weight: 800;
}

/* Add to Cart Button in Catalog Card */
.btn-card-add-cart {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--accent);
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-card-add-cart:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Quick Variant Selector in Add to Cart Modal */
.quick-cart-variant-item {
    padding: 0.75rem 1rem;
    background-color: rgba(15, 23, 42, 0.4);
    border: 1.5px solid var(--border-color);
    border-radius: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.quick-cart-variant-item:hover:not(.disabled) {
    border-color: rgba(14, 165, 233, 0.5);
    background-color: rgba(15, 23, 42, 0.7);
    transform: translateY(-1px);
}

.quick-cart-variant-item.active {
    border-color: var(--accent) !important;
    background-color: rgba(14, 165, 233, 0.12) !important;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.25);
}

.quick-cart-variant-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background-color: rgba(15, 23, 42, 0.2);
}

@media (max-width: 640px) {
    .cart-drawer-panel {
        max-width: 100%;
    }
    .cart-floating-btn {
        bottom: calc(1.5rem + 3.25rem + 10px);
        right: 1.5rem;
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.25rem;
    }
}





