:root {
    /* အရောင်များကို တစ်နေရာတည်းတွင် ပြင်ဆင်ရန် Variable များ */
    --bg-dark-blue: #0a111d;
    --card-blue: #0052ff;
    --card-dark-blue: #131a2a;
    --text-white: #ffffff;
    --text-light-blue: #8fa0b8;
    --accent-green: #0ecb81;
    --accent-red: #f6465d;
    --accent-blue-highlight: #1a6dff;
    --gold: #f0b90b;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #050a10; /* ဘေးဘောင် အမည်းရောင် */
    color: var(--text-white);
    margin: 0 auto; /* အလယ်တည့်တည့်ထားရန် */
    padding: 0;
    padding-bottom: 80px;
    /* အောက်ခြေ Nav အတွက် နေရာချန်သည် */
    overflow-x: hidden;
    /* DESKTOP VIEW FIX (ကွန်ပျူတာဖြင့်ကြည့်လျှင် ဖုန်းပုံစံပေါ်စေရန်) */
    max-width: 800px; 
    min-height: 100vh;
    border-left: 1px solid #2b3139;
    border-right: 1px solid #2b3139;
    position: relative;
    background-color: var(--bg-dark-blue); /* အတွင်းဘက် နောက်ခံအရောင် */
}

/* Header & Profile (ခေါင်းစီးဒီဇိုင်း) */
.app-header {
    padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--bg-dark-blue);
}
.user-profile { font-weight: bold; font-size: 18px; display: flex; align-items: center; gap: 10px;
color: var(--text-white); }
.profile-icon { font-size: 24px; color: var(--text-light-blue); }
.wallet-text { font-size: 14px; }
.connect-status { font-size: 12px; color: var(--accent-green);
background: rgba(14, 203, 129, 0.1); padding: 5px 10px; border-radius: 4px; cursor: pointer; }

/* Tabs (စာမျက်နှာ ပြောင်းလဲခြင်း) */
.tab-content { display: none;
padding: 0 15px; animation: fadeIn 0.3s; }
.tab-content.active { display: block;
}

