:root {
  --bg: #0a0a0b;
  --surface: rgba(18, 18, 20, 0.94);
  --surface2: rgba(28, 28, 32, 0.92);
  --glass: rgba(18, 18, 22, 0.55);
  --glass-strong: rgba(12, 12, 16, 0.72);
  --glass-border: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 28, 123, 0.28);
  --gold: #ff1c7b;
  --gold-light: #f9a8d4;
  --gold-dark: #ff7e21;
  --pink: #ff1c7b;
  --orange: #ff7e21;
  --text: #ffffff;
  --muted: #a3a3a3;
  --red: #ef4444;
  --green: #4ade80;
  --on-gold: #ffffff;
  --cta: linear-gradient(90deg, #ff1c7b 0%, #ef4444 48%, #ff7e21 100%);
  --brand: linear-gradient(135deg, #ff1c7b, #ff7e21);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Outfit, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #07010f url("../../assets/mobile-wave.png") center center / cover no-repeat;
  overflow-x: hidden;
}

body .page-aurora { display: none !important; }

body.has-site-nav {
  background: #07010f url("../../assets/mobile-wave.png") center center / cover no-repeat;
}

body.has-site-nav .orbs {
  display: none;
}

body.has-site-nav .net-banner {
  top: 4.25rem;
}

@media (min-width: 640px) {
  body.has-site-nav .net-banner {
    top: 5.25rem;
  }
}

@media (min-width: 1024px) {
  body.has-site-nav .net-banner {
    top: 6.5rem;
  }
}

.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-pink {
  top: -120px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 28, 123, 0.42);
}

.orb-gold {
  top: 220px;
  left: -140px;
  width: 280px;
  height: 280px;
  background: rgba(255, 28, 123, 0.14);
}

.orb-warm {
  bottom: 80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255, 126, 33, 0.12);
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}

.top-chrome {
  height: calc(var(--safe-top) + 6px);
  background: rgba(10, 10, 11, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 12px;
  background: transparent;
}

.topbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 28, 123, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.brand {
  margin: 0;
  font-family: "Plus Jakarta Sans", Outfit, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  background: var(--cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-sub {
  margin: 2px 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.topbar-text { flex: 1; min-width: 0; }

.icon-btn {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--gold-light);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
}

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

.session-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 12px;
}

.session-bar .btn { margin-top: 0; width: 100%; }

.discover-card h2 {
  font-size: 1.15rem;
}

.discover-card .btn {
  margin-top: 10px;
  width: auto;
  display: inline-flex;
  text-decoration: none;
}

.event-switch-btn {
  margin-top: 12px;
  width: 100%;
}

body.menu-open { overflow: hidden; }

.main {
  flex: 1;
  padding: 8px 16px calc(96px + var(--safe-bottom));
}

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  padding: 8px 8px calc(10px + var(--safe-bottom));
  background: rgba(12, 12, 16, 0.88);
  border-top: 1px solid rgba(255, 28, 123, 0.28);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.tabbar-inner {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.tab {
  flex: 1;
  max-width: 120px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tab-emoji {
  font-size: 1.25rem;
  line-height: 1.4;
}

.tab.active {
  color: #fff;
  background: var(--cta);
}

.tab.tab-menu {
  color: var(--pink);
  font-weight: 800;
}

.tab.tab-menu .tab-emoji { color: var(--pink); }

.tab.tab-menu.active,
.tab.menu-active {
  background: rgba(255, 28, 123, 0.14);
  color: var(--pink);
}

.hidden { display: none !important; }

.card,
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(18px);
}

.glass-rim {
  background:
    linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
    var(--brand) border-box;
  border: 1.5px solid transparent;
}

.card h1, .card h2, .hero-title {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", Outfit, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.lead, .meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.eyebrow, .hero-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
}

.eyebrow.live { color: var(--green); }

.welcome-brand {
  text-align: center;
  margin-bottom: 18px;
}

.welcome-logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: cover;
  margin: 8px auto 14px;
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 28, 123, 0.22);
}

.welcome-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.welcome-accent {
  background: var(--cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.role-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 22, 0.72);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.role-card.active {
  border-color: rgba(255, 28, 123, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 28, 123, 0.18), rgba(255, 126, 33, 0.12));
  box-shadow: 0 8px 28px rgba(255, 28, 123, 0.18);
}

.role-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pink);
}

.role-card.active .role-badge { color: var(--gold-light); }

.role-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.role-copy {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.guest-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.guest-back { margin: 0 0 10px; }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--pink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.welcome-card .eyebrow { color: var(--pink); }

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
}

