/* Base reset and layout */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: #f9fafb;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout container */
.app {
  min-height: 100vh;
  background: transparent;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 88px; /* space for bottom nav */
}

.background-blur {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-pulse {
  position: absolute;
  filter: blur(64px);
  opacity: 0.7;
}

.bg-pulse-1 {
  top: -40px;
  left: 12%;
  width: 260px;
  height: 260px;
  background: rgba(34, 197, 94, 0.25);
}

.bg-pulse-2 {
  right: -40px;
  bottom: 18%;
  width: 220px;
  height: 220px;
  background: rgba(168, 85, 247, 0.25);
}

.bg-pulse-3 {
  left: -60px;
  top: 50%;
  width: 200px;
  height: 200px;
  background: rgba(59, 130, 246, 0.25);
}

/* Glassmorphism helpers */
.glass {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

.glass-soft {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(28px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85);
}

.neon {
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.9), 0 0 24px rgba(34, 197, 94, 0.8);
}

.neon-glow-btn {
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.8), 0 0 40px rgba(59, 130, 246, 0.6);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px 16px 6px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.logo {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.balance:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(74, 222, 128, 0.6);
  transform: scale(1.02);
}

.balance:active {
  transform: scale(0.98);
}

.balance-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(145deg, #26a17b, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
}

.balance-icon svg {
  width: 80%;
  height: 80%;
}

.balance-value {
  font-weight: 600;
  font-size: 13px;
}

.balance-currency {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(74, 222, 128, 0.65);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main content */
.main {
  position: relative;
  z-index: 1;
  padding: 84px 16px 24px;
  max-width: 480px;
  margin: 0 auto;
}

/* Hero banner */
.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  margin-bottom: 24px;
}

/* режимы отображения (нижние вкладки) */
.show-games-only .hero {
  display: none;
}

.show-profile-only .hero,
.show-profile-only #games-section {
  display: none;
}

.show-profile-only .profile-section {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 0 0,
      rgba(34, 197, 94, 0.18),
      transparent 45%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(129, 140, 248, 0.22),
      transparent 50%
    );
  opacity: 0.9;
}

.hero-glow-1,
.hero-glow-2 {
  position: absolute;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.85;
}

.hero-glow-1 {
  width: 140px;
  height: 140px;
  right: -20px;
  top: 18px;
  background: rgba(74, 222, 128, 0.6);
}

.hero-glow-2 {
  width: 120px;
  height: 120px;
  left: -40px;
  bottom: 0;
  background: rgba(56, 189, 248, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 8px;
}

.sparkle {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    #4ade80,
    #22c55e,
    #38bdf8,
    #a855f7,
    #4ade80
  );
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.9);
}

.hero-title {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-title span {
  color: #4ade80;
}

.hero-text {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #022c22;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

.hero-button span.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  position: relative;
}

.hero-button span.icon::before {
  content: "›";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hero-button:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
}

.hero-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 0 transparent;
}

/* Games section */
.section-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont,
    "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title p {
  font-size: 12px;
  color: #9ca3af;
}

/* Profile section (Telegram Mini App) */
.profile-section {
  margin-top: 8px;
  display: none; /* по умолчанию скрыт, показывается в режиме профиля */
}

.profile-card {
  padding: 20px 18px 18px;
  border-radius: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar-wrapper {
  position: relative;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 0, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.7), 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(74, 222, 128, 0.4);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-initials {
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: #022c22;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.profile-nickname {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-username {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.profile-balance-block {
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(34, 197, 94, 0.15),
    rgba(5, 46, 22, 0.25)
  );
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.profile-balance-block:hover {
  background: linear-gradient(
    145deg,
    rgba(34, 197, 94, 0.2),
    rgba(5, 46, 22, 0.3)
  );
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.profile-balance-block:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-balance-label {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.profile-balance-value {
  font-size: 24px;
  font-weight: 800;
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    sans-serif;
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}

.profile-stats {
  margin-top: 4px;
}

.profile-stats-title {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #e5e7eb;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.profile-stat-item {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.2s ease-out;
}

.profile-stat-item:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(74, 222, 128, 0.4);
  transform: translateY(-2px);
}

.profile-stat-item-wide {
  grid-column: 1 / -1;
}

.profile-stat-label {
  font-size: 10px;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.profile-stat-value {
  font-size: 16px;
  font-weight: 700;
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    sans-serif;
  color: #e5e7eb;
}

.profile-stat-value-win {
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.profile-stat-value-loss {
  color: #f87171;
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.profile-footer-note {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 12px;
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, #020617 0, #000 100%);
  cursor: pointer;
  min-height: 120px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9);
  transform-origin: center;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.game-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95);
  border-color: rgba(74, 222, 128, 0.6);
}

.game-card-image {
  position: absolute;
  inset: 0;
  opacity: 0.88;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-gradient {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.game-card-gradient.dice {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.85), transparent);
}

.game-card-gradient.duel {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.9), transparent);
}

.game-card-gradient.basketball {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.95), transparent);
}

