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

/* --- Root & Design Tokens --- */
:root {
    --bg-main: #060911;
    --bg-card: rgba(15, 23, 42, 0.45);
    --bg-header: rgba(10, 13, 20, 0.65);
    --bg-input: rgba(255, 255, 255, 0.03);
    
    /* Neon Colors */
    --neon-green: #00ff88;
    --neon-cyan: #00f2fe;
    --neon-purple: #b5179e;
    --neon-gold: #ffb703;
    --neon-orange: #fb8500;
    --neon-price: #ff6b35; /* สีส้มแสดราคาโปรโมชั่น ดึงดูดสายตา */
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #fb8500 0%, #ffb703 100%); /* สีปุ่มส้มทองดีลสุดพิเศษ */
    --grad-purple: linear-gradient(135deg, #7209b7 0%, #b5179e 100%);
    --grad-gold: linear-gradient(135deg, #fb8500 0%, #ffb703 100%);
    --grad-dark: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(6, 9, 17, 0.95) 100%);
    
    /* Border & Shadows */
    --border-glow: rgba(251, 133, 0, 0.25);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-glow: rgba(255, 255, 255, 0.15);
    --shadow-neon: 0 0 15px rgba(251, 133, 0, 0.2);
    --shadow-neon-orange: 0 0 20px rgba(251, 133, 0, 0.45);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
}

/* --- Global Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Sarabun', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-orange) var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Background Glows */
body::before, body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    opacity: 0.22;
    pointer-events: none;
}
body::before {
    top: 5%;
    left: -5%;
    background: radial-gradient(circle, var(--neon-orange) 0%, transparent 70%);
}
body::after {
    bottom: 15%;
    right: -5%;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
}

/* --- Typography Helpers --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}
.neon-text-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Navigation --- */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    text-shadow: 0 0 12px rgba(251, 133, 0, 0.3);
}
.logo span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-btn {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--glass-border);
}
.nav-btn-primary {
    background: var(--grad-primary);
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: var(--shadow-neon-orange);
}
.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(251, 133, 0, 0.5);
    color: var(--text-dark);
}

/* --- Hero Banner --- */
.hero-premium {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Background Glowing Ambient Blobs */
.hero-premium .blob {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: drift 10s infinite alternate ease-in-out;
}
.hero-premium .blob-cyan {
    background: var(--neon-cyan);
    top: 10%;
    left: 15%;
}
.hero-premium .blob-green {
    background: var(--neon-green);
    bottom: 10%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.15); }
}

/* Glassmorphic Container Box with laser running border */
.hero-container-box {
    position: relative;
    z-index: 2;
    background: transparent; /* ใช้ background-overlay ทับตัวด้านหลังแทนเพื่อความโปร่งแสง */
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden; /* ป้องกันไฟหมุนทะลักขอบ */
}

/* อนิเมชั่นลำแสงเลเซอร์วิ่งรอบขอบกล่อง (Animated Neon Laser Border) */
.hero-container-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 35%,
        var(--neon-cyan) 45%,
        var(--neon-green) 50%,
        var(--neon-cyan) 55%,
        transparent 65%,
        transparent 100%
    );
    animation: rotate-light 7s linear infinite;
    z-index: -2;
}

.hero-container-box::after {
    content: '';
    position: absolute;
    inset: 1.5px; /* ความหนาของเส้นขอบเลเซอร์ไฟวิ่ง */
    background: rgba(10, 15, 30, 0.93); /* ทับสีพื้นหลังกล่องทับตัวแสงไฟ */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 22.5px;
    z-index: -1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes rotate-light {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Live Badge */
.hero-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: dot-pulse 1.8s infinite;
}
@keyframes dot-pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--neon-green); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Title & typography */
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #fff;
}
.hero-title span {
    display: inline-block;
}
.gradient-text-green {
    background: linear-gradient(135deg, #00ff88 0%, #00bfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.25);
}
.glow-text-gold {
    color: var(--neon-gold);
    text-shadow: 0 0 20px rgba(255, 183, 3, 0.65);
    font-size: 1.1em;
    font-weight: 900;
    transform: scale(1.03);
}
.hero-title .subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    margin-top: 10px;
}

/* Description */
.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto 35px auto;
}

/* Features Mini Cards Grid */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.feature-mini-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
}
.feature-mini-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.feature-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--icon-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 
                inset 0 0 8px rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.feature-mini-card:hover .feature-icon-circle {
    background: var(--icon-color);
    color: #000;
    box-shadow: 0 0 15px var(--icon-color);
}
.feature-mini-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.feature-mini-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Coupon Pill */
.premium-coupon-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 0, 110, 0.06);
    border: 1px dashed rgba(255, 0, 110, 0.35);
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 1.05rem;
    color: #ff006e;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.2);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.08);
    animation: pulse-glow 2s infinite;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* --- Main Grid Layout --- */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* --- Sidebar Filters --- */
.filters-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    box-shadow: var(--glass-shadow);
}
.filter-section {
    margin-bottom: 24px;
}
.filter-section:last-child {
    margin-bottom: 0;
}
.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}
.search-wrapper {
    position: relative;
}
.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.search-input:focus {
    border-color: var(--neon-orange);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(251, 133, 0, 0.3);
}
.quick-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.quick-tag-btn {
    flex: 1 1 calc(50% - 5px);
    padding: 10px 14px;
    border-radius: 30px; /* ทรงแคปซูลโค้งมน */
    color: rgba(255, 255, 255, 0.7); /* ตัวอักษรจางเล็กน้อยในสถานะปิด */
    cursor: pointer;
    font-size: 0.88rem; /* ขนาดกะทัดรัด */
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02); /* พื้นหลังกระจกบางเฉียบ */
    border: 1px solid rgba(255, 255, 255, 0.08); /* ขอบบางโปร่งแสง */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
@media (max-width: 400px) {
    .quick-tag-btn {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
    .quick-tag-btn i {
        font-size: 0.9rem !important;
    }
}
.quick-tag-btn i {
    font-size: 0.95rem !important;
    transition: transform 0.2s ease;
}
.quick-tag-btn.active i {
    transform: scale(1.15); /* ขยายไอคอนเมื่อเปิดใช้งาน */
}
#btn-tag-gold {
    border-color: rgba(255, 183, 3, 0.15);
    background: rgba(255, 183, 3, 0.02);
}
#btn-tag-legend {
    border-color: rgba(0, 242, 254, 0.15);
    background: rgba(0, 242, 254, 0.02);
}
#btn-tag-available {
    flex: 1 1 100%; /* ปุ่มนี้ให้กว้างเต็มบรรทัดล่าง */
    border-color: rgba(0, 255, 136, 0.15);
    background: rgba(0, 255, 136, 0.02);
    font-size: 0.88rem;
}
.quick-tag-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}
.quick-tag-btn#btn-tag-gold:hover {
    border-color: rgba(255, 183, 3, 0.5);
    background: rgba(255, 183, 3, 0.06);
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.2);
}
.quick-tag-btn#btn-tag-legend:hover {
    border-color: rgba(0, 242, 254, 0.5);
    background: rgba(0, 242, 254, 0.06);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}
.quick-tag-btn#btn-tag-available:hover {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.06);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}
.quick-tag-btn.active#btn-tag-gold {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.22) 0%, rgba(251, 133, 0, 0.12) 100%) !important;
    border-color: var(--neon-gold) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.45) !important;
}
.quick-tag-btn.active#btn-tag-legend {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.22) 0%, rgba(0, 104, 255, 0.12) 100%) !important;
    border-color: var(--neon-cyan) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.45) !important;
}
.quick-tag-btn.active#btn-tag-available {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.22) 0%, rgba(0, 180, 90, 0.12) 100%) !important;
    border-color: var(--neon-green) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.45) !important;
}
.filter-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.filter-select:focus {
    border-color: var(--neon-orange);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(251, 133, 0, 0.3);
}
.filter-select option {
    background: #0f172a;
    color: var(--text-main);
}

/* Range Sliders */
.range-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.3s ease;
}
.range-container.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}
.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-input);
    outline: none;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: transform 0.1s;
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.slider:disabled {
    cursor: not-allowed;
}
.slider:disabled::-webkit-slider-thumb {
    background: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* --- Card Grid --- */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Account Card Styles */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}
.account-card:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 133, 0, 0.45);
    box-shadow: 0 12px 30px rgba(251, 133, 0, 0.15), var(--glass-shadow);
}

