/* ---------------------------------------------------------------
   Design tokens
   Radical neon: three vivid hues (cyan / purple / pink) blended into
   one signature gradient, plus per-event color overrides applied at
   runtime via event-colors.js (see --cyan/--purple/--pink/--border).
------------------------------------------------------------------ */
/* Fontes hospedadas aqui mesmo (sem depender do Google: mais rápido no celular e sem enviar o IP dos convidados a terceiros) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/static/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('/static/fonts/orbitron-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #06010f;
  --bg-glow-1: rgba(0, 229, 255, 0.12);
  --bg-glow-2: rgba(255, 46, 196, 0.10);
  --bg-glow-3: rgba(157, 77, 255, 0.10);

  --surface: #0d0620;
  --surface-2: #150b2b;
  --surface-3: #1c1036;
  --surface-input: #100823;

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f6f4ff;
  --text-secondary: #b6aed6;
  --text-tertiary: #8378a8;

  --cyan: #00e5ff;
  --purple: #9d4dff;
  --pink: #ff2ec4;

  --wash: rgba(0, 229, 255, 0.14);
  --ring: rgba(0, 229, 255, 0.4);

  --danger: #ff453a;
  --danger-wash: rgba(255, 69, 58, 0.12);
  --success: #39ff9d;

  --accent-grad: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 55%, var(--pink) 100%);
  --accent-grad-wide: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink), var(--purple), var(--cyan));

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.7);
  --glow-accent: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 28px -6px rgba(157, 77, 255, 0.55), 0 4px 18px -6px rgba(255, 46, 196, 0.35);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes page-in { from { opacity: 0; transform: translateY(10px) scale(0.99); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
  .wrap, .auth-shell { animation: page-in 0.55s var(--ease); }

  @keyframes item-in { from { opacity: 0; transform: translateY(14px) scale(0.96); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
  .event-item, .grid figure, .file-preview, .hero-points li {
    animation: item-in 0.5s var(--ease-spring) both;
  }

  @keyframes drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(6%, 9%) scale(1.12); } 66% { transform: translate(-4%, 4%) scale(0.95); } }
  @keyframes drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-7%, -5%) scale(1.08); } 66% { transform: translate(5%, -8%) scale(0.97); } }
  body::before { animation: drift-a 22s ease-in-out infinite; }
  body::after { animation: drift-b 26s ease-in-out infinite; }
}

::selection { background: var(--wash); color: var(--text); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 78% 12%, var(--bg-glow-3), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 42px 42px, 42px 42px;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Ambient drifting glow — slow, alive backdrop instead of a static gradient */
body::before, body::after {
  content: "";
  position: fixed;
  width: min(60vw, 760px);
  height: min(60vw, 760px);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
body::before { top: -14%; left: -12%; background: radial-gradient(circle, var(--bg-glow-1), transparent 70%); }
body::after { bottom: -18%; right: -12%; background: radial-gradient(circle, var(--bg-glow-2), transparent 70%); }

/* ---------------------------------------------------------------
   Layout
------------------------------------------------------------------ */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 100px;
}

.center-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ---------------------------------------------------------------
   Typography
------------------------------------------------------------------ */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

h1 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(24px, 4vw, 30px);
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  background: var(--accent-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  h1 { animation: gradient-shift 6s ease-in-out infinite; }
}
h2 {
  font-size: 13px;
  margin: 0 0 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
}
p.subtitle { color: var(--text-secondary); margin: 0 0 20px; font-size: 14px; line-height: 1.5; }

/* ---------------------------------------------------------------
   Forms
------------------------------------------------------------------ */
label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 14px 0 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
input[type="text"]::placeholder, input[type="email"]::placeholder, input[type="password"]::placeholder {
  color: var(--text-tertiary);
}
input:focus {
  outline: none;
  border-color: var(--ring);
  background: #130a29;
  box-shadow: 0 0 0 4px var(--wash);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-grad);
  color: #0a0014;
  min-height: 44px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--glow-accent);
  background-size: 200% auto;
  background-position: 0% 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.12s var(--ease-spring), box-shadow 0.15s var(--ease), filter 0.15s var(--ease), background-position 0.45s var(--ease);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  mix-blend-mode: overlay;
  transform: scale(0);
  animation: ripple-expand 0.6s var(--ease) forwards;
  pointer-events: none;
}
@keyframes ripple-expand { to { transform: scale(1); opacity: 0; } }
button:hover, .btn:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 12px 34px -8px rgba(255,46,196,0.6), 0 6px 20px -6px rgba(0,229,255,0.5); background-position: 100% 50%; }
button:active, .btn:active { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; filter: none; }

button.secondary {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
button.secondary:hover { border-color: var(--ring); filter: none; box-shadow: 0 0 0 3px var(--wash); }

button.ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  box-shadow: none;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
button.ghost:hover { color: var(--text); background: var(--surface-2); box-shadow: none; }

button.danger { background: var(--danger); color: #2a0b09; box-shadow: 0 0 0 1px rgba(255,69,58,0.3), 0 8px 24px -8px rgba(255,69,58,0.5); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  box-shadow: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--ring); box-shadow: 0 0 0 3px var(--wash); }
.icon-btn svg { width: 18px; height: 18px; }

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.error:empty { display: none; }
.hint { color: var(--text-tertiary); font-size: 13px; margin-top: 10px; }

.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.mt { margin-top: 20px; }

a.link { color: var(--cyan); font-weight: 600; text-decoration: none; }
a.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   Cards
------------------------------------------------------------------ */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--accent-grad-wide);
  background-size: 300% auto;
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .card::before { animation: gradient-shift 5s linear infinite; }
}

/* ---------------------------------------------------------------
   Top bar
------------------------------------------------------------------ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}
.top-bar .brand, .brand {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  background: var(--accent-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.top-bar .brand::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 18px var(--cyan);
  -webkit-text-fill-color: initial;
  vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .top-bar .brand, .brand { animation: gradient-shift 6s ease-in-out infinite; }
  .top-bar .brand::before { animation: pulse-dot 2s ease-in-out infinite; }
}
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.6; } }

/* ---------------------------------------------------------------
   Event list (dashboard)
------------------------------------------------------------------ */
.event-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.event-item:hover { border-color: var(--ring); transform: translateY(-2px); box-shadow: var(--glow-accent); }
.event-item .name { font-weight: 700; font-size: 15px; }
.event-item .meta { color: var(--text-tertiary); font-size: 13px; margin-top: 3px; }
.event-item .cover, .event-item .cover-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.event-item .cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}
.event-item .chevron { color: var(--text-tertiary); flex: none; transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.event-item:hover .chevron { color: var(--pink); transform: translateX(3px); }

/* ---------------------------------------------------------------
   Share box
------------------------------------------------------------------ */
.share-box {
  display: flex;
  gap: 8px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 6px 6px 14px;
  align-items: center;
  margin: 12px 0 20px;
}
.share-box input { flex: 1; background: transparent; border: none; color: var(--cyan); font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-height: unset; padding: 8px 0; }
.share-box input:focus { outline: none; box-shadow: none; background: transparent; }

/* ---------------------------------------------------------------
   Dropzone + file previews
------------------------------------------------------------------ */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.dropzone svg { display: block; margin: 0 auto 10px; color: var(--text-tertiary); }
.dropzone .dz-title { color: var(--text); font-size: 15px; font-weight: 600; }
.dropzone .dz-hint { font-size: 13px; margin-top: 4px; }
.dropzone:hover { border-color: var(--ring); }
.dropzone.dragover { border-color: var(--pink); color: var(--text); background: var(--wash); }

.file-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.file-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.file-preview img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.55); }
.file-preview .fp-spinner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.file-preview.done img { filter: none; }
.file-preview .fp-check {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  color: var(--cyan);
  background: rgba(0,0,0,0.25);
}
.file-preview.done .fp-check { display: flex; }
.file-preview.done .fp-spinner { display: none; }

/* ---------------------------------------------------------------
   Photo grid
------------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.grid figure {
  margin: 0;
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.grid figure:hover { transform: scale(1.05); border-color: var(--ring); box-shadow: var(--glow-accent); z-index: 1; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid .face-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
}
.grid .del-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.grid figure:hover .del-badge { opacity: 1; }
.grid .del-badge:hover { color: var(--danger); border-color: var(--danger); }
.grid .del-badge svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------
   Lightbox
------------------------------------------------------------------ */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 0, 12, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  animation: fade-in 0.18s var(--ease) forwards;
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  animation: lightbox-in 0.35s var(--ease-spring);
}
.lightbox-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}
.lightbox-overlay .icon-btn { background: rgba(20,10,30,0.7); }

/* ---------------------------------------------------------------
   Camera
------------------------------------------------------------------ */
.camera-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050208;
  aspect-ratio: 3/4;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.camera-box video, .camera-box canvas, .camera-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-box canvas { display: none; }
.enable-camera-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
}
.face-guide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.face-guide svg { width: 62%; opacity: 0.6; filter: drop-shadow(0 0 12px rgba(0,229,255,0.45)); }

.shutter-btn {
  width: 68px;
  height: 68px;
  min-height: 68px;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  border: 3px solid var(--text);
  box-shadow: none;
  position: relative;
}
.shutter-btn::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: var(--glow-accent);
  transition: transform 0.12s var(--ease);
}
.shutter-btn:hover::after { transform: scale(1.06); }
.shutter-btn:active::after { transform: scale(0.9); }
@keyframes shutter-pulse {
  0%, 100% { box-shadow: var(--glow-accent); }
  50% { box-shadow: 0 0 0 9px rgba(157,77,255,0.16), var(--glow-accent); }
}
@media (prefers-reduced-motion: no-preference) {
  .shutter-btn::after { animation: shutter-pulse 2.6s ease-in-out infinite; }
}

.shutter-btn.capturing { animation: shutter-kick 0.35s var(--ease-spring); }
@keyframes shutter-kick { 0% { transform: scale(1); } 40% { transform: scale(0.86); } 100% { transform: scale(1); } }
.shutter-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0;
  pointer-events: none;
}
.shutter-ring.active { animation: ring-expand 0.6s var(--ease) forwards; }
@keyframes ring-expand {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.camera-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.camera-flash.active { animation: flash-pop 0.45s ease-out; }
@keyframes flash-pop { 0% { opacity: 0.85; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------
   Progress / spinner / skeleton
------------------------------------------------------------------ */
.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 16px;
  justify-content: center;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-line { height: 14px; border-radius: 6px; }
.skeleton-card { border-radius: var(--radius-md); }

.empty-state {
  text-align: center;
  color: var(--text-tertiary);
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-state svg { opacity: 0.5; }
.empty-state .es-title { color: var(--text-secondary); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------
   Toasts
------------------------------------------------------------------ */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  z-index: 2000;
  width: max-content;
  max-width: calc(100vw - 32px);
  align-items: center;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #150c28;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.45s var(--ease-spring);
}
.toast.success { border-color: rgba(0,229,255,0.4); }
.toast.success .toast-icon { color: var(--cyan); }
.toast.error { border-color: rgba(255,69,58,0.4); }
.toast.error .toast-icon { color: var(--danger); }
.draw-check {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: draw-check 0.4s 0.15s var(--ease) forwards;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.toast.leaving { animation: toast-out 0.18s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) scale(0.96); } }

/* ---------------------------------------------------------------
   Auth link buttons / event tabs / lang switcher
------------------------------------------------------------------ */
.auth-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.auth-link-btn:hover { color: var(--text); border-color: var(--ring); }
.auth-link-btn.primary {
  background: var(--accent-grad);
  color: #0a0014;
  border-color: transparent;
  box-shadow: var(--glow-accent);
}
.auth-link-btn.primary:hover { filter: brightness(1.08); }

.event-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 4px 0 22px;
}
.event-tab {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.event-tab:hover { color: var(--text); border-color: var(--ring); }
.event-tab.active {
  background: var(--accent-grad);
  color: #0a0014;
  border-color: transparent;
  box-shadow: var(--glow-accent);
}

.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: var(--surface-2);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none;
  min-height: unset;
}
.lang-btn:hover { color: var(--text); border-color: var(--ring); box-shadow: none; filter: none; }
.lang-btn.active { background: var(--accent-grad); color: #0a0014; border-color: transparent; }

/* ---------------------------------------------------------------
   Color pickers (event colors)
------------------------------------------------------------------ */
input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }

.preset-swatch {
  width: 64px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  min-height: unset;
  transition: transform 0.15s var(--ease-spring), border-color 0.15s var(--ease);
}
.preset-swatch:hover { border-color: var(--text); filter: none; transform: translateY(-2px); box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5); }

/* ---------------------------------------------------------------
   Auth shell (login page)
------------------------------------------------------------------ */
.auth-shell { min-height: 100vh; display: flex; }
.auth-hero {
  flex: 1.1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.16), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255, 46, 196, 0.12), transparent 45%),
    radial-gradient(circle at 60% 100%, rgba(157, 77, 255, 0.12), transparent 50%),
    #07020f;
  border-right: 1px solid var(--border);
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 30% 35%, black, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 30% 35%, black, transparent 65%);
}
.hero-badge {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(157,77,255,0.2), rgba(0,229,255,0.06));
  border: 1px solid var(--ring);
  box-shadow: var(--glow-accent);
  margin-bottom: 28px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: badge-float 4s ease-in-out infinite; }
}
@keyframes badge-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-badge svg { width: 28px; height: 28px; }
.auth-hero h1 { position: relative; font-size: 38px; line-height: 1.1; margin-bottom: 14px; }
.hero-tagline { position: relative; color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 420px; margin: 0 0 36px; }
.hero-points { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.hero-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 14px; line-height: 1.5; }
.hero-points .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--wash);
  border: 1px solid var(--ring);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  margin-top: 1px;
}
.hero-points .tick svg { width: 12px; height: 12px; }

.auth-card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}
.auth-card-wrap .lang-switcher { position: absolute; top: 28px; right: 28px; }
.auth-card { width: 100%; max-width: 380px; padding: 32px; }
.auth-card .mobile-brand { display: none; }
.auth-card h2.form-title { font-size: 22px; text-transform: none; letter-spacing: -0.01em; color: var(--text); font-weight: 800; margin-bottom: 4px; }

@media (max-width: 900px) {
  .auth-shell { flex-direction: column; }
  .auth-hero { display: none; }
  .auth-card-wrap { padding: 72px 20px 40px; }
  .auth-card .mobile-brand {
    display: inline-block;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

@media (max-width: 480px) {
  .wrap { padding: 20px 16px 100px; }
  .card { padding: 20px; }
}

/* ---------------------------------------------------------------
   Homepage: hero / how-it-works / organizer CTA / footer
------------------------------------------------------------------ */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--ring);
  background: var(--wash);
  margin-bottom: 22px;
}
@media (prefers-reduced-motion: no-preference) {
  .badge-tag { animation: badge-float 4s ease-in-out infinite; }
}

.hero-landing { text-align: center; max-width: 720px; margin: 0 auto; padding: 52px 20px 28px; }
.hero-landing h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin-bottom: 16px; }
.hero-landing h1 span { display: block; }
.hero-lead { color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 480px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section-block { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.section-block-head { text-align: center; max-width: 480px; margin: 0 auto 28px; }
.section-block-head h2.block-title,
.organizer-cta h2.block-title {
  font-size: 21px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 800;
}
.section-block-head p { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.step-card:hover { transform: translateY(-3px); border-color: var(--ring); }
.step-card .step-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  background: var(--accent-grad);
  box-shadow: var(--glow-accent);
}
.step-card h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.step-card p { color: var(--text-secondary); font-size: 12.5px; line-height: 1.5; margin: 0; }

.organizer-cta { max-width: 720px; margin: 0 auto; padding: 4px 20px 56px; }
.organizer-cta .card { text-align: center; padding: 38px 26px; }
.organizer-cta h2.block-title { margin-bottom: 10px; }
.organizer-cta p { color: var(--text-secondary); font-size: 14px; max-width: 440px; margin: 0 auto 24px; }

.site-footer { text-align: center; padding: 8px 20px 56px; color: var(--text-tertiary); font-size: 12px; }

@media (max-width: 720px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   WhatsApp contact
------------------------------------------------------------------ */
.contact-card { text-align: center; }
.contact-icon { font-size: 28px; margin-bottom: 8px; }

.whatsapp-btn {
  background: #25d366;
  color: #04170b;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 24px -6px rgba(37,211,102,0.55);
}
.whatsapp-btn:hover { filter: brightness(1.07); box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 30px -6px rgba(37,211,102,0.75); }
.wa-icon { width: 19px; height: 19px; flex: none; }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #04170b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.2s var(--ease-spring);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 29px; height: 29px; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: wa-pulse 2.6s ease-in-out infinite; }
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(37,211,102,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
  50% { box-shadow: 0 10px 30px -6px rgba(37,211,102,0.9), 0 0 0 9px rgba(37,211,102,0.14); }
}
@media (max-width: 480px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ---------------------------------------------------------------
   Admin panel
------------------------------------------------------------------ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.stat-card .num {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card .label { color: var(--text-tertiary); font-size: 12px; margin-top: 2px; }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-tab {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
}
.admin-tab:hover { filter: none; box-shadow: 0 0 0 3px var(--wash); }
.admin-tab.active {
  background: var(--accent-grad);
  color: #0a0014;
  border-color: transparent;
  box-shadow: var(--glow-accent);
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.admin-row .name { font-weight: 700; font-size: 14px; color: var(--text); }
.admin-row .meta { color: var(--text-tertiary); font-size: 12.5px; margin-top: 2px; }
.admin-row .actions { display: flex; align-items: center; gap: 8px; flex: none; }
.admin-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--wash);
  color: var(--cyan);
  border: 1px solid var(--ring);
}

/* ---------------------------------------------------------------
   Event customization: cover / QR / color wheel
------------------------------------------------------------------ */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .grid-2-col { grid-template-columns: 1fr; }
}

.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.preset-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  min-height: unset;
  transition: transform 0.15s var(--ease-spring), border-color 0.15s var(--ease);
}
.preset-circle:hover { transform: scale(1.1) rotate(15deg); border-color: var(--text); filter: none; box-shadow: none; }
.preset-circle:active { transform: scale(0.95); }

/* ---------------------------------------------------------------
   Plan calculator (guests + storage → price)
------------------------------------------------------------------ */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  outline: none;
  margin: 10px 0 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: var(--glow-accent);
  cursor: pointer;
  border: 2px solid #0a0014;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-accent);
  cursor: pointer;
  border: 2px solid #0a0014;
}

.plan-breakdown {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.plan-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.plan-row.discount { color: var(--success); }
.plan-row.total {
  background: var(--surface-2);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  border-bottom: none;
}
.plan-row.total .val {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}
.plan-status-badge.pending { color: var(--text-secondary); }
.plan-status-badge.contacted { color: var(--cyan); border-color: var(--ring); background: var(--wash); }
.plan-status-badge.closed { color: var(--success); border-color: rgba(57,255,157,0.4); background: rgba(57,255,157,0.1); }
.plan-status-badge.paid { color: var(--success); border-color: rgba(57,255,157,0.4); background: rgba(57,255,157,0.1); }

/* ---------------------------------------------------------------
   Inactive event banner
------------------------------------------------------------------ */
.inactive-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 4px 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(249, 248, 113, 0.35);
  background: rgba(249, 248, 113, 0.08);
  font-size: 20px;
}
.inactive-banner strong { display: block; font-size: 14px; color: var(--text); }
.inactive-banner p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-secondary); }

/* ---------------------------------------------------------------
   Event search box
------------------------------------------------------------------ */
.search-box {
  position: relative;
  margin: 0 0 18px;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px 11px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-input);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search-box input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 4px var(--wash);
}
.search-box .clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  min-height: unset;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-secondary);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.search-box .clear-btn.show { display: flex; }
.search-box .clear-btn:hover { color: var(--text); filter: none; }

/* ===============================================================
   EVENTO GRATUITO + MOBILE-FIRST
   (cartão do evento na home, abas, vídeos, envio do admin, visualizador)
================================================================== */
html { -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; min-height: 100dvh; }
button, .btn, .seg-tab, .video-card, .lb-nav, a { touch-action: manipulation; }

/* --- Evento em destaque (home) ------------------------------------------------- */
.event-hero {
  position: relative;
  max-width: 560px;
  margin: 6px auto 0;
  padding: 30px 20px 24px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(28, 16, 54, 0.94), rgba(13, 6, 32, 0.94));
  box-shadow: var(--glow-accent);
  overflow: hidden;
}
.event-hero::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.event-hero-glow {
  position: absolute; inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(circle at 50% 0%, rgba(157, 77, 255, 0.35), transparent 65%);
  pointer-events: none;
}
.event-hero > * { position: relative; }
.event-hero .badge-tag { margin-bottom: 14px; }
.event-hero-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(21px, 6.2vw, 36px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.event-hero-lead { color: var(--text); font-size: 16px; font-weight: 500; margin: 0 auto; max-width: 400px; }
.event-hero-meta { color: var(--text-secondary); font-size: 13px; margin: 8px 0 0; }
.cta-xl {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px;
  margin-top: 22px;
  font-size: 18px; font-weight: 800;
  border-radius: 18px;
  text-decoration: none;
}
.cta-xl .cta-icon { font-size: 24px; line-height: 1; }
.cta-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px;
  margin-top: 10px;
  font-size: 15px; font-weight: 700;
  color: var(--text); text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
}
.cta-secondary:hover { border-color: var(--ring); }
.hero-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-steps li { font-size: 12px; color: var(--text-secondary); line-height: 1.35; }
.hero-steps .n { display: block; font-size: 22px; margin-bottom: 4px; }
.hero-skel { max-width: 560px; height: 380px; margin: 6px auto 0; border-radius: 28px; }
.home-more { max-width: 560px; margin: 26px auto 0; padding: 0 16px; }
.home-more h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 10px; }
.admin-mini { color: var(--text-tertiary); font-size: 12px; text-decoration: none; padding: 10px 6px; }