.game-card-gradient.darts {
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.95), transparent);
}

.game-card-gradient.slots {
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.9), transparent);
}

.game-card-gradient.mines {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.9), transparent);
}

.game-card-gradient.bowling {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.95), transparent);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.45),
    transparent
  );
}

.game-card-content {
  position: relative;
  z-index: 1;
  padding: 10px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.game-card-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.9);
}

.game-card-title {
  margin-top: 4px;
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont,
    "Inter", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 11px;
  color: #e5e7eb;
}

.game-card-chance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.game-card-chance-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
}

.game-card-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-card-play span.arrow {
  font-size: 12px;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px 12px;
  z-index: 30;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px;
}

.nav-item {
  border: none;
  background: transparent;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 16px;
  cursor: pointer;
  min-width: 56px;
  transition: background-color 0.16s ease-out, color 0.16s ease-out,
    transform 0.12s ease-out;
  font-size: 10px;
}

.nav-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.nav-item.active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.nav-item.active .nav-item-icon {
  background: radial-gradient(circle at 30% 0%, #4ade80, #22c55e);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.85);
}

.nav-item span.label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-item:active {
  transform: scale(0.95);
}

/* Toast - должен отображаться поверх всех модальных окон */
.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(74, 222, 128, 0.7);
  font-size: 12px;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 10000 !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, -4px);
  pointer-events: auto;
  z-index: 10000 !important;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.9);
}

/* Small screens adjustments */
@media (min-width: 640px) {
  .main {
    padding-top: 96px;
  }

  .hero {
    padding: 24px 20px;
  }

  .app {
    display: flex;
    justify-content: center;
  }
}

/* ===== DICE GAME - NEW DESIGN ===== */
.dice-game-section {
  display: none;
  min-height: calc(100vh - 160px);
}

.dice-game-wrapper {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

/* Header */
.dice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 8px;
}

.dice-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.dice-back-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

.dice-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