/* --- Featured Card & Flame Badge Styling --- */
.featured-card {
    border-color: rgba(255, 183, 3, 0.45);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.15), var(--glass-shadow);
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.04) 0%, rgba(15, 23, 42, 0.55) 100%);
    animation: goldGlowBorder 3s infinite alternate ease-in-out;
}
.featured-card:hover {
    border-color: var(--neon-gold) !important;
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.45), var(--glass-shadow) !important;
}
@keyframes goldGlowBorder {
    0% {
        border-color: rgba(255, 183, 3, 0.35);
        box-shadow: 0 0 15px rgba(255, 183, 3, 0.12), var(--glass-shadow);
    }
    100% {
        border-color: rgba(255, 183, 3, 0.65);
        box-shadow: 0 0 25px rgba(255, 183, 3, 0.3), var(--glass-shadow);
    }
}
.badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff0055 0%, #fb8500 50%, #ffb703 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.4);
    z-index: 5;
    animation: flamePulse 1.5s infinite ease-in-out;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes flamePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(251, 133, 0, 0.4);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 4px 22px rgba(251, 133, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(251, 133, 0, 0.4);
    }
}

.card-image-container {
    position: relative;
    height: 130px;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.account-card:hover .card-img {
    transform: scale(1.08);
}
.card-rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}
.card-rank-badge.challenger {
    border-color: var(--neon-gold);
    color: var(--neon-gold);
}
.card-rank-badge.worldclass {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-game-badge {
    color: var(--neon-green);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.card-title {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    height: auto;
}

/* Deep Info Icons Grid */
.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.spec-item span {
    font-weight: 600;
    color: var(--text-main);
}
.squad-value-large {
    grid-column: span 2;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
}
.squad-value-large span {
    font-size: 1.15rem;
    color: var(--neon-green);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* Card Action Area */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.price-container {
    display: flex;
    flex-direction: column;
}
.price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.price-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--neon-price);
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.25);
}
.price-value::after {
    content: ' ฿';
    font-size: 0.9rem;
    font-weight: 500;
}
.card-btn {
    background: var(--grad-primary);
    color: var(--text-dark);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-neon-orange);
}
.card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(251, 133, 0, 0.6);
}
.sold-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* --- Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--glass-shadow), 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}
.close-modal:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

.modal-body {
    padding: 30px;
}
.modal-squad-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s;
}
.modal-squad-img:hover {
    transform: scale(1.01);
}
.detail-thumbnails-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.detail-thumbnail {
    width: 90px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.02);
}
.detail-thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}
.detail-thumbnail.active {
    opacity: 1;
    border-color: var(--neon-price);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px) scale(1.05);
}
.modal-header-section {
    margin-bottom: 20px;
}
.modal-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 24px;
}
.modal-grid-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.modal-grid-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.modal-grid-item .value {
    font-size: 1.15rem;
    font-weight: 700;
}
.modal-grid-item.squad-bp .value {
    color: var(--neon-green);
}
.modal-grid-item.rank-value .value {
    color: var(--neon-gold);
}

.bonus-box {
    background: rgba(181, 23, 158, 0.05);
    border: 1px solid rgba(181, 23, 158, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.bonus-box h4 {
    color: #ff007f;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
}
.bonus-box p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Checkout Area */
.checkout-section {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-price {
    display: flex;
    flex-direction: column;
}
.modal-price span:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.modal-price span:last-child {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-price);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}
.checkout-btn {
    background: var(--grad-primary);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-neon-orange);
    transition: all 0.3s;
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(251, 133, 0, 0.6);
}
.checkout-btn-cart {
    background: transparent;
    border: 1.5px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-btn-cart:hover {
    transform: translateY(-2px);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
}

/* --- Checkout / Payment Stepper Screen --- */
.payment-screen {
    display: none; /* Controlled by JS */
}
.payment-screen.active {
    display: block;
}
.payment-header {
    text-align: center;
    margin-bottom: 24px;
}
.payment-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 24px;
}
.pay-option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
}
.pay-option-card:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.02);
}
.pay-option-card.selected {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.04);
}
.pay-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
}
.option-promptpay {
    background: #003764;
    color: #fff;
}
.option-truemoney {
    background: #f48020;
    color: #fff;
}
.option-truemoney-qr {
    background: #f48020;
    color: #fff;
}
.pay-option-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.pay-option-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* QR Flow Styles */
.qr-container {
    text-align: center;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    width: fit-content;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
#qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}
.qr-logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.qr-logo-row img {
    height: 25px;
}

/* Slip Upload / Simulate Panel */
.slip-upload-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.slip-upload-panel:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.01);
}
.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.slip-preview {
    max-height: 100px;
    margin: 10px auto 0;
    display: none;
    border-radius: 6px;
}

/* Loading overlay / success screen */
.payment-loader {
    display: none;
    text-align: center;
    padding: 30px 0;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-screen {
    display: none;
    text-align: center;
    padding: 10px 0;
}
.success-icon {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 15px;
}
.credentials-box {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    text-align: left;
    max-width: 450px;
}
.credentials-box h4 {
    color: var(--neon-green);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    padding-bottom: 6px;
    font-size: 0.95rem;
}
.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.credential-row:last-child {
    margin-bottom: 0;
}
.credential-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.credential-info span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-top: 2px;
}
.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}
.copy-btn:hover {
    background: var(--neon-green);
    color: var(--text-dark);
    border-color: var(--neon-green);
}

.action-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Admin Login Style --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
}
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--glass-shadow);
    text-align: center;
}
.login-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
}
.form-control:focus {
    border-color: var(--neon-orange);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(251, 133, 0, 0.3);
}
.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* --- Admin Panel Layout --- */
.admin-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--glass-shadow);
}
.stat-card .info {
    display: flex;
    flex-direction: column;
}
.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.stat-card .val {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 4px;
}
.stat-card.revenue .val {
    color: var(--neon-green);
}
.stat-card.revenue .val::after {
    content: ' ฿';
    font-size: 1.1rem;
    font-weight: 500;
}
.stat-card.inventory .val {
    color: var(--neon-cyan);
}
.stat-card.sales .val {
    color: var(--neon-purple);
}

/* Form & Table Panels */
.admin-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}
.admin-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    box-shadow: var(--glass-shadow);
}
.panel-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}
.table-wrapper {
    overflow-x: auto;
    max-height: 550px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}
.admin-table th, .admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
}
.admin-table th {
    background: #0d121f; /* Solid dark color matching the theme to hide text behind on scroll */
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
.table-img {
    width: 45px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}
.badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.badge-ready {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
}
.badge-sold {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.table-actions {
    display: flex;
    gap: 8px;
}
.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-edit {
    background: rgba(0, 242, 254, 0.15);
    color: var(--neon-cyan);
}
.btn-edit:hover {
    background: var(--neon-cyan);
    color: var(--text-dark);
}
.btn-delete {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4d4d;
}
.btn-delete:hover {
    background: #ff4d4d;
    color: var(--text-main);
}
.btn-delivery {
    background: rgba(255, 183, 3, 0.15);
    color: var(--neon-gold);
}
.btn-delivery:hover {
    background: var(--neon-gold);
    color: var(--text-dark);
}
.btn-sold-manual {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-green);
}
.btn-sold-manual:hover {
    background: var(--neon-green);
    color: var(--text-dark);
}
.btn-pin {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}
.btn-pin:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--neon-gold);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}
.btn-pin.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--neon-gold);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}
.btn-pin.active:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transform: scale(0.95);
}
.btn-pin:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Form layout tweaks */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(5, 7, 12, 0.5);
    margin-top: auto;
}

/* --- Responsive Layout Rules --- */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #website-qr-section {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .nav-container {
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-squad-img {
        height: 200px;
    }
    .checkout-section {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
}

/* --- Lightbox Overlay for Image Preview --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-out;
}
.lightbox-overlay.active img {
    transform: scale(1);
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 310;
}
.close-lightbox:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

/* cursor hover pointer on previewable images */
.card-img, .modal-squad-img {
    cursor: zoom-in;
}

@media print {
    body * {
        visibility: hidden;
    }
    #bill-modal, #bill-modal * {
        visibility: visible;
    }
    #bill-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: none !important;
        backdrop-filter: none !important;
    }
    #bill-modal .modal-content {
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #bill-modal .modal-content * {
        color: #000 !important;
        text-shadow: none !important;
        filter: none !important;
    }
    #bill-modal #btn-close-bill, #bill-modal #btn-print-bill {
        display: none !important;
    }
}

/* Coupon & Discount Pricing Styles */
.coupon-original-price {
    text-decoration: line-through;
    color: #94a3b8; /* สีเทาอ่อน */
    margin-right: 8px;
    font-size: 0.9em;
}

