:root {
  --bg-dark: #0f0f15;
  --bg-light: #f5f7fa;
  --card-dark: rgba(30, 30, 40, 0.7);
  --card-light: rgba(255, 255, 255, 0.85);
  --text-dark: #e0e0ff;
  --text-light: #222;
  --accent: #7e57c2;
  --glass: blur(10px);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-dark);
  transition: var(--transition);
}

body.theme-light {
  background: var(--bg-light);
  color: var(--text-light);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.glass-btn, .glass-panel {
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.glass-btn {
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.1);
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin: 0.3rem;
}

.glass-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.glass-panel {
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  background: var(--card-dark);
}

body.theme-light .glass-panel {
  background: var(--card-light);
}

.number-grid, .star-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.number, .star {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
  background: rgba(255,255,255,0.07);
}

.number:hover, .star:hover {
  transform: scale(1.1);
}

.number.selected {
  background: #4a90e2;
  color: white;
}

.star.selected {
  background: #f7b500;
  color: black;
}

.actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
}

#output, #history, #stats {
  min-height: 2rem;
  margin-top: 0.5rem;
}

#price-info {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
}