.dice-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dice-icon svg {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.dice-header-multiplier {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1c1917;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Content */
.dice-content {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 24px;
  padding: 24px;
}

.dice-game-step {
  animation: diceSlideIn 0.3s ease-out;
}

@keyframes diceSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Hero Section */
.dice-hero {
  text-align: center;
  margin-bottom: 28px;
}

.dice-hero-visual {
  margin-bottom: 16px;
}

.dice-3d {
  font-size: 64px;
  display: inline-block;
  animation: diceFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

@keyframes diceFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

.dice-hero-text {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

/* Categories */
.dice-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dice-category {
  background: #1e293b;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.dice-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dice-category-name {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dice-category-mult {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Options Grid */
.dice-options {
  display: grid;
  gap: 10px;
}

.dice-options-2 {
  grid-template-columns: repeat(2, 1fr);
}

.dice-options-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dice-options-6 {
  grid-template-columns: repeat(6, 1fr);
}

.dice-option {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px 12px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  min-height: 60px;
}

.dice-option:hover {
  background: #1e293b;
  border-color: #475569;
  transform: translateY(-2px);
}

.dice-option.selected {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.dice-option-icon {
  font-size: 20px;
  line-height: 1;
}

.dice-option-label {
  font-size: 12px;
  opacity: 0.9;
}

.dice-option-num {
  font-size: 16px;
  font-weight: 700;
  font-family: "Orbitron", monospace;
}

.dice-option-number {
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 800;
  font-family: "Orbitron", monospace;
  min-height: 48px;
}

.dice-option-wide {
  flex-direction: row;
  justify-content: center;
  padding: 16px;
  gap: 10px;
}

/* Step 2: Amount */
.dice-bet-info {
  text-align: center;
  margin-bottom: 24px;
}

.dice-bet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #4ade80;
}

.dice-amount-section {
  margin-bottom: 24px;
}

.dice-amount-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dice-amount-field {
  position: relative;
}

.dice-amount-input {
  width: 100%;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 20px;
  padding-right: 90px;
  color: #f1f5f9;
  font-size: 24px;
  font-weight: 700;
  font-family: "Orbitron", monospace;
  outline: none;
  transition: all 0.2s;
}

.dice-amount-input::placeholder {
  color: #475569;
}

.dice-amount-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.dice-amount-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-size: 14px;
  font-weight: 700;
}

.dice-quick-amounts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.dice-quick-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.dice-quick-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

.dice-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  border: none;
  border-radius: 16px;
  padding: 18px 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

.dice-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
}

.dice-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Step 3: Result */
.dice-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.dice-result-visual {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.dice-result-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  animation: resultPulse 2s ease-in-out infinite;
}

@keyframes resultPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

#dice-gif {
  width: 140px;
  height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: none;
}

.dice-result-emoji {
  font-size: 80px;
  position: relative;
  z-index: 2;
  animation: resultBounce 0.5s ease-in-out infinite alternate;
  line-height: 1;
}

@keyframes resultBounce {
  from { transform: scale(1) rotate(-5deg); }
  to { transform: scale(1.1) rotate(5deg); }
}

.dice-result-status {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: "Orbitron", sans-serif;
}

.dice-result-status.win {
  color: #4ade80;
  text-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
}

.dice-result-status.loss {
  color: #f87171;
  text-shadow: 0 0 30px rgba(248, 113, 113, 0.5);
}

.dice-result-info {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.8;
}

.dice-result-info strong {
  color: #f1f5f9;
}

.dice-again-btn {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 16px;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.dice-again-btn:hover {
  background: #334155;
  border-color: #475569;
}

/* Visibility */
.show-dice-game .dice-game-section {
  display: block !important;
}

.show-dice-game .hero,
.show-dice-game #games-section,
.show-dice-game .profile-section {
  display: none !important;
}

.show-dice-game .main {
  padding-top: 84px;
}

/* ===== DUEL GAME ===== */
.duel-game-section {
  display: none;
  min-height: calc(100vh - 160px);
}

/* Duel specific styles */
.duel-dice-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.duel-dice {
  font-size: 48px;
  animation: diceFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.duel-dice:nth-child(3) {
  animation-delay: 0.5s;
}

.duel-vs {
  font-size: 20px;
  font-weight: 800;
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  font-family: "Orbitron", sans-serif;
}

/* Duel Options */
.duel-option {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px 16px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  text-align: center;
}

.duel-option:hover {
  background: #1e293b;
  border-color: #475569;
  transform: translateY(-2px);
}

.duel-option.selected {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.duel-option-dice {
  font-size: 32px;
  line-height: 1;
}

.duel-option-label {
  font-size: 14px;
  font-weight: 700;
}

.duel-option-desc {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.duel-option-wide {
  flex-direction: row;
  justify-content: center;
  padding: 18px 20px;
  gap: 12px;
}

.duel-option-wide .duel-option-icon {
  font-size: 28px;
}

.duel-option-wide .duel-option-label {
  font-size: 15px;
}

/* Duel quick buttons */
.duel-quick-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.duel-quick-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

/* Duel Result */
.duel-result-visual {
  margin-bottom: 24px;
}

.duel-dice-battle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.duel-dice-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.duel-gif {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: none;
}

.duel-dice-placeholder {
  font-size: 50px;
  animation: resultBounce 0.5s ease-in-out infinite alternate;
}

.duel-vs-result {
  font-size: 24px;
  font-weight: 800;
  color: #f59e0b;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  font-family: "Orbitron", sans-serif;
}

/* Duel visibility */
.show-duel-game .duel-game-section {
  display: block !important;
}

.show-duel-game .hero,
.show-duel-game #games-section,
.show-duel-game .profile-section,
.show-duel-game .dice-game-section {
  display: none !important;
}

.show-duel-game .main {
  padding-top: 84px;
}

/* ===== BASKETBALL GAME ===== */
.basketball-game-section {
  display: none;
  min-height: calc(100vh - 160px);
}

/* Basketball hero */
.basketball-hero-icon {
  font-size: 64px;
  animation: basketballBounce 1s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(234, 88, 12, 0.3));
  color: #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.basketball-hero-icon svg {
  width: 64px;
  height: 64px;
}

@keyframes basketballBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Basketball Options */
.basketball-option {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 24px 16px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  text-align: center;
}

.basketball-option:hover {
  background: #1e293b;
  border-color: #475569;
  transform: translateY(-2px);
}

.basketball-option.selected {
  background: rgba(234, 88, 12, 0.15);
  border-color: #ea580c;
  color: #fb923c;
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
}

.basketball-option-icon {
  font-size: 36px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb923c;
}

.basketball-option-icon svg {
  width: 32px;
  height: 32px;
}

.basketball-option-label {
  font-size: 16px;
  font-weight: 700;
}

.basketball-option-mult {
  font-size: 13px;
  color: #fb923c;
  font-weight: 700;
  background: rgba(234, 88, 12, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
}

/* Basketball badge */
.basketball-badge {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15) 0%, rgba(234, 88, 12, 0.05) 100%) !important;
  border-color: rgba(234, 88, 12, 0.3) !important;
  color: #fb923c !important;
}

/* ===== BOWLING GAME ===== */
.bowling-game-section {
  display: none;
  min-height: calc(100vh - 160px);
}

.bowling-option {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 24px 16px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  text-align: center;
}

.bowling-option:hover {
  background: #1e293b;
  border-color: #475569;
  transform: translateY(-2px);
}

.bowling-option.selected {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #93c5fd;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.bowling-option-icon {
  font-size: 36px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}

.bowling-option-icon svg {
  width: 32px;
  height: 32px;
}

.bowling-option-label {
  font-size: 16px;
  font-weight: 700;
}

.bowling-option-mult {
  font-size: 13px;
  color: #bfdbfe;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
}

.bowling-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #bfdbfe !important;
}

/* Bowling quick buttons */
.bowling-quick-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.bowling-quick-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

/* Bowling submit button */
.bowling-submit-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3) !important;
}

.bowling-submit-btn:hover:not(:disabled) {
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4) !important;
}

