/* =========================================
   Modern Reset & Variables
   ========================================= */
:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-glow: #8b5cf6;
    --secondary-glow: #ec4899;
    --accent: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    overflow-x: hidden;
}

/* Background Animated Blobs for Cyberpunk/Neon vibe */
body::before, body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 10s infinite alternate;
}
body::before {
    background: rgba(139, 92, 246, 0.3);
    top: -100px;
    left: -100px;
}
body::after {
    background: rgba(236, 72, 153, 0.3);
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--primary-glow); border-radius: 4px; }

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

/* =========================================
   Hero Header Section (Background Image ဖြင့်)
   ========================================= */
.hero-header {
    position: relative;
    text-align: center;
    padding: 80px 20px 60px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    
    /* နောက်ခံပုံထည့်ရန်အပိုင်း (shop_bg.jpg နေရာတွင် သင့်ပုံအမည် ပြောင်းနိုင်သည်) */
    /* စာသားများ ထင်ရှားစေရန် အပေါ်မှ အမည်းရောင် Gradient အလွှာတစ်ခု အုပ်ထားပါသည် */
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 1)), url('/static/shop_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.hero-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    
    /* NGA SHEIN SHOP စာသားကို Neon Gradient အရောင်ပေးခြင်း */
    background: linear-gradient(to right, #a855f7, #ec4899, #ff7675);
    -webkit-background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    
    /* စာသားအောက်တွင် အလင်းရောင် (Glow) ထည့်ခြင်း */
    filter: drop-shadow(0px 4px 10px rgba(236, 72, 153, 0.4));
}

.hero-header p {
    font-size: 1.15rem;
    color: #f8fafc;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); /* နောက်ခံပုံကြောင့် စာမပျောက်စေရန် */
}


/* =========================================
   Neon Broadcast Ticker
   ========================================= */
.broadcast-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.broadcast-icon {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-right: 15px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.scrolling-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-text {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    animation: marquee 30s linear infinite;
}

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

/* =========================================
   Filter Buttons (Pill Design)
   ========================================= */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

/* =========================================
   Glassmorphism Product Grid
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
}

.tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(to right, #f59e0b, #ef4444);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(239, 68, 68, 0.3);
    letter-spacing: 1px;
}

.logo-container {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.operator-logo {
    max-height: 100%;
    max-width: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.operator-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.package-type-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(#fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.package-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.package-note {
    font-size: 0.85rem;
    color: #fbbf24;
    margin-bottom: 15px;
    min-height: 20px;
    font-style: italic;
}

.price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.buy-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--accent);
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent);
    transition: all 0.4s;
    z-index: -1;
}

.buy-btn:hover::before { width: 100%; }
.buy-btn:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    color: #0f172a;
}

/* =========================================
   Floating Chat Widget (Customer Support Button)
   ========================================= */
.chat-toggle-btn {
    position: fixed;
    bottom: 40px;
    right: 105px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.chat-toggle-btn:hover { 
    transform: scale(1.05) translateY(-5px); 
}

.chat-toggle-btn i { 
    font-size: 24px; 
    animation: pulse 2s infinite; 
}

.chat-toggle-btn span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.chat-box {
    display: none;
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
    transform-origin: bottom right;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.chat-header {
    background: linear-gradient(to right, var(--primary-glow), var(--secondary-glow));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
}

.chat-header:active { cursor: grabbing; }

.chat-header h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header button {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chat-header button:hover { background: rgba(255,255,255,0.4); }

.chat-messages {
    list-style-type: none;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-messages li {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-customer {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    color: white;
    border-bottom-right-radius: 4px !important;
}

.msg-admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px !important;
}

.chat-input-area {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input-area input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: white;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: 0.3s;
}

.chat-input-area input[type="text"]:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.chat-input-area label {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
    padding: 8px;
}
.chat-input-area label:hover { color: var(--accent); }

.chat-send-btn {
    background: var(--primary-glow);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}
.chat-send-btn:hover { background: var(--secondary-glow); transform: scale(1.1); }
/* =========================================
   Mobile Responsive Fixes
   ========================================= */
@media (max-width: 768px) {
    .hero-header {
        padding: 50px 15px 30px;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }
    .hero-header h1 {
        font-size: 2.2rem;
    }
    /* Product Card များကို မျက်နှာပြင်အပြည့်ဖြစ်စေရန် */
    .grid-container {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 0 10px 80px;
    }
    /* Customer Support ခလုတ် နေရာချထားမှု ပြင်ဆင်ရန် */
    .chat-toggle-btn {
        right: 20px; 
        bottom: 20px;
        padding: 10px 15px;
    }
    /* Chat Box ကို ဖုန်းနှင့် အံဝင်ခွင်ကျဖြစ်စေရန် */
    .chat-box {
        width: 90%; 
        right: 5%;
        bottom: 80px;
    }
    .filters {
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

