/* ============================================================
   LIBERTS — DESIGN SYSTEM
   Rede Social Espacial — Interface de Nave
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Share+Tech+Mono&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:              #000000;
  --bg-deep:         #000000;
  --bg-panel:        rgba(6, 20, 50, 0.65);
  --bg-panel-solid:  #061432;
  --bg-card:         rgba(4, 15, 40, 0.8);
  --bg-input:        rgba(0, 10, 30, 0.7);
  --bg-hover:        rgba(255, 255, 255, 0.04);
  --bg-overlay:      rgba(0, 0, 0, 0.75);

  /* Panel borders */
  --panel-border:    rgba(0, 245, 255, 0.1);
  --panel-border-h:  rgba(0, 245, 255, 0.35);
  --panel-border-active: rgba(0, 245, 255, 0.5);

  /* Primary — Cyan */
  --cyan:        #00f5ff;
  --cyan-dim:    rgba(0, 245, 255, 0.55);
  --cyan-glow:   rgba(0, 245, 255, 0.25);
  --cyan-deep:   rgba(0, 245, 255, 0.08);
  --cyan-bg:     rgba(0, 245, 255, 0.04);

  /* Accent — Purple */
  --purple:      #a855f7;
  --purple-dim:  rgba(168, 85, 247, 0.55);
  --purple-glow: rgba(168, 85, 247, 0.25);
  --purple-deep: rgba(168, 85, 247, 0.08);

  /* Success — Green */
  --green:       #39ff14;
  --green-dim:   rgba(57, 255, 20, 0.55);
  --green-glow:  rgba(57, 255, 20, 0.25);
  --green-deep:  rgba(57, 255, 20, 0.08);

  /* Warning — Orange */
  --orange:      #ff6b35;
  --orange-dim:  rgba(255, 107, 53, 0.55);
  --orange-glow: rgba(255, 107, 53, 0.25);
  --orange-deep: rgba(255, 107, 53, 0.08);

  /* Danger — Red */
  --red:         #ff2d55;
  --red-dim:     rgba(255, 45, 85, 0.55);
  --red-glow:    rgba(255, 45, 85, 0.25);
  --red-deep:    rgba(255, 45, 85, 0.08);

  /* Neutral */
  --yellow:      #ffd60a;

  /* Text */
  --text:        #b8c8e8;
  --text-bright: #e8f4ff;
  --text-muted:  #3d5170;
  --text-dim:    #283850;

  /* Layout */
  --navbar-h:    60px;
  --topbar-h:    56px;

  /* Typography */
  --font-hud:   'Orbitron', monospace;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'Share Tech Mono', monospace;

  /* Borders */
  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tr:   all 0.3s var(--ease);
  --tr-fast: all 0.15s var(--ease);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
canvas { display: block; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,245,255,0.15);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,245,255,0.15) transparent;
}

/* ============================================================
   STARFIELD CANVAS
   ============================================================ */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   SCANLINES OVERLAY
   ============================================================ */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 245, 255, 0.005) 3px,
    rgba(0, 245, 255, 0.005) 4px
  );
}

/* ============================================================
   GLASS PANELS
   ============================================================ */
.glass {
  background: var(--bg-panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  position: relative;
  overflow: hidden;
  transition: var(--tr);
}

.glass::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.25), transparent);
  pointer-events: none;
}

.glass:hover {
  border-color: rgba(0, 245, 255, 0.18);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3), 0 0 0 0.5px rgba(0,245,255,0.08) inset;
}

.glass-strong {
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--r-lg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

/* ============================================================
   HUD CORNER DECORATIONS
   ============================================================ */
.hud-corners { position: relative; }

.hud-corners::before,
.hud-corners::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  z-index: 5;
}

.hud-corners::before {
  top: 6px; left: 6px;
  border-top: 1.5px solid var(--cyan);
  border-left: 1.5px solid var(--cyan);
  opacity: 0.35;
}