/* Bowling hero icon */
.bowling-hero-icon {
  font-size: 64px;
  animation: bowlingRoll 1.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(34, 197, 94, 0.3));
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bowling-hero-icon svg {
  width: 64px;
  height: 64px;
}

@keyframes bowlingRoll {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(15px) rotate(360deg); }
}

/* Bowling Result */
.bowling-result-visual {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.bowling-gif {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: none;
}

.bowling-placeholder {
  font-size: 80px;
  animation: bowlingRoll 1.5s ease-in-out infinite;
}

.show-bowling-game .bowling-game-section {
  display: block !important;
}

.show-bowling-game .hero,
.show-bowling-game #games-section,
.show-bowling-game .profile-section,
.show-bowling-game .dice-game-section,
.show-bowling-game .duel-game-section,
.show-bowling-game .basketball-game-section,
.show-bowling-game .darts-game-section,
.show-bowling-game .mines-game-section {
  display: none !important;
}

.show-bowling-game .main {
  padding-top: 84px;
}

/* Basketball quick buttons */
.basketball-quick-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.basketball-quick-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

/* Basketball submit button */
.basketball-submit-btn {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  box-shadow: 0 8px 30px rgba(234, 88, 12, 0.3) !important;
}

.basketball-submit-btn:hover:not(:disabled) {
  box-shadow: 0 12px 40px rgba(234, 88, 12, 0.4) !important;
}

/* Basketball Result */
.basketball-result-visual {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.basketball-gif {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: none;
}

.basketball-placeholder {
  font-size: 80px;
  animation: basketballBounce 1s ease-in-out infinite;
}

/* Basketball visibility */
.show-basketball-game .basketball-game-section {
  display: block !important;
}

.show-basketball-game .hero,
.show-basketball-game #games-section,
.show-basketball-game .profile-section,
.show-basketball-game .dice-game-section,
.show-basketball-game .duel-game-section {
  display: none !important;
}

.show-basketball-game .main {
  padding-top: 84px;
}

/* ===== DARTS GAME ===== */
.darts-game-section {
  display: none;
  min-height: calc(100vh - 160px);
}

/* Darts hero */
.darts-hero-icon {
  font-size: 64px;
  animation: dartsThrow 1.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(220, 38, 38, 0.3));
}

@keyframes dartsThrow {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-10px) rotate(-10deg); }
  50% { transform: translateX(10px) rotate(10deg); }
  75% { transform: translateX(-5px) rotate(-5deg); }
}

