:root {
  --bg-main: #181a20;
  --bg2: #1e2329;
  --bg3: #2b3139;
  --border: #2b3139;
  --border2: #474d57;
  --accent: #FCD535;
  --accent2: #F0B90B;
  --green: #0ECB81;
  --text: #EAECEF;
  --text2: #B7BDC6;
  --text3: #848E9C;
  --red: #F6465D;
  --red2: #F6465D;
  --gold: #F6C347;
  
  /* متغیرهای جدید برای افکت شیشه‌ای و مدرن */
  --glass-bg: rgba(43, 49, 57, 0.45);
  --glass-border: rgba(255, 255, 255, 0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg-main);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Vazir', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 100px;
}
.hidden { display: none !important; }
.page { display: none; }
.page.active { display: block; }
#lang-screen { position: fixed; inset: 0; background: var(--bg-main); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 999; gap: 20px; }
.ls-logo { font-size: 54px; }
.ls-title { font-size: 22px; font-weight: 800; color: var(--accent); }
.ls-sub { font-size: 12px; color: var(--text3); text-align: center; }
.ls-btns { display: flex; gap: 14px; margin-top: 6px; }
.ls-btn { padding: 14px 34px; border-radius: 14px; border: 1px solid var(--border2); background: var(--glass-bg); color: var(--text); cursor: pointer; font-size: 14px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .2s; font-family: inherit; }
.ls-btn:hover { border-color: var(--accent); }
.ls-flag { font-size: 26px; }
.glow { height: 3px; background: var(--accent); }
.topbar { background: var(--bg2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 14px 6px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.tb-l { display: flex; align-items: center; gap: 9px; }
.tb-av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #181a20; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tb-name { font-size: 13px; font-weight: 700; }
.tb-live { font-size: 9px; color: var(--green); display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pl 2s infinite; }
@keyframes pl { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.lang-tog { padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border2); background: var(--glass-bg); color: var(--accent2); font-size: 10px; font-weight: 700; cursor: pointer; font-family: inherit; }
.hero { background: var(--bg2); padding: 6px 14px 14px; border-bottom: 1px solid var(--border); }
.hero-lbl { font-size: 10px; color: var(--accent); letter-spacing: .5px; margin-bottom: 3px; }
.hero-bal { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.hero-bal span { font-size: 13px; color: var(--text3); font-weight: 400; }

/* انیمیشن اعداد */
.val-up { color: var(--green) !important; text-shadow: 0 0 10px rgba(14,203,129,0.5); transform: scale(1.03); transition: all 0.3s ease; display: inline-block; }
.val-down { color: var(--red) !important; text-shadow: 0 0 10px rgba(246,70,93,0.5); transform: scale(0.97); transition: all 0.3s ease; display: inline-block; }
.val-anim { transition: all 0.3s ease; display: inline-block; }

/* افکت شیشه‌ای برای کارت‌ها */
.hs, .chart-wrap, .plan-card, .wallet-box, .winfo, .limits-bar, .ref-link-box, .lev-row, .adm-sec, .tx-item { 
    background: var(--glass-bg); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid var(--glass-border); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); 
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 12px; }
.hs { border-radius: 10px; padding: 9px; text-align: center; }
.hs-v { font-size: 13px; font-weight: 700; }
.hs-l { font-size: 9px; color: var(--text3); margin-top: 2px; }
.chart-wrap { margin: 12px 14px; border-radius: 14px; overflow: hidden; }
.ch-hdr { padding: 9px 13px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.ch-pair { font-size: 13px; font-weight: 700; }
.ch-price { font-size: 15px; font-weight: 800; color: var(--green); text-align: right; direction: ltr; }
.ch-chg { font-size: 9px; color: var(--green); direction: ltr; }
.ch-tabs { display: flex; gap: 4px; padding: 7px 13px 0; }
.ctab { padding: 3px 9px; border-radius: 7px; border: none; background: transparent; color: var(--text3); font-size: 10px; cursor: pointer; font-family: inherit; }
.ctab.active { background: rgba(252, 213, 53, .15); color: var(--accent2); font-weight: 600; }

/* استایل مدرن سیگنال هوش مصنوعی */
.ai-row { padding: 8px 13px 11px; display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(252,213,53,0.15); background: linear-gradient(90deg, rgba(252,213,53,0.05) 0%, rgba(0,0,0,0) 100%); }
.ai-badge { background: linear-gradient(45deg, #FCD535, #F0B90B); color: #181a20; box-shadow: 0 0 12px rgba(252,213,53,0.4); font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 6px; display: flex; align-items: center; gap: 3px; }
.ai-badge svg { width: 12px; height: 12px; animation: spinSparkle 3s linear infinite; }
@keyframes spinSparkle { 100% { transform: rotate(360deg); } }
.ai-txt { font-size: 10px; color: var(--text3); }
.ai-txt b { color: var(--green); text-shadow: 0 0 5px rgba(14,203,129,0.3); }

/* استایل مدرن بنر سود */
.profit-banner { margin: 0 14px 12px; background: linear-gradient(135deg, rgba(252,213,53,0.15) 0%, rgba(30,35,41,0.8) 100%), repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px); border: 1px solid rgba(252,213,53,0.3); box-shadow: 0 8px 24px rgba(252,213,53,0.1); border-radius: 12px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; backdrop-filter: blur(8px); }
.pb-t { font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.pb-s { font-size: 11px; color: var(--accent); margin-top: 2px; font-weight: 700; }
.pb-btn { padding: 8px 16px; background: var(--accent); border: none; border-radius: 9px; color: #181a20; font-size: 11px; font-weight: 800; cursor: pointer; font-family: inherit; animation: pulseBtn 2s infinite; }
@keyframes pulseBtn { 0% { box-shadow: 0 0 0 0 rgba(252,213,53,0.5); } 70% { box-shadow: 0 0 0 8px rgba(252,213,53,0); } 100% { box-shadow: 0 0 0 0 rgba(252,213,53,0); } }

/* تنظیمات SVG آیکون‌های غیر نویگیشن */
.adm-title svg, .adm-sec-title svg { stroke: var(--accent); margin-left: 2px; }

.sec-hdr { padding: 12px 14px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.sec-title { font-size: 13px; font-weight: 700; }
.sec-sub { font-size: 10px; color: var(--text3); }
.plans-scroll { display: flex; gap: 9px; padding: 0 14px 14px; overflow-x: auto; scrollbar-width: none; }
.plans-scroll::-webkit-scrollbar { display: none; }
.plan-card { min-width: 115px; border-radius: 13px; padding: 13px 11px; flex-shrink: 0; text-align: center; position: relative; }
.plan-card.hot { border-color: var(--accent); background: rgba(252, 213, 53, .1); }
.plan-badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #181a20; font-size: 8px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.plan-amt { font-size: 19px; font-weight: 800; }

@keyframes goldGlow {
  0% { text-shadow: 0 0 3px rgba(246, 195, 71, 0.4); color: var(--gold); }
  50% { text-shadow: 0 0 10px rgba(246, 195, 71, 0.9); color: #fff387; }
  100% { text-shadow: 0 0 3px rgba(246, 195, 71, 0.4); color: var(--gold); }
}
.plan-daily { font-size: 10px; color: var(--gold); margin-top: 3px; font-weight: 700; animation: goldGlow 1.5s infinite alternate; }
.plan-monthly { font-size: 9px; color: var(--gold); margin-top: 1px; font-weight: 600; animation: goldGlow 1.5s infinite alternate; }
.plan-buy { margin-top: 9px; width: 100%; padding: 7px; border-radius: 8px; border: none; background: var(--accent); color: #181a20; font-size: 10px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity 0.2s; }
.plan-buy:hover { opacity: 0.9; }

/* تنظیمات گرید ۳ ستونه برای پلن های صفحه اصلی */
.home-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 14px; }
.home-plans-grid .plan-card { min-width: 0; padding: 12px 4px; }
.home-plans-grid .plan-amt { font-size: 16px; }
.home-plans-grid .plan-daily { font-size: 9px; }
.home-plans-grid .plan-monthly { font-size: 8px; }
.home-plans-grid .plan-card:last-child:nth-child(3n+1) { grid-column: 2; }

.pay-tabs { display: flex; gap: 7px; margin: 11px 14px; background: var(--glass-bg); border-radius: 11px; padding: 4px; border: 1px solid var(--glass-border); }
.pay-tab { flex: 1; padding: 8px; border-radius: 9px; border: none; background: transparent; color: var(--text3); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.pay-tab.active { background: var(--accent); color: #181a20; }
.wallet-box { margin: 0 14px; border-radius: 14px; padding: 15px; }
.w-net { display: inline-flex; align-items: center; gap: 5px; background: rgba(252, 213, 53, .15); border: 1px solid rgba(252, 213, 53, .3); color: var(--accent2); padding: 4px 12px; border-radius: 20px; font-size: 10px; font-weight: 700; margin-bottom: 13px; }
.w-lbl { font-size: 11px; color: var(--text3); margin-bottom: 5px; }
.w-addr { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 10px; padding: 11px; font-size: 11px; word-break: break-all; font-family: monospace; margin-bottom: 9px; cursor: pointer; transition: border-color .2s; min-height: 46px; display: flex; align-items: center; }
.w-addr:active { border-color: var(--accent); }
.addr-acts { display: flex; gap: 7px; }
.addr-btn { flex: 1; padding: 9px; border-radius: 9px; border: 1px solid var(--border2); background: var(--bg2); color: var(--text); font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
.addr-btn.primary { background: var(--accent); border: none; color: #181a20; }
.inp-lbl { font-size: 11px; color: var(--text3); margin-bottom: 5px; }
.app-inp { width: 100%; background: var(--glass-bg); border: 1px solid var(--border2); border-radius: 10px; padding: 11px 13px; color: var(--text); font-size: 13px; outline: none; font-family: inherit; transition: border-color .2s; }
.app-inp:focus { border-color: var(--accent); }
.sub-btn { width: 100%; margin-top: 11px; padding: 13px; border-radius: 12px; border: none; background: var(--accent); color: #181a20; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity 0.2s; }
.sub-btn:hover { opacity: 0.9; }
.warn-box { background: rgba(229, 62, 62, .15); border: 1px solid rgba(229, 62, 62, .3); border-radius: 10px; padding: 9px 12px; margin: 10px 14px; font-size: 10px; color: #fff; display: flex; align-items: center; gap: 7px; }
.winfo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 11px 14px; }
.winfo { border-radius: 11px; padding: 11px; text-align: center; }
.winfo-v { font-size: 15px; font-weight: 700; color: var(--accent2); }
.winfo-l { font-size: 9px; color: var(--text3); margin-top: 2px; }
.limits-bar { border-radius: 10px; padding: 9px 13px; margin: 0 14px 11px; display: flex; justify-content: space-between; align-items: center; }
.lb-i { text-align: center; }
.lb-v { font-size: 13px; font-weight: 700; }
.lb-l { font-size: 9px; color: var(--text3); margin-top: 2px; }
.lb-div { width: 1px; height: 30px; background: var(--border); }
.wdr-form { padding: 0 14px; }
.ref-hero { background: rgba(252, 213, 53, .15); border: 1px solid rgba(252, 213, 53, .3); border-radius: 16px; margin: 12px 14px; padding: 16px; text-align: center; box-shadow: 0 8px 32px rgba(252, 213, 53, 0.1); }
.ref-title { font-size: 16px; font-weight: 800; }
.ref-sub { font-size: 10px; color: var(--text3); margin-top: 3px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 13px; }
.rstat { background: rgba(0, 0, 0, .4); border-radius: 9px; padding: 8px; text-align: center; }
.rstat-v { font-size: 16px; font-weight: 800; color: var(--accent2); }
.rstat-l { font-size: 8px; color: var(--text3); margin-top: 2px; }
.ref-link-box { margin: 0 14px 11px; border-radius: 11px; padding: 11px 13px; display: flex; align-items: center; gap: 8px; }
.ref-link-txt { font-size: 10px; color: var(--text3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; }
.copy-link-btn { padding: 7px 14px; background: var(--accent); border: none; border-radius: 8px; color: #181a20; font-size: 10px; font-weight: 700; cursor: pointer; flex-shrink: 0; font-family: inherit; }
.levels-list { margin: 0 14px; display: flex; flex-direction: column; gap: 6px; }
.lev-row { border-radius: 10px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; }
.lev-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.lev-mid { flex: 1; margin: 0 10px; }
.lev-pct { font-size: 13px; font-weight: 700; color: #fff; }
.lev-cnt { font-size: 9px; color: #fff; margin-top: 2px; }
.lev-earn { font-size: 11px; font-weight: 700; color: #fff; }
.ref-note { background: rgba(252, 213, 53, .15); border: 1px solid rgba(252, 213, 53, .3); border-radius: 11px; margin: 11px 14px; padding: 11px; font-size: 10px; color: var(--text); }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 14px; }
.admin-hero { background: rgba(229, 62, 62, .15); border: 1px solid rgba(229, 62, 62, .3); border-radius: 15px; margin: 12px 14px; padding: 14px; box-shadow: 0 8px 32px rgba(229, 62, 62, 0.1); }
.adm-title { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.adm-badge { background: #9B2C2C; color: #fff; font-size: 8px; padding: 2px 7px; border-radius: 10px; font-weight: 700; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.adm-stat { background: rgba(0, 0, 0, .4); border-radius: 9px; padding: 9px; }
.adm-val { font-size: 17px; font-weight: 800; color: var(--accent2); }
.adm-lbl { font-size: 9px; color: var(--text3); margin-top: 2px; }
.adm-sec { border-radius: 13px; margin: 0 14px 10px; overflow: hidden; }
.adm-sec-hdr { padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); cursor: pointer; }
.adm-sec-title { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.adm-sec-body { padding: 13px; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: none; }
.set-lbl { font-size: 11px; color: var(--text3); }
.set-inp { background: rgba(0,0,0,0.3); border: 1px solid var(--border2); border-radius: 7px; padding: 5px 9px; color: var(--text); font-size: 12px; width: 80px; text-align: center; outline: none; font-family: inherit; }
.tog { width: 38px; height: 20px; border-radius: 20px; background: rgba(0,0,0,0.5); position: relative; cursor: pointer; border: none; transition: background .2s; }
.tog.on { background: var(--accent); }
.tog::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #181a20; top: 3px; left: 3px; transition: left .2s; }
.tog.on::after { left: 21px; }
.tx-list { display: flex; flex-direction: column; gap: 7px; }
.tx-item { border-radius: 10px; padding: 9px 11px; display: flex; justify-content: space-between; align-items: flex-start; }
.tx-uid { font-size: 10px; color: var(--text3); }
.tx-hash { font-size: 9px; color: var(--text3); font-family: monospace; margin-top: 2px; }
.tx-type-lbl { font-size: 9px; color: var(--accent2); margin-top: 2px; font-weight: 600; }
.tx-amt { font-size: 14px; font-weight: 700; color: var(--accent2); text-align: right; }
.tx-badge { font-size: 8px; padding: 2px 7px; border-radius: 10px; background: rgba(246, 195, 71, .15); color: var(--gold); margin-top: 3px; display: inline-block; }
.tx-actions { display: flex; gap: 5px; margin-top: 7px; align-items: center; flex-wrap: wrap; }
.tx-ok { padding: 5px 12px; border-radius: 7px; border: none; background: rgba(14, 203, 129, .18); color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; font-family: inherit; }
.tx-rej { padding: 5px 12px; border-radius: 7px; border: none; background: rgba(246, 70, 93, .18); color: var(--red2); font-size: 10px; font-weight: 700; cursor: pointer; font-family: inherit; }
.tx-amt-inp { width: 70px; background: rgba(0,0,0,0.3); border: 1px solid var(--border2); border-radius: 6px; padding: 4px 6px; color: var(--text); font-size: 10px; outline: none; margin-right: 4px; font-family: inherit; }
.u-table { width: 100%; font-size: 10px; border-collapse: collapse; }
.u-table th { padding: 7px 5px; text-align: right; color: var(--text3); border-bottom: 1px solid var(--border); font-weight: 600; }
.u-table td { padding: 7px 5px; border-bottom: 1px solid var(--border); color: var(--text3); }
.u-table tr:last-child td { border-bottom: none; }
.u-btn { padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border2); background: transparent; font-size: 9px; cursor: pointer; margin-right: 3px; font-family: inherit; }
.u-edit { color: var(--accent2); border-color: rgba(252, 213, 53, .3); }
.u-ban { color: var(--red2); border-color: rgba(246, 70, 93, .3); }
.bcast-ta { width: 100%; background: var(--glass-bg); border: 1px solid var(--border2); border-radius: 9px; padding: 11px; color: var(--text); font-size: 12px; resize: vertical; min-height: 75px; outline: none; font-family: inherit; }

/* ── استایل‌های بازنویسی شده نوار منوی پایین (Bottom Nav) ── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(30, 35, 41, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 10px 0 20px; z-index: 50; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); }
.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; padding: 6px 12px; border: none; background: transparent; font-family: inherit; color: var(--text3); transition: color 0.3s ease; }
.nav-btn.active { color: var(--accent2); }
.nav-ic { display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.nav-btn.active .nav-ic { transform: scale(1.15); }
.nav-ic svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.2; transition: all 0.3s ease; }
.nav-lbl { font-size: 11px; font-weight: 700; color: currentColor; transition: color 0.3s ease; }

#toast { position: fixed; top: 68px; left: 50%; transform: translateX(-50%) scale(.95); background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--border2); color: var(--text); padding: 9px 18px; border-radius: 11px; font-size: 12px; font-weight: 600; z-index: 999; opacity: 0; transition: all .3s; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
#toast.show { opacity: 1; transform: translateX(-50%) scale(1); }
.modal-ov { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 200; display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.modal-ov.open { display: flex; }
.modal { background: var(--bg2); border-radius: 22px 22px 0 0; padding: 22px 15px 38px; width: 100%; border-top: 1px solid var(--border); box-shadow: 0 -8px 32px rgba(0,0,0,0.5); }
.modal-title { font-size: 14px; font-weight: 800; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: var(--bg3); border: none; color: var(--text3); width: 26px; height: 26px; border-radius: 7px; cursor: pointer; font-size: 13px; font-family: inherit; }
.loading-overlay { position: fixed; inset: 0; background: var(--bg-main); display: flex; align-items: center; justify-content: center; z-index: 998; flex-direction: column; gap: 14px; }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-txt { font-size: 12px; color: var(--text3); }