.coupon-discounted-price {
    color: var(--neon-price); /* สีส้มแสด */
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

/* --- Announcement Ticker Bar --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    height: 54px;
    background: rgba(255, 183, 3, 0.08);
    border-bottom: 1px solid rgba(255, 183, 3, 0.25);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    font-size: 1.45rem;
    backdrop-filter: blur(10px);
}
.ticker-title {
    background: var(--grad-gold);
    color: var(--text-dark);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 183, 3, 0.3);
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    z-index: 10;
}
.ticker-title i {
    margin-right: 6px;
    animation: shake 1.5s infinite;
}
.ticker {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.ticker__item {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    color: var(--neon-gold);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 183, 3, 0.3);
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-8deg); }
    20%, 40%, 60%, 80% { transform: rotate(8deg); }
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 183, 3, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 183, 3, 0);
    }
}

/* --- Admin Panel Menu Buttons --- */
.admin-menu-btn {
    width: 100%;
    border-radius: 12px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 15px 20px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.admin-menu-btn:hover {
    transform: translateX(6px) scale(1.015);
    box-shadow: 0 0 20px var(--glow-color, rgba(251, 133, 0, 0.3));
    border-color: var(--border-color, var(--neon-cyan));
    color: #fff;
}
.admin-menu-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s;
}
.admin-menu-btn:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* --- Shopping Cart Styles --- */
.floating-cart-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 0 20px rgba(251, 133, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cartGlowPulse 2.5s infinite ease-in-out;
}
.floating-cart-btn:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 30px rgba(251, 133, 0, 0.9);
    animation-play-state: paused;
}
@keyframes cartGlowPulse {
    0% {
        box-shadow: 0 0 15px rgba(251, 133, 0, 0.4), 0 0 0 0 rgba(251, 133, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 35px rgba(251, 133, 0, 0.85), 0 0 0 15px rgba(251, 133, 0, 0);
    }
    100% {
        box-shadow: 0 0 15px rgba(251, 133, 0, 0.4), 0 0 0 0 rgba(251, 133, 0, 0);
    }
}
.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
    border: 2px solid #07090e;
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active {
    right: 0;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}
.close-cart-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
}
.close-cart-btn:hover {
    color: #ff4d4d;
}

/* Cart Items */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cart-empty-msg {
    text-align: center;
    color: var(--text-muted);
    margin: auto 0;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px;
    position: relative;
    transition: border-color 0.2s;
}
.cart-item:hover {
    border-color: rgba(0, 242, 254, 0.3);
}
.cart-item-img {
    width: 65px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
.cart-item-bp {
    font-size: 0.72rem;
    color: var(--neon-green);
    margin-bottom: 2px;
}
.cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-price);
}
.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px 8px;
}
.remove-item-btn:hover {
    color: #ff4d4d;
}

/* Cart Footer */
.cart-summary {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.95);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.summary-row.total-row {
    font-size: 1.2rem;
    font-weight: 800;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 5px;
    color: #fff;
}
.cart-btn-group {
    display: flex;
    gap: 6px;
}
.card-btn-cart {
    background: rgba(0, 242, 254, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}
.card-btn-cart:hover {
    background: var(--neon-cyan);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    transform: scale(1.05);
}

.cart-coupon-container {
    margin: 10px 0 15px;
}
.cart-coupon-msg {
    font-size: 0.75rem;
    margin-top: 5px;
}
.cart-discount-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: inline-block;
    margin-top: 2px;
}

/* --- Custom Alert Modal --- */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-alert-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.custom-alert-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 90%;
    max-width: 440px;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.custom-alert-overlay.active .custom-alert-box {
    transform: scale(1) translateY(0);
}

/* Color thematic glow shadows and borders */
.custom-alert-box.success {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
}
.custom-alert-box.error {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.15);
}
.custom-alert-box.warning {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.15);
}
.custom-alert-box.info, .custom-alert-box.confirm {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.15);
}