/* Darts Options */
.darts-option {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 24px 16px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  text-align: center;
}

.darts-option:hover {
  background: #1e293b;
  border-color: #475569;
  transform: translateY(-2px);
}

.darts-option.selected {
  background: rgba(220, 38, 38, 0.15);
  border-color: #dc2626;
  color: #f87171;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.darts-option-icon {
  font-size: 36px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
}

.darts-option-icon svg {
  width: 32px;
  height: 32px;
}

.darts-option-icon.darts-white {
  color: #f1f5f9;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.darts-option-icon.darts-red {
  color: #ef4444;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.5));
}

.darts-option-label {
  font-size: 16px;
  font-weight: 700;
}

/* Darts badge */
.darts-badge {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.05) 100%) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
  color: #f87171 !important;
}

/* Darts quick buttons */
.darts-quick-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.darts-quick-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

/* Darts submit button */
.darts-submit-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3) !important;
}

.darts-submit-btn:hover:not(:disabled) {
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4) !important;
}

/* Darts Result */
.darts-result-visual {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.darts-gif {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: none;
}

.darts-placeholder {
  font-size: 80px;
  animation: dartsThrow 1.5s ease-in-out infinite;
}

/* Darts visibility */
.show-darts-game .darts-game-section {
  display: block !important;
}

.show-darts-game .hero,
.show-darts-game #games-section,
.show-darts-game .profile-section,
.show-darts-game .dice-game-section,
.show-darts-game .duel-game-section,
.show-darts-game .basketball-game-section {
  display: none !important;
}

.show-darts-game .main {
  padding-top: 84px;
}

/* ===== MINES GAME ===== */
.mines-game-section {
  display: none;
  min-height: calc(100vh - 160px);
}

/* Multipliers display */
.mines-multipliers {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mines-mult-item {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mines-mult-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
}

.mines-mult-value {
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
  font-family: "Orbitron", monospace;
}

/* Mines Grid */
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
}

.mines-cell {
  aspect-ratio: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
}

.mines-cell:hover:not(.revealed):not(.disabled) {
  background: #334155;
  border-color: #3b82f6;
  transform: scale(1.05);
}

.mines-cell.revealed {
  cursor: default;
}

.mines-cell.revealed.safe {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: #22c55e;
  animation: mineReveal 0.3s ease-out;
}

.mines-cell.revealed.mine {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  animation: mineExplode 0.4s ease-out;
}

.mines-cell.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mines-cell.game-over.safe {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
}

.mines-cell.game-over.mine {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

@keyframes mineReveal {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes mineExplode {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Bombs selection */
.mines-bombs-section {
  margin-bottom: 20px;
}

.mines-section-label {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
  font-weight: 600;
}

.mines-bombs-buttons {
  display: flex;
  gap: 8px;
}

.mines-bomb-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px;
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.mines-bomb-btn:hover {
  background: #334155;
}

.mines-bomb-btn.selected {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.mines-bomb-btn:disabled {
  background: #020617;
  border-color: #111827;
  color: #4b5563;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Bet controls */
.mines-bet-section {
  margin-bottom: 20px;
}

.mines-bet-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.mines-bet-ctrl {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px 12px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  height: 56px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mines-bet-ctrl:hover {
  background: #334155;
  color: #f1f5f9;
}

.mines-bet-ctrl:active {
  transform: scale(0.95);
}

.mines-bet-ctrl:disabled {
  background: #020617;
  border-color: #111827;
  color: #4b5563;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mines-bet-input {
  flex: 2;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 16px 12px;
  color: #f1f5f9;
  font-size: 24px;
  font-weight: 700;
  font-family: "Orbitron", monospace;
  text-align: center;
  outline: none;
  min-width: 80px;
  height: 56px;
  box-sizing: border-box;
}

.mines-bet-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mines-bet-input:disabled {
  background: #020617;
  border-color: #111827;
  color: #4b5563;
}

/* Start/Cashout buttons */
.mines-start-btn {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.mines-start-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.mines-start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mines-cashout-btn {
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
  margin-top: 12px;
}

.mines-cashout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
}

/* Grid Wrapper */
.mines-grid-wrapper {
  position: relative;
  margin-bottom: 24px;
}

/* Result Overlay */
.mines-result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mines-result-content {
  text-align: center;
  padding: 20px;
}

.mines-result-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: bounceIn 0.4s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.mines-result-status {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: "Orbitron", sans-serif;
}

.mines-result-status.win {
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.mines-result-status.loss {
  color: #f87171;
  text-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
}

.mines-result-amount {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.mines-result-amount.win {
  color: #4ade80;
}

.mines-result-amount.loss {
  color: #f87171;
}

.mines-play-again-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.mines-play-again-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* Mines visibility */
.show-mines-game .mines-game-section {
  display: block !important;
}

.show-mines-game .hero,
.show-mines-game #games-section,
.show-mines-game .profile-section,
.show-mines-game .dice-game-section,
.show-mines-game .duel-game-section,
.show-mines-game .basketball-game-section,
.show-mines-game .darts-game-section,
.show-mines-game .fortune-game-section,
.show-mines-game .knb-game-section {
  display: none !important;
}

.show-mines-game .main {
  padding-top: 84px;
}

/* ===== KNB GAME ===== */
.knb-game-section {
  display: none;
  min-height: calc(100vh - 160px);
}

/* KNB hero */
.knb-hero-icon {
  font-size: 64px;
  animation: knbPunch 0.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.knb-hero-icon svg {
  width: 64px;
  height: 64px;
}

@keyframes knbPunch {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(0.95) rotate(5deg); }
  75% { transform: scale(1.05) rotate(-3deg); }
}

/* KNB Options - 3 columns */
.dice-options-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.knb-option {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px 12px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  text-align: center;
}

.knb-option:hover {
  background: #1e293b;
  border-color: #475569;
  transform: translateY(-2px);
}

.knb-option.selected {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
  color: #c4b5fd;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.knb-option-icon {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
}

.knb-option-icon svg {
  width: 32px;
  height: 32px;
}

.knb-option-label {
  font-size: 14px;
  font-weight: 700;
}

/* KNB badge */
.knb-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  color: #c4b5fd !important;
}

/* KNB quick buttons */
.knb-quick-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.knb-quick-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

/* KNB submit button */
.knb-submit-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3) !important;
}

.knb-submit-btn:hover:not(:disabled) {
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4) !important;
}

/* KNB Battle Result */
.knb-result-visual {
  margin-bottom: 24px;
}

.knb-battle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.knb-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.knb-player-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.knb-gif {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: none;
}

.knb-placeholder {
  font-size: 56px;
  animation: knbPunch 0.8s ease-in-out infinite;
}

.knb-vs {
  font-size: 20px;
  font-weight: 800;
  color: #8b5cf6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* KNB visibility */
.show-knb-game .knb-game-section {
  display: block !important;
}

.show-knb-game .hero,
.show-knb-game #games-section,
.show-knb-game .profile-section,
.show-knb-game .dice-game-section,
.show-knb-game .duel-game-section,
.show-knb-game .basketball-game-section,
.show-knb-game .bowling-game-section,
.show-knb-game .darts-game-section,
.show-knb-game .mines-game-section,
.show-knb-game .fortune-game-section {
  display: none !important;
}

.show-knb-game .main {
  padding-top: 84px;
}

/* ===== DESKTOP RESPONSIVE ===== */

/* Desktop screens (1024px+) */
@media (min-width: 1024px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
  }
  
  .app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  }
  
  .header {
    width: 100%;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .bottom-nav {
    width: calc(100% - 32px);
    max-width: 448px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .app {
    max-width: 520px;
  }
  
  .header {
    max-width: 520px;
  }
  
  .bottom-nav {
    max-width: 488px;
  }
}

/* Full HD (1920px+) */
@media (min-width: 1920px) {
  .app {
    max-width: 560px;
  }
  
  .header {
    max-width: 560px;
  }
  
  .bottom-nav {
    max-width: 528px;
  }
}

/* ===== FORTUNE WHEEL GAME ===== */

.fortune-game-section {
  display: none;
  padding: 16px;
}

.fortune-header {
  background: transparent;
}

.fortune-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
}

/* Fortune Wheel Container */
.fortune-wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 24px;
}

.fortune-wheel-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 35px solid #f59e0b;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.6));
  animation: pointerGlow 1.5s ease-in-out infinite;
}

.fortune-wheel-pointer::after {
  content: "";
  position: absolute;
  top: -35px;
  left: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid #fbbf24;
}

@keyframes pointerGlow {
  0%, 100% { 
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.6));
  }
  50% { 
    filter: drop-shadow(0 4px 15px rgba(245, 158, 11, 0.9)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.5));
  }
}

