/* ═══════════════════════════════════════════════════════════
   Quick Plan — single-screen hangout creator overlay
   ═══════════════════════════════════════════════════════════ */

.qp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.qp-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.qp-modal {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface, #1a1d24);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom: none;
  padding: 20px 20px 28px;
  position: relative;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.qp-overlay.open .qp-modal {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .qp-overlay {
    align-items: center;
    padding: 20px;
  }
  .qp-modal {
    border-radius: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(20px) scale(.96);
    max-height: 85vh;
  }
  .qp-overlay.open .qp-modal {
    transform: translateY(0) scale(1);
  }
}

/* ─── Close ─── */
.qp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, .06);
  border: none;
  border-radius: 8px;
  padding: 6px;
  color: var(--muted, rgba(255, 255, 255, .45));
  cursor: pointer;
  transition: background .15s, color .15s;
  z-index: 1;
}

.qp-close:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text, #fff);
}

/* ─── Header ─── */
.qp-header {
  text-align: center;
  margin-bottom: 20px;
}

.qp-header-emoji {
  font-size: 28px;
  margin-bottom: 4px;
}

.qp-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text, #fff);
  margin: 0 0 2px;
}

.qp-subtitle {
  font-size: 13px;
  color: var(--muted, rgba(255, 255, 255, .5));
  margin: 0;
}

/* ─── Sections ─── */
.qp-section {
  margin-bottom: 18px;
}

.qp-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, rgba(255, 255, 255, .5));
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

/* ─── Input ─── */
.qp-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text, #fff);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.qp-input:focus {
  border-color: rgba(168, 85, 247, .4);
}

.qp-input::placeholder {
  color: var(--muted, rgba(255, 255, 255, .35));
}

/* ─── Suggestions ─── */
.qp-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.qp-suggestion {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted, rgba(255, 255, 255, .6));
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.qp-suggestion:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text, #fff);
}

/* ─── Time pills ─── */
.qp-time-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.qp-time-pill {
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted, rgba(255, 255, 255, .6));
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.qp-time-pill:hover {
  background: rgba(255, 255, 255, .08);
}

.qp-time-pill.active {
  background: rgba(74, 222, 128, .12);
  border-color: rgba(74, 222, 128, .3);
  color: #4ade80;
}

.qp-date-input {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text, #fff);
  font-size: 14px;
  font-family: inherit;
  color-scheme: dark;
}

/* ─── People ─── */
.qp-people {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.qp-people::-webkit-scrollbar { display: none; }

.qp-person {
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  transition: transform .1s;
  font-family: inherit;
}

.qp-person:active { transform: scale(.95); }

.qp-person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  border: 2px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}

.qp-crew-avatar {
  background: rgba(168, 85, 247, .15) !important;
  font-size: 18px;
}

.qp-person.selected .qp-person-avatar {
  border-color: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, .3);
}

.qp-person-name {
  font-size: 10px;
  color: var(--muted, rgba(255, 255, 255, .5));
  transition: color .15s;
}

.qp-person.selected .qp-person-name {
  color: #4ade80;
}

.qp-no-friends {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: var(--muted, rgba(255, 255, 255, .4));
}

/* ─── Send button ─── */
.qp-send {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .1s, box-shadow .15s;
  font-family: inherit;
}

.qp-send:hover {
  box-shadow: 0 4px 20px rgba(168, 85, 247, .3);
}

.qp-send:active {
  transform: scale(.98);
}

/* ═══════════════════════════════════════════════════════════
   Quick Plan FAB (Floating Action Button)
   ═══════════════════════════════════════════════════════════ */

.qp-fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(168, 85, 247, .4);
  z-index: 999;
  transition: transform .15s, box-shadow .15s;
}

.qp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(168, 85, 247, .5);
}

.qp-fab:active {
  transform: scale(.95);
}

@media (min-width: 600px) {
  .qp-fab {
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Going Tonight Card (for Home bento grid)
   ═══════════════════════════════════════════════════════════ */

.hb-tonight {
  background: linear-gradient(135deg, rgba(249, 115, 22, .08), rgba(236, 72, 153, .05)) !important;
  border-color: rgba(249, 115, 22, .15) !important;
  cursor: pointer;
}

.hb-tonight:hover {
  border-color: rgba(249, 115, 22, .25) !important;
}

.hb-tonight-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hb-tonight-live {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(249, 115, 22, .15);
  font-size: 10px;
  font-weight: 700;
  color: #f97316;
  letter-spacing: .5px;
  text-transform: uppercase;
  animation: tonight-pulse 2s infinite;
}

@keyframes tonight-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

.hb-tonight-countdown {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hb-tonight-until {
  font-size: 11px;
  color: var(--muted, rgba(255, 255, 255, .45));
  margin-bottom: 8px;
}

.hb-tonight-avatars {
  display: flex;
  margin: 8px 0;
}

.hb-tonight-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-left: -6px;
  border: 2px solid var(--bg, #080c15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
}

.hb-tonight-av:first-child { margin-left: 0; }

.hb-tonight-event {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #fff);
  margin-top: 6px;
}

.hb-tonight-venue {
  font-size: 11px;
  color: var(--muted, rgba(255, 255, 255, .45));
}

.hb-tonight-more {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px;
  color: var(--muted, rgba(255, 255, 255, .4));
}

/* ═══════════════════════════════════════════════════════════
   Contextual Share Prompt (Toast)
   ═══════════════════════════════════════════════════════════ */

.ctx-share-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  background: var(--surface, #1a1d24);
  border: 1px solid rgba(74, 222, 128, .2);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  width: calc(100% - 40px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.ctx-share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

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

.ctx-share-toast-body {
  flex: 1;
  min-width: 0;
}

.ctx-share-toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
}

.ctx-share-toast-sub {
  font-size: 11px;
  color: var(--muted, rgba(255, 255, 255, .5));
}

.ctx-share-toast-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(74, 222, 128, .15);
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #4ade80;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
  font-family: inherit;
}

.ctx-share-toast-btn:hover {
  background: rgba(74, 222, 128, .25);
}

/* ═══════════════════════════════════════════════════════════
   Who's Around — enhanced friends section on event detail
   ═══════════════════════════════════════════════════════════ */

.ed-whos-around {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
}

.ed-wa-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #fff);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ed-wa-title svg {
  color: var(--muted, rgba(255, 255, 255, .4));
}

.ed-wa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ed-wa-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.ed-wa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.ed-wa-info {
  flex: 1;
  min-width: 0;
}

.ed-wa-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #fff);
}

.ed-wa-status {
  font-size: 10px;
  font-weight: 600;
}

.ed-wa-status.going { color: #4ade80; }
.ed-wa-status.interested { color: #facc15; }

.ed-wa-label {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  font-size: 9px;
  font-weight: 600;
  color: var(--muted, rgba(255, 255, 255, .4));
  flex-shrink: 0;
}

.ed-wa-dm-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  border: none;
  color: var(--muted, rgba(255, 255, 255, .4));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.ed-wa-dm-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text, #fff);
}

.ed-wa-more {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  text-align: center;
  font-size: 11px;
  color: var(--muted, rgba(255, 255, 255, .4));
  cursor: pointer;
  transition: background .15s;
}

.ed-wa-more:hover {
  background: rgba(255, 255, 255, .04);
}
