:root {
  --primary-color: #E4287C;
  --secondary-color: #7928E4;
  --gold-glow: #FFD700;
  --glass-bg-dark: rgba(190, 60, 100, 0.6);
  --glass-bg-light: rgba(255,255,255,0.15);
  --border-color-dark: rgba(255, 255, 255, 0.1);
  --border-color-light: rgba(0,0,0,0.1);
  --text-color-dark: #fff;
  --text-color-light: #111;
  --icon-color-dark: #fff;
  --icon-color-light: #111;
}

/* BODY حسب الوضع */
body[data-theme="dark"] {
  background: #111;
  color: var(--text-color-dark);
}
body[data-theme="light"] {
  background: #f5f5f5;
  color: var(--text-color-light);
}

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin: 20px auto;
  width: 95%;
  max-width: 1280px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  gap: 12px;
}

/* LEFT/RIGHT */
.left-side, .right-side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.left-side { flex: 0; }
.right-side { flex: 1; justify-content: flex-end; }

/* اللوجو */
.logo {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  box-shadow: 0 0 20px rgba(228,40,124,0.7);
  transition: transform 0.3s;
}
.logo:hover { transform: scale(1.05); }

/* زر القائمة */
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s, transform 0.2s;
  color: var(--icon-color-dark);
}
body[data-theme="light"] .menu-toggle {
  color: var(--icon-color-light);
  background: rgba(0,0,0,0.05);
}
.menu-toggle:hover { transform: scale(1.05); background: rgba(255,255,255,0.18); }
body[data-theme="light"] .menu-toggle:hover { background: rgba(0,0,0,0.15); }

/* VIP */
.vip-badge img {
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 12px var(--gold-glow), 0 0 6px rgba(255,215,0,0.3);
  transition: transform 0.3s;
}
.vip-badge img:hover { transform: scale(1.1); }

/* الرصيد */
.balance-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 40px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.2s;
}
body[data-theme="dark"] .balance-section { background: rgba(0,188,212,0.1); }
body[data-theme="light"] .balance-section { background: rgba(0,0,0,0.05); }
.balance-section:hover { transform: scale(1.02); }
body[data-theme="dark"] .balance-section:hover { background: rgba(0,188,212,0.2); }
body[data-theme="light"] .balance-section:hover { background: rgba(0,0,0,0.12); }

/* نصوص الرصيد */
.balance-amount {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-color-dark);
}
body[data-theme="light"] .balance-amount { color: var(--text-color-light); }
.balance-section i {
  font-size: 14px;
  color: var(--icon-color-dark);
}
body[data-theme="light"] .balance-section i { color: var(--icon-color-light); }

/* الموبايل */
@media (max-width: 600px) {
  .logo { height: 42px; width: 42px; }
  .balance-section { padding: 6px 12px; gap: 6px; }
  .vip-badge img { height: 32px; }
}
