/* Fotografa Aê — Design System & Componentes Pro HUD */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg, #07050d);
  color: var(--fg, #ffffff);
  font-family: var(--fonte-sans, system-ui, -apple-system, sans-serif);
  -webkit-font-smoothing: antialiased;
}

body.camera-body {
  height: 100dvh;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* Container Principal da Câmera */
.app-camera {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  position: relative;
  background: var(--bg-deep, #030206);
  justify-content: space-between;
  overflow: hidden;
}

/* -------------------------------------------------- Header Superior HUD */
.camera-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 10px)) 16px 8px;
  background: linear-gradient(180deg, rgba(3, 2, 6, 0.92) 0%, rgba(3, 2, 6, 0.45) 70%, transparent 100%);
  gap: 8px;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-center {
  display: flex;
  justify-content: center;
  flex: 1;
}

/* Badge de Evento HUD */
.badge-evento-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border-cyan);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15), inset 0 0 10px rgba(0, 240, 255, 0.05);
  max-width: 140px;
  min-height: 40px;
}

.live-beacon {
  position: relative;
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-core {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-primary);
  box-shadow: 0 0 8px var(--neon-primary);
}

.beacon-pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 0, 85, 0.5);
  animation: beaconPulse 1.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.evento-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.1;
}

.evento-tag {
  font-family: var(--fonte-mono);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
}

.evento-nome {
  font-family: var(--fonte-display);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cyber Pill Button */
.pill-btn-cyber {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--fonte-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 160px;
}

.pill-icon-wrap {
  display: flex;
  align-items: center;
  color: var(--neon-cyan);
}

.pill-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-btn-cyber:active {
  transform: scale(0.95);
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.15);
}

/* Botões de Ícone HUD (Touch Target 44px+) */
.btn-icon-hud {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-icon-hud:active {
  transform: scale(0.92);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-icon-hud.active {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* -------------------------------------------------- Barra de Telemetria Pro HUD */
.hud-telemetry-bar {
  position: absolute;
  top: calc(56px + env(safe-area-inset-top, 10px));
  left: 0;
  right: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 16px;
  background: rgba(7, 5, 13, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  pointer-events: none;
}

.telemetry-item {
  font-family: var(--fonte-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.telemetry-item .t-label {
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 9px;
}

.telemetry-item .t-val {
  color: #fff;
  font-weight: 500;
}

.telemetry-item .neon-tag {
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--ok-glow);
}

/* -------------------------------------------------- Toast de Upload Cyber */
.toast-upload-cyber[hidden] {
  display: none !important;
}

.toast-upload-cyber {
  position: absolute;
  top: calc(88px + env(safe-area-inset-top, 10px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 8px 30px rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  animation: cyberSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 90vw;
}

.toast-cyber-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 240, 255, 0.25);
  border-top-color: var(--neon-cyan);
  border-right-color: var(--neon-primary);
  border-radius: 50%;
  animation: girar 0.7s linear infinite;
}

.toast-cyber-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-cyber-title {
  font-family: var(--fonte-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.toast-cyber-bar {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.toast-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-primary), var(--neon-cyan));
  animation: cyberProgress 1.4s ease-in-out infinite;
}

@keyframes cyberProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

@keyframes cyberSlideDown {
  from { opacity: 0; transform: translate(-50%, -15px) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* -------------------------------------------------- Aviso In-App */
.aviso-inapp[hidden] {
  display: none !important;
}

.aviso-inapp {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top, 10px));
  left: 14px;
  right: 14px;
  z-index: 24;
  background: rgba(18, 10, 25, 0.95);
  border: 1px solid var(--neon-primary);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 20px var(--acento-glow);
  gap: 10px;
}

.aviso-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.aviso-text strong {
  font-family: var(--fonte-mono);
  font-size: 11px;
  color: var(--neon-primary);
  letter-spacing: 0.05em;
}

.btn-fechar-aviso {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* -------------------------------------------------- Viewfinder & Video */
.viewfinder-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  cursor: crosshair;
}

.viewfinder-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease-out;
}

#videoPreview.selfie-mode {
  transform: scaleX(-1);
}

/* Filtros em Tempo Real (LUTs) */
#videoPreview.filter-cyberpunk {
  filter: contrast(125%) saturate(145%) hue-rotate(320deg) brightness(1.05);
}

#videoPreview.filter-golden {
  filter: sepia(30%) saturate(150%) contrast(110%) brightness(1.08);
}

#videoPreview.filter-neon {
  filter: hue-rotate(240deg) saturate(180%) contrast(130%);
}

#videoPreview.filter-noir {
  filter: grayscale(100%) contrast(150%) brightness(0.95);
}

#videoPreview.filter-warm {
  filter: sepia(45%) contrast(115%) saturate(120%);
}

/* Matriz de Grade Rule of Thirds */
.hud-grid-matrix {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.hud-grid-matrix.hidden {
  display: none;
}

.grid-line {
  position: absolute;
  background: var(--hud-grid-line);
}

.grid-line.h-1 { top: 33.333%; left: 0; right: 0; height: 1px; }
.grid-line.h-2 { top: 66.666%; left: 0; right: 0; height: 1px; }
.grid-line.v-1 { left: 33.333%; top: 0; bottom: 0; width: 1px; }
.grid-line.v-2 { left: 66.666%; top: 0; bottom: 0; width: 1px; }

/* Nível do Horizonte Artificial */
.horizon-level {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.65;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  z-index: 10;
}

.horizon-level.hidden {
  display: none;
}

.horizon-bar {
  width: 44px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  transition: background-color 0.2s;
}

.horizon-center-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--neon-cyan);
  margin: 0 8px;
  transition: border-color 0.2s, background-color 0.2s;
}

.horizon-angle {
  position: absolute;
  top: 14px;
  font-family: var(--fonte-mono);
  font-size: 9px;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

/* Nível Perfeito (Verde Cyber) */
.horizon-level.leveled .horizon-bar {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--ok-glow);
}

.horizon-level.leveled .horizon-center-pip {
  border-color: var(--neon-green);
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--ok-glow);
}

.horizon-level.leveled .horizon-angle {
  color: var(--neon-green);
}

/* Moldura e Marcadores Sci-Fi HUD */
.camera-reticle-cyber {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  z-index: 8;
}

.corner-bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--neon-cyan);
  border-style: solid;
  opacity: 0.7;
}

.bracket-tag {
  position: absolute;
  font-family: var(--fonte-mono);
  font-size: 7.5px;
  color: var(--neon-cyan);
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.corner-bracket.top-left {
  top: 0; left: 0;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 6px;
}
.corner-bracket.top-left .bracket-tag { top: 4px; left: 6px; }

.corner-bracket.top-right {
  top: 0; right: 0;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 6px;
}
.corner-bracket.top-right .bracket-tag { top: 4px; right: 6px; }

.corner-bracket.bottom-left {
  bottom: 0; left: 0;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 6px;
}
.corner-bracket.bottom-left .bracket-tag { bottom: 4px; left: 6px; }

.corner-bracket.bottom-right {
  bottom: 0; right: 0;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 6px;
}
.corner-bracket.bottom-right .bracket-tag { bottom: 4px; right: 6px; }

.center-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 1px dashed rgba(0, 240, 255, 0.4);
  border-radius: 50%;
}

/* -------------------------------------------------- Anel de Foco Interativo */
.focus-ring-hud {
  position: absolute;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: focusLock 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.focus-square {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--neon-gold);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.5);
  animation: focusSquareContract 0.35s ease-out forwards;
}

.focus-circle {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px dashed var(--neon-gold);
  border-radius: 50%;
}

.focus-meter {
  position: absolute;
  bottom: -18px;
  font-family: var(--fonte-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--neon-gold);
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(255, 183, 3, 0.8);
  white-space: nowrap;
}

@keyframes focusSquareContract {
  0% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes focusLock {
  0% { transform: translate(-50%, -50%) scale(1.4); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Flash Visual Effect */
.flash-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 35;
  transition: opacity 0.05s ease-out;
}

.flash-overlay.flash-active {
  opacity: 0.95;
  transition: none;
}

/* -------------------------------------------------- Fallback Holográfico */
.camera-fallback[hidden] {
  display: none !important;
}

.camera-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #181126 0%, #08060e 100%);
  text-align: center;
  padding: 24px;
  z-index: 10;
}

.fallback-content {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fallback-hologram {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hologram-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--neon-cyan);
  animation: girar 8s linear infinite;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.fallback-icon {
  font-size: 40px;
  z-index: 2;
}

.fallback-content h3 {
  font-family: var(--fonte-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: #fff;
}

.fallback-content p {
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 24px;
}

/* -------------------------------------------------- Botões do Design System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: var(--fonte-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.96);
}

.btn.btn-primario,
.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--neon-primary) 0%, #d6004b 100%);
  color: #fff;
  font-family: var(--fonte-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 0 20px var(--acento-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-cyber-primary:active {
  transform: scale(0.96);
  box-shadow: 0 0 30px var(--neon-primary);
}

.btn.btn-sec,
.btn-cyber-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.btn-cyber-sec:active {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(0.96);
}

.btn.full {
  width: 100%;
}

/* -------------------------------------------------- Prateleira de Filtros / LUTs */
.hud-filter-shelf {
  position: absolute;
  bottom: calc(96px + env(safe-area-inset-bottom, 16px));
  left: 0;
  right: 0;
  z-index: 18;
  display: flex;
  justify-content: center;
  padding: 6px 16px;
  pointer-events: auto;
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px;
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  scrollbar-width: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-dim);
  font-family: var(--fonte-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-normal { background: #fff; }
.dot-cyber { background: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); }
.dot-golden { background: var(--neon-gold); box-shadow: 0 0 6px var(--neon-gold); }
.dot-neon { background: var(--neon-violet); box-shadow: 0 0 6px var(--neon-violet); }
.dot-noir { background: #666; }
.dot-warm { background: var(--neon-amber); box-shadow: 0 0 6px var(--neon-amber); }

.filter-chip.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.filter-chip:active {
  transform: scale(0.94);
}

/* -------------------------------------------------- Barra Inferior de Disparo */
.camera-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px calc(16px + env(safe-area-inset-bottom, 14px));
  background: linear-gradient(0deg, rgba(3, 2, 6, 0.95) 0%, rgba(3, 2, 6, 0.6) 70%, transparent 100%);
}

.bar-col {
  display: flex;
  align-items: center;
}

.bar-col.left {
  flex: 1;
  justify-content: flex-start;
}

.bar-col.center {
  flex: 1;
  justify-content: center;
}

.bar-col.right {
  flex: 1;
  justify-content: flex-end;
  gap: 14px;
}

/* Quick Gallery Thumbnail */
.btn-galeria-rolo {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-galeria-rolo:active {
  transform: scale(0.92);
  border-color: var(--neon-cyan);
}

.thumb-container {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-galeria-rolo svg {
  color: var(--fg-dim);
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--neon-primary);
  color: #fff;
  font-family: var(--fonte-mono);
  font-size: 10.5px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #030206;
  box-shadow: 0 0 10px var(--acento-glow);
}

/* -------------------------------------------------- Obturador Futurista Sci-Fi */
.btn-shutter-cyber {
  position: relative;
  width: 82px;
  height: 82px;
  min-width: 82px;
  min-height: 82px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.shutter-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.4);
  animation: girar 16s linear infinite;
}

.shutter-reactor-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.3);
  transition: all 0.2s;
}

.shutter-reactor-core {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ff0055 70%, #990033 100%);
  box-shadow: 0 0 20px var(--acento-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s;
}

.core-pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  box-shadow: 0 0 8px #fff;
}

.btn-shutter-cyber:hover .shutter-reactor-core {
  box-shadow: 0 0 30px var(--neon-primary), 0 0 15px var(--neon-cyan);
}

.btn-shutter-cyber:active {
  transform: scale(0.92);
}

.btn-shutter-cyber:active .shutter-reactor-core {
  transform: scale(0.82);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, var(--neon-cyan) 70%, #0088cc 100%);
  box-shadow: 0 0 35px var(--neon-cyan);
}

.btn-shutter-cyber:active .shutter-reactor-ring {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px var(--neon-cyan);
}

/* Botões da Direita */
.btn-icon-bar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  background: var(--card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-icon-bar:active {
  transform: scale(0.92);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-icon-bar.link-galeria {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--card-border-cyan);
  color: var(--neon-cyan);
}

.btn-icon-bar.link-galeria:hover {
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* -------------------------------------------------- Modais Holográficos Cyber */
.modal-dialog {
  border: 0;
  padding: 16px;
  background: transparent;
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.modal-dialog::backdrop {
  background: rgba(3, 2, 6, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-card.modal-cyber {
  position: relative;
  background: var(--card-glass-heavy);
  border: 1px solid var(--card-border-cyan);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  animation: cyberModalUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-cyber-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes cyberModalUp {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-cyber-badge {
  display: inline-block;
  font-family: var(--fonte-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.modal-header h3 {
  font-family: var(--fonte-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.modal-header p {
  color: var(--fg-dim);
  font-size: 13.5px;
  margin: 0 0 20px;
  line-height: 1.45;
}

.input-grupo-cyber {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 4px 14px;
  transition: all 0.2s;
}

.input-grupo-cyber:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
  background: rgba(0, 240, 255, 0.08);
}

.input-grupo-cyber .input-tag {
  font-family: var(--fonte-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-right: 8px;
}

.input-grupo-cyber input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 0;
  color: #fff;
  font-family: var(--fonte-sans);
  font-size: 15px;
  outline: none;
}

.modal-acoes {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Modal de Histórico Holográfico */
.historico-card {
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.badge-status-fila-cyber {
  font-family: var(--fonte-mono);
  font-size: 11px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: auto;
  margin-right: 28px;
}

.btn-fechar-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-fechar-modal:hover {
  color: #fff;
}

.grade-minhas-fotos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
  overflow-y: auto;
  max-height: 45vh;
  padding-right: 4px;
}

.item-minha-foto {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #151020;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-minha-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-status-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: var(--fonte-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  text-align: center;
  color: #fff;
  letter-spacing: 0.04em;
}

.btn-apagar-minha-foto {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 42, 95, 0.6);
  color: #ff2a5f;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.btn-apagar-minha-foto:hover {
  background: var(--neon-primary);
  color: #fff;
  border-color: #fff;
  transform: scale(1.1);
}

.item-status-tag.enviado { background: var(--ok); }
.item-status-tag.enviando { background: #3b82f6; }
.item-status-tag.pendente { background: #eab308; }
.item-status-tag.erro { background: var(--acento); }

.modal-footer-historico {
  margin-top: 8px;
}

/* -------------------------------------------------- Avisos Gerais */
.aviso {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 20px;
  animation: cyberFadeIn 0.25s ease-out;
}

.aviso.alerta {
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid var(--neon-primary);
  color: #ff99b3;
}

.aviso.sucesso {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid var(--neon-green);
  color: #a3ffce;
}