.hud-corners::after {
  bottom: 6px; right: 6px;
  border-bottom: 1.5px solid var(--cyan);
  border-right: 1.5px solid var(--cyan);
  opacity: 0.35;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.text-hud {
  font-family: var(--font-hud);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.text-mono {
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.text-glow {
  text-shadow: 0 0 20px var(--cyan-glow), 0 0 40px rgba(0,245,255,0.1);
}

.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-bright { color: var(--text-bright); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: var(--font-hud);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--tr);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--tr);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: rgba(0,245,255,0.12);
  border-color: rgba(0,245,255,0.4);
  color: var(--cyan);
}

.btn-primary:hover {
  background: rgba(0,245,255,0.2);
  box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(0,245,255,0.08);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-secondary {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.4);
  color: var(--purple);
}

.btn-secondary:hover {
  background: rgba(168,85,247,0.2);
  box-shadow: 0 0 30px var(--purple-glow);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(255,45,85,0.12);
  border-color: rgba(255,45,85,0.4);
  color: var(--red);
}

.btn-danger:hover {
  background: rgba(255,45,85,0.2);
  box-shadow: 0 0 30px var(--red-glow);
  transform: translateY(-1px);
}

.btn-success {
  background: rgba(57,255,20,0.12);
  border-color: rgba(57,255,20,0.4);
  color: var(--green);
}

.btn-success:hover {
  background: rgba(57,255,20,0.2);
  box-shadow: 0 0 30px var(--green-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--panel-border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--tr);
}

.btn-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 12px;
  border-radius: var(--r-lg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 9px;
}

.btn-block { width: 100%; }

/* ============================================================
   FORM INPUTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--panel-border);
  border-radius: var(--r);
  color: var(--text-bright);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--tr);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.1), 0 0 20px rgba(0,245,255,0.05);
  background: rgba(0, 10, 30, 0.9);
}

.form-input:hover:not(:focus) {
  border-color: rgba(0, 245, 255, 0.2);
}

.form-input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-deep);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 11px;
  color: var(--red);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-cyan {
  background: var(--cyan-deep);
  border: 1px solid rgba(0,245,255,0.3);
  color: var(--cyan);
}

.badge-purple {
  background: var(--purple-deep);
  border: 1px solid rgba(168,85,247,0.3);
  color: var(--purple);
}

.badge-green {
  background: var(--green-deep);
  border: 1px solid rgba(57,255,20,0.3);
  color: var(--green);
}

.badge-orange {
  background: var(--orange-deep);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--orange);
}

.badge-red {
  background: var(--red-deep);
  border: 1px solid rgba(255,45,85,0.3);
  color: var(--red);
}

/* Status dot */
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-dot.away {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

.status-dot.offline {
  background: var(--text-muted);
}

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hud);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-sm { width: 32px; height: 32px; font-size: 11px; }
.avatar-md { width: 42px; height: 42px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 80px; height: 80px; font-size: 24px; }

.avatar-bordered {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.avatar-gradient {
  background: linear-gradient(135deg, #6d28d9, #00f5ff);
}

/* ============================================================
   BOTTOM NAVIGATION BAR (Mobile-like)
   ============================================================ */
.navbar-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  background: rgba(2, 8, 23, 0.92);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-top: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  z-index: 200;
}

.navbar-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.2), transparent);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: var(--r);
  transition: var(--tr);
  position: relative;
  min-width: 48px;
}

.nav-btn:hover {
  background: rgba(0, 245, 255, 0.06);
}

.nav-btn.active {
  background: rgba(0, 245, 255, 0.1);
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--cyan);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 0 8px var(--cyan);
}

.nav-btn-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: var(--tr);
}

.nav-btn-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
}

.nav-btn:hover .nav-btn-icon,
.nav-btn.active .nav-btn-icon {
  opacity: 1;
}

.nav-btn.active .nav-btn-icon svg {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.nav-btn-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--tr);
}

.nav-btn:hover .nav-btn-label,
.nav-btn.active .nav-btn-label {
  color: var(--cyan);
}

/* Central create button (Nebular) */
.nav-btn-create {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(0,245,255,0.3));
  border: 2px solid rgba(0,245,255,0.4);
  margin: 0 4px;
  position: relative;
  top: -10px;
  box-shadow: 0 0 30px rgba(0,245,255,0.15), 0 0 60px rgba(168,85,247,0.1);
  transition: var(--tr);
  min-width: auto;
  padding: 0;
}

.nav-btn-create:hover {
  background: linear-gradient(135deg, rgba(168,85,247,0.5), rgba(0,245,255,0.5));
  box-shadow: 0 0 40px rgba(0,245,255,0.3), 0 0 80px rgba(168,85,247,0.2);
  transform: scale(1.08);
}

.nav-btn-create .nav-btn-icon {
  opacity: 1;
}

.nav-btn-create .nav-btn-icon svg,
.nav-btn-create .nav-btn-icon .galaxy-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(255, 232, 160, 0.5));
  transition: all 0.6s var(--ease);
}

.nav-btn-create:hover .galaxy-icon {
  filter: drop-shadow(0 0 14px rgba(255, 232, 160, 0.7)) brightness(1.15);
  animation: galaxy-spin 20s linear infinite;
}

@keyframes galaxy-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(40px);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s var(--ease-bounce);
  position: relative;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--panel-border);
}

.modal-title {
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--cyan-glow);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  transition: var(--tr);
}

.modal-close:hover {
  background: rgba(255,45,85,0.15);
  color: var(--red);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--panel-border);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  transition: var(--tr);
  overflow: hidden;
}

.card:hover {
  border-color: rgba(0,245,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
}

.card-body {
  padding: 0 18px 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--panel-border);
}

/* ============================================================
   POST CARD (specific)
   ============================================================ */
.post-card {
  margin-bottom: 16px;
}

.post-user-info {
  flex: 1;
}