.fortune-wheel-outer {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(
    from 0deg,
    #f59e0b 0deg 20deg,
    #d97706 20deg 40deg,
    #f59e0b 40deg 60deg,
    #d97706 60deg 80deg,
    #f59e0b 80deg 100deg,
    #d97706 100deg 120deg,
    #f59e0b 120deg 140deg,
    #d97706 140deg 160deg,
    #f59e0b 160deg 180deg,
    #d97706 180deg 200deg,
    #f59e0b 200deg 220deg,
    #d97706 220deg 240deg,
    #f59e0b 240deg 260deg,
    #d97706 260deg 280deg,
    #f59e0b 280deg 300deg,
    #d97706 300deg 320deg,
    #f59e0b 320deg 340deg,
    #d97706 340deg 360deg
  );
  box-shadow: 
    0 0 40px rgba(245, 158, 11, 0.5),
    0 0 80px rgba(245, 158, 11, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
  animation: outerGlow 3s ease-in-out infinite;
}

@keyframes outerGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 0 80px rgba(245, 158, 11, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 50px rgba(245, 158, 11, 0.7), 0 0 100px rgba(245, 158, 11, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.4); }
}

.fortune-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0f172a;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.fortune-wheel canvas {
  border-radius: 50%;
}

.fortune-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(245, 158, 11, 0.3),
    inset 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
  border: 3px solid #fbbf24;
}