/* Icons */
.custom-alert-icon {
    font-size: 3.2rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success .custom-alert-icon { color: #10b981; }
.error .custom-alert-icon { color: #ef4444; }
.warning .custom-alert-icon { color: #f59e0b; }
.info .custom-alert-icon, .confirm .custom-alert-icon { color: #3b82f6; }

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Typography */
.custom-alert-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    font-family: 'Outfit', 'Inter', 'Kanit', sans-serif;
}
.custom-alert-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(241, 245, 249, 0.85);
    margin-bottom: 25px;
    word-break: break-word;
    font-family: 'Inter', 'Kanit', sans-serif;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}
/* Scrollbar inside alert message */
.custom-alert-message::-webkit-scrollbar {
    width: 6px;
}
.custom-alert-message::-webkit-scrollbar-track {
    background: transparent;
}
.custom-alert-message::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Buttons */
.custom-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.custom-alert-buttons button {
    outline: none;
    border: none;
    font-family: 'Inter', 'Kanit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 100px;
}

.success .btn-alert-confirm {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.success .btn-alert-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.error .btn-alert-confirm {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.error .btn-alert-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.warning .btn-alert-confirm {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.warning .btn-alert-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.info .btn-alert-confirm, .confirm .btn-alert-confirm {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.info .btn-alert-confirm:hover, .confirm .btn-alert-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-alert-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9;
}
.btn-alert-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Shopee Redesign Layout Styles (Sleek Dark Theme)
   ========================================================================== */

/* Header & Navbar Styles */
.shopee-header {
    background-color: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.header-container {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}
.nav-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.76rem;
}
.nav-top-left a, .nav-top-right a, .nav-top-right button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    outline: none;
}
.nav-top-left a:hover, .nav-top-right a:hover, .nav-top-right button:hover {
    color: var(--neon-orange);
}
.nav-top-right a:last-child {
    margin-right: 0;
}
.nav-main-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 15px;
    gap: 20px;
}
.header-search-container {
    flex: 1;
    max-width: 600px;
}
.header-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2px 2px 2px 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-search-wrapper:focus-within {
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(251, 133, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}
.header-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    padding: 8px 0;
}
.header-search-btn {
    background: var(--grad-primary);
    border: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(251, 133, 0, 0.4);
}
.header-cart-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    padding: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-cart-btn:hover {
    color: var(--neon-orange);
    transform: scale(1.08);
}
.header-cart-badge {
    position: absolute;
    top: -3px;
    right: -4px;
    background: #ff4d4d;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-header);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Sidebar Custom Checkboxes */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    text-transform: uppercase;
}
.filter-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.checkbox-filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    color: rgba(248, 250, 252, 0.85);
    transition: color 0.2s;
}
.checkbox-container:hover {
    color: #fff;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: all 0.2s;
}
.checkbox-container:hover input ~ .checkmark {
    border-color: rgba(255, 255, 255, 0.2);
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--neon-orange);
    border-color: var(--neon-orange);
    box-shadow: 0 0 8px rgba(251, 133, 0, 0.45);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--text-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.price-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 8px 10px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s;
    -moz-appearance: textfield;
}
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-input:focus {
    border-color: var(--neon-orange);
    box-shadow: 0 0 10px rgba(251, 133, 0, 0.25);
}
.price-range-line {
    width: 12px;
    height: 1px;
    background: var(--text-muted);
    flex-shrink: 0;
}
.apply-filter-btn {
    width: 100%;
    background: var(--grad-primary);
    color: var(--text-dark);
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.apply-filter-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 0 10px rgba(251, 133, 0, 0.4);
}

/* Sorting Bar */
.sorting-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 15px;
    box-shadow: var(--glass-shadow);
}
.sorting-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.sorting-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sort-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}
.sort-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.sort-btn.active {
    background: var(--grad-primary);
    color: var(--text-dark);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(251, 133, 0, 0.35);
}

