/* ═══════════════════════════════════════════════════════════
   V3 — Plans Tab Styles
   Private events & friend hangouts — card stack layout
   ═══════════════════════════════════════════════════════════ */

.plans-page {
  max-width: 600px; margin: 0 auto;
  padding-top: 68px;
  padding-bottom: 100px;
}

/* ─── Filter pills ─────────────────────────────────────── */
.plans-filter-row {
  display: flex; gap: 6px; padding: 12px 16px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.plans-filter-row::-webkit-scrollbar { display: none; }

.plans-pill {
  padding: 5px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
  transition: all .2s;
}
.plans-pill.active {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.4);
  color: var(--text);
}

/* ─── Create button ────────────────────────────────────── */
.plans-create-btn {
  margin: 4px 16px 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(236,72,153,.05));
  border: 1px dashed rgba(124,58,237,.3);
  border-radius: 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: all .2s;
}
.plans-create-btn:hover, .plans-create-btn:active {
  border-color: rgba(124,58,237,.6);
  background: rgba(124,58,237,.12);
}
.plans-create-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.plans-create-text { font-size: 13px; color: var(--muted); }
.plans-create-text strong { color: var(--text); display: block; font-size: 14px; }

/* ─── Section headers ──────────────────────────────────── */
.plans-section-head {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 14px 16px 6px;
}

