/* =====================================================
   SHAM IN GAME — MAIN STYLESHEET
   Cyberpunk / Gaming Dark Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Cairo:wght@300;400;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --cyan: #00f5ff;
  --purple: #a855f7;
  --gold: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;
  --bg-deep: #020408;
  --bg-card: rgba(6, 12, 20, 0.92);
  --bg-card2: rgba(0,245,255,0.04);
  --border: rgba(0, 245, 255, 0.15);
  --border-purple: rgba(168, 85, 247, 0.2);
  --text-primary: #e2e8f0;
  --text-muted: #64748b;
  --header-h: 70px;
  --ticker-h: 36px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-cyan: 0 0 30px rgba(0,245,255,0.15);
  --shadow-purple: 0 0 30px rgba(168,85,247,0.15);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}
a { color: var(--cyan); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; }
input, textarea, select { font-family: 'Cairo', inherit; }

/* ---- CANVAS BG ---- */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
#particles-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

/* ---- HEADER ---- */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(2,4,8,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(0,245,255,0.4);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 20px rgba(0,245,255,0.4); }
  50% { box-shadow: 0 0 40px rgba(0,245,255,0.8), 0 0 60px rgba(168,85,247,0.4); }
}
.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* Desktop Nav */
#desktop-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-btn:hover {
  color: var(--cyan);
  background: rgba(0,245,255,0.08);
}
.nav-btn.active {
  color: var(--cyan);
  background: rgba(0,245,255,0.12);
  border: 1px solid rgba(0,245,255,0.3);
}

/* Header Right */
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hdr-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0,245,255,0.05);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.hdr-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,245,255,0.1);
  box-shadow: 0 0 15px rgba(0,245,255,0.2);
}
.admin-pill { border-color: var(--purple); color: var(--purple); }
.admin-pill:hover { background: rgba(168,85,247,0.1); box-shadow: 0 0 15px rgba(168,85,247,0.3); }

/* Hamburger */
.ham-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.ham-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  background: rgba(2,4,8,0.98);
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mnav-btn {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.mnav-btn:hover, .mnav-btn.active {
  color: var(--cyan);
  background: rgba(0,245,255,0.08);
}

/* ---- TICKER BAR ---- */
.ticker-bar {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: var(--ticker-h);
  z-index: 999;
  background: linear-gradient(90deg, rgba(0,245,255,0.08), rgba(168,85,247,0.08));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  border-left: 1px solid var(--border);
  background: rgba(0,245,255,0.05);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  padding: 0 20px;
}
#ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-muted);
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---- MAIN APP ---- */
#main-app {
  margin-top: calc(var(--header-h) + var(--ticker-h));
  min-height: calc(100vh - var(--header-h) - var(--ticker-h));
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

/* ---- PAGES ---- */
.page { display: none; animation: fadeInUp 0.4s ease; }
.page.active { display: block; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- WELCOME BANNER ---- */
.welcome-banner {
  position: relative;
  text-align: center;
  padding: 20px 20px 16px;
  margin: 20px auto;
  max-width: 900px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,245,255,0.06), rgba(168,85,247,0.06));
  border: 1px solid var(--border);
  overflow: hidden;
}
.welcome-banner p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}
.welcome-glow {
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 60px;
  background: radial-gradient(ellipse, rgba(0,245,255,0.2), transparent);
  pointer-events: none;
}

/* ---- HERO SECTION ---- */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0,245,255,0.3);
  background: rgba(0,245,255,0.08);
  color: var(--cyan);
  font-size: 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
  line-height: 1.1;
  margin-bottom: 16px;
}
@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,245,255,0.5);
}
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- MAIN 4 BIG BUTTONS ---- */
.main-buttons-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i { color: var(--cyan); }

.main-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.main-big-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  text-align: right;
  cursor: pointer;
}
.main-big-btn:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 20px 60px rgba(0,245,255,0.15);
}
.main-big-btn:hover .btn-bg-glow { opacity: 1; }
.main-big-btn:hover .btn-arrow { transform: translateX(-6px); opacity: 1; }
.main-big-btn:active { transform: translateY(-1px); }

