/* ═══════════════════════════════════════════════════════════════════════════ */
/* PING PLATFORM — DESIGN SYSTEM (restyled to match the "ping web" interface:  */
/* lime-on-black, Inter, flatter cards — see ping web/public/css/style.css)    */
/* ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg-deep: #0a0a0a;
  --bg-surface: #101010;
  --bg-elevated: #151515;
  --bg-card: rgba(21, 21, 21, 0.92);
  --bg-card-hover: rgba(28, 28, 28, 0.96);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --border-subtle: #262626;
  --border-medium: #333333;
  --border-gold: rgba(230, 255, 26, 0.35);
  --border-glow: 0 0 20px rgba(230, 255, 26, 0.15);

  --text-pure: #f5f5f5;
  --text-muted: #9a9a9a;
  --text-dim: #6b6b6b;

  --gold: #e6ff1a;
  --gold-glow: #f0ff5e;
  --gold-dark: #c7dd00;
  --gold-gradient: linear-gradient(135deg, #e6ff1a 0%, #c7dd00 100%);
  --gold-badge-bg: rgba(230, 255, 26, 0.1);

  --accent-cyan: #3ddc72;
  --accent-purple: #9d4edd;
  --accent-green: #3ddc72;
  --accent-crimson: #f08a8a;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Inter', sans-serif;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-lux: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  --blur: blur(10px);

  --transition-fast: all 0.15s ease;
  --transition-smooth: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(700px 380px at 85% -10%, rgba(230, 255, 26, 0.08), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 90px);
  background-attachment: fixed;
  color: var(--text-pure);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Selection & Scrollbar */
::selection {
  background: var(--gold);
  color: #000;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* AMBIENT LIGHTING EFFECTS                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */
.platform-glow {
  position: fixed;
  top: -150px;
  left: 0;
  right: 0;
  height: 450px;
  background: radial-gradient(ellipse 560px 260px at 50% 50%, rgba(230, 255, 26, 0.08) 0%, rgba(157, 78, 221, 0.035) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* AUTH GATE (sign up / log in)                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */
body.pre-auth .platform-header,
body.pre-auth .platform-viewport {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PLATFORM HEADER NAVIGATION                                                  */
/* ═══════════════════════════════════════════════════════════════════════════ */
.platform-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 9, 0.88);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.platform-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(230, 255, 26, 0.2) 0%, rgba(255, 158, 0, 0.1) 100%);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
  box-shadow: 0 0 15px rgba(230, 255, 26, 0.3);
}

.platform-brand-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #fff;
}

.platform-brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--gold-badge-bg);
  color: var(--gold);
  border: 1px solid rgba(230, 255, 26, 0.3);
}

/* Center Segmented Nav Pills */
.platform-nav {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.nav-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-pill-btn i {
  font-size: 17px;
}

.nav-pill-btn:hover {
  color: #fff;
  background: var(--bg-glass-hover);
}

.nav-pill-btn.active {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 20px rgba(230, 255, 26, 0.35);
}

.nav-pill-btn.active i {
  color: #000;
}

.nav-badge {
  background: #000;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.nav-pill-btn.active .nav-badge {
  background: #000;
  color: var(--gold);
}

/* Right Controls */
.platform-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.persona-select-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.persona-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.persona-dropdown {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.persona-dropdown option {
  background: #14141c;
  color: #fff;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 17px;
  position: relative;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-medium);
}

.header-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(230, 255, 26, 0.25);
}

.header-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* NOTIFICATIONS DRAWER (FIXED AS ABSOLUTE DROPDOWN)                          */
/* ═══════════════════════════════════════════════════════════════════════════ */
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 24px);
  background: rgba(16, 16, 24, 0.96);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(230, 255, 26, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 500;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: dropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.notifications-dropdown.active {
  display: flex !important;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.notif-list {
  max-height: 400px;
  overflow-y: auto;
}

.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.notif-item:hover {
  background: rgba(230, 255, 26, 0.06);
}

.notif-item.notif-unread {
  background: rgba(230, 255, 26, 0.04);
}

.notif-unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  flex-shrink: 0;
}

.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(230, 255, 26, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-body {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PLATFORM MAIN CONTAINER                                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */
.platform-viewport {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px 80px;
  position: relative;
  z-index: 10;
}

/* Section Titles */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Glass Card Base */
.glass-box {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-box:hover {
  border-color: var(--border-medium);
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(230, 255, 26, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 255, 26, 0.4);
}

.btn-gold:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
  box-shadow: 0 4px 20px rgba(230, 255, 26, 0.25);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--transition-fast);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* DISCOVERY (SPOTLIGHT DECK & BENTO GRID)                                     */
/* ═══════════════════════════════════════════════════════════════════════════ */
.discovery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.view-mode-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.view-mode-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.view-mode-btn.active {
  background: var(--gold-gradient);
  color: #000;
}

.tag-filter-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-filter-chip {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tag-filter-chip:hover, .tag-filter-chip.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(230, 255, 26, 0.08);
}

/* Spotlight Swipe Deck */
.spotlight-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 650px;
  margin: 10px auto 30px;
  perspective: 1200px;
}

.spotlight-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  user-select: none;
}

.spotlight-card.depth-1 {
  transform: scale(0.94) translateY(22px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card.depth-2 {
  transform: scale(0.88) translateY(40px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: depthCardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes depthCardEnter {
  from {
    transform: scale(0.82) translateY(52px);
    opacity: 0;
  }
  to {
    transform: scale(0.88) translateY(40px);
    opacity: 0.4;
  }
}

.spotlight-card.top-card {
  transform: scale(1) translateY(0);
  opacity: 1;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}

.spotlight-card.top-card:active {
  cursor: grabbing;
}

.swipe-stamp {
  position: absolute;
  top: 34px;
  z-index: 5;
  padding: 8px 18px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border: 3px solid currentColor;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-18deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.swipe-stamp-ping {
  left: 28px;
  color: var(--gold);
  background: rgba(230, 255, 26, 0.12);
  backdrop-filter: blur(4px);
  transform: rotate(-18deg);
}

.swipe-stamp-pass {
  right: 28px;
  color: #ff3366;
  background: rgba(255, 51, 102, 0.12);
  backdrop-filter: blur(4px);
  transform: rotate(18deg);
}

.swipe-stamp-super {
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  backdrop-filter: blur(4px);
}

.spotlight-media {
  position: relative;
  height: 50%;
  width: 100%;
  overflow: hidden;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #111118 0%, rgba(17, 17, 24, 0.4) 50%, transparent 100%);
}

.match-dial-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 5px 12px 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.match-dial-svg {
  width: 28px;
  height: 28px;
}

.match-dial-score {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.spotlight-identity {
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
}

.spotlight-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotlight-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.verified-gold-tick {
  color: var(--gold);
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(230, 255, 26, 0.5));
}

.spotlight-role {
  font-size: 13.5px;
  color: var(--gold-glow);
  font-weight: 600;
  margin-top: 2px;
}

.spotlight-body {
  flex: 1;
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: center;
}

.metric-pill-num {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.metric-pill-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Swipe Controls */
.spotlight-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.action-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: var(--blur);
  color: #fff;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-circle-btn:hover {
  transform: scale(1.12);
}

.action-btn-pass:hover {
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.35);
}

.action-btn-super:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.action-btn-ping:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 30px rgba(230, 255, 26, 0.45);
}

/* Bento Roster Grid */
.bento-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.bento-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  animation: bentoCardEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes bentoCardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Stagger the entrance so cards cascade in row-by-row instead of all at
   once - capped at 12 so a huge roster doesn't leave late cards waiting. */
.bento-member-card:nth-child(1) { animation-delay: 0.02s; }
.bento-member-card:nth-child(2) { animation-delay: 0.06s; }
.bento-member-card:nth-child(3) { animation-delay: 0.1s; }
.bento-member-card:nth-child(4) { animation-delay: 0.14s; }
.bento-member-card:nth-child(5) { animation-delay: 0.18s; }
.bento-member-card:nth-child(6) { animation-delay: 0.22s; }
.bento-member-card:nth-child(7) { animation-delay: 0.26s; }
.bento-member-card:nth-child(8) { animation-delay: 0.3s; }
.bento-member-card:nth-child(9) { animation-delay: 0.34s; }
.bento-member-card:nth-child(10) { animation-delay: 0.38s; }
.bento-member-card:nth-child(11) { animation-delay: 0.42s; }
.bento-member-card:nth-child(12) { animation-delay: 0.46s; }

.bento-member-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lux);
}

.bento-member-thumb {
  height: 210px;
  position: relative;
  overflow: hidden;
}

.bento-member-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bento-member-card:hover .bento-member-thumb img {
  transform: scale(1.05);
}

.bento-member-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CAMPAIGN BRIEFS (MARKETPLACE)                                               */
/* ═══════════════════════════════════════════════════════════════════════════ */
.briefs-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

.market-brief-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition-smooth);
}