.fortune-wheel-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Fortune Result */
.fortune-result {
  text-align: center;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fortune-result-amount {
  font-size: 32px;
  font-weight: 800;
  font-family: "Orbitron", monospace;
  margin-bottom: 8px;
  text-shadow: 0 0 20px currentColor;
}

.fortune-result-amount.fortune-win {
  color: #22c55e;
  animation: winPulse 0.5s ease-out;
}

.fortune-result-amount.fortune-lose {
  color: #ef4444;
}

@keyframes winPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.fortune-result-text {
  font-size: 14px;
  color: #94a3b8;
}

/* Fortune Bet Section */
.fortune-bet-section {
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}

.fortune-bet-label {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
  text-align: center;
}

.fortune-bet-field {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.fortune-bet-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  font-family: "Orbitron", monospace;
  text-align: center;
  /* Скрываем спиннеры (стрелки) для input type="number" */
  -moz-appearance: textfield;
  appearance: textfield;
}

.fortune-bet-input::-webkit-outer-spin-button,
.fortune-bet-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fortune-bet-input::placeholder {
  color: #475569;
}

.fortune-bet-suffix {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.fortune-quick-amounts {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.fortune-quick-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fortune-quick-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.fortune-quick-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-color: #8b5cf6;
  color: #a78bfa;
}

/* Fortune Spin Button */
.fortune-spin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  padding: 16px 24px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
}

.fortune-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5);
}

