/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0d0d14;
  --bg2:     #14141f;
  --bg3:     #1e1e2e;
  --primary: #7c5cfc;
  --primary-dk: #6344e0;
  --text:    #eeeaf8;
  --muted:   #8b85a8;
  --border:  rgba(255,255,255,.08);
  --radius:  10px;
  --danger:  #ef4444;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 460px;
}

h1 { font-size: 1.5rem; margin-bottom: .3rem; }

.subtitle {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── Form elements ────────────────────────────────────────── */
label {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .35rem;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: .65rem .9rem;
  font-size: .95rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

input:focus { outline: none; border-color: var(--primary); }

/* Giveaway checkboxes */
.giveaway-list {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.giveaway-option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
}

.giveaway-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.giveaway-option .option-text { flex: 1; }
.giveaway-option .option-title { font-size: .95rem; font-weight: 600; }
.giveaway-option .option-id { font-size: .75rem; color: var(--muted); }
.giveaway-option .option-desc { font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* ── Button ───────────────────────────────────────────────── */
.btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: .25rem;
  font-family: inherit;
}
.btn:hover { background: var(--primary-dk); }

/* ── Alerts ───────────────────────────────────────────────── */
.error {
  background: #2d0a0a;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1rem;
}

/* ── Success ──────────────────────────────────────────────── */
.success-wrap { text-align: center; }
.success-wrap .emoji { font-size: 2.5rem; }
.success-wrap h1 { margin: .75rem 0 1rem; }

.entry-list {
  text-align: left;
  margin: .75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.entry-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
}

.entry-tag .tag-id { color: var(--primary); font-weight: 800; font-size: 1.1rem; }

/* ── Privacy notice ───────────────────────────────────────── */
.privacy {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .78rem;
  color: #5a5570;
  line-height: 1.6;
}

.privacy strong { color: var(--muted); }

/* ── Rules block ──────────────────────────────────────────── */
.rules-block {
  margin: .4rem 0 .5rem 1.65rem;
  border-left: 2px solid var(--primary);
  padding-left: .9rem;
}

.rules-text {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  background: var(--bg);
  border-radius: 6px;
  padding: .65rem .85rem;
  margin-bottom: .6rem;
  white-space: pre-wrap;
}

.rules-ack {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
}

.rules-ack input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 1.75rem 1.25rem; }
}
