@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-neon: #00F5D4;
  --primary-pink: #FF007F;
  --primary-purple: #7B2CBF;
  --primary-yellow: #FFE600;
  --primary-blue: #00BBF9;
  --bg-dark: #090D16;
  --glass-bg: rgba(13, 20, 36, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-glow: rgba(0, 245, 212, 0.35);
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  user-select: none;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Glass UI Elements */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Top Navigation Bar */
.top-nav {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.top-nav > * {
  pointer-events: auto;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.brand-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

.brand-bolt {
  color: var(--primary-yellow);
  font-size: 1.25rem;
  filter: drop-shadow(0 0 8px var(--primary-yellow));
  animation: boltPulse 1.8s infinite ease-in-out;
}

@keyframes boltPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--primary-yellow)); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 14px #FFD700); }
}

.search-box-container {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 18px 10px 42px;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--primary-neon);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.3);
}

.search-icon-pos {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border-radius: 16px;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 100;
}

.search-result-item {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Floating Controls (Right) */
.controls-cluster {
  position: absolute;
  top: 80px;
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.icon-btn:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn.active {
  color: var(--primary-neon);
  border-color: var(--primary-neon);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

/* Bottom Friends Carousel Bar */
.bottom-dock {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.bottom-dock > * {
  pointer-events: auto;
}

.friends-scroll-container {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 14px;
  border-radius: 26px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.friends-scroll-container::-webkit-scrollbar {
  display: none;
}

.friend-dock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  min-width: 66px;
}

.friend-dock-card:hover {
  transform: translateY(-4px);
}

.dock-avatar-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-neon), var(--primary-blue));
}

.dock-avatar-wrapper.is-user {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-yellow));
}

.dock-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
}

.dock-battery-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dock-motion-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.friend-dock-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Action Floating Pill Bar */
.bottom-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-radius: 9999px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.action-bar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.2s;
}

.action-bar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-neon);
}

.action-bar-btn.spark-btn {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}

.action-bar-btn.spark-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.6);
}

/* Custom Mapbox Markers */
.blink-marker-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blink-marker-container:hover {
  transform: scale(1.15) translateY(-5px);
  z-index: 50 !important;
}

.marker-halo {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 245, 212, 0.35) 0%, rgba(0, 245, 212, 0) 70%);
  animation: haloPulse 2.4s infinite ease-out;
  pointer-events: none;
}

@keyframes haloPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.9; }
}

.marker-pin-bubble {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 245, 212, 0.5);
  background: #0f172a;
}

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

.marker-battery-pill {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #090d16;
  border: 1.5px solid #22c55e;
  border-radius: 999px;
  padding: 1px 5px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.marker-battery-pill.low {
  border-color: #ef4444;
  color: #f87171;
}

.marker-battery-pill.charging {
  border-color: #eab308;
  color: #fde047;
}

.marker-motion-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.marker-name-tag {
  margin-top: 12px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* User Accuracy Glow (Blue pulse) */
.user-accuracy-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0, 187, 249, 0.18);
  border: 2px solid rgba(0, 187, 249, 0.5);
  animation: userPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes userPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Friend Details Bottom Sheet */
.friend-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 32px 32px 0 0;
  z-index: 60;
  padding: 20px 24px 28px;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.friend-sheet.open {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin: 0 auto 16px;
  cursor: pointer;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sheet-avatar-img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--primary-neon);
  object-fit: cover;
}

.sheet-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.sheet-username {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sheet-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-icon {
  font-size: 1.2rem;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sheet-location-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.sheet-location-text {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.sheet-location-sub {
  font-size: 0.75rem;
  color: var(--primary-neon);
  margin-top: 2px;
  font-weight: 600;
}

.sheet-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-primary-action {
  flex: 1;
  padding: 12px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
}

.btn-bump {
  background: linear-gradient(135deg, #FF007F, #7B2CBF);
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}

.btn-bump:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 0, 127, 0.6);
}

.btn-navigate {
  background: linear-gradient(135deg, #00BBF9, #00F5D4);
  color: #090D16;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.4);
}

.btn-navigate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 245, 212, 0.6);
}

.btn-chat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  flex: 0 0 48px;
}