/* Balance Card (လက်ကျန်ငွေပြား ဒီဇိုင်း) */
.balance-card {
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--card-blue), var(--accent-blue-highlight));
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}
.balance-label { font-size: 14px; color: rgba(255, 255, 255, 0.8);
margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.eye-icon { margin-left: 5px; cursor: pointer; }
.balance-amount { font-size: 36px; font-weight: bold;
color: var(--text-white); }

/* Quick Actions (အမြန်ခလုတ်များ) */
.quick-actions { display: flex; justify-content: space-between; gap: 15px; margin: 20px 0;
}
.action-btn {
    flex: 1; background-color: var(--card-dark-blue); border-radius: 12px; padding: 15px 0;
    text-align: center; color: var(--text-white); font-size: 12px;
    cursor: pointer; border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.action-btn i { font-size: 20px; margin-bottom: 8px; display: block; color: var(--accent-blue-highlight);
}

/* Section Titles & Utility (ခေါင်းစဉ်များနှင့် အထွေထွေ) */
.section-title { font-size: 16px; margin-bottom: 15px; }
.page-title { font-size: 20px;
}
.mt-20 { margin-top: 20px; }
.mt-15 { margin-top: 15px; }
.mb-10 { margin-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }
.text-left { text-align: left;
}
.text-right { text-align: right; }
.light-text { color: var(--text-light-blue); }
.hidden { display: none; }

/* Market List (ဈေးကွက်ဇယား) */
.cmc-table { width: 100%;
border-collapse: collapse; }
.table-header { color: var(--text-light-blue); font-size: 12px; }
.cmc-row { border-bottom: 1px solid #2b3139; height: 60px; }
.cmc-name-cell { display: flex;
align-items: center; gap: 10px; color: var(--text-white); }
.cmc-icon { width: 24px; height: 24px; border-radius: 50%; }
.ox-icon-custom { width:24px; height:24px; background: var(--card-blue);
border-radius:50%; display:flex; align-items:center; justify-content:center; color:white; font-size:10px; }
.cmc-price { text-align: right; font-weight: bold; font-size: 14px; color: var(--text-white); }
.text-green { color: var(--accent-green);
}
.text-red { color: var(--accent-red); }
.loading-text { text-align: center; padding: 20px; color: var(--text-light-blue); }

/* Asset List (ပိုင်ဆိုင်မှုစာရင်း) */
.asset-item-detailed { background-color: var(--card-dark-blue);
border-radius: 12px; margin-bottom: 10px; padding: 15px; border: none; }
.asset-header { padding: 10px 0; }
.asset-balance-row { display: flex; align-items: center;
gap: 5px; }
.asset-main-balance { margin: 5px 0; font-size: 28px; color: var(--text-white); }
.asset-row-top { display: flex; justify-content: space-between; align-items: center;
margin-bottom: 5px; }
.asset-row-mid { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.coin-title { font-size: 16px; color: var(--text-white); font-weight: bold;
display: flex; align-items: center; gap: 8px; }
.coin-icon-sm { width: 20px; }
.ox-icon-sm { width:20px; height:20px; background: var(--card-blue); border-radius:50%; display:flex; align-items:center; justify-content:center;
color:white; font-size:8px; }
.coin-amount { font-size: 16px; color: var(--text-white); font-weight: bold; }
.pnl-label { font-size: 12px; color: var(--text-light-blue); }
.usd-val { font-size: 14px;
color: var(--text-white); }

/* Swap Box (ငွေလဲလှယ်သည့်အကွက်) */
.swap-box { background-color: var(--card-dark-blue); padding: 20px; border-radius: 12px; }
.swap-header { display: flex; margin-bottom: 10px;
}
.input-label-sm { margin-bottom: 10px; color: var(--text-light-blue); font-size: 12px; }
.currency-label-eth { font-weight: bold; color: var(--accent-blue-highlight); }
.currency-label-ox { font-weight: bold; color: var(--card-blue);
}
.input-group { background: var(--bg-dark-blue); padding: 12px; border-radius: 8px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #2b3139;
}
.input-group input { background: none; border: none; color: var(--text-white); font-size: 20px; width: 100%; outline: none;
}
.max-btn { background: rgba(26, 109, 255, 0.2); color: var(--accent-blue-highlight); border: none; padding: 4px 8px; border-radius: 4px; font-size: 10px; cursor: pointer;
margin-right: 5px; font-weight: bold; }
.main-btn { width: 100%; padding: 14px; background: var(--card-blue); color: var(--text-white); border: none; border-radius: 8px; font-size: 16px;
font-weight: bold; cursor: pointer; }
.main-btn:disabled { background: #333; cursor: not-allowed; }
.status-msg { margin-top: 15px; font-size: 13px; text-align: center; height: 20px;
color: var(--text-light-blue); }

/* Sub Tabs (Trade အတွင်း ခွဲထားသော Tab များ) */
.sub-tab-nav { display: flex; background: var(--card-dark-blue); margin-bottom: 15px; border-radius: 8px;
padding: 4px; }
.sub-tab-btn { flex: 1; padding: 8px; border: none; background: none; color: var(--text-light-blue); cursor: pointer; font-weight: bold; border-radius: 4px;
font-size: 13px; }
.sub-tab-btn.active { background: var(--bg-dark-blue); color: var(--text-white); }
.trade-sub-content { display: none; }
.trade-sub-content.active { display: block;
}

/* Modal (အပေါ်မှထပ်ပေါ်လာသော Box များ) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
z-index: 200; display: none; align-items: center; justify-content: center; }
.modal-box { background: var(--card-dark-blue); width: 85%; max-width: 350px; padding: 20px; border-radius: 12px;
border: 1px solid #2b3139; }
.conversion-box { background: rgba(240, 185, 11, 0.1); border: 1px solid var(--gold); color: var(--gold); padding: 10px;
border-radius: 6px; margin-bottom: 15px; display: flex; gap: 10px; align-items: center; }
.asset-select-item { display: flex; align-items: center; gap: 10px; padding: 15px;
background: var(--bg-dark-blue); border-radius: 8px; margin-bottom: 10px; cursor: pointer; }
.asset-select-item:hover { background: #1f2836; }
.ox-icon-md { width:24px; height:24px; background: var(--card-blue); border-radius:50%; display:flex;
align-items:center; justify-content:center; color:white; font-size:10px; }
.cancel-btn { background: none; border: none; color: var(--text-light-blue); width: 100%; margin-top: 10px; cursor: pointer; padding: 10px;
}
.input-label { font-size: 12px; color: var(--text-light-blue); margin-bottom: 5px; margin-top: 10px; }
.input-group-modal { background: var(--bg-dark-blue); padding: 0; border-radius: 8px; display: flex;
border: 1px solid #2b3139; overflow: hidden; }
.input-group-modal input { background: none; border: none; color: white; padding: 12px; width: 100%;
outline: none; }
.paste-btn { background: var(--card-blue); color: white; border: none; padding: 0 15px; font-size: 10px; cursor: pointer; font-weight: bold;
}
.summary-box { background: var(--bg-dark-blue); padding: 15px; border-radius: 8px; margin: 10px 0; font-size: 12px; }
.summary-row { display: flex; justify-content: space-between;
margin-bottom: 5px; color: var(--text-light-blue); }
.status-pending { color: #f0b90b; }
.disclaimer-text { font-size: 11px; color: var(--text-light-blue); margin: 10px 0; line-height: 1.4;
}

/* VIP Cards (Mining ကဒ်များ) */
.vip-card { background: var(--card-dark-blue); border-radius: 12px; padding: 15px; margin-bottom: 15px; border: 1px solid #2b3139;
position: relative; overflow: hidden; }
.vip-card.active-vip { border: 1px solid var(--accent-green); }
.vip-card.locked { opacity: 0.7; }
.vip-title { font-size: 18px; font-weight: bold;
color: var(--gold); display: flex; justify-content: space-between; }
.vip-info { display: flex; justify-content: space-between; margin: 10px 0; font-size: 12px; color: var(--text-light-blue);
}
.buy-vip-btn { width: 100%; background: var(--gold); color: black; font-weight: bold; border: none; padding: 10px; border-radius: 6px; cursor: pointer;
}
.buy-vip-btn:disabled { background: #333; color: #666; cursor: not-allowed; }
.claim-info { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); display: flex;
justify-content: space-between; font-size: 13px; color: var(--accent-green); }
.claim-btn { width: 100%; background: var(--accent-green); color: black; font-weight: bold; border: none; padding: 10px;
border-radius: 6px; cursor: pointer; margin-top: 10px; }

/* Earn Items (Staking စာရင်း) */
.earn-type-nav { display: flex; gap: 10px; margin-bottom: 15px;
}
.earn-type-btn { background: none; border: 1px solid var(--text-light-blue); color: var(--text-light-blue); padding: 6px 15px; border-radius: 20px; font-size: 12px; cursor: pointer;
}
.earn-type-btn.active { background: var(--text-white); color: var(--bg-dark-blue); border-color: var(--text-white); font-weight: bold; }
.earn-item { background: var(--card-dark-blue); padding: 15px 10px; border-radius: 12px;
margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2b3139; }
.earn-coin { display: flex; align-items: center; gap: 8px;
font-weight: bold; width: 100px; }
.earn-apr { font-size: 14px; color: var(--accent-green); width: 60px; text-align: right; }
.earn-dur { font-size: 12px; color: var(--text-light-blue);
width: 60px; text-align: right; }
.subscribe-btn { background: var(--gold); color: black; font-weight: bold; border:none; padding: 6px 15px; border-radius: 4px; cursor: pointer;
font-size: 12px; }
.subscribe-btn:disabled { background: #333; color: #888; cursor: default;
}

/* Footer Ticker & Nav (အောက်ခြေ) */
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    width: 100%;
    max-width: 800px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: var(--card-dark-blue); 
    display: flex; 
    justify-content: space-around; 
    padding: 12px 0; 
    z-index: 100;
    border-top: 1px solid #2b3139;
    border-left: 1px solid #2b3139;
    border-right: 1px solid #2b3139;
}

.nav-item { text-align: center; color: var(--text-light-blue); font-size: 10px;
cursor: pointer; background: none; border: none; }
.nav-item.active { color: var(--accent-blue-highlight);
}
.nav-item i { font-size: 20px; margin-bottom: 4px; display: block;
}
.miner-ticker-wrap { width: 100%; overflow: hidden; background-color: var(--card-dark-blue); padding: 10px 0;
    border-radius: 8px; margin-bottom: 20px; white-space: nowrap;
}
.miner-ticker { display: inline-block; animation: ticker 60s linear infinite; }
.miner-item { display: inline-block;
    padding: 0 20px; color: var(--text-light-blue); font-size: 13px;
border-right: 1px solid #2b3139; }
.miner-val { color: var(--accent-green); font-weight: bold;
}
@keyframes ticker { 0% { transform: translateX(0);
} 100% { transform: translateX(-100%); } }
@keyframes fadeIn { from { opacity: 0;
} to { opacity: 1;
} }

/* === EARN TABLE ALIGNMENT FIX (Staking ဇယား ညီအောင်ညှိခြင်း) === */
.earn-row-grid {
    display: flex;
    align-items: center;
padding: 0 10px; 
}
.col-coin { flex: 1; text-align: left; }
.col-apr { width: 80px; text-align: center; }
.col-dur { width: 80px;
text-align: right; }
.col-action { width: 80px; text-align: right; padding-left: 5px;
}

/* === STAKING DROPDOWN STYLES (Dropdown ဒီဇိုင်းသစ်) === */
.earn-wrapper {
    border-bottom: 1px solid #2b3139;
    margin-bottom: 10px;
}
.stake-details-box {
    display: none; /* Default Hidden */
    background: rgba(0, 0, 0, 0.3);
padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    border: 1px solid #2b3139;
}
.toggle-btn {
    background: rgba(255, 255, 255, 0.1);
border: none;
    color: var(--text-light-blue);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
transition: 0.3s;
}
.toggle-btn:hover {
    background: var(--card-blue);
    color: white;
}
.stake-row {
    display: flex;
    justify-content: space-between;
align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.stake-row:last-child {
    border-bottom: none;
}