/* Shopee Mall Card Layout Details */
.shopee-mall-badge {
    background: #e11d48; /* Red Coral */
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-right: 6px;
    display: inline-block;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
    letter-spacing: 0.3px;
}
.shopee-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.shopee-orig-price {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.shopee-curr-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--neon-price);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.25);
}
.shopee-discount-badge {
    background: rgba(251, 133, 0, 0.12);
    color: var(--neon-orange);
    border: 1px solid rgba(251, 133, 0, 0.2);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.shopee-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: auto;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 6px;
}
.shopee-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    color: var(--neon-gold);
}
.shopee-location {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 4-Column Product Grid for Desktop overrides */
@media (min-width: 992px) {
    .accounts-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px !important;
    }
}
@media (max-width: 991px) and (min-width: 600px) {
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}
@media (max-width: 599px) {
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .accounts-grid .account-card {
        border-radius: 10px !important;
    }
    .accounts-grid .card-image-container {
        height: 100px !important;
    }
    .accounts-grid .card-content {
        padding: 8px !important;
    }
    .accounts-grid .card-title {
        font-size: 0.8rem !important;
        min-height: 34px !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }
    .accounts-grid .shopee-mall-badge {
        font-size: 0.65rem !important;
        padding: 1px 3px !important;
        margin-right: 4px !important;
    }
    .accounts-grid .bonus-tag {
        font-size: 0.65rem !important;
        padding: 2px 4px !important;
        margin-bottom: 4px !important;
    }
    .accounts-grid .card-content > div[style*="background: rgba(0, 255, 136, 0.02)"] {
        padding: 4px 6px !important;
        margin-bottom: 6px !important;
        font-size: 0.72rem !important;
    }
    .accounts-grid .card-content > div[style*="boxes-stacked"] {
        margin-bottom: 6px !important;
        font-size: 0.72rem !important;
    }
    .accounts-grid .shopee-price-row {
        gap: 4px !important;
        margin-bottom: 6px !important;
    }
    .accounts-grid .shopee-orig-price {
        font-size: 0.7rem !important;
    }
    .accounts-grid .shopee-curr-price {
        font-size: 0.95rem !important;
    }
    .accounts-grid .shopee-discount-badge {
        font-size: 0.65rem !important;
        padding: 1px 3px !important;
    }
    .accounts-grid .shopee-card-info-row {
        font-size: 0.7rem !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }
    .accounts-grid .shopee-location {
        font-size: 0.68rem !important;
    }
    .accounts-grid .card-btn {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }
    .accounts-grid .card-btn-cart {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }
    .shopee-header .nav-main-bar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .shopee-header .header-search-container {
        max-width: 100%;
    }
    .shopee-header .header-cart-container {
        align-self: flex-end;
        margin-top: -35px;
    }
    .sorting-bar {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .sorting-options {
        width: 100%;
        justify-content: space-between;
    }
    .sort-btn {
        flex: 1;
        text-align: center;
        padding: 6px 4px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Redesigned Shopee-style Product Details Modal Screen
   ========================================================================== */

#purchase-modal .modal-content {
    max-width: 1020px;
    width: 95%;
}

.shopee-detail-container {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 30px;
    padding: 10px 0;
}

.shopee-detail-left {
    max-width: 430px;
}

.shopee-detail-left .main-image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopee-detail-left .main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shopee-product-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.shopee-product-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    flex: 1;
}

.shopee-rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.shopee-price-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(251, 133, 0, 0.03) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.shopee-price-box .promo-banner {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-price);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.shopee-price-box .price-content {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.shopee-price-box .price-orig {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.shopee-price-box .price-disc {
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 107, 53, 0.15);
    color: var(--neon-price);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.25);
}

.shopee-price-box .price-final {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-price);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.45);
}

.shopee-price-box .price-final::after {
    content: ' ฿';
    font-size: 1.15rem;
    font-weight: 500;
}

.detail-row {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start;
    font-size: 0.88rem;
}

.detail-row .row-label {
    width: 140px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
    padding-top: 4px;
}