.auth-toggle-btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-toggle-btn.active {
  background: linear-gradient(90deg, rgba(255, 28, 123, 0.35), rgba(255, 126, 33, 0.3));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 28, 123, 0.25);
}

.tab.hidden,
.hidden {
  display: none !important;
}

.welcome-tag {
  margin: 6px 0 8px;
  text-align: center;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-sub {
  color: var(--muted);
  text-align: center;
  margin: 0 0 8px;
}

.hero-stats {
  display: flex;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat { flex: 1; text-align: center; }
.stat-num { color: var(--gold-light); font-size: 1.2rem; font-weight: 800; }
.stat-lbl { color: var(--muted); font-size: 0.7rem; margin-top: 2px; }

.label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.input {
  width: 100%;
  border: 1px solid rgba(255, 28, 123, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  font-size: 1rem;
}

.input:focus {
  outline: none;
  border-color: rgba(255, 28, 123, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 28, 123, 0.15);
}

.code-input {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 800;
  font-size: 1.25rem;
  border-color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled { opacity: 0.45; }

.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 28, 123, 0.35);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid transparent;
  background-image:
    linear-gradient(var(--glass-strong), var(--glass-strong)),
    var(--brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 12px;
}

.btn-sm {
  width: auto;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  border-radius: 12px;
}

.error {
  margin-top: 10px;
  color: var(--red);
  font-size: 0.9rem;
  text-align: center;
}

.role-redirect {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 28, 123, 0.1);
  border: 1px solid rgba(255, 126, 33, 0.35);
  text-align: center;
}

.role-redirect.hidden { display: none; }

.role-redirect-msg {
  margin: 0 0 12px;
  color: #fda4af;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.role-redirect .btn {
  margin-top: 0;
  text-decoration: none;
}

.install-hint {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 28, 123, 0.08);
  border: 1px dashed rgba(255, 126, 33, 0.4);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.install-hint strong { color: var(--gold-light); display: block; margin-bottom: 4px; }

.install-hint-btn {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.install-hint-btn:active { transform: scale(0.99); }

body.install-open { overflow: hidden; }

.install-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.install-root.hidden { display: none; }

.install-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.install-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(92dvh, 640px);
  overflow: auto;
  padding: 14px 18px calc(18px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #1a0c14 0%, #0e0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  animation: install-up 0.32s ease-out;
}

@keyframes install-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.install-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 14px;
}

.install-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.install-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.install-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.install-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.install-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.install-step-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.install-ios-share {
  display: inline-block;
  vertical-align: -3px;
  margin: 0 2px;
  color: #0a84ff;
}

.install-cta { width: 100%; margin-bottom: 8px; }
.install-later { width: 100%; }

.song-list, .queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.song-row, .queue-row, .shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.song-row:last-child, .queue-row:last-child, .shortcut:last-child { border-bottom: 0; }

.song-row strong, .queue-row strong, .shortcut-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.song-row span, .queue-row span, .shortcut-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.song-row .grow, .queue-row .grow, .shortcut-body { flex: 1; min-width: 0; }

.song-row.selected {
  background: rgba(255, 28, 123, 0.12);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 10px;
  border-color: transparent;
}

.list-card {
  background: rgba(18, 18, 22, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 14px;
  margin-bottom: 16px;
}

.shortcut { padding: 13px 0; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: inherit; font: inherit; }
.shortcut-icon { font-size: 1.15rem; width: 24px; text-align: center; }
.chevron { color: var(--muted); font-size: 1.35rem; font-weight: 300; }

.song-pick {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.song-pick strong { display: block; }
.song-pick span { color: var(--muted); font-size: 0.85rem; }

.confirm-send {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 28, 123, 0.4);
  background: rgba(255, 28, 123, 0.12);
  position: sticky;
  top: 0;
  z-index: 5;
}

.confirm-send-info strong { display: block; font-size: 1rem; }
.confirm-send-info span { color: var(--muted); font-size: 0.85rem; }

.now-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(18, 18, 22, 0.72), rgba(18, 18, 22, 0.72)) padding-box,
    var(--brand) border-box;
}

.vinyl {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from 0deg, #ff1c7b, #ef4444, #ff7e21, #ff1c7b);
  display: grid;
  place-items: center;
  padding: 3px;
}

.vinyl-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.vinyl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold-light);
}

.vinyl.spinning { animation: spin 2.8s linear infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-top: 8px;
}

.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--cta);
  animation: wave 0.7s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.18s; }
.wave-bar:nth-child(4) { animation-delay: 0.08s; }
.wave-bar:nth-child(5) { animation-delay: 0.22s; }
.wave-bar:nth-child(6) { animation-delay: 0.14s; }

