/* --- THEME VARIABLES --- */
:root { 
    --bg-base: #1a0510; 
    --card-bg: rgba(20, 20, 20, 0.4); 
    --glass-border: rgba(255, 255, 255, 0.15); 
    --text-color: #ffffff; 
    --text-sec: #aaaaaa; 
    --accent: #d6006e; 
    --fail: #ff3333;
}

body.theme-blue { --bg-base: #020515; --accent: #00f2ff !important; --text-sec: #ccf9ff; }
body.theme-green { --bg-base: #021002; --accent: #00e676 !important; --text-sec: #ccffda; }
body.theme-yellow { --bg-base: #141000; --accent: #ffb300 !important; --text-sec: #ffecb3; }
body.theme-purple { --bg-base: #100010; --accent: #9c27b0 !important; --text-sec: #e1bee7; }
body.theme-red { --bg-base: #1a0000; --accent: #d50000 !important; --text-sec: #ffcdd2; }
body.theme-dark-blue { --bg-base: #010409; --accent: #2f81f7 !important; --text-sec: #8b949e; }
body.theme-dark { --bg-base: #000000; --accent: #ffffff !important; --text-sec: #cccccc; }

html { height: 100%; overflow: hidden; touch-action: none; }
body { 
    height: 100%; width: 100%; margin: 0; padding: 0; 
    background: var(--bg-base); color: var(--text-color); 
    font-family: 'Segoe UI', sans-serif; 
    overflow: hidden; position: fixed; 
    transition: background 0.3s ease;
    -webkit-user-select: none; user-select: none; 
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

#main-view { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 100; }

.header { 
    position: absolute; top: 0; left: 0; width: 100%; height: 60px; 
    background: rgba(0,0,0,0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    display: flex; align-items: center; justify-content: space-between; padding: 0 15px; z-index: 50;
    box-sizing: border-box; 
}

.back-btn-big { width: 35px; height: 35px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; cursor: pointer; transition: 0.2s; }
.back-btn-big:active { transform: scale(0.9); background: var(--accent); color: #000; }
.page-title { font-size: 16px; font-weight: 800; color: #fff; border-left: 3px solid var(--accent); padding-left: 10px; margin-left: 15px; }

.wallet-box {
    display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
    cursor: pointer;
}
.main-bal { font-size: 13px; font-weight: bold; color: var(--accent); text-shadow: 0 0 5px var(--accent); }
.promo-bal { font-size: 9px; color: #39ff14; font-weight: bold; background: rgba(57,255,20,0.1); padding: 2px 6px; border-radius: 4px; margin-top: 2px;}

.content-area { 
    position: absolute; top: 60px; bottom: 65px; left: 0; width: 100%; 
    overflow-y: auto !important; -webkit-overflow-scrolling: touch; 
    padding: 15px 0; 
    padding-bottom: 150px !important; 
    overscroll-behavior-y: auto !important; 
}
.content-area::-webkit-scrollbar { display: none; }

.card-wrapper { width: 90%; max-width: 320px; margin: 0 auto 12px auto; position: relative; border-radius: 14px; overflow: hidden; }

.server-item { 
    background: var(--card-bg); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 14px; padding: 12px 15px; 
    display: flex; flex-direction: column; position: relative; transition: transform 0.3s ease-out, border 0.3s; 
    z-index: 2; width: 100%; box-sizing: border-box; 
}

/* 🔥 INLINE REDEEM BOX CSS 🔥 */
#redeem-container-wrapper {
    display: none; /* Hide by default */
    animation: fadeInDown 0.3s ease-out;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.redeem-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.redeem-input {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(57,255,20,0.5);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-family: monospace;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
.redeem-input::placeholder { color: #666; }
.redeem-btn {
    background: #39ff14;
    color: #000;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(57,255,20,0.4);
    transition: 0.2s;
}
.redeem-btn:active { transform: scale(0.95); }

.delete-bg { position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: #ff3333; border-radius: 14px; display: flex; justify-content: flex-end; align-items: center; padding-right: 20px; color: #fff; font-size: 20px; z-index: 1; opacity: 0; transition: opacity 0.2s; cursor: pointer; }
.delete-bg.active-del { pointer-events: auto; } 

.row-top { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.server-info { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #fff; }

.card-content { display: none; margin-top: 12px; border-top: 1px dashed rgba(255,255,255,0.15); padding-top: 12px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.badge-type { background: rgba(255, 255, 255, 0.1); color: var(--accent); border: 1px solid var(--accent); padding: 2px 6px; border-radius: 6px; font-size: 9px; font-weight: 900; letter-spacing: 0.5px; }

.btn-claim { background: var(--accent); color: #000; border: none; padding: 6px 14px; border-radius: 8px; font-weight: 800; font-size: 11px; cursor: pointer; box-shadow: 0 0 10px var(--accent); }
.btn-premium { background: rgba(255,255,255,0.1); border: 1px solid var(--accent); color: var(--accent); padding: 6px 14px; border-radius: 8px; font-weight: 800; font-size: 11px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 5px; }
.btn-premium:active { transform: scale(0.95); background: var(--accent); color: #000; }

.btn-copy { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 8px 20px; border-radius: 8px; font-weight: bold; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; width: max-content; margin: 15px auto 5px auto; }
.btn-copy:active { transform: scale(0.95); background: var(--accent); color: #000; }
.btn-copy.copied { background: #39ff14; color: #000; border-color: #39ff14; }

.key-input-box { -webkit-user-select: text; user-select: text; width: 100%; padding: 10px; border-radius: 8px; border: 1px dashed rgba(255,255,255,0.3); background: rgba(0,0,0,0.6); color: #ccc; font-size: 10px; margin-top: 5px; box-sizing: border-box; font-family: monospace; outline: none; }

.lottie-outline path { stroke: #0A3828 !important; fill: transparent !important; }
.lottie-vless path { stroke: #ffffff !important; fill: transparent !important; }

.outline-usage { margin-top: 5px; background: transparent; }
.progress-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 8px 0; position: relative; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease, background-color 0.5s ease; position: relative; }
.progress-fill::after { content: ''; position: absolute; right: 0; top: -1px; bottom: -1px; width: 20px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), #ffffff); border-radius: 10px; box-shadow: 2px 0 6px rgba(255,255,255,0.8); animation: rocketThrust 1.5s ease-in-out infinite alternate; }
@keyframes rocketThrust { 0% { transform: translateX(0px); box-shadow: 2px 0 4px rgba(255,255,255,0.5); } 100% { transform: translateX(4px); box-shadow: 6px 0 12px rgba(255,255,255,1); } }

.outline-stats-text { display: flex; justify-content: space-between; font-size: 10px; font-weight: bold; font-family: monospace; color: #fff;}
.shop-divider { text-align: center; font-size: 12px; font-weight: 900; color: #fff; margin: 20px 0 10px 0; display: flex; align-items: center; justify-content: center; gap: 10px;}

.info-accordion { background: rgba(255, 204, 0, 0.1); border: 1px solid rgba(255, 204, 0, 0.3); border-radius: 10px; margin: 0 auto 15px auto; width: 90%; max-width: 320px; overflow: hidden; transition: all 0.3s ease; }
.info-header { padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; color: #ffcc00; font-size: 12px; font-weight: bold; cursor: pointer; }
.info-body { padding: 0 15px 12px 15px; font-size: 11px; color: #ddd; line-height: 1.6; display: none; border-top: 1px dashed rgba(255, 204, 0, 0.2); margin-top: 5px; padding-top: 10px; animation: fadeIn 0.3s ease; text-align: justify; }
.info-chevron { transition: transform 0.3s ease; }

.flash-icon { color: var(--accent); font-size: 16px; animation: breatheAnim 2s ease-in-out infinite; }
@keyframes breatheAnim { 0%, 100% { transform: scale(1); opacity: 0.7; filter: drop-shadow(0 0 2px var(--accent)); } 50% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 10px var(--accent)); } }

@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(57, 255, 20, 0); } 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); } }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--text-sec); border: 2px solid rgba(0,0,0,0.5); }
.status-dot.online { background-color: #39ff14; animation: pulse-green 1.5s infinite; border-color: transparent; }

.swal-mini-popup { width: 260px !important; padding: 15px !important; border-radius: 14px !important; border: 1px solid rgba(255,255,255,0.1); }
.swal-mini-title { font-size: 14px !important; margin: 5px 0 !important; }
.swal-mini-text { font-size: 11px !important; color: #aaa !important; }
.swal-mini-icon { transform: scale(0.6) !important; margin: 5px auto !important; }
.swal-mini-btn { padding: 6px 16px !important; font-size: 12px !important; font-weight: bold !important; border-radius: 8px !important; }
.swal-mini-actions { margin-top: 10px !important; gap: 10px !important; }

/* --- Floating Glassmorphic Capsule Bottom Navigation (VPN Edition) --- */
.bottom-nav {
    position: fixed;                  /* absolute မှ fixed သို့ ပြောင်းလဲခြင်း */
    bottom: 20px;                     /* အောက်ခြေကနေ ၂၀ ကွာပြီး Floating ဖြစ်စေရန် */
    left: 20px;                       /* ဘယ်ဘက် ကွာဝေးမှု */
    right: 20px;                      /* ညာဘက် ကွာဝေးမှု */
    height: 65px;
    width: auto;                      /* Floating ဖြစ်ရန် width: 100% ကို ပိတ်ခြင်း */
    
    /* ✨ Glassmorphism Effect */
    background: rgba(20, 20, 20, 0.65) !important; 
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    
    /* 📦 Capsule Border & Glow */
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50px !important;    /* ဘေးဘယ်ညာ လုံးဝန်းသွားစေရန် */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    
    /* 🎯 Layout Alignment */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10000;
    padding: 0 15px;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888888;
    font-size: 11px;
    font-weight: 700;
    height: 100%;
    flex: 1;                          /* ခလုတ်များ နေရာညီတူညီမျှ ယူရန် */
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Active ဖြစ်နေတဲ့ ခလုတ်ကို ပိုမို Pro ကျကျ အရောင်လင်းစေရန် */
.nav-item.active {
    color: #39ff14 !important;         /* လက်ရှိ ရွေးထားတဲ့ VPN page အတွက် Success Green */
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.6) !important;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}


#loader-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; flex-direction: column; gap: 15px; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
.loader-active { opacity: 1 !important; pointer-events: all !important; }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

* { -webkit-touch-callout: none; }

/* 🔥 DEPOSIT MODAL CSS 🔥 */
.full-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 10000; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(15px); }
.full-modal-content { background: #222; border: 1px solid var(--accent); padding: 25px; border-radius: 24px; width: 100%; max-width: 320px; text-align: center; color: #fff; box-shadow: 0 0 30px rgba(0,0,0,0.5); max-height: 85vh; overflow-y: auto; position: relative; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.pay-card { position: relative; padding: 2.5px; border-radius: 14px; overflow: hidden; cursor: pointer; background: transparent; z-index: 0; }
.pay-card:active { transform: scale(0.98); }
.pay-card::before { content: ''; position: absolute; width: 200%; height: 200%; top: -50%; left: -50%; z-index: -1; animation: payRotate 3s linear infinite; background: conic-gradient(transparent, var(--accent), transparent 30%); }
.pay-kbz::before { background: conic-gradient(transparent, #007bff, transparent 30%); }
.pay-wave::before { background: conic-gradient(transparent, #ffd700, transparent 30%); }
.pay-uab::before { background: conic-gradient(transparent, #9c27b0, transparent 30%); }
.pay-aya::before { background: conic-gradient(transparent, #ff0000, transparent 30%); }
.pay-inner { position: relative; z-index: 1; background: #1a1a1a; width: 100%; height: 100%; padding: 10px; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; min-height: 80px; box-sizing: border-box; }
.pay-logo { width: 31px !important; height: 31px !important; border-radius: 10px; object-fit: cover; margin-bottom: 8px; display: block; }
.pay-info { width: 100%; }
.pay-num { font-size: 11px; font-weight: bold; color: #fff; letter-spacing: 0.5px; }
.pay-name { font-size: 10px; color: var(--text-sec); display: block; }
@keyframes payRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.amount-options { display: flex; gap: 5px; margin-bottom: 10px; }
.amount-tag { flex: 1; padding: 8px; background: #333; border: 1px solid #555; border-radius: 6px; cursor: pointer; font-size: 12px; color:#fff; }
.amount-tag.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.upload-btn { border: 1px dashed var(--text-sec); padding: 20px; border-radius: 12px; margin: 10px auto; color: var(--text-sec); background: rgba(255,255,255,0.05); cursor: pointer; display: block; width: 70%; }
.btn-modal { width: 110px; padding: 10px; font-size: 13px; border-radius: 50px; background: var(--accent); color: #000; border: none; font-weight: 900; cursor: pointer; box-shadow: 0 0 10px var(--accent); }

#custom-toast { position: fixed; bottom: -50px; left: 50%; transform: translateX(-50%); background: rgba(20,20,20,0.9); border: 1px solid var(--accent); color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 13px; font-weight: bold; z-index: 999999; opacity: 0; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.5); backdrop-filter: blur(5px); white-space: nowrap; pointer-events: none; }