.fortune-spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fortune-spin-icon {
  font-size: 20px;
  animation: spinIcon 2s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fortune-spin-btn:disabled .fortune-spin-icon {
  animation: none;
}

.fortune-again-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.fortune-again-btn:hover:not(:disabled) {
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

/* Fortune Visibility */
.show-fortune-game .fortune-game-section {
  display: block !important;
}

.show-fortune-game .hero,
.show-fortune-game #games-section,
.show-fortune-game .profile-section,
.show-fortune-game .dice-game-section,
.show-fortune-game .duel-game-section,
.show-fortune-game .basketball-game-section,
.show-fortune-game .bowling-game-section,
.show-fortune-game .darts-game-section,
.show-fortune-game .mines-game-section,
.show-fortune-game .knb-game-section {
  display: none !important;
}

.show-fortune-game .main {
  padding-top: 84px;
}

/* Game Card gradient for fortune */
.game-card-gradient-fortuna {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
}

/* ===== BALANCE ACTIONS ===== */
.profile-balance-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.profile-deposit-btn,
.profile-withdraw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-deposit-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.profile-deposit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.profile-deposit-btn:active {
  transform: translateY(0);
}

.profile-withdraw-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.profile-withdraw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.profile-withdraw-btn:active {
  transform: translateY(0);
}

.deposit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.deposit-modal.active {
  display: flex;
}

.deposit-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.deposit-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  animation: slideUp 0.3s ease-out;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.deposit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.deposit-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.deposit-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deposit-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.deposit-step {
  display: block;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.deposit-amount-section {
  margin-bottom: 24px;
}

.deposit-amount-label {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.deposit-amount-field {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.deposit-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
  font-family: "Orbitron", monospace;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.deposit-amount-input::-webkit-outer-spin-button,
.deposit-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.deposit-amount-input::placeholder {
  color: #475569;
}

.deposit-amount-suffix {
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
}

.deposit-quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deposit-quick-btn {
  flex: 1;
  min-width: 50px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deposit-quick-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.deposit-quick-btn.active {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: transparent;
  color: #fff;
}

.deposit-continue-btn,
.deposit-done-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.deposit-continue-btn:hover,
.deposit-done-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.deposit-continue-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.deposit-info-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  color: #22c55e;
  font-size: 15px;
  margin-bottom: 20px;
}

.deposit-info-badge strong {
  font-weight: 700;
}

.deposit-methods-title {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 16px;
  text-align: center;
}

.deposit-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.deposit-method-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-sizing: border-box;
}

.deposit-method-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

.deposit-method-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.deposit-method-info {
  flex: 1;
}

.deposit-method-name {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.deposit-method-desc {
  font-size: 13px;
  color: #64748b;
}

.deposit-method-arrow {
  color: #64748b;
}

.deposit-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deposit-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.deposit-waiting {
  text-align: center;
  padding: 24px 0;
}

.deposit-waiting-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.deposit-waiting-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.deposit-waiting-text {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.deposit-waiting-amount {
  font-family: "Orbitron", monospace;
  font-size: 28px;
  font-weight: 700;
  color: #22c55e;
}

.deposit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.deposit-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.deposit-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.deposit-check-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.deposit-check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.deposit-check-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.deposit-cancel-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.deposit-cancel-btn:hover {
  color: #ef4444;
}

.deposit-success {
  text-align: center;
  padding: 32px 0;
}

.deposit-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.deposit-success-title {
  font-size: 24px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 12px;
}

.deposit-success-amount {
  font-family: "Orbitron", monospace;
  font-size: 32px;
  font-weight: 700;
  color: #f1f5f9;
}

/* ===== WITHDRAW MODAL ===== */
.withdraw-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.withdraw-modal.active {
  display: flex;
}

.withdraw-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.withdraw-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  animation: slideUp 0.3s ease-out;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.withdraw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.withdraw-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.withdraw-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.withdraw-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.withdraw-step {
  display: block;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.withdraw-balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  margin-bottom: 20px;
}

.withdraw-balance-label {
  font-size: 14px;
  color: #94a3b8;
}

.withdraw-balance-value {
  font-family: "Orbitron", monospace;
  font-size: 18px;
  font-weight: 700;
  color: #f59e0b;
}

.withdraw-amount-section {
  margin-bottom: 20px;
}

.withdraw-amount-label {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.withdraw-amount-field {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.withdraw-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
  font-family: "Orbitron", monospace;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.withdraw-amount-input::-webkit-outer-spin-button,
.withdraw-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.withdraw-amount-input::placeholder {
  color: #475569;
}

.withdraw-quick-amounts {
  display: flex;
  gap: 8px;
}

.withdraw-quick-btn {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.withdraw-quick-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.withdraw-quick-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: transparent;
  color: #fff;
}

.withdraw-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(100, 116, 139, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
  color: #94a3b8;
  font-size: 13px;
}

.withdraw-continue-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.withdraw-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.withdraw-continue-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.withdraw-processing,
.withdraw-success,
.withdraw-error {
  text-align: center;
  padding: 40px 20px;
}

.withdraw-processing-icon,
.withdraw-success-icon,
.withdraw-error-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.withdraw-processing-title,
.withdraw-success-title,
.withdraw-error-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.withdraw-processing-text,
.withdraw-success-text,
.withdraw-error-text {
  font-size: 14px;
  color: #94a3b8;
}

.withdraw-success-amount {
  font-family: "Orbitron", monospace;
  font-size: 32px;
  font-weight: 700;
  color: #f59e0b;
  margin: 16px 0;
}

.withdraw-check-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.withdraw-check-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.withdraw-done-btn,
.withdraw-retry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 14px;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.withdraw-done-btn:hover,
.withdraw-retry-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