@keyframes wave {
  from { height: 4px; }
  to { height: 16px; }
}

.chat-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 8px;
}

.chat-mode {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.chat-mode.active {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(255, 28, 123, 0.12);
}

.chat-log {
  margin-top: 10px;
  max-height: 42vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 8px;
}

.chat-bubble {
  align-self: flex-start;
  max-width: 88%;
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  border-radius: 14px 14px 14px 4px;
  padding: 8px 11px;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: rgba(255, 28, 123, 0.16);
  border-color: rgba(255, 126, 33, 0.4);
  border-radius: 14px 14px 4px 14px;
}

.chat-author {
  display: block;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 2px;
  font-weight: 700;
}

.chat-bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.chat-compose .input { flex: 1; margin: 0; }
.chat-compose .btn { margin: 0; width: auto; }

.emoji-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

.emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
}

.emoji-panel.hidden { display: none; }

.emoji-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 8px;
}

.emoji-btn:hover { background: rgba(255, 255, 255, 0.06); }

.pos {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 28, 123, 0.16);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.turn-banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 28, 123, 0.14);
  color: var(--gold-light);
  font-weight: 700;
}

.night-offer-card {
  border-color: rgba(255, 28, 123, 0.35);
  background: linear-gradient(135deg, rgba(255, 28, 123, 0.12), rgba(255, 28, 123, 0.08));
}

.night-offer-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.night-offer-list li {
  display: grid;
  gap: 2px;
}

.night-offer-list strong {
  font-size: 0.95rem;
}

.night-offer-list span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.net-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1200;
  background: linear-gradient(90deg, #f5c542, #ff9f43);
}

.net-banner.hidden { display: none !important; }

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.search-row .input { flex: 1; margin: 0; }
.search-row .btn { width: auto; margin: 0; flex-shrink: 0; border-radius: 12px; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
  line-height: 1.5;
}

.toast-stack {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(92px + var(--safe-bottom));
  width: min(420px, calc(100% - 24px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--surface2);
  border: 1px solid rgba(255, 28, 123, 0.35);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.android-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.android-note a { color: var(--gold); }

.event-pick-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-pick {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}

.event-pick.selected {
  border-color: var(--gold);
  background: rgba(255, 28, 123, 0.12);
}

.event-pick strong { display: block; font-size: 0.98rem; }
.event-pick .meta { display: block; margin-top: 2px; font-size: 0.8rem; }

.pick-check {
  color: var(--gold);
  font-weight: 800;
  min-width: 1.2em;
  text-align: center;
}

.menu-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.menu-sheet {
  position: relative;
  width: min(480px, 100%);
  margin: 0 auto;
  background: rgba(14, 14, 18, 0.92);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid rgba(255, 28, 123, 0.35);
  padding: 10px 16px calc(16px + var(--safe-bottom));
  max-height: 70%;
  display: flex;
  flex-direction: column;
}

.menu-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  align-self: center;
  margin-bottom: 12px;
}

.menu-title {
  color: var(--pink);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.menu-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 12px;
}

.menu-item,
.menu-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.menu-item.active { color: var(--gold); }
.menu-item .tab-emoji,
.menu-link .tab-emoji { width: 28px; text-align: center; }

.sign-out-btn {
  margin-top: 8px;
  padding: 14px;
  width: 100%;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 28, 123, 0.55);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-close {
  margin-top: 8px;
  padding: 14px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.fb-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
.fb-cover { height: 112px; background: linear-gradient(90deg, #ff1c7b 0%, #ef4444 48%, #ff7e21 100%); }
.fb-id { display: flex; align-items: flex-end; gap: 12px; margin-top: -38px; padding: 0 14px 8px; }
.fb-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid #10131c; background: #ff1c7b; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; flex-shrink: 0;
}
.fb-id h2 { margin: 16px 0 0; }
.fb-tabs { display: flex; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.fb-tabs button {
  flex: 1; background: transparent; color: inherit; border: 0;
  border-bottom: 3px solid transparent; padding: 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.fb-tabs button.is-on { border-bottom-color: #ff1c7b; }
.fb-card [data-fb-pane] { padding: 4px 14px 8px; }
.fb-card > .btn, .fb-card > .meta { margin: 8px 14px; }

@media (min-width: 720px) {
  .app {
    max-width: 430px;
    min-height: min(900px, 100dvh);
    border-left: 1px solid rgba(255, 28, 123, 0.18);
    border-right: 1px solid rgba(255, 28, 123, 0.18);
    box-shadow: 0 0 80px rgba(255, 28, 123, 0.12);
  }
  .tabbar { width: 430px; }
  .menu-sheet { width: 430px; }
}