.btn-bg-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glow-blue { background: radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.15), transparent 70%); }
.glow-purple { background: radial-gradient(ellipse at 80% 50%, rgba(168,85,247,0.15), transparent 70%); }
.glow-cyan { background: radial-gradient(ellipse at 80% 50%, rgba(0,245,255,0.12), transparent 70%); }
.glow-gold { background: radial-gradient(ellipse at 80% 50%, rgba(245,158,11,0.15), transparent 70%); }

.btn-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
#btn-games .btn-icon-wrap { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(59,130,246,0.1)); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
#btn-apps .btn-icon-wrap { background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(168,85,247,0.1)); color: var(--purple); border: 1px solid rgba(168,85,247,0.3); }
#btn-channels .btn-icon-wrap { background: linear-gradient(135deg, rgba(0,245,255,0.2), rgba(0,245,255,0.05)); color: var(--cyan); border: 1px solid rgba(0,245,255,0.3); }
#btn-store .btn-icon-wrap { background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(245,158,11,0.1)); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }

.btn-content { flex: 1; position: relative; z-index: 1; }
.btn-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.btn-sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}
.btn-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

.main-big-btn--store {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(135deg, rgba(245,158,11,0.05), var(--bg-card));
}
.main-big-btn--store .btn-title { color: var(--gold); }

/* ---- TRUST SECTION ---- */
.trust-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.trust-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan);
}
.trust-icon {
  font-size: 32px;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}
.trust-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.trust-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- PAGE HEADERS ---- */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}
.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.page-title i { color: var(--cyan); }
.page-desc { color: var(--text-muted); font-size: 14px; }

/* ---- GAMES GRID ---- */
.games-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.game-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}
.game-card-img {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, rgba(0,245,255,0.1), rgba(168,85,247,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}
.game-card-body { padding: 16px; }
.game-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.game-card-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-card-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}
.game-dl-btn {
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.game-dl-btn:hover { opacity: 0.85; transform: scale(1.05); }

/* ---- APPS GRID ---- */
.apps-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* ---- CHANNELS GRID ---- */
.channels-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.channel-card:hover {
  border-color: #2AABEE;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(42,171,238,0.15);
}
.channel-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #1a7abf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}
.channel-info { flex: 1; }
.channel-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.channel-desc { font-size: 13px; color: var(--text-muted); }
.channel-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2AABEE, #1a7abf);
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.channel-btn:hover { opacity: 0.85; }

/* ---- STORE ---- */
.stores-tabs-wrap {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-tab-btn {
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.store-tab-btn.active, .store-tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245,158,11,0.08);
  box-shadow: 0 0 20px rgba(245,158,11,0.15);
}
#store-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.store-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(168,85,247,0.06));
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
}
.store-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.store-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}
.store-live-badge i { animation: livePulse 1.5s ease-in-out infinite; font-size: 8px; }
@keyframes livePulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* Store Category Nav */
.store-cats-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cat-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}
.cat-btn.active, .cat-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,245,255,0.08);
}

/* Breadcrumb */
.store-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.store-breadcrumb span {
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.store-breadcrumb span:hover { color: var(--cyan); }
.store-breadcrumb .bc-sep { color: var(--text-muted); opacity: 0.4; }

/* Products */
.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,255,0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan);
}
.product-card.folder-card { border-color: rgba(168,85,247,0.3); }
.product-card.folder-card:hover { border-color: var(--purple); box-shadow: var(--shadow-purple); }
.product-icon { font-size: 32px; margin-bottom: 12px; }
.product-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.product-buy-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.product-buy-btn:hover { opacity: 0.85; transform: scale(1.02); }
.folder-enter-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--purple);
  background: rgba(168,85,247,0.08);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.folder-enter-btn:hover { background: rgba(168,85,247,0.15); }

/* ---- EMPTY STATE ---- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.4; }
.empty-state p { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.empty-state span { font-size: 13px; }

/* ---- FOOTER ---- */
.site-footer {
  background: rgba(2,4,8,0.95);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--cyan);
}
.footer-logo i { color: var(--purple); }
.footer-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 12px; color: var(--text-muted); opacity: 0.6; }