/* --- Abas (fotos / vídeos) ------------------------------------------------------ */
.seg-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 5px; margin: 14px 0 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: sticky; top: 8px; z-index: 20;
  backdrop-filter: blur(10px);
}
.seg-tab {
  min-height: 48px; padding: 0 10px;
  border: 0; border-radius: 13px;
  background: transparent; color: var(--text-secondary);
  font-size: 15px; font-weight: 700;
  box-shadow: none; filter: none;
}
.seg-tab:hover { filter: none; box-shadow: none; background: var(--surface-3); }
.seg-tab.active { background: var(--accent-grad); color: #0a0418; }
.seg-tab .count { opacity: .75; font-weight: 600; }

/* --- Vídeos -------------------------------------------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  border-radius: 16px; overflow: hidden;
  background: var(--surface-2) center / cover no-repeat;
  border: 1px solid var(--border);
  cursor: pointer;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex; align-items: center; justify-content: center;
}
.video-card .play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.video-card .dur {
  position: absolute; right: 8px; bottom: 8px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.72); color: #fff;
  font-size: 12px; font-weight: 700;
}

/* --- Visualizador (foto e vídeo) ------------------------------------------------ */
.lightbox-overlay {
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  flex-direction: column;
  overscroll-behavior: contain;
}
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; min-height: 0; }
.lb-stage .lightbox-img { max-width: 100%; max-height: 100%; touch-action: pan-y; -webkit-touch-callout: default; user-select: none; }
.lb-video { max-width: 100%; max-height: 100%; border-radius: 14px; background: #000; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; width: 46px; height: 46px; }
.lb-counter {
  position: absolute; top: max(20px, calc(env(safe-area-inset-top) + 8px)); left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.6);
  font-size: 13px; font-weight: 700; z-index: 3;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(20, 10, 30, 0.7); border: 1px solid var(--border-strong);
  color: var(--text); padding: 0; min-height: 0;
}
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lb-bar {
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  width: 100%; padding-top: 12px;
}
.lb-download { min-height: 52px; padding: 0 26px; font-size: 16px; font-weight: 800; border-radius: 16px; text-decoration: none; }
.lb-hint { width: 100%; text-align: center; font-size: 12px; color: var(--text-secondary); margin: 8px 0 0; }
@media (hover: hover) { .lb-hint.touch-only { display: none; } }

/* --- Envio do administrador (fotos em lotes + vídeos em pedaços) ---------------- */
.up-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.up-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px;
}
.up-thumb {
  width: 56px; height: 56px; flex: none; border-radius: 10px;
  background: var(--surface-3) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.up-main { flex: 1; min-width: 0; }
.up-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.up-meta.ok { color: var(--success); }
.up-meta.err { color: var(--danger); }
.up-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 7px; }
.up-bar > span { display: block; height: 100%; width: 0; background: var(--accent-grad); transition: width .3s var(--ease); }
.up-actions { display: flex; gap: 6px; flex: none; }
.big-dropzone { padding: 26px 16px; min-height: 120px; }
.upload-summary { margin-top: 12px; font-size: 14px; color: var(--text-secondary); }

/* --- Ajustes gerais para celular ------------------------------------------------ */
@media (max-width: 720px) {
  input, select, textarea { font-size: 16px; }         /* evita o zoom automático do iPhone */
  .wrap { padding-left: 14px; padding-right: 14px; }
  .icon-btn, .lb-nav { min-width: 44px; min-height: 44px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .grid figure { border-radius: 8px; }
}
@media (max-width: 720px), (hover: none) {
  /* Efeitos pesados desligados no celular: bateria, rolagem suave e fotos aparecendo na hora */
  body { background-attachment: scroll; }
  body::before, body::after { animation: none !important; filter: blur(60px); }
  .grid figure, .event-item, .file-preview, .hero-points li { animation: none !important; }
  .grid figure:hover, .event-item:hover, .video-card:hover { transform: none; box-shadow: none; }
  .badge-tag, .wa-float { animation: none !important; }
}

/* --- Câmera: obturador dentro do visor + página mais compacta no celular ------- */
.camera-box { max-width: 460px; margin-left: auto; margin-right: auto; }
.camera-box .cam-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 44px 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
}
.camera-box .cam-controls .shutter-btn { margin: 0; }
#event-name { font-size: clamp(17px, 5.2vw, 28px); line-height: 1.2; margin: 8px 0 0; }
@media (max-height: 760px) { #panel-photos > .subtitle { display: none; } }