.btn-chat:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Sound Emojis / Spark Bar */
.spark-bar-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.spark-emoji-grid {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spark-emoji-btn {
  font-size: 1.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spark-emoji-btn:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.12);
}

.spark-emoji-btn:active {
  transform: scale(0.9);
}

/* Flying Emoji Balloons across Map */
.flying-emoji {
  position: fixed;
  font-size: 2.2rem;
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  animation: flyUpAndFade 2.2s forwards cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes flyUpAndFade {
  0% {
    transform: translate(0, 0) scale(0.4) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translate(calc(var(--rand-x) * 0.4), -80px) scale(1.3) rotate(calc(var(--rand-rot) * 0.5));
  }
  70% {
    transform: translate(var(--rand-x), -220px) scale(1.1) rotate(var(--rand-rot));
    opacity: 0.9;
  }
  100% {
    transform: translate(calc(var(--rand-x) * 1.3), -380px) scale(0.7) rotate(calc(var(--rand-rot) * 1.5));
    opacity: 0;
  }
}

/* Fullscreen BUMP Modal */
.bump-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.bump-modal-overlay.active {
  display: flex;
}

.bump-clash-box {
  position: relative;
  width: 280px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 30px;
}

.bump-phone {
  width: 78px;
  height: 140px;
  border-radius: 20px;
  background: #1e293b;
  border: 4px solid var(--primary-neon);
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s;
}

.bump-phone.left {
  animation: phoneClashLeft 0.8s infinite alternate cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.bump-phone.right {
  animation: phoneClashRight 0.8s infinite alternate cubic-bezier(0.36, 0.07, 0.19, 0.97);
  border-color: var(--primary-pink);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.6);
}

@keyframes phoneClashLeft {
  0% { transform: translateX(-40px) rotate(-15deg); }
  100% { transform: translateX(10px) rotate(4deg); }
}

@keyframes phoneClashRight {
  0% { transform: translateX(40px) rotate(15deg); }
  100% { transform: translateX(-10px) rotate(-4deg); }
}

.bump-spark-center {
  position: absolute;
  font-size: 3.5rem;
  animation: bumpExplosion 0.8s infinite alternate;
}

@keyframes bumpExplosion {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 20px #FFE600); }
}

.bump-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FF007F, #FFE600, #00F5D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.bump-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 360px;
  margin-bottom: 24px;
}

.bump-streak-pill {
  background: rgba(255, 230, 0, 0.15);
  border: 1px solid var(--primary-yellow);
  color: var(--primary-yellow);
  padding: 8px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.3);
}

/* Modals (Ghost Mode, Footprints, Chat, Add Friend) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ghost Mode Options */
.ghost-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.ghost-option-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ghost-option-card.selected {
  border-color: var(--primary-neon);
  background: rgba(0, 245, 212, 0.08);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.2);
}

.ghost-icon-box {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ghost-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.ghost-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Chat Drawer */
.chat-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  z-index: 600;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.chat-drawer.open {
  transform: translateX(0);
}

.chat-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.4;
  position: relative;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-blue), #2563EB);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chat-time {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-neon);
  color: #090D16;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.08);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(13, 20, 36, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 245, 212, 0.4);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: toastPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastPop {
  0% { transform: translateY(-20px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .top-nav {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  
  .brand-badge span {
    display: none;
  }
  
  .controls-cluster {
    top: 70px;
    right: 10px;
  }
  
  .bottom-dock {
    bottom: 12px;
    left: 10px;
    right: 10px;
  }
  
  .friend-sheet {
    border-radius: 28px 28px 0 0;
    padding: 16px 18px 24px;
  }
  
  .sheet-avatar-img {
    width: 52px;
    height: 52px;
  }
  
  .stat-card {
    padding: 8px 6px;
  }
  
  .stat-value {
    font-size: 0.85rem;
  }
}