.market-brief-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lux);
  transform: translateY(-4px);
}

.brief-card-focused {
  animation: briefFocusPulse 1.6s ease-out 2;
}

@keyframes briefFocusPulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 255, 26, 0.5); border-color: var(--border-gold); }
  70% { box-shadow: 0 0 0 14px rgba(230, 255, 26, 0); border-color: var(--border-gold); }
  100% { box-shadow: 0 0 0 0 rgba(230, 255, 26, 0); }
}

.brief-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-profile-snippet {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  overflow: hidden;
}

.brand-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brief-budget-badge-pill {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-badge-bg);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
}

.brief-heading-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.brief-body-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* DEAL ROOM & CHAT                                                            */
/* ═══════════════════════════════════════════════════════════════════════════ */
.deal-room-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  height: calc(100vh - 170px);
  min-height: 640px;
}

.deal-conversations-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.deal-conversations-head {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-room-active-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.deal-room-top-bar {
  padding: 16px 24px;
  background: rgba(12, 12, 18, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-messages-scroller {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Smart Proposal Embedded Card */
.smart-contract-dossier {
  align-self: center;
  width: 92%;
  max-width: 580px;
  background: linear-gradient(145deg, #181822 0%, #0e0e14 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 255, 26, 0.15);
  margin: 12px 0;
}

.contract-status-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.contract-active {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.contract-pending {
  background: rgba(230, 255, 26, 0.15);
  color: var(--gold);
  border: 1px solid rgba(230, 255, 26, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MEDIA KIT & AI BIO STUDIO                                                   */
/* ═══════════════════════════════════════════════════════════════════════════ */
.media-kit-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
}

.pingscore-circle-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pingscore-circle-num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CONCIERGE OPERATIONS (ADMIN)                                                */
/* ═══════════════════════════════════════════════════════════════════════════ */
.ops-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.ops-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.ops-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MODALS & NOTIFICATIONS DROPDOWN                                             */
/* ═══════════════════════════════════════════════════════════════════════════ */
.platform-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.platform-modal-backdrop.active {
  display: flex;
}

.platform-modal-window {
  background: #111118;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lux);
  position: relative;
  padding: 32px;
}

.platform-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.platform-modal-close:hover {
  color: #fff;
}

/* Floating Toast */
.platform-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #161620;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
  z-index: 300;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(120px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.platform-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* EXECUTIVE HUD & COMMAND CENTER                                              */
/* ═══════════════════════════════════════════════════════════════════════════ */
.executive-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(16, 16, 24, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 24px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.executive-hud-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.hud-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(230, 255, 26, 0.35);
}

.hud-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid #000;
  box-shadow: 0 0 8px var(--accent-green);
}

.hud-role-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-user-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hud-user-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.executive-kpi-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.executive-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 160px;
  transition: var(--transition-fast);
}

.executive-kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.kpi-icon {
  font-size: 22px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PANORAMIC DISCOVERY LAYOUT                                                  */
/* ═══════════════════════════════════════════════════════════════════════════ */
.panoramic-discovery-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.panoramic-spotlight-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.panoramic-spotlight-col .spotlight-stage {
  max-width: 540px;
  height: 520px;
  width: 100%;
  margin: 0 auto 14px;
}

.panoramic-radar-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.radar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
}

.radar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sidebar-tab-switch {
  flex: 1;
}

.sidebar-tab-switch .view-mode-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 11.5px;
  gap: 5px;
  justify-content: center;
}

.radar-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-cyan); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-mini-gold {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(230, 255, 26, 0.12);
  color: var(--gold);
  border: 1px solid rgba(230, 255, 26, 0.25);
}

.radar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  animation: radarItemEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes radarItemEnter {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.radar-item:hover {
  background: rgba(230, 255, 26, 0.06);
  border-color: rgba(230, 255, 26, 0.3);
  transform: translateX(4px);
}

.radar-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.radar-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.radar-item-role {
  font-size: 11px;
  color: var(--text-muted);
}

.radar-item-score {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(230, 255, 26, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.radar-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.radar-item-ping-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(230, 255, 26, 0.08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.radar-item-ping-btn:hover {
  background: var(--gold-gradient);
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(230, 255, 26, 0.4);
}

.radar-item-ping-btn:disabled {
  cursor: default;
  opacity: 0.75;
  transform: none;
}

.radar-item-ping-btn.pinged {
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.4);
  color: var(--accent-green);
}

/* Quick Bounties */
.bounties-quick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bounty-quick-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  animation: radarItemEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.bounty-quick-card:hover {
  background: rgba(230, 255, 26, 0.06);
  border-color: rgba(230, 255, 26, 0.3);
  transform: translateX(4px);
}

.bounty-quick-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.bounty-quick-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.bounty-budget-tag {
  color: var(--gold);
  font-weight: 700;
}

.btn-bounty-quick-pitch {
  margin-top: 10px;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  background: rgba(230, 255, 26, 0.08);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-bounty-quick-pitch:hover {
  background: var(--gold-gradient);
  color: #000;
}

/* Concierge Strategy Box */
.btn-concierge-action {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-concierge-action:hover {
  background: rgba(230, 255, 26, 0.12);
  border-color: var(--border-gold);
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CUSTOM DROPDOWNS (see assets/js/customSelect.js)                            */
/* Native <select> option panels are OS-rendered in Chrome/Edge and ignore     */
/* dark-theme CSS entirely, which is what these replace.                      */
/* ═══════════════════════════════════════════════════════════════════════════ */
.custom-select-wrap {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  /* No default width - most of these selects carry their own width:100%
     via inherited inline style (see customSelect.js); a few (persona
     dropdown, bio-tone pill) are meant to stay content-sized like the
     native <select> they replace, so this must not force width:100%. */
}

.custom-select-trigger:hover {
  border-color: var(--border-gold) !important;
}

.custom-select-trigger.open {
  border-color: var(--border-gold) !important;
  box-shadow: 0 0 0 3px rgba(230, 255, 26, 0.12);
}

.custom-select-trigger:disabled {
  cursor: default;
  opacity: 0.6;
}

.custom-select-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.custom-select-trigger.open .custom-select-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.custom-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #15151c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.custom-select-panel.open {
  display: block;
  animation: customSelectOpen 0.15s ease-out;
}

@keyframes customSelectOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-select-option:hover {
  background: rgba(230, 255, 26, 0.08);
}

.custom-select-option.selected {
  background: rgba(230, 255, 26, 0.1);
  color: var(--gold);
  font-weight: 700;
}

.custom-select-option:disabled {
  color: var(--text-dim);
  cursor: default;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE MEDIA QUERIES                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .panoramic-discovery-layout {
    grid-template-columns: 1fr;
  }
  /* Once the radar sidebar drops below, let the spotlight card grow past its
     desktop-sized 540px cap instead of leaving empty space on both sides. */
  .panoramic-spotlight-col .spotlight-stage {
    max-width: 640px;
  }
}

@media (max-width: 1024px) {
  .deal-room-shell {
    grid-template-columns: 1fr;
  }
  .media-kit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .platform-header {
    padding: 12px 18px;
    flex-wrap: wrap;
    /* The header used a fixed height (68px) meant for a single row; once
       flex-wrap pushes .platform-nav onto its own row below, that content
       overflowed the fixed-height box and visually overlapped the content
       underneath it. Letting the box grow fixes that. */
    height: auto;
    min-height: 68px;
    row-gap: 10px;
  }
  .platform-header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }
  /* .notifications-dropdown's `right: 0` anchors to .platform-header-right,
     which at this width no longer spans to the viewport's right edge (it
     wraps to a compact icon cluster) - a 380px-wide dropdown anchored off
     that cramped parent overflows off the left of the screen entirely.
     Anchoring to the viewport directly via fixed positioning sidesteps that. */
  .notifications-dropdown {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
  .persona-select-box {
    max-width: 100%;
  }
  .persona-dropdown {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .platform-nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
  }
  .nav-pill-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .nav-pill-btn span {
    display: none;
  }
  .platform-viewport {
    padding: 20px 18px 60px;
  }
  .spotlight-stage {
    height: 570px;
  }
}