.post-username {
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.post-handle {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.post-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.post-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding: 0 18px 12px;
  word-wrap: break-word;
}

.post-content .hashtag {
  color: var(--cyan);
  cursor: pointer;
  transition: var(--tr-fast);
}

.post-content .hashtag:hover {
  text-shadow: 0 0 10px var(--cyan-glow);
}

.post-content .mention {
  color: var(--purple);
  cursor: pointer;
  transition: var(--tr-fast);
}

.post-media {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 10px;
  border-top: 1px solid var(--panel-border);
}

.post-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: var(--r);
  transition: var(--tr);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.post-action-btn:hover {
  background: rgba(255,255,255,0.04);
}

.post-action-btn.brilho:hover,
.post-action-btn.brilho.active {
  color: var(--cyan);
  background: var(--cyan-deep);
}

.post-action-btn.sinal:hover,
.post-action-btn.sinal.active {
  color: var(--purple);
  background: var(--purple-deep);
}

.post-action-btn.lancar:hover,
.post-action-btn.lancar.active {
  color: var(--green);
  background: var(--green-deep);
}

.post-action-btn.salvar:hover,
.post-action-btn.salvar.active {
  color: var(--orange);
  background: var(--orange-deep);
}

.post-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.post-action-btn.active svg {
  fill: currentColor;
  stroke: currentColor;
}

/* ============================================================
   POLL (Enquete) inside post
   ============================================================ */
.poll-container {
  padding: 12px 18px 16px;
}

.poll-question {
  font-family: var(--font-hud);
  font-size: 11px;
  color: var(--text-bright);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  border-radius: var(--r);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}

.poll-option:hover {
  border-color: var(--cyan);
  background: var(--cyan-deep);
}

.poll-option.voted {
  border-color: var(--cyan);
}

.poll-option-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 245, 255, 0.08);
  transition: width 0.6s var(--ease);
  border-radius: var(--r);
}

.poll-option-text {
  font-size: 13px;
  color: var(--text);
  position: relative;
  z-index: 1;
  flex: 1;
}

.poll-option-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  position: relative;
  z-index: 1;
  min-width: 40px;
  text-align: right;
}

.poll-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ============================================================
   JOYSTICK CONTROL
   ============================================================ */
.joystick-wrap {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 150;
}

.joystick {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(0, 245, 255, 0.3);
  background: rgba(0, 10, 30, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  position: relative;
  transition: var(--tr);
}

.joystick:hover {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
}

.joystick-inner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,245,255,0.3), rgba(168,85,247,0.3));
  border: 1.5px solid rgba(0,245,255,0.5);
  box-shadow: 0 0 15px rgba(0,245,255,0.2);
}

.joystick-arrows {
  position: absolute;
  inset: -4px;
}

.joystick-arrows svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(0, 245, 255, 0.2);
  stroke-width: 1;
}

/* ============================================================
   ZOOM SLIDER
   ============================================================ */
.zoom-wrap {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(0, 10, 30, 0.6);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
}

.zoom-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.zoom-track {
  width: 4px;
  height: 80px;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 2px;
  position: relative;
}

.zoom-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan-glow);
  transition: height 0.3s var(--ease);
}

/* ============================================================
   SIDE PANELS (Fotos / Videos)
   ============================================================ */
.side-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  padding: 16px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 15% 100%, 0 85%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 160px;
}

.side-panel-title {
  font-family: var(--font-hud);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255,255,255,0.15);
}

.side-panel-icons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.side-panel-icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  transition: var(--tr);
  cursor: pointer;
}

.side-panel-icon:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--cyan));
}

/* ============================================================
   LOADING & SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-panel) 25%, rgba(0,245,255,0.04) 50%, var(--bg-panel) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
  border-radius: var(--r);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--panel-border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(30px);
  min-width: 300px;
  max-width: 420px;
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-bounce);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show { transform: translateX(0); }

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-message {
  font-size: 13px;
  color: var(--text);
  flex: 1;
}

.toast.success { border-color: rgba(57,255,20,0.3); }
.toast.error { border-color: rgba(255,45,85,0.3); }
.toast.warning { border-color: rgba(255,107,53,0.3); }
.toast.info { border-color: rgba(0,245,255,0.3); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glow-border {
  0%, 100% { border-color: rgba(0,245,255,0.2); }
  50% { border-color: rgba(0,245,255,0.5); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hud-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.6; }
  97% { opacity: 1; }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes data-stream {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.hidden { display: none !important; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.mb-16 { margin-bottom: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --navbar-h: 54px;
  }

  .nav-btn-label {
    display: none;
  }

  .nav-btn {
    min-width: 40px;
    padding: 6px 6px;
  }

  .joystick-wrap {
    bottom: 70px;
    left: 10px;
  }

  .joystick {
    width: 56px;
    height: 56px;
  }

  .zoom-wrap {
    bottom: 70px;
    right: 10px;
  }

  .modal {
    width: 95%;
    max-height: 90vh;
    border-radius: var(--r-lg);
  }

  .toast-container {
    left: 10px;
    right: 10px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .side-panel {
    min-height: 100px;
  }

  .side-panel-title {
    font-size: 14px;
  }
}
