/* ========================================= */
/* 1. GLOBAL RESET & BASE STYLES */
/* ========================================= */

* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #23033F; /* Global Background Color */
    color: #f4f4f9; /* Global Text Color */
    line-height: 1.6;
}

/* 💡 Content Area Container (Bottom Nav အတွက် နေရာချန်ရန်) */
#main-content {
    padding-bottom: 80px; 
    padding-top: 10px; /* အပေါ်မှာ နည်းနည်း နေရာချန်ရန် */
    max-width: 1200px;
    margin: 0 auto; /* PC မျက်နှာပြင်တွင် အလယ်ချရန် */
}

h2 {
    padding: 15px 15px 10px 15px;
    font-size: 20px;
    color: #FFC107; /* Title Color */
    /* border-bottom ကို ဖယ်ပြီး app-grid ထိပ်မှာ စည်းမျဉ်းဆွဲရန် */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

h2 i {
    margin-right: 8px;
}

a {
    text-decoration: none; 
    color: inherit;
}


/* ========================================= */
/* 2. TAB CONTENT MANAGEMENT (Home Content) */
/* ========================================= */

/* Home Content တွေက index.html ထဲမှာ တိုက်ရိုက်ရှိနေပါမည် */
/* Home content အတွက် padding ကို h2 က ပေးထားပြီး ဖြစ်သည် */


/* ========================================= */
/* 3. CARD VIEW STYLING & GRID MANAGEMENT (App List) */
/* ========================================= */

.app-grid {
    display: grid;
    /* Mobile/Default တွင် 2 Column ကို တိုက်ရိုက်သတ်မှတ်ပါ */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    padding: 0 15px 20px 15px; /* ဘေးဘောင်နှင့် အောက်ခြေ padding */
}

/* Mobile Screens (Small) */
@media (min-width: 480px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 Column စတင်ပါ */
    }
}

/* Tablet Screens */
@media (min-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(4, 1fr); 
        gap: 20px;
    }
}

/* Desktop Screens */
@media (min-width: 1000px) {
    .app-grid {
        grid-template-columns: repeat(5, 1fr); 
    }
}


/* 3.1. INDIVIDUAL CARD & ICON STYLING (App List အတွက်) */

.app-card {
    background-color: #2F0359; 
    border-radius: 12px; 
    padding: 10px; 
    height: 220px; /* Card အမြင့်သတ်မှတ်ခြင်း */
    
    display: flex;
    flex-direction: column; 
    align-items: center; 
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); 
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden; 
    color: #ffffff;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 193, 7, 0.3); 
}

.app-icon {
    width: 90px;
    height: 90px;
    border-radius: 20%; 
    object-fit: cover; 
    margin-bottom: 10px; 
    flex-shrink: 0; 
}

.app-name {
    font-size: 14px; 
    font-weight: 700;
    color: #ffffff; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin-bottom: 8px; 
    padding: 0 5px; 
    flex-grow: 1; 
}

/* Download Button (App Card အတွင်းရှိ) */
.download-btn {
    font-size: 13px; 
    color: #ffffff; 
    font-weight: bold;
    text-align: center;
    width: 100%; 
    padding: 5px 8px;
    border-radius: 4px;
    margin-top: auto; /* အောက်ဆုံးသို့ ကပ်စေရန် */
    
    background-color: #159E49;
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color:#2F0359; 
    border: 1px solid white;
}


/* ========================================= */
/* 4. BOTTOM NAVIGATION BAR */
/* ========================================= */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #3E0D8C; 
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4); 
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff; 
    font-size: 10px;
    padding: 5px;
    flex: 1; 
}
.nav-item i {
    font-size: 22px; 
    margin-bottom: 2px;
    transition: transform 0.2s ease-out; 
    transform: scale(1);
}
.nav-item.active {
    color: #FFC107; 
}
.nav-item.active i {
    transform: scale(1.3); 
}
.nav-item:hover i {
    transform: scale(1.1);
}


/* ========================================= */
/* 5. SLIDER STYLES (Home Tab အတွက်) */
/* ========================================= */

.slider-container {
    max-width: 600px;
    position: relative;
    margin: auto;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px; /* ပုံစံလှပစေရန် */
}

.mySlides { 
    display: none; 
}
.mySlides img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 8px;
}
.prev, .next { 
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    width: 40px; 
    height: 40px; 
    line-height: 40px; 
    padding: 0; 
    margin-top: -20px; 
    color: white; 
    font-weight: bold; 
    font-size: 14px; 
    text-align: center; 
    transition: 0.6s ease; 
    user-select: none; 
    border-radius: 50%; 
    background-color: rgba(0,0,0,0.5); 
}
.next { 
    right: 15px; /* ဘေးကပ်ရန် နည်းနည်း ရွှေ့သည် */
}
.prev { 
    left: 15px; /* ဘေးကပ်ရန် နည်းနည်း ရွှေ့သည် */
}
.prev:hover, .next:hover { 
    background-color: rgba(0,0,0,0.8); 
}

/* Dots တွေကို Home Tab မှာ JS က မသုံးထားလို့ ဖြုတ်ထားပါတယ် */
/* .dot { ... } */

