/* Эффект Матового Стекла */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.2);
}

/* Аватарка */
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: flex; justify-content: center; align-items: center; position: relative;
}
.avatar svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }

/* Карта Баланса */
.balance-card {
  padding: 24px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 30, 35, 0.8) 0%, rgba(10, 10, 12, 0.9) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  border-radius: 28px; color: var(--text-main);
  display: flex; flex-direction: column; gap: 20px;
}
.balance-card::before { /* Блик */
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg); animation: shine 5s infinite; pointer-events: none;
}
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.card-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.card-chip {
  width: 36px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, #e0e0e0 0%, #888 50%, #ccc 100%);
  position: relative; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.card-chip::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(0,0,0,0.3); }

.balance-amount { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; display: flex; align-items: baseline; gap: 8px; color: #fff; position: relative; z-index: 1; }
.currency { font-size: 16px; color: var(--turquoise); font-weight: 700; text-shadow: 0 0 10px var(--turquoise-glow); }

.topup-btn {
  width: 100%; padding: 16px; border-radius: 16px;
  background: #fff; color: #000; border: none; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s ease; position: relative; z-index: 1;
  animation: btnPulse 2s infinite;
}
.topup-btn:active { transform: scale(0.96); animation: none; background: #e0e0e0; }
@keyframes btnPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }

/* Промо-баннер */
.promo-banner {
  padding: 20px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: transform 0.2s;
  background: linear-gradient(90deg, rgba(45,212,191,0.1) 0%, rgba(255,255,255,0.02) 100%);
}
.promo-banner:hover { transform: translateY(-2px); }
.promo-banner:active { transform: scale(0.97); }
.promo-text h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: #fff; }
.promo-text p { font-size: 13px; color: var(--text-dim); }
.promo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(45,212,191,0.15); display: flex; justify-content: center; align-items: center;
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.promo-icon svg { width: 24px; height: 24px; stroke: var(--turquoise); fill: none; stroke-width: 2; }

/* Игры */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-card {
  padding: 16px; display: flex; flex-direction: column;
  min-height: 140px; cursor: pointer; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative; overflow: hidden;
}
.game-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at top right, rgba(45,212,191,0.2), transparent 60%);
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,0.3); }
.game-card:hover::before { opacity: 1; }
.game-card:active { transform: scale(0.95); }
.game-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center;
  border: 1px solid rgba(255,255,255,0.05); margin-bottom: auto; position: relative; z-index: 1; transition: transform 0.3s;
}
.game-card:hover .game-icon { transform: scale(1.1) rotate(5deg); background: rgba(45,212,191,0.1); }
.game-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; transition: stroke 0.3s; }
.game-card:hover .game-icon svg { stroke: var(--turquoise); }
.game-info { margin-top: 16px; position: relative; z-index: 1; }
.game-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: #fff; }
.game-desc { font-size: 12px; color: var(--text-dim); }

/* Нижнее меню */
.bottom-nav {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); height: 72px;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 10; border-radius: 36px;
  background: rgba(20, 20, 22, 0.7);
  backdrop-filter: blur(32px) saturate(200%); -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 12px 32px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 0 12px;
}
.nav-item {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  color: var(--text-dim); transition: all 0.3s; cursor: pointer; position: relative;
  background: none; border: none;
}
.nav-item svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; z-index: 2; }
.nav-item.active { color: var(--turquoise); }
.nav-item.active::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(45, 212, 191, 0.15); animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Тост (Уведомление) */
.toast {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px; border-radius: 30px; font-size: 14px; font-weight: 600;
  background: #fff; color: #000; opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }