:root{
  --bg:#0f172a;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --gold:#d4af37;
  --border:#1f2937;
  --accent:#2563eb;
  --green:#16a34a;
  --pink:#db2777;
  --orange:#f59e0b;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:"Tahoma",sans-serif}
body{direction:rtl}

/* کانتینر اپ (بدون اسکرول کلی) */
.app{
  width:100%;
  height:100vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* هدر */
.header{
  height:56px;
  min-height:56px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  background:#0b1220;
  border-bottom:1px solid var(--border);
}
.header .icon{
  width:24px;
  height:24px;
  display:inline-block;
  background:#233047;
  border-radius:6px;
}
.header .title{
  font-size:18px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--text);
}

/* سایدبار راست */
.sidebar{
  position:fixed;
  top:0;
  right:0;
  width:280px;
  height:100vh;
  background:#0b1220;
  border-left:1px solid var(--border);
  box-shadow:-2px 0 10px rgba(0,0,0,0.3);
  transform:translateX(100%);
  transition:transform .25s ease;
  z-index:1000;
}
.sidebar.active{transform:translateX(0)}
.sidebar-header{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--border)}
.sidebar-title{color:var(--gold);font-weight:700}
.sidebar-content{padding:12px}
.menu-group{margin-bottom:14px}
.menu-title{font-size:12px;color:var(--muted);margin-bottom:6px}
.menu-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#0f1627;
  color:var(--text);
  margin-bottom:8px;
}
.menu-item svg{width:20px;height:20px}

/* بدنه اصلی با اسکرول داخلی کنترل‌شده */
.main{
  flex:1;
  overflow-y:auto;
  padding:12px 12px 96px; /* فضای منوی پایین */
}

/* بنر طلایی */
.banner{
  position:relative;
  height:120px;
  min-height:120px;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(90deg,#3f0d1c,var(--gold));
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px;
}
.banner .text{
  color:#1a1a1a;
  font-weight:800;
  line-height:1.6;
  font-size:14px;
}
.banner .cta{
  background:#1a1a1a;
  color:var(--gold);
  border:none;
  border-radius:10px;
  padding:8px 12px;
  font-weight:800;
  font-size:13px;
}

/* شبکه آیکون‌ها (3 ستون، ارتفاع کارت ثابت) */
.sections{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-bottom:16px;
}
.tile{
  height:92px;
  min-height:92px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--card);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  padding:8px;
}
.glyph{
  width:36px;
  height:36px;
  border-radius:10px;
  background:#233047;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#fff;
}
.tile .label{
  font-size:12px;
  color:var(--text);
}

/* کلاس‌های رنگی برای glyph */
.g-blue{background:var(--accent)}
.g-green{background:var(--green)}
.g-pink{background:var(--pink)}
.g-orange{background:var(--orange)}

/* کیف پول */
.wallet{
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--card);
  padding:12px;
}
.wallet h3{
  margin:0 0 10px 0;
  font-size:16px;
  font-weight:800;
  color:var(--text);
}
.wallet-tabs{
  display:flex;
  gap:8px;
  margin-bottom:10px;
}
.tab{
  flex:1;
  text-align:center;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#0f1627;
  color:var(--text);
  font-weight:700;
  font-size:13px;
}
.tab.active{background:var(--gold);color:#1a1a1a;border-color:#a37f15}
.wallet-content{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px;
  border-radius:10px;
  background:#0f1627;
  border:1px solid var(--border);
}
.row strong{color:var(--gold)}

/* منوی پایین ثابت */
.bottom-nav{
  height:64px;
  min-height:64px;
  position:fixed;
  bottom:0;
  right:0;
  left:0;
  background:#0b1220;
  border-top:1px solid var(--border);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  padding:8px 8px;
  z-index:999;
}
.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:11px;
  border-radius:10px;
}
.nav-item.active{color:var(--gold);background:#141b2b}
.nav-item svg{width:22px;height:22px;margin-bottom:4px}

/* مخفی‌سازی */
.hidden{display:none}