.fade { 
    animation-name: fade; 
    animation-duration: 1.5s; 
}
@keyframes fade { 
    from {opacity: .4} 
    to {opacity: 1} 
}



/* 6. SHOP CARD STYLES (UC/VPN Tab များအတွက် - Global မှာ ထားပါမည်) */
/* =============================================== */
/* ... လက်ရှိ UC Card Styles ... */


.uc-card { 
    /* App Card နှင့်တူသော အခြေခံစတိုင်များ */
    background-color: #2F0359; 
    border-radius: 12px; 
    padding: 10px; 
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 220px; /* App Card နဲ့ အမြင့် ချိန်ညှိထားသည် */
    transition: transform 0.2s, box-shadow 0.2s;
}

.uc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 193, 7, 0.3); 
}

.uc-card .app-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 8px;
    border-radius: 20%; 
}

.uc-card .uc-amount {
    font-size: 1.1em;
    font-weight: bold;
    color: #00bcd4; /* UC/VPN Package နာမည်အရောင် */
    margin-top: 5px;
}

.uc-card .uc-price {
    font-size: 1.2em;
    color: #FFC107; /* ဈေးနှုန်းအရောင် */
    margin-top: 5px;
    padding-bottom: 5px;
    flex-grow: 1; /* အောက်ဆုံးသို့ တွန်းပို့ရန် */
}
.package-header {
    font-size: 1.2rem;
    color: #ffc107; 
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
    text-align: center; 
}

/* 6.1. DIAMOND CARD STYLES (UC Card ကို အခြေခံ၍) */
.dia-card {
    /* UC-Card နဲ့ ပုံစံတူအောင် ရည်ညွှန်းလိုက်သည် */
    background-color: #2F0359;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 220px; 
    transition: transform 0.2s, box-shadow 0.2s;
}

.dia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 193, 7, 0.3);
}

.dia-card .app-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 8px;
    border-radius: 20%;
}

.dia-card .dia-price {
    font-size: 1.1em;
    color: #FFC107; /* ဈေးနှုန်းအရောင်ကို UC နဲ့ တူအောင် ထားသည် */
    margin-top: 5px;
    padding-bottom: 5px;
    flex-grow: 1; /* အောက်ဆုံးသို့ တွန်းပို့ရန် */
}
/* =============================================== */
/* 7. SHOP BANNER STYLES */
/* =============================================== */

.banner-container {
    padding: 0 15px 15px 15px; 
    margin-bottom: 5px; 
}

.uc-banner {
    width: 100%; 
    height: auto;
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
    display: block;
}

@media (min-width: 768px) {
    .uc-banner {
        max-width: 900px; 
        margin: 0 auto;
    }
    .banner-container {
        text-align: center;
    }
}


/* ======================================= */
/* 8. MODAL STYLES (Dialog Box) */
/* ======================================= */

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
}

.modal.open {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}

.modal-content {
    background-color: #2F0359; 
    padding: 20px 20px 25px 20px;
    border-radius: 12px;
    width: 90%; 
    max-width: 500px; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.9);
    text-align: center;
    color: #f4f4f9;
    position: relative; 
    z-index: 100;
}

.close-btn {
    position: absolute;
    top: -25px; 
    right: -10px;
    color: #FFC107;
    background-color: #2F0359; 
    border: 3px solid #FFC107; 
    border-radius: 50%;
    display: flex; 
    align-items: center;
    justify-content: center;
    font-size: 24px; 
    font-weight: bold;
    width: 40px; 
    height: 40px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.2s;
    z-index: 1001; 
}
.dialog-card-container {
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.info-card {
    background-color: #34065f; 
    border-radius: 10px;
    padding: 20px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 380px;
    text-align: center;
}
.info-card p {
    font-size: 1.1em;
    margin: 5px 0; 
    color: #ffffff;
}
.info-card strong {
    color: #FFC107; 
    font-size: 1.4em; 
    font-weight: bold;
    display: block; 
    margin-top: 10px; 
}
hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 20px 0;
}
#buy-now-btn {
    background-color: #2ea100; 
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 50px; 
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    width: 90%; 
    max-width: 300px;
    display: block; 
    margin: 25px auto 0 auto;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    transition: all 0.2s;
}
#buy-now-btn:hover {
    background-color: #007f90;
    transform: translateY(-2px); 
}

/* 9. MOBILE MODAL LOGIC */
@media (max-width: 600px) {
    .modal.open {
        display: block; 
        padding: 0;
    }
    .modal-content {
        position: fixed; 
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%; 
        border-radius: 10px 10px 0 0; 
        animation: slideUp 0.3s ease-out; 
    }
    .close-btn {
        top: -20px; 
        right: 15px; 
        width: 35px; 
        height: 35px;
        font-size: 20px;
    }
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ===================================== */
/* 10. LOADER STYLES (Global JS က ဖြုတ်ထားရင်တောင် Global မှာ ထားသင့်သည်) */
/* ===================================== */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #23033F; 
    z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding-bottom: 50px; 
}

/* ... ကျန်သော Loader Styles များ (loader-logo, loader-text, loader-spinner, @keyframes spin) ... */