/* ============================================================
   Ramein · GZ-SpotLive — Custom styling
   Dark cinematic (slate-950) + neon crimson/indigo/cyan + glass
   ============================================================ */

:root {
  --crimson: #f43f5e;
  --indigo:  #818cf8;
  --cyan:    #22d3ee;
  --lime:    #a3e635;
  --amber:   #facc15;
  --bg:      #020617;
  --card:    rgba(15, 23, 42, 0.55);
  --stroke:  rgba(255, 255, 255, 0.08);
}

* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

html, body {
  background: #010409;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* ------------------------------------------------------------
   Glasmorphism
   ------------------------------------------------------------ */
.glass {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--stroke);
}

.logo-gradient {
  background: linear-gradient(100deg, var(--crimson) 0%, var(--indigo) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.45));
}

.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* ------------------------------------------------------------
   Ring indicator chip
   ------------------------------------------------------------ */
.ring-chip {
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}
.ring-chip.is-expanded {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.12);
  color: var(--crimson);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

/* badge mode (MOCK / CLOUD) */
.env-chip {
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: var(--amber);
  background: rgba(250, 204, 21, 0.1);
}
.env-chip.is-cloud {
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.glass-btn {
  border-radius: 999px;
  padding: 8px 14px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--stroke);
  transition: all 0.2s ease;
}
.glass-btn:hover, .glass-btn:active {
  background: rgba(148, 163, 184, 0.22);
  color: #fff;
}

/* "Update Suasana" — crimson/indigo neon FAB */
.btn-neon {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--crimson), var(--indigo) 75%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.55), 0 0 34px rgba(129, 140, 248, 0.35);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn-neon:active { transform: scale(0.97); }

/* "Gas Ke Sini" — indigo/cyan neon FAB */
.btn-glow {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 13px;
  color: #ecfeff;
  background: linear-gradient(120deg, var(--indigo), var(--cyan) 90%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.5), 0 0 34px rgba(129, 140, 248, 0.35);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn-glow:active { transform: scale(0.97); }

.card-btn {
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.12s ease;
  cursor: pointer;
}
.card-btn:active { transform: scale(0.96); }

.card-btn-soft {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.12s ease;
  cursor: pointer;
}
.card-btn-soft:active { transform: scale(0.96); }

/* ------------------------------------------------------------
   Density pill
   ------------------------------------------------------------ */
.density-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 1px solid;
}
.density-sepi   { color: var(--lime);  border-color: rgba(163, 230, 53, 0.5);   background: rgba(163, 230, 53, 0.12); }
.density-sedang { color: var(--amber); border-color: rgba(250, 204, 21, 0.5);   background: rgba(250, 204, 21, 0.12); }
.density-penuh  { color: var(--crimson); border-color: rgba(244, 63, 94, 0.55); background: rgba(244, 63, 94, 0.15); box-shadow: 0 0 14px rgba(244, 63, 94, 0.35); }

/* ------------------------------------------------------------
   9:16 vertical feed & cover "video"
   ------------------------------------------------------------ */
.feed-scroll { scroll-snap-type: y mandatory; }

.cover {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.cover.center-video {
  width: 65%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 16px;
}

.cover__emoji {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(60px, 22vmin, 120px);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.65));
  animation: float 5s ease-in-out infinite;
}

.cover__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* subtle scanline = kesan ada "video live" */
.cover::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cover__vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.25) 32%, transparent 55%),
              linear-gradient(to bottom, rgba(2, 6, 23, 0.5), transparent 22%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.05); }
}

/* LIVe indicator */
.live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(244, 63, 94, 0.9);
  color: #fff;
  font-size: 9px; font-weight: 900; letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #fff;
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

/* avatar circle */
.avatar {
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 16px;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
  flex: none;
}

/* chip fasilitas */
.fac {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--stroke);
  color: #cbd5e1;
}

/* ------------------------------------------------------------
   Filter chips (density / fasilitas)
   ------------------------------------------------------------ */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; }
.filter-chip {
  flex: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--stroke);
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-chip.active {
  color: #0f172a;
  background: linear-gradient(100deg, var(--cyan), var(--indigo));
  border-color: transparent;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
}

/* ------------------------------------------------------------
   Leaflet dark + neon heatmap pins
   ------------------------------------------------------------ */