/* ---- MODALS ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }

.modal-box {
  background: rgba(6,12,20,0.98);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from{transform:translateY(30px);opacity:0} to{transform:none;opacity:1} }

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { color: var(--red); border-color: var(--red); background: rgba(239,68,68,0.1); }

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.modal-icon {
  font-size: 40px;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}
.modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.modal-header p { font-size: 14px; color: var(--text-muted); }

/* Login Tabs */
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 4px;
}
.ltab {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ltab.active {
  background: linear-gradient(135deg, rgba(0,245,255,0.15), rgba(168,85,247,0.1));
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.2);
}
.tg-login-info {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(42,171,238,0.06);
  border: 1px solid rgba(42,171,238,0.15);
  border-radius: var(--radius);
}
.tg-big-icon { font-size: 36px; color: #2AABEE; margin-bottom: 8px; display: block; }
.tg-login-info p { font-size: 14px; margin-bottom: 6px; }
.tg-login-info small { font-size: 12px; color: var(--text-muted); }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.1);
}

/* Buttons */
.btn-neon {
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.btn-neon:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,245,255,0.3); }
.btn-outline {
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.w-full { width: 100%; }
.mt-2 { margin-top: 10px; }

/* Logged In */
.logged-in-info {
  text-align: center;
  margin-bottom: 20px;
}
.user-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}
.logged-in-info h4 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.text-muted { color: var(--text-muted); font-size: 13px; }

/* Balance Display */
.balance-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0,245,255,0.06), rgba(168,85,247,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.bal-label { font-size: 14px; color: var(--text-muted); }
.bal-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}

/* Wallet Modal */
.wallet-balance-card {
  text-align: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(168,85,247,0.06));
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.wbal-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.wbal-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,158,11,0.4);
}
.wbal-syp { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.wallet-action-btn {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.wallet-action-btn i { font-size: 22px; color: var(--cyan); }
.wallet-action-btn:hover {
  border-color: var(--cyan);
  background: rgba(0,245,255,0.08);
  transform: translateY(-2px);
}
.wallet-history h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text-muted); }
#wallet-history-list { font-size: 13px; color: var(--text-muted); }

/* Charge Modal */
.charge-info-box {
  padding: 16px;
  background: rgba(0,245,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
}
.charge-info-box p { font-weight: 700; color: var(--cyan); margin-bottom: 10px; }
.payment-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.payment-detail span { color: var(--text-muted); }
.payment-detail strong {
  color: var(--text-primary);
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  word-break: break-all;
}

/* Not logged msg */
.not-logged-msg {
  text-align: center;
  padding: 40px 20px;
}
.not-logged-msg i { font-size: 40px; color: var(--text-muted); margin-bottom: 16px; display: block; opacity: 0.5; }
.not-logged-msg p { font-size: 15px; margin-bottom: 20px; color: var(--text-muted); }

/* Buy Modal */
#buy-modal-content { text-align: center; }
.buy-product-name { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.buy-product-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 20px;
}
.buy-balance-check {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
.buy-balance-check.ok {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
}
.buy-balance-check.fail {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--red);
}

/* ---- MAINTENANCE ---- */
.maint-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.maint-box { text-align: center; padding: 40px; }
.glitch-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--cyan);
  position: relative;
  animation: glitch 1s infinite;
}
@keyframes glitch {
  0% { text-shadow: 2px 0 var(--purple), -2px 0 var(--gold); }
  25% { text-shadow: -2px 0 var(--purple), 2px 0 var(--gold); }
  50% { text-shadow: 2px 0 var(--gold), -2px 0 var(--cyan); }
  75% { text-shadow: -2px 0 var(--gold), 2px 0 var(--purple); }
  100% { text-shadow: 2px 0 var(--purple), -2px 0 var(--gold); }
}
.maint-box p { color: var(--text-muted); margin-top: 20px; font-size: 16px; }
.maint-loader {
  width: 50px; height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}
.maint-loader::after {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: var(--cyan);
  animation: maintLoad 1.5s ease-in-out infinite;
}
@keyframes maintLoad { 0%{left:-50%} 100%{left:150%} }

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.success { background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.5); color: var(--green); }
.toast.error { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.5); color: var(--red); }
.toast.info { background: rgba(0,245,255,0.12); border: 1px solid rgba(0,245,255,0.4); color: var(--cyan); }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* ---- PAGE LOADER ---- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 8888;
  background: rgba(2,4,8,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ---- UTILITIES ---- */
.hidden { display: none !important; }

/* =====================================================
   RESPONSIVE — جميع الشاشات
   320px  → موبايل صغير
   480px  → موبايل عادي
   600px  → موبايل كبير
   768px  → تابلت
   1024px → لابتوب
   1280px → كمبيوتر
   1440px → شاشة كبيرة
   1920px → 4K
   ===================================================== */

/* ---- 4K / شاشات كبيرة جداً ---- */
@media (min-width: 1920px) {
  .main-buttons-grid { grid-template-columns: repeat(4,1fr); gap: 28px; }
  .hero-title { font-size: 100px; }
  .trust-section { grid-template-columns: repeat(5,1fr); }
  .store-products-grid { grid-template-columns: repeat(5,1fr); }
  .games-grid { grid-template-columns: repeat(5,1fr); }
}

/* ---- كمبيوتر عادي 1280+ ---- */
@media (min-width: 1280px) and (max-width: 1919px) {
  .main-buttons-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .trust-section { grid-template-columns: repeat(5,1fr); }
  .store-products-grid { grid-template-columns: repeat(4,1fr); }
}

/* ---- لابتوب 1024–1279 ---- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-buttons-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .trust-section { grid-template-columns: repeat(3,1fr); }
  .store-products-grid { grid-template-columns: repeat(3,1fr); }
  .games-grid { grid-template-columns: repeat(3,1fr); }
  .hero-title { font-size: 62px; }
}

/* ---- تابلت 768–1023 ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --header-h: 64px;
    --ticker-h: 34px;
  }

  /* Header */
  #desktop-nav { display: none; }
  .ham-btn { display: flex; }
  .logo-text { font-size: 15px; }

  /* Hero */
  .hero-title { font-size: 52px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 26px; }

  /* Buttons */
  .main-buttons-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .main-big-btn { padding: 22px 20px; }
  .btn-title { font-size: 19px; }
  .btn-sub { font-size: 12px; }
  .btn-icon-wrap { width: 56px; height: 56px; font-size: 24px; }

  /* Trust */
  .trust-section { grid-template-columns: repeat(3,1fr); gap: 14px; }

  /* Store */
  .store-products-grid { grid-template-columns: repeat(3,1fr); gap: 14px; }
  .store-cats-nav { gap: 8px; }
  .cat-btn { padding: 8px 14px; font-size: 13px; }

  /* Games/Apps/Channels */
  .games-grid { grid-template-columns: repeat(2,1fr); }
  .channels-grid { grid-template-columns: repeat(2,1fr); }
  .apps-grid { grid-template-columns: repeat(2,1fr); }

  /* Wallet */
  .wallet-actions { grid-template-columns: repeat(2,1fr); }

  /* Modal */
  .modal-box { max-width: 460px; padding: 28px; }
}

/* ---- موبايل كبير 600–767 ---- */
@media (min-width: 600px) and (max-width: 767px) {
  :root {
    --header-h: 60px;
    --ticker-h: 32px;
  }

  #desktop-nav { display: none; }
  .ham-btn { display: flex; }

  .hero-section { padding: 30px 16px 16px; }
  .hero-title { font-size: 42px; }
  .hero-stats { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .stat-num { font-size: 22px; }
  .stat-lbl { font-size: 11px; }

  .main-buttons-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .main-big-btn { padding: 18px 16px; }
  .btn-title { font-size: 17px; }
  .btn-sub { font-size: 11px; }
  .btn-icon-wrap { width: 48px; height: 48px; font-size: 20px; }
  .btn-arrow { display: none; }

  .trust-section { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .trust-card { padding: 18px; }
  .trust-icon { font-size: 26px; }
  .trust-card h4 { font-size: 14px; }
  .trust-card p { font-size: 12px; }

  .store-products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .games-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .channels-grid { grid-template-columns: 1fr; }

  .welcome-banner { margin: 14px; padding: 14px; }
  .welcome-banner p { font-size: 13px; }

  .modal-box { padding: 20px; margin: 10px; }
  .wallet-actions { grid-template-columns: repeat(2,1fr); }
  .wallet-balance-card { padding: 20px; }
  .wbal-amount { font-size: 28px; }

  .page-header { padding: 24px 16px 14px; }
  .page-title { font-size: 22px; }
}

/* ---- موبايل عادي 480–599 ---- */
@media (min-width: 480px) and (max-width: 599px) {
  :root {
    --header-h: 58px;
    --ticker-h: 30px;
  }

  #desktop-nav { display: none; }
  .ham-btn { display: flex; }
  .logo-text { font-size: 14px; }
  .hdr-pill span { display: none; }
  .hdr-pill { padding: 7px 10px; }

  .hero-section { padding: 24px 14px 12px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 13px; }
  .hero-stats { gap: 12px; flex-wrap: wrap; }
  .stat-num { font-size: 20px; }
  .hero-badge { font-size: 10px; padding: 5px 12px; }

  .main-buttons-section { padding: 0 14px; margin: 24px auto; }
  .section-title { font-size: 16px; }
  .main-buttons-grid { grid-template-columns: 1fr; gap: 12px; }
  .main-big-btn { padding: 16px 16px; border-radius: 14px; }
  .btn-title { font-size: 18px; }
  .btn-sub { font-size: 12px; }
  .btn-icon-wrap { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
  .btn-arrow { display: none; }

  .trust-section { grid-template-columns: repeat(2,1fr); gap: 10px; padding: 0 14px; }
  .trust-card { padding: 16px 12px; }
  .trust-icon { font-size: 24px; margin-bottom: 8px; }
  .trust-card h4 { font-size: 13px; }
  .trust-card p { font-size: 11px; }

  .store-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { padding: 14px; }
  .product-icon { font-size: 26px; margin-bottom: 8px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 15px; }
  .product-buy-btn { padding: 8px; font-size: 12px; }

  .store-cats-nav { gap: 6px; }
  .cat-btn { padding: 8px 12px; font-size: 12px; border-radius: 8px; }
  .store-header-bar { padding: 10px 14px; }
  .store-tag { font-size: 13px; }

  .games-grid { grid-template-columns: 1fr; padding: 0 14px; }
  .channels-grid { grid-template-columns: 1fr; padding: 0 14px; }

  .modal-overlay { padding: 12px; }
  .modal-box { padding: 20px 16px; border-radius: 16px; }
  .modal-header h3 { font-size: 18px; }
  .wallet-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wallet-balance-card { padding: 18px; }
  .wbal-amount { font-size: 26px; }

  .welcome-banner { margin: 10px 14px; padding: 12px; border-radius: 12px; }
  .welcome-banner p { font-size: 13px; }

  .page-header { padding: 20px 14px 12px; }
  .page-title { font-size: 20px; }
  .page-desc { font-size: 12px; }

  #store-content-wrap { padding: 0 14px; }
  .stores-tabs-wrap { padding: 0 14px; }

  .ticker-bar { display: flex; }
  #ticker-content { font-size: 12px; }

  .site-footer { padding: 28px 14px; }
  .footer-links { gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12px; }
  .footer-logo { font-size: 15px; }
}

/* ---- موبايل صغير max-width: 479px ---- */
@media (max-width: 479px) {
  :root {
    --header-h: 56px;
    --ticker-h: 28px;
  }

  /* Header */
  #desktop-nav { display: none; }
  .ham-btn { display: flex; }
  .logo-text { font-size: 13px; letter-spacing: 0; }
  .logo-icon { width: 34px; height: 34px; font-size: 15px; border-radius: 8px; }
  .hdr-pill span { display: none; }
  .hdr-pill { padding: 6px 10px; font-size: 13px; border-radius: 16px; }
  .admin-pill { display: none; } /* Hide admin pill on tiny screens */
  .header-inner { padding: 0 12px; gap: 10px; }

  /* Mobile nav */
  .mnav-btn { font-size: 14px; padding: 11px 14px; }

  /* Ticker */
  .ticker-label { padding: 0 10px; font-size: 10px; }
  #ticker-content { font-size: 11px; }
  .ticker-bar { height: 28px; }

  /* Welcome */
  .welcome-banner { margin: 10px 12px; padding: 10px 14px; border-radius: 10px; }
  .welcome-banner p { font-size: 12px; line-height: 1.5; }

  /* Hero */
  .hero-section { padding: 20px 12px 10px; }
  .hero-badge { font-size: 9px; padding: 4px 10px; letter-spacing: 1px; }
  .hero-title { font-size: 28px; margin-bottom: 10px; line-height: 1.2; }
  .hero-sub { font-size: 12px; margin-bottom: 24px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 16px;
  }
  .stat-item { text-align: center; }
  .stat-num { font-size: 18px; }
  .stat-lbl { font-size: 10px; }

  /* Main Buttons */
  .main-buttons-section { padding: 0 12px; margin: 20px auto; }
  .section-title { font-size: 15px; margin-bottom: 16px; }
  .main-buttons-grid { grid-template-columns: 1fr; gap: 10px; }
  .main-big-btn {
    padding: 16px 14px;
    border-radius: 12px;
    gap: 14px;
  }
  .btn-icon-wrap { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; flex-shrink: 0; }
  .btn-title { font-size: 17px; }
  .btn-sub { font-size: 11px; }
  .btn-arrow { display: none; }

  /* Trust */
  .trust-section {
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
    padding: 0 12px;
    margin: 24px auto;
  }
  .trust-card { padding: 14px 10px; border-radius: 12px; }
  .trust-icon { font-size: 22px; margin-bottom: 6px; }
  .trust-card h4 { font-size: 12px; margin-bottom: 4px; }
  .trust-card p { font-size: 10px; line-height: 1.4; }

  /* Store */
  #store-content-wrap { padding: 0 12px; }
  .stores-tabs-wrap { padding: 0 12px; gap: 8px; }
  .store-tab-btn { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
  .store-header-bar { padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; }
  .store-tag { font-size: 13px; }
  .store-live-badge { font-size: 10px; padding: 3px 8px; }
  .store-cats-nav { gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
  .cat-btn { padding: 7px 10px; font-size: 12px; border-radius: 7px; }
  .store-breadcrumb { font-size: 11px; gap: 5px; margin-bottom: 12px; }
  .store-products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-card { padding: 12px 10px; border-radius: 12px; }
  .product-icon { font-size: 24px; margin-bottom: 6px; }
  .product-name { font-size: 12px; line-height: 1.3; margin-bottom: 5px; }
  .product-price { font-size: 14px; margin-bottom: 8px; }
  .product-buy-btn { padding: 7px 6px; font-size: 11px; border-radius: 6px; gap: 4px; }
  .folder-enter-btn { padding: 7px 6px; font-size: 11px; border-radius: 6px; }

  /* Games */
  .games-grid { grid-template-columns: 1fr; padding: 0 12px; gap: 12px; }
  .game-card-img { height: 130px; font-size: 40px; }
  .game-card-title { font-size: 14px; }
  .game-card-price { font-size: 14px; }

  /* Channels */
  .channels-grid { grid-template-columns: 1fr; padding: 0 12px; gap: 12px; }
  .channel-card { padding: 16px; gap: 12px; }
  .channel-icon { width: 46px; height: 46px; font-size: 20px; }
  .channel-name { font-size: 14px; }
  .channel-desc { font-size: 12px; }
  .channel-btn { font-size: 12px; padding: 6px 12px; }

  /* Apps */
  .apps-grid { grid-template-columns: 1fr; padding: 0 12px; gap: 12px; }

  /* Page headers */
  .page-header { padding: 18px 12px 10px; }
  .page-title { font-size: 18px; gap: 8px; }
  .page-desc { font-size: 11px; }

  /* Modals */
  .modal-overlay { padding: 8px; align-items: flex-end; }
  .modal-box {
    padding: 20px 16px 24px;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    width: 100%;
    max-width: 100%;
  }
  .modal-header { margin-bottom: 20px; }
  .modal-icon { font-size: 32px; margin-bottom: 8px; }
  .modal-header h3 { font-size: 18px; }
  .modal-header p { font-size: 12px; }
  .modal-close { top: 12px; left: 12px; }

  .wallet-balance-card { padding: 16px; border-radius: 12px; }
  .wbal-amount { font-size: 28px; }
  .wbal-syp { font-size: 12px; }
  .wallet-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wallet-action-btn { padding: 12px 8px; font-size: 12px; }
  .wallet-action-btn i { font-size: 18px; }
  .wallet-history h4 { font-size: 13px; }

  .login-tabs { gap: 6px; }
  .ltab { font-size: 12px; padding: 9px 8px; }
  .tg-big-icon { font-size: 30px; }
  .tg-login-info p { font-size: 13px; }
  .tg-login-info small { font-size: 11px; }
  .form-input { padding: 10px 14px; font-size: 14px; }
  .btn-neon { padding: 12px 20px; font-size: 14px; }

  .charge-info-box { padding: 12px; }
  .payment-detail strong { font-size: 10px; }

  .buy-product-name { font-size: 15px; }
  .buy-product-price { font-size: 24px; }

  /* Balance display */
  .balance-display { padding: 12px 16px; }
  .bal-amount { font-size: 18px; }

  /* Footer */
  .site-footer { padding: 24px 12px; }
  .footer-logo { font-size: 14px; gap: 8px; }
  .footer-desc { font-size: 12px; }
  .footer-links { gap: 12px; flex-direction: column; align-items: center; }
  .footer-links a { font-size: 12px; }
  .footer-copy { font-size: 10px; }

  /* Empty state */
  .empty-state { padding: 40px 16px; }
  .empty-state i { font-size: 36px; }
  .empty-state p { font-size: 14px; }
  .empty-state span { font-size: 12px; }
}

/* ---- أصغر موبايل 320px ---- */
@media (max-width: 360px) {
  .hero-title { font-size: 24px; }
  .main-buttons-grid { gap: 8px; }
  .main-big-btn { padding: 14px 12px; gap: 10px; }
  .btn-icon-wrap { width: 38px; height: 38px; font-size: 16px; }
  .btn-title { font-size: 15px; }
  .store-products-grid { grid-template-columns: 1fr; }
  .trust-section { grid-template-columns: 1fr; }
  .hdr-pill { display: none; }
  #wallet-btn { display: flex !important; }
  .logo-text { font-size: 11px; }
}

/* ---- Landscape موبايل أفقي ---- */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 50px; --ticker-h: 24px; }
  .hero-section { padding: 16px 16px 8px; }
  .hero-title { font-size: 28px; }
  .hero-stats { gap: 12px; }
  .main-buttons-grid { grid-template-columns: repeat(2,1fr); }
  .modal-overlay { align-items: center; }
  .modal-box { max-height: 85vh; border-radius: 16px; }
}

/* ---- Print ---- */
@media print {
  #bg-canvas, #particles-container, .ticker-bar,
  #main-header, .ham-btn, .hdr-pill { display: none !important; }
  body { background: white; color: black; }
  #main-app { margin-top: 0; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(0,245,255,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ---- Touch improvements ---- */
@media (hover: none) and (pointer: coarse) {
  .main-big-btn:hover { transform: none; box-shadow: none; }
  .main-big-btn:active { transform: scale(0.98); }
  .product-card:hover { transform: none; }
  .product-card:active { transform: scale(0.98); }
  .trust-card:hover { transform: none; }
  .nav-btn:hover { background: none; color: var(--text-muted); }
  .nav-btn.active { color: var(--cyan); background: rgba(0,245,255,0.12); }
  /* Larger touch targets */
  .cat-btn { min-height: 44px; }
  .product-buy-btn, .folder-enter-btn { min-height: 40px; }
  .btn-neon, .btn-outline { min-height: 48px; }
}

