/* =========================================================
   MAGACARD — tema "Neon Riviera"
   Stessa identità tipografica di Magaparty (Archivo Black /
   Playfair Display / Outfit), palette diversa: notte da club,
   magenta + violetto + ciano invece del verde giungla.
   ========================================================= */
:root {
  --mc-bg:        #0B0712;
  --mc-bg-2:      #120B1C;
  --mc-surface:   #17101F;
  --mc-row:       #1E1628;
  --mc-border:    #2A2036;
  --mc-border-soft: rgba(255, 240, 250, 0.08);

  --mc-magenta:   #FF2E92;
  --mc-magenta-soft: rgba(255, 46, 146, 0.14);
  --mc-violet:    #8B5CF6;
  --mc-violet-soft: rgba(139, 92, 246, 0.14);
  --mc-cyan:      #22D3EE;
  --mc-cyan-soft: rgba(34, 211, 238, 0.14);
  --mc-gold:      #FFC145;
  --mc-gold-soft: rgba(255, 193, 69, 0.14);

  --mc-text:      #F5F0FA;
  --mc-muted:     #9C90AE;
  --radius-card:  20px;
  --radius-pill:  999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
}

body {
  background: radial-gradient(120% 140% at 15% 0%, #1B0F2A 0%, var(--mc-bg) 45%, #060409 100%);
  color: var(--mc-text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

a { color: inherit; }

.brutalist { font-family: 'Archivo Black', sans-serif; }
h1, h2, .serif { font-family: 'Playfair Display', 'Archivo Black', serif; }

.mc-wrap { width: 100%; max-width: 420px; }

.mc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mc-cyan);
  margin-bottom: 10px;
}
.mc-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mc-magenta);
  box-shadow: 0 0 8px var(--mc-magenta);
}

.mc-title { font-size: 24px; font-weight: 900; margin: 0 0 4px; letter-spacing: -0.01em; }
.mc-sub { color: var(--mc-muted); margin: 0 0 22px; font-size: 13.5px; line-height: 1.5; }

.glass-card {
  background: var(--mc-surface);
  border: 1px solid var(--mc-border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute; top: -70px; right: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mc-magenta), var(--mc-violet));
  opacity: 0.18; filter: blur(36px);
  pointer-events: none;
}

label {
  display: block;
  font-size: 12px;
  color: var(--mc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 6px;
  position: relative; z-index: 1;
}
input[type=text], input[type=tel], input[type=email], input[type=password] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--mc-border);
  background: #0F0A17;
  color: var(--mc-text);
  font-size: 15px;
  font-family: inherit;
  position: relative; z-index: 1;
}
input:focus { outline: none; border-color: var(--mc-magenta); }

.mc-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0 4px; position: relative; z-index: 1;
}
.mc-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--mc-magenta); }
.mc-check label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--mc-muted); line-height: 1.5; }

button, .btn-maga {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative; z-index: 1;
}
.btn-primary {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--mc-magenta), var(--mc-violet));
  color: #0B0712;
  box-shadow: 0 10px 26px rgba(255, 46, 146, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 46, 146, 0.38); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--mc-text);
  border: 1px solid var(--mc-border);
  width: auto; padding: 11px 18px;
}
.btn-ghost:hover { border-color: var(--mc-magenta); color: var(--mc-magenta); }
.btn-confirm {
  width: auto;
  background: var(--mc-cyan);
  color: #06222A;
}
.btn-confirm:hover { transform: translateY(-1px); }

.error, .mc-msg { color: #FF7A93; font-size: 13px; margin-top: 12px; position: relative; z-index: 1; }

.badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badge.pending { background: var(--mc-gold-soft); color: var(--mc-gold); }
.badge.active  { background: var(--mc-cyan-soft); color: var(--mc-cyan); }

/* ── Ticket / digital card — la card è pensata come un vero pass da concerto ── */
.ticket-card {
  width: 100%;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #241A34 0%, #180F26 55%, #0F0A18 100%);
  border: 1px solid var(--mc-border-soft);
  padding: 26px 24px 22px;
}
.ticket-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mc-magenta), var(--mc-cyan));
  opacity: 0.22; filter: blur(32px);
}
.ticket-perforation {
  position: relative;
  margin: 22px -24px 20px;
  border-top: 1.5px dashed rgba(245, 240, 250, 0.18);
}
.ticket-perforation::before, .ticket-perforation::after {
  content: '';
  position: absolute; top: -11px; width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mc-bg-2);
  box-shadow: inset 0 0 0 1px var(--mc-border-soft);
}
.ticket-perforation::before { left: -11px; }
.ticket-perforation::after { right: -11px; }

.mc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.mc-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 21px; letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--mc-magenta), var(--mc-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mc-nome { margin-top: 22px; font-size: 19px; font-weight: 700; position: relative; z-index: 1; }
.mc-code { font-size: 11.5px; color: var(--mc-muted); margin-top: 3px; letter-spacing: 1.5px; position: relative; z-index: 1; }

.mc-stats { display: flex; gap: 12px; position: relative; z-index: 1; }
.mc-stat {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--mc-border-soft);
  border-radius: 14px; padding: 14px 10px; text-align: center;
}
.mc-stat .n { font-family: 'Archivo Black', sans-serif; font-size: 23px; color: var(--mc-gold); }
.mc-stat .l { font-size: 10.5px; color: var(--mc-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.08em; }

.qr-wrap {
  margin-top: 4px; background: #fff; border-radius: 14px; padding: 16px;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.mc-hint {
  text-align: center; font-size: 12px; color: var(--mc-muted); margin-top: 16px;
  line-height: 1.5; position: relative; z-index: 1;
}

.mc-empty {
  color: var(--mc-muted); font-size: 14px; text-align: center; padding: 34px 0;
}

/* Staff panel list */
.mc-row {
  background: var(--mc-row); border-radius: 14px; padding: 15px 16px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--mc-border-soft);
}
.mc-row .info b { font-size: 15px; }
.mc-row .info span { display: block; font-size: 12.5px; color: var(--mc-muted); margin-top: 2px; }
.mc-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mc-search { margin-bottom: 4px; }

.hidden { display: none !important; }