/* ─── Plan cards ───────────────────────────────────────── */
.plans-card {
  margin: 5px 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; gap: 12px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.plans-card:active { transform: scale(.98); }
.plans-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.plans-card-stripe {
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  border-radius: 0 3px 3px 0;
}
.plans-card-emoji {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: rgba(255,255,255,.04);
}
.plans-card-emoji.type-dinner   { background: rgba(74,222,128,.1); }
.plans-card-emoji.type-trip     { background: rgba(249,115,22,.1); }
.plans-card-emoji.type-game     { background: rgba(196,113,237,.1); }
.plans-card-emoji.type-birthday { background: rgba(255,107,157,.1); }
.plans-card-emoji.type-concert  { background: rgba(34,211,238,.1); }
.plans-card-emoji.type-workout  { background: rgba(251,191,36,.1); }
.plans-card-emoji.type-movie    { background: rgba(124,156,255,.1); }
.plans-card-emoji.type-coffee   { background: rgba(167,139,250,.1); }

.plans-card-body { flex: 1; min-width: 0; }
.plans-card-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.plans-card-sub { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.plans-when { color: var(--accent); font-weight: 600; }

.plans-card-bottom { display: flex; align-items: center; gap: 8px; }
.plans-card-avatars { display: flex; }
.plans-mini-av {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 700; color: #fff;
  margin-left: -5px;
}
.plans-mini-av:first-child { margin-left: 0; }
.plans-more { font-size: 10px; color: var(--muted); margin-left: 4px; }
.plans-card-crew {
  font-size: 10px; font-weight: 600; color: var(--vita-t);
  background: rgba(196,113,237,.1);
  padding: 1px 8px; border-radius: 100px;
}

/* ─── Badges ───────────────────────────────────────────── */
.plans-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: .03em;
}
.badge-soon { background: rgba(251,191,36,.15); color: #fbbf24; }
.badge-rsvp { background: rgba(236,72,153,.15); color: #ff6b9d; }
.badge-new  { background: rgba(124,58,237,.2); color: #a78bfa; }

/* ─── Past plans toggle ────────────────────────────────── */
.plans-past-toggle {
  margin: 10px 16px;
  padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; width: calc(100% - 32px);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.plans-past-toggle svg { opacity: .5; }

/* ─── Empty state ──────────────────────────────────────── */
.plans-empty {
  text-align: center; padding: 60px 32px;
}
.plans-empty-emoji { font-size: 48px; margin-bottom: 12px; }
.plans-empty-icon { margin-bottom: 12px; opacity: .9; }
.plans-empty-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.plans-empty-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.plans-signin-btn {
  margin-top: 16px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 10px 24px; border-radius: 100px; border: none;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   Create Flow
   ═══════════════════════════════════════════════════════════ */
.plans-create-page { padding-top: 0; }

.plans-create-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.plans-back-btn {
  background: none; border: none; color: var(--text);
  cursor: pointer; padding: 4px;
  display: flex; align-items: center;
}
.plans-create-title { font-size: 17px; font-weight: 800; }

.plans-form { padding: 16px; }
.plans-field { margin-bottom: 14px; }
.plans-label {
  display: block;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 6px;
}
.plans-input {
  width: 100%; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.plans-input:focus { border-color: rgba(124,58,237,.5); }
.plans-input::placeholder { color: rgba(255,255,255,.2); }
.plans-textarea { resize: vertical; min-height: 60px; }
.plans-select { appearance: auto; }

.plans-divider {
  height: 1px; background: var(--border);
  margin: 20px 0;
}

/* Type grid */
.plans-type-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.plans-type-btn {
  padding: 12px 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; cursor: pointer;
  transition: all .2s; color: var(--text);
}
.plans-type-btn.selected {
  border-color: rgba(124,58,237,.5);
  background: rgba(124,58,237,.1);
}
.plans-type-custom { border-style: dashed; border-color: rgba(124,58,237,.3); }
.plans-type-custom.selected { border-style: solid; }
.plans-type-emoji { font-size: 22px; margin-bottom: 4px; }
.plans-type-label { font-size: 10px; font-weight: 600; color: var(--muted); }
.plans-type-btn.selected .plans-type-label { color: var(--text); }

/* Emoji picker */
.plans-emoji-picker {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px;
  max-height: 200px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.plans-emoji-picker::-webkit-scrollbar { width: 0; }
.plans-emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
}
.plans-emoji-opt {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; border-radius: 8px;
  background: none; border: none;
  transition: background .15s, transform .1s;
}
.plans-emoji-opt:hover { background: rgba(124,58,237,.15); }
.plans-emoji-opt:active { transform: scale(.85); }

/* Crew chips */
.plans-crew-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.plans-crew-chip {
  padding: 7px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.plans-crew-chip.selected {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.4);
  color: var(--text);
}
.plans-no-crews, .plans-no-friends {
  font-size: 12px; color: var(--muted); padding: 10px 0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.plans-no-crews-btn, .plans-no-friends-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  border: 1px solid rgba(124,156,255,.2);
  background: rgba(124,156,255,.1);
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.plans-no-crews-btn:hover, .plans-no-friends-btn:hover {
  background: rgba(124,156,255,.2);
  border-color: var(--accent);
}

/* Friend list */
.plans-friend-list { max-height: 280px; overflow-y: auto; }
.plans-friend-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.plans-friend-av {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.plans-friend-info { flex: 1; }
.plans-friend-name { font-size: 13px; font-weight: 600; }
.plans-friend-check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--border);
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.plans-friend-check.checked {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-color: transparent;
}
.plans-friend-check.checked::after {
  content: '✓'; color: #fff; font-size: 12px; font-weight: 800;
}

/* Buttons */
.plans-btn-row { display: flex; gap: 10px; padding-top: 12px; }
.plans-btn {
  flex: 1; padding: 13px; border-radius: 12px;
  font-size: 14px; font-weight: 700; border: none;
  cursor: pointer; text-align: center;
  transition: all .2s;
}
.plans-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.plans-btn-primary:hover { filter: brightness(1.1); }
.plans-btn-primary:disabled { opacity: .6; }
.plans-btn-secondary {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   Detail View
   ═══════════════════════════════════════════════════════════ */
.plans-detail-hero {
  height: 180px; position: relative; overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--plan-color, #7c3aed) 15%, #0a0e1a),
    color-mix(in srgb, var(--plan-color, #7c3aed) 8%, #121624));
}
.plans-detail-back {
  position: absolute; top: 12px; left: 12px; z-index: 5;
}
.plans-detail-emoji {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 56px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
}

.plans-detail-body {
  padding: 0 16px 40px;
  position: relative; top: -20px;
}
.plans-detail-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.plans-detail-sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.plans-detail-crew {
  color: var(--vita-t); font-weight: 600;
}
.plans-detail-notes {
  font-size: 13px; color: var(--muted);
  background: var(--surface); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px;
  line-height: 1.5;
}

.plans-detail-section { margin-bottom: 18px; }
.plans-detail-section-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.plans-detail-people { display: flex; flex-direction: column; gap: 8px; }
.plans-detail-person { display: flex; align-items: center; gap: 10px; }
.plans-detail-person-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.plans-detail-person-name { font-size: 13px; font-weight: 600; flex: 1; }
.plans-detail-person-status {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
}
.status-going  { background: rgba(74,222,128,.12); color: #4ade80; }
.status-maybe  { background: rgba(251,191,36,.12); color: #fbbf24; }
.status-pending { background: rgba(124,156,255,.1); color: #7c9cff; }

/* RSVP row */
.plans-rsvp-row { display: flex; gap: 8px; }
.plans-rsvp-btn {
  flex: 1; padding: 11px; border-radius: 12px;
  font-size: 13px; font-weight: 700; border: none;
  cursor: pointer; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); transition: all .2s;
}
.plans-rsvp-going:hover, .plans-rsvp-btn.active[data-rsvp="going"] {
  background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.3);
  color: #4ade80;
}
.plans-rsvp-maybe:hover, .plans-rsvp-btn.active[data-rsvp="maybe"] {
  background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.3);
  color: #fbbf24;
}
.plans-rsvp-cant:hover, .plans-rsvp-btn.active[data-rsvp="cant"] {
  background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.3);
  color: #f87171;
}

/* Action buttons */
.plans-detail-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.plans-action-btn {
  flex: 1; padding: 12px; border-radius: 12px;
  text-align: center; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s;
}
.plans-action-primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
}
.plans-action-secondary {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted);
}

.plans-delete-btn {
  display: block; width: 100%; padding: 12px;
  background: none; border: 1px solid rgba(248,113,113,.2);
  border-radius: 12px; color: rgba(248,113,113,.6);
  font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: all .2s;
}
.plans-delete-btn:hover {
  background: rgba(248,113,113,.08);
  border-color: rgba(248,113,113,.4);
  color: #f87171;
}

/* ═══════════════════════════════════════════════════════════
   Galactic Me Tab — Three.js background + HUD corner overlay
   ═══════════════════════════════════════════════════════════ */

.me-galactic-page {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 1;
}

/* Background — full-bleed galactic iframe */
.me-galactic-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}
.me-galactic-iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.me-galactic-loading {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background: #080a12;
  z-index: 2;
  transition: opacity .8s ease;
  pointer-events: none;
}
.me-galactic-spinner {
  position: relative;
  width: 64px; height: 64px;
}
/* Planet in center */
.me-galactic-spinner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
  box-shadow: 0 0 12px rgba(168,139,250,.5);
}
/* Orbit ring */
.me-galactic-spinner::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(168,139,250,.3);
}
/* Orbiting dot */
.me-orbit-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  animation: me-orbit 1.8s linear infinite;
}
.me-orbit-dot::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 7px; height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #7c9cff, #22d3ee);
  box-shadow: 0 0 8px rgba(124,156,255,.7);
}
@keyframes me-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* HUD — corner-positioned panels */
.me-hud {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  pointer-events: none;
}
.me-hud-tl, .me-hud-tr, .me-hud-bl, .me-hud-br {
  position: absolute;
  pointer-events: auto;
}
.me-hud-tl { top: 72px; left: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.me-hud-tr { top: 72px; right: 20px; display: flex; align-items: flex-start; gap: 10px; }
.me-hud-bl { bottom: 80px; left: 20px; }
.me-hud-br { bottom: 80px; right: 20px; }

/* Music toggle button */
.me-music-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.me-music-btn:hover {
  background: rgba(124,156,255,.15);
  color: #fff;
  border-color: rgba(124,156,255,.35);
}
.me-music-btn.active {
  background: rgba(124,156,255,.2);
  color: #7c9cff;
  border-color: rgba(124,156,255,.45);
  box-shadow: 0 0 14px rgba(124,156,255,.3), 0 4px 16px rgba(0,0,0,.3);
}
.me-music-wrap { position: relative; z-index: 1001; }
.me-music-flyout {
  position: absolute; top: 42px; right: 0;
  background: rgba(20,20,40,.92);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  max-height: 80vh;
  overflow-y: auto;
}
.me-music-flyout.hidden { display: none; }
.me-music-opt {
  display: block; width: 100%;
  padding: 8px 12px;
  background: none; border: none;
  color: rgba(255,255,255,.85);
  font-size: 13px; text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.me-music-opt:hover { background: rgba(124,156,255,.15); }
.me-music-opt.me-music-stop { color: #ff6b6b; }
.me-music-status {
  font-size: 11px; color: rgba(255,255,255,.5);
  padding: 4px 12px 2px;
}
.me-music-status.err { color: #ff6b6b; }
.me-music-head {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: rgba(255,255,255,.5);
  padding: 4px 12px 6px;
}
.me-mo-title { font-size: 13px; }
.me-mo-sub { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 2px; }
.me-music-sliders { padding: 8px 10px 4px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; }
.me-ms-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}
.me-ms-row label { width: 40px; flex-shrink: 0; }
.me-ms-row input[type="range"] {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,.15); border-radius: 2px; outline: none;
}
.me-ms-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: #7c9cff; cursor: pointer;
}
.me-ms-val { width: 24px; text-align: right; font-size: 10px; color: rgba(255,255,255,.5); }
.me-ms-reset {
  display: block; margin: 2px auto 4px; padding: 3px 10px;
  font-size: 10px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  color: rgba(255,255,255,.6); cursor: pointer;
}
.me-ms-reset:hover { background: rgba(255,255,255,.14); }
.me-bass-drop-btn {
  display: block; width: calc(100% - 16px); margin: 4px 8px;
  padding: 6px 10px; font-size: 12px;
  background: rgba(255,100,50,.12); border: 1px solid rgba(255,100,50,.3);
  border-radius: 8px; color: rgba(255,200,150,.9);
  cursor: pointer; transition: all .15s;
}
.me-bass-drop-btn:hover { background: rgba(255,100,50,.2); }
.me-bass-drop-btn.active { background: rgba(255,60,20,.3); border-color: rgba(255,60,20,.6); color: #fff; }
.me-bd-hotkey {
  display: inline-block; padding: 1px 5px; margin-left: 6px;
  font-size: 9px; background: rgba(255,255,255,.1);
  border-radius: 3px; color: rgba(255,255,255,.4);
}
.me-bpm-readout {
  font-size: 11px; color: rgba(255,255,255,.4);
  text-align: center; padding: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

/* Profile card — top left, horizontal layout */
.me-glass-profile {
  background:
    linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(124,156,255,.04) 50%, rgba(255,255,255,.03) 100%);
  backdrop-filter: blur(40px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(1.6) brightness(1.05);
  border: 1px solid rgba(255,255,255,.15);
  border-top-color: rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.me-glass-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(168,139,250,.4);
  box-shadow: 0 0 16px rgba(168,139,250,.2);
  flex-shrink: 0;
}
.me-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.me-avatar-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
}
.me-profile-text { min-width: 0; }
.me-glass-name {
  font-size: 16px; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.me-glass-handle {
  font-size: 12px; color: rgba(255,255,255,.45);
  font-weight: 500;
}

/* Stats — top right */
.me-glass-stats {
  background:
    linear-gradient(135deg, rgba(255,255,255,.07) 0%, rgba(200,160,255,.04) 50%, rgba(255,255,255,.03) 100%);
  backdrop-filter: blur(40px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(1.6) brightness(1.05);
  border: 1px solid rgba(255,255,255,.15);
  border-top-color: rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.me-stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.me-stat-num {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.me-stat-label {
  font-size: 9px; font-weight: 600;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Glass sections — bottom corners */
.me-glass-section {
  background:
    linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(124,156,255,.03) 50%, rgba(255,255,255,.02) 100%);
  backdrop-filter: blur(40px) saturate(1.5) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(1.5) brightness(1.05);
  border: 1px solid rgba(255,255,255,.12);
  border-top-color: rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 14px 16px;
  width: 280px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
}
.me-glass-section::-webkit-scrollbar { width: 3px; }
.me-glass-section::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.me-glass-section-title {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

/* Event list inside glass sections */
.me-events-list {
  display: flex; flex-direction: column; gap: 6px;
}
.me-event-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}
.me-event-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(168,139,250,.2);
}
.me-event-emoji {
  font-size: 18px; flex-shrink: 0;
}
.me-event-info { flex: 1; min-width: 0; }
.me-event-name {
  font-size: 13px; font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-event-date {
  font-size: 10px; color: rgba(255,255,255,.35);
  margin-top: 1px;
}
.me-events-empty {
  font-size: 11px; color: rgba(255,255,255,.3);
  text-align: center; padding: 10px 6px;
  line-height: 1.5;
  font-style: italic;
}

/* Mobile: stack bottom panels vertically */
@media (max-width: 768px) {
  .me-hud-tl { top: 64px; left: 12px; }
  .me-hud-tr { top: 64px; right: 12px; }
  .me-hud-bl { bottom: 72px; left: 12px; }
  .me-hud-br { bottom: 72px; right: 12px; }
  .me-glass-section { width: 200px; max-height: 200px; }
  .me-glass-stats { gap: 12px; padding: 10px 12px; }
  .me-stat-num { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   Me Tab — Frosted Glass Sign-Up Splash (logged-out)
   ═══════════════════════════════════════════════════════════ */

.me-splash-container {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.me-splash-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: blur(4px) brightness(0.5);
  transform: scale(1.05);
  pointer-events: none;
}

.me-splash-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 5, 30, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.me-splash-card {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 380px;
  padding: 40px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.me-splash-heading {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.me-splash-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
}

.me-splash-btn {
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.me-splash-btn:active {
  transform: scale(0.97);
}

.me-splash-btn-google {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 2px solid transparent;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #f97316, #ec4899, #a855f7);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2);
}

.me-splash-btn-google:hover {
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.35);
}

.me-splash-btn-email {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.me-splash-btn-email:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