.voucher-tag {
    background: rgba(255, 183, 3, 0.12);
    border: 1px dashed var(--neon-gold);
    color: var(--neon-gold);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.combo-tag {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.spec-button-shopee {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    cursor: default;
    transition: all 0.2s;
}

.spec-button-shopee:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.shopee-bonus-content {
    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    outline: none;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.qty-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.qty-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.shopee-actions-row {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.shopee-btn-cart {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--neon-price);
    color: var(--neon-price);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    outline: none;
}

.shopee-btn-cart:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
}

.shopee-btn-buy {
    background: var(--grad-primary);
    color: var(--text-dark);
    border: none;
    padding: 12px 36px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    flex: 1;
    justify-content: center;
    box-shadow: var(--shadow-neon-orange);
    outline: none;
}

.shopee-btn-buy:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(251, 133, 0, 0.5);
}

@media (max-width: 900px) {
    .shopee-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shopee-detail-left {
        max-width: 100%;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .detail-row .row-label {
        width: 100%;
        margin-bottom: 6px;
    }
    
    .shopee-actions-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .shopee-btn-cart, .shopee-btn-buy {
        width: 100%;
        justify-content: center;
    }
}

/* Compact Mobile Filters */
@media (max-width: 900px) {
    .filters-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }
    
    .filters-sidebar .sidebar-header {
        grid-column: span 2;
        margin-bottom: 0 !important;
        font-size: 0.85rem !important;
    }
    
    .filters-sidebar .filter-section {
        margin-bottom: 0 !important;
    }
    
    /* BP Range Filter (spans full width if shown) */
    .filters-sidebar #filter-section-bp {
        grid-column: span 2;
        margin-top: 4px;
        border-top: 1px dashed rgba(255,255,255,0.08);
        padding-top: 8px;
    }
    
    /* Voucher discount checker */
    .filters-sidebar #storefront-coupon-section {
        grid-column: span 2;
        margin-top: 4px !important;
        border-top: 1px dashed rgba(255,255,255,0.08);
        padding-top: 8px;
    }
    
    /* Buttons */
    .filters-sidebar #btn-show-all {
        grid-column: span 1;
        margin-top: 6px !important;
        padding: 8px !important;
        font-size: 0.78rem !important;
    }
    
    .filters-sidebar #btn-clear-filters {
        grid-column: span 1;
        margin-top: 6px !important;
        padding: 8px !important;
        font-size: 0.78rem !important;
    }
    
    /* Adjust internal padding and fonts for checkboxes and price */
    .filters-sidebar .checkbox-filter-group {
        display: flex;
        flex-direction: column;
        gap: 6px !important;
    }
    
    .filters-sidebar .checkbox-container {
        font-size: 0.76rem !important;
        padding-left: 20px !important;
        margin-bottom: 0 !important;
    }
    
    .filters-sidebar .checkmark {
        height: 12px !important;
        width: 12px !important;
        top: 2px !important;
    }
    
    .filters-sidebar .checkmark::after {
        left: 3.5px !important;
        top: 0px !important;
        width: 3.5px !important;
        height: 7px !important;
    }
    
    .filters-sidebar .price-range-inputs {
        gap: 4px !important;
        margin-bottom: 6px !important;
    }
    
    .filters-sidebar .price-input {
        padding: 6px 8px !important;
        font-size: 0.76rem !important;
    }
    
    .filters-sidebar .price-range-line {
        width: 6px !important;
    }
    
    .filters-sidebar .apply-filter-btn {
        padding: 6px !important;
        font-size: 0.76rem !important;
    }
    
    .filters-sidebar .filter-section-title {
        font-size: 0.78rem !important;
        margin-bottom: 6px !important;
    }
    
    .filters-sidebar .search-input {
        padding: 6px 8px !important;
        font-size: 0.76rem !important;
    }
    
    .filters-sidebar #btn-storefront-check-coupon {
        font-size: 0.74rem !important;
        padding: 0 8px !important;
    }
}

/* Optimize mobile screen width usage and fix overflow */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 699px) {
    .container {
        padding: 0 8px !important;
    }
    
    /* Stack top utility bar to prevent overflow */
    .nav-top-bar {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 0 !important;
        height: auto !important;
    }
    .nav-top-left, .nav-top-right {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .nav-top-left a, .nav-top-right a, .nav-top-right button {
        margin-right: 0 !important;
        font-size: 0.72rem !important;
        padding: 2px 4px !important;
    }
    
    /* Ensure header nav-main-bar and search wrapper don't overflow */
    .shopee-header .nav-main-bar {
        padding: 8px 0 10px !important;
        gap: 8px !important;
    }
    .header-search-container {
        width: 100% !important;
    }
    .header-search-wrapper {
        padding: 2px 2px 2px 8px !important;
    }
    .header-search-input {
        font-size: 0.8rem !important;
        padding: 6px 0 !important;
    }
    .header-search-btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }
}

/* --- Admin Menu Notification Badge --- */
.menu-badge {
    background: #ff4757;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: auto;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: badge-pulse 2s infinite;
    display: inline-block;
}

@keyframes badge-pulse {
    0% { transform: scale(1); box-shadow: 0 0 8px rgba(255, 71, 87, 0.5); }
    50% { transform: scale(1.06); box-shadow: 0 0 15px rgba(255, 71, 87, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 8px rgba(255, 71, 87, 0.5); }
}