.leaflet-container {
  background: var(--bg);
  font-family: inherit;
}
.leaflet-control-zoom a { background: rgba(15, 23, 42, 0.9) !important; color: #e2e8f0 !important; border-color: var(--stroke) !important; }
.leaflet-control-attribution { background: rgba(2, 6, 23, 0.7) !important; color: #475569 !important; font-size: 9px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: rgba(2, 6, 23, 0.92) !important;
  color: #e2e8f0 !important;
  border: 1px solid var(--stroke);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}

.heatpin {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  color: transparent;
  animation: heat 1.8s ease-out infinite;
}
.heatpin.strong::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 999px; background: #fff; }
.pin-sepi   { background: var(--lime);   box-shadow: 0 0 12px 4px rgba(163, 230, 53, 0.55); }
.pin-sedang { background: var(--amber);  box-shadow: 0 0 12px 4px rgba(250, 204, 21, 0.55); }
.pin-penuh  { background: var(--crimson); box-shadow: 0 0 16px 6px rgba(244, 63, 94, 0.65); }

@keyframes heat {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.user-dot {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--cyan);
  border: 3px solid #fff;
  box-shadow: 0 0 16px 6px rgba(34, 211, 238, 0.6);
  animation: heat 2s ease-out infinite;
}

/* ------------------------------------------------------------
   Camera modal
   ------------------------------------------------------------ */
.cam-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: #000;
}
.cam-stream {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.cam-top, .cam-bottom {
  position: relative; z-index: 2;
}
.watermark {
  position: absolute; top: 58px; left: 12px; z-index: 3;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 6px 10px;
  color: #fefce8;
  font-size: 10px;
  font-weight: 800;
  font-family: "Courier New", monospace;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px #000;
}
.geofence-pill {
  position: absolute; top: 106px; left: 12px; right: 12px; z-index: 3;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; gap: 6px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid;
}
.geo-ok   { border-color: rgba(163, 230, 53, 0.5);  color: var(--lime); }
.geo-warn { border-color: rgba(250, 204, 21, 0.55); color: var(--amber); }
.geo-fail { border-color: rgba(244, 63, 94, 0.6);   color: var(--crimson); }

.shutter-wrap {
  position: relative; z-index: 3;
  width: 76px; height: 76px;
}
.shutter {
  width: 100%; height: 100%;
  border-radius: 999px;
  border: 3px solid #fff;
  background: rgba(255, 255, 255, 0.25);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.shutter:active { transform: scale(0.9); }
.shutter.is-recording {
  background: rgba(244, 63, 94, 0.85);
  border-radius: 22px;
}
.shutter-inner {
  width: 60px; height: 60px; border-radius: 999px;
  background: #fff;
}
.shutter.is-recording .shutter-inner { border-radius: 10px; background: var(--crimson); }

.rec-dot {
  display: inline-block;
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--crimson);
  animation: blink 1s step-start infinite;
}

.density-select { display: flex; gap: 6px; flex-wrap: wrap; }
.density-select .density-pill { cursor: pointer; opacity: 0.45; transition: opacity 0.15s ease; }
.density-select .density-pill.selected { opacity: 1; }

/* ------------------------------------------------------------
   Toast + empty state
   ------------------------------------------------------------ */
.toast {
  pointer-events: auto;
  max-width: 92vw;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.is-error { border-color: rgba(244, 63, 94, 0.5); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------------------------------------
   Bottom navigation (tabs)
   ------------------------------------------------------------ */
.tab-btn {
  position: relative;
  flex: 1;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 0.18s ease;
}
.tab-btn.active { color: #e2e8f0; }
.tab-btn.active .tab-ico {
  filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.7));
}
.tab-ico { font-size: 20px; line-height: 1; }
.tab-lbl { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; }
.tab-fab {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.tab-fab > span {
  background: linear-gradient(135deg, var(--crimson), var(--indigo));
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.tab-fab.active .tab-lbl { color: #fff; }

.notif-dot {
  position: absolute; top: 2px; right: calc(50% - 18px);
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--crimson);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.8);
  animation: blink 1s step-start infinite;
}

/* ------------------------------------------------------------
   Chips (kategori & filter status)
   ------------------------------------------------------------ */
.chip-pill {
  flex: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--stroke);
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip-pill.active {
  color: #0f172a;
  background: linear-gradient(100deg, var(--cyan), var(--indigo));
  border-color: transparent;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
}

/* ------------------------------------------------------------
   Freshness badge (LIVE NOW / RECENT / AGING)
   ------------------------------------------------------------ */
.freshtag {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 1px solid;
}
.fresh-live   { color: #fff;   border-color: rgba(244, 63, 94, 0.8);  background: rgba(244, 63, 94, 0.85); box-shadow: 0 0 14px rgba(244, 63, 94, 0.5); }
.fresh-recent { color: var(--amber); border-color: rgba(250, 204, 21, 0.55); background: rgba(250, 204, 21, 0.15); }
.fresh-warming { color: var(--amber); border-color: rgba(250, 204, 21, 0.6); background: rgba(250, 204, 21, 0.28); box-shadow: 0 0 12px rgba(250, 204, 21, 0.2); }
.fresh-aging  { color: #94a3b8; border-color: rgba(148, 163, 184, 0.4); background: rgba(148, 163, 184, 0.1); }

/* ------------------------------------------------------------
   Desktop: shell + feed 2 kolom
   ------------------------------------------------------------ */
@media (min-width: 1024px) {
  #app { max-width: 1080px; border-radius: 24px; box-shadow: 0 0 90px rgba(0, 0, 0, 0.65); }
  #view-feed { scroll-snap-type: none; padding-bottom: 0; }
  #feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 14px 14px; }
  #feed .cover { aspect-ratio: initial; }
  #search-wrap, #filter-wrap { max-width: 640px; }
}

/* ------------------------------------------------------------
   Venue detail sheet
   ------------------------------------------------------------ */
.sheet { animation: sheet-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes sheet-in {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.sheet-status {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 1px solid;
}
.sheet-status-parah { color: var(--crimson); border-color: rgba(244, 63, 94, 0.6); background: rgba(244, 63, 94, 0.15); }
.sheet-status-live  { color: var(--amber);   border-color: rgba(250, 204, 21, 0.55); background: rgba(250, 204, 21, 0.12); }
.sheet-status-chill { color: var(--lime);    border-color: rgba(163, 230, 53, 0.5);  background: rgba(163, 230, 53, 0.12); }

.verified-badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

/* ------------------------------------------------------------
   Diagnostic panel (jaringan / Google Login)
   ------------------------------------------------------------ */
.diag-ok   { border: 1px solid rgba(163, 230, 53, 0.45); box-shadow: 0 0 16px rgba(163, 230, 53, 0.15); }
.diag-bad  { border: 1px solid rgba(244, 63, 94, 0.5); box-shadow: 0 0 16px rgba(244, 63, 94, 0.18); }

.diag-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.diag-ico {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}
.diag-required {
  flex: none;
  font-size: 8px; font-weight: 900; letter-spacing: 0.1em;
  color: var(--crimson);
  border: 1px solid rgba(244, 63, 94, 0.45);
  border-radius: 999px;
  padding: 2px 7px;
}

.loading-dots {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }