:root {
  --bg1: #180021;
  --bg2: #49145a;
  --card: rgba(255,255,255,.12);
  --text: #fff;
  --muted: rgba(255,255,255,.72);
  --gold: #ffd36a;
  --pink: #ff4fa3;
  --danger: #ff5b6e;
  --ok: #23d18b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: radial-gradient(circle at top, #ff4fa355, transparent 35%), linear-gradient(140deg, var(--bg1), var(--bg2));
}
a { color: inherit; }
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.card {
  width: min(920px, 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 42px;
  align-items: center;
}
.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #381900;
  background: linear-gradient(135deg, #fff3bf, var(--gold));
  font-weight: 800;
  font-size: 14px;
}
h1 { font-size: clamp(36px, 6vw, 64px); margin: 18px 0 12px; line-height: 1.02; }
p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  color: #2b0820;
  background: linear-gradient(135deg, #fff3bf, #ffd36a 52%, #ff9f43);
  box-shadow: 0 12px 30px rgba(255, 159, 67, .32);
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 159, 67, .42); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn.secondary { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.btn.danger { background: var(--danger); color: #fff; box-shadow: none; }
.wheel-wrap { position: relative; display: grid; place-items: center; }
.pointer {
  position: absolute;
  top: -10px;
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 34px solid var(--gold);
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.wheel {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 10px solid rgba(255,255,255,.24);
  background: conic-gradient(#ffd36a 0 60deg, #ff4fa3 60deg 120deg, #8c52ff 120deg 180deg, #ffd36a 180deg 240deg, #ff4fa3 240deg 300deg, #8c52ff 300deg 360deg);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 40px rgba(0,0,0,.22), 0 24px 50px rgba(0,0,0,.3);
  transition: transform 3s cubic-bezier(.17,.67,.19,1.02);
}
.wheel-center {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  color: #391337;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  border: 8px solid var(--gold);
}
.modal {
  position: fixed; inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.55);
  padding: 20px;
  z-index: 10;
}
.modal.show { display: grid; }
.modal-box {
  width: min(480px, 100%);
  background: #fff;
  color: #34122d;
  border-radius: 28px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
.modal-box p { color: #6b5364; }
.gift { font-size: 62px; }
.admin-shell { padding: 28px; max-width: 1120px; margin: 0 auto; }
.admin-header { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom: 22px; }
.admin-grid { display:grid; grid-template-columns: 380px 1fr; gap:20px; }
.panel { background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); border-radius: 22px; padding:20px; }
label { display:block; margin: 12px 0 6px; color: rgba(255,255,255,.82); font-size: 14px; }
input, textarea, select {
  width:100%; padding: 12px 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.18); color: #fff; outline: none; font-size: 15px;
}
textarea { min-height: 72px; resize: vertical; }
.table { width:100%; border-collapse: collapse; margin-top: 12px; }
.table th, .table td { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.12); text-align:left; font-size: 14px; vertical-align: top; }
.table th { color: var(--gold); }
.actions { display:flex; gap:8px; flex-wrap: wrap; }
.small { font-size: 13px; color: rgba(255,255,255,.62); }
.toast { margin-top: 12px; color: var(--gold); min-height: 20px; }
@media (max-width: 820px) {
  .hero, .admin-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px; }
  .wheel { width: 260px; height: 260px; }
  .admin-header { align-items:flex-start; flex-direction:column; }
}
