/* ========================================================
   SLIDING BOTTOM SHEET: "LIVE VAM" (Segundo Apartado)
   ======================================================== */
.vam-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90vh;
  background: #16181d;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.75);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100% - 50px));
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.sheet-drag-area {
  background: #25282f;
  height: 38px;
  min-height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: grab;
  border-radius: 22px 22px 0 0;
  touch-action: none;
}

.sheet-drag-area:active {
  cursor: grabbing;
}

.sheet-handle-bars {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  align-items: center;
  pointer-events: none;
}

.sheet-handle-bar {
  width: 78px;
  height: 3px;
  background: #757d8a;
  border-radius: 2px;
}

.sheet-header-bar {
  background: #2c333f;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.sheet-content {
  flex: 1;
  background: #16181d;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
  user-select: text;
  -webkit-user-select: text;
}

.sheet-placeholder-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.sheet-placeholder-text {
  color: #f0f3f6;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.55;
  text-transform: uppercase;
  max-width: 320px;
}

/* ========================================================
   DRAWER SIDE NAVIGATION & FORMS
   ======================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.drawer-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -330px;
  width: 86%;
  max-width: 330px;
  background: var(--drawer-bg);
  border-right: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.9);
  z-index: 1600;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer-menu.open {
  left: 0;
}

.drawer-header {
  padding: 20px 16px 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-profile-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-preview-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  font-size: 20px;
}

.drawer-tabs {
  display: flex;
  background: #090d13;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-tab {
  flex: 1;
  padding: 12px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #8b949e;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.drawer-tab.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.05);
}

.drawer-content {
  padding: 18px 16px;
  flex: 1;
}

.form-group {
  margin-bottom: 14px;
}
.form-label {
  font-size: 11px;
  font-weight: 700;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}
.form-input, .form-select {
  width: 100%;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Color Swatches Grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.color-swatch {
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.color-swatch.active {
  border-color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 14px currentColor;
}

/* Pelotón Roster Card */
.roster-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.roster-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.roster-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1.5px solid;
}

/* SOS Panic Button with Hold Animation */
.sos-hold-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff0844 0%, #ff4e50 100%);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 8, 68, 0.45);
  user-select: none;
  -webkit-user-select: none;
}
.sos-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ========================================================
   CENTRO GLOBALIZADO "LIVE VAM" - ESTILOS DEL FEED Y ALIANZAS
   ======================================================== */
.live-vam-nav {
  display: flex;
  background: #1c2028;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.live-vam-tab-btn {
  flex: 1;
  padding: 12px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b949e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.live-vam-tab-btn.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.06);
}

.live-feed-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-alert-card {
  background: #161a22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.feed-alert-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-police {
  background: rgba(0, 153, 255, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.badge-theft {
  background: rgba(255, 20, 70, 0.18);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.4);
}
.badge-hazard {
  background: rgba(255, 170, 0, 0.18);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.4);
}
.badge-poi {
  background: rgba(0, 255, 136, 0.18);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.feed-time-dist {
  font-size: 10px;
  color: #8b949e;
}

.feed-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #f0f3f6;
  margin-bottom: 4px;
}
.feed-card-desc {
  font-size: 11px;
  color: #a0aec0;
  line-height: 1.4;
  margin-bottom: 8px;
}
.feed-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #718096;
  margin-bottom: 10px;
}
.feed-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-media-box {
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed-media-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.feed-media-video {
  width: 100%;
  max-height: 240px;
  background: #000;
}

.feed-card-actions {
  display: flex;
  gap: 8px;
}

.alliance-card {
  background: #161a22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.alliance-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.alliance-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid;
}

