.wheel-hero {
  margin-top: var(--header-height);
  padding: 4rem 5% 2.5rem;
  text-align: center;
}
.wheel-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.wheel-title {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  align-items: center;
  gap: 10px;
}
.wheel-title::after {
  content: '';
  display: block;
  margin: 10px auto 0;
  height: 3px;
  width: 140px;
  border-radius: 999px;
  background: var(--accent-gradient);
}
.wheel-hero p {
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
}

.wheel-hero p + p {
  margin-top: 0.75rem;
}

.wheel-wrapper {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.wheel-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(8px);
}

.roulette-shell {
  position: relative;
  background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 15px 35px rgba(0,0,0,0.35);
  overflow: hidden;
}

.roulette-track {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0,240,255,0.2);
  min-height: 150px;
}

.roulette-items {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 18px 24px;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.roulette-item {
  width: 180px;
  flex: 0 0 180px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(0,240,255,0.18);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
  text-align: left;
}

.roulette-item-target {
  border-color: rgba(0,240,255,0.65);
  box-shadow: 0 0 0 2px rgba(0,240,255,0.35), 0 14px 24px rgba(0,0,0,0.3);
}

.roulette-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-gradient);
  color: #0b1021;
  font-weight: 800;
  font-size: 18px;
}

.roulette-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.roulette-type {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.roulette-center-line {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,240,255,0) 0%, rgba(0,240,255,0.9) 35%, rgba(0,240,255,0.9) 65%, rgba(0,240,255,0) 100%);
  box-shadow: 0 0 12px rgba(0,240,255,0.6);
  transform: translateX(-50%);
  pointer-events: none;
}

.wheel-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wheel-panel p {
  margin: 0 0 12px;
  color: var(--wheel-sub);
  line-height: 1.4;
}

.notify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 4px;
}

.notify-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  display: inline-block;
}

.notify-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.notify-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  transition: 0.2s ease;
}

.notify-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 2px;
  background: var(--accent-gradient);
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.notify-toggle input:checked + .notify-slider {
  background: rgba(0,240,255,0.2);
  border-color: rgba(0,240,255,0.4);
}

.notify-toggle input:checked + .notify-slider::before {
  transform: translateX(20px);
}

.notify-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notify-title {
  font-weight: 700;
}

.spin-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #0f0f13;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: var(--box-shadow-neon);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.spin-btn:hover:not(:disabled) { transform: translateY(-2px); }
.spin-btn:active:not(:disabled) { transform: translateY(0); }
.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.status-ok { background: rgba(34,197,94,0.12); color: var(--success-color); border: 1px solid rgba(34,197,94,0.3); }
.status-warn { background: rgba(249,158,11,0.12); color: var(--warning-color); border: 1px solid rgba(249,158,11,0.3); }
.status-bad { background: rgba(239,68,68,0.12); color: var(--error-color); border: 1px solid rgba(239,68,68,0.35); }

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.legend-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  font-size: 18px;
  flex-shrink: 0;
}
.legend-text { flex: 1; }
.legend-text strong { display: block; margin-bottom: 4px; }
.legend-weight { color: var(--wheel-sub); font-size: 0.9rem; }

.result-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--box-shadow);
}
.history-box {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-row {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 12px;
  align-items: center;
}
.history-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: #0b1021;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.history-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.history-title {
  font-weight: 700;
}
.history-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.history-promo {
  background: rgba(0,240,255,0.12);
  border: 1px solid rgba(0,240,255,0.35);
  color: var(--text-primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.promo-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-neon-transparent);
  border: 1px solid rgba(0, 240, 255, 0.35);
}
.promo-code {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.cooldown-box {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.muted {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .wheel-hero h1 { font-size: 2rem; }
  .wheel-card { padding: 18px; }
  .roulette-item { width: 150px; flex-basis: 150px; }
}

