/* ============================================================
   COSMOS PWA — COMPLETE DESIGN SYSTEM
   Premium Dark-Mode Professional Networking App
   ============================================================ */

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Colors ── */
  --bg-primary:    #060811;
  --bg-secondary:  #0c1020;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-glass:      rgba(255,255,255,0.06);
  --bg-input:      rgba(255,255,255,0.06);

  --purple:   #a78bfa;
  --purple-d: #7c3aed;
  --purple-l: #c4b5fd;
  --blue:     #60a5fa;
  --blue-d:   #2563eb;
  --pink:     #f472b6;
  --green:    #34d399;
  --green-d:  #059669;
  --amber:    #fbbf24;
  --teal:     #2dd4bf;
  --red:      #f87171;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);

  --gradient-primary: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  --gradient-hero:    linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #60a5fa 100%);
  --gradient-glow:    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(167,139,250,0.2) 0%, transparent 70%);
  --gradient-success: linear-gradient(135deg, #34d399, #059669);
  --gradient-danger:  linear-gradient(135deg, #f87171, #ef4444);

  /* ── Typography ── */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* ── Sizing ── */
  --top-bar-h: 56px;
  --bottom-nav-h: 68px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 99px;

  /* ── Transitions ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* ── Safe areas ── */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

::selection { background: rgba(167,139,250,0.35); }

.hidden { display: none !important; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple-d); border-radius: 99px; }

/* ===================== SPLASH SCREEN ===================== */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  text-align: center;
  animation: splashFadeIn 0.8s var(--ease) both;
}
.splash-logo {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
}
.splash-orb {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.3), transparent 70%);
  animation: splashPulse 2s ease-in-out infinite;
}
.splash-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: 12px;
}
.splash-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.splash-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.splash-loader {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  margin: 1.5rem auto 0;
  overflow: hidden;
}
.splash-loader-bar {
  height: 100%;
  width: 40%;
  background: var(--gradient-primary);
  border-radius: 99px;
  animation: splashLoad 1.2s var(--ease) infinite;
}

@keyframes splashFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes splashPulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes splashLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ===================== TOP BAR ===================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--top-bar-h);
  padding-top: var(--safe-top);
  background: rgba(6, 8, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.top-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.top-bar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.top-bar-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.top-bar-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(248,113,113,0.5);
}

/* ===================== BOTTOM DOCK NAVIGATION (C·O·S·M·O·S) ===================== */
.bottom-nav,
.side-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem calc(16px + var(--safe-bottom));
  pointer-events: none;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

/* ── The Floating Glass Dock Pill Container ── */
.bottom-nav-inner,
.side-nav-links {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  max-width: 600px;
  height: 68px;
  padding: 0 12px;
  background: rgba(20, 24, 34, 0.84);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 36px;
  pointer-events: auto;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(167, 139, 250, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: visible;
}

/* Gradient shimmer border overlay */
.bottom-nav-inner::before,
.side-nav-links::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 36px;
  padding: 1.2px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(192, 193, 255, 0.12) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* Top glint line */
.bottom-nav-inner::after,
.side-nav-links::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.20) 30%,
    rgba(255, 255, 255, 0.40) 50%,
    rgba(255, 255, 255, 0.20) 70%,
    transparent 100%
  );
  border-radius: 1px;
  pointer-events: none;
  z-index: 2;
}

/* ── Nav Tab Items Inside Dock ── */
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 6px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.9);
  text-decoration: none;
  position: relative;
  flex: 1;
  min-width: 0;
  background: transparent !important;
  transition: transform 0.28s var(--ease-spring), color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.nav-tab svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(148, 163, 184, 0.9);
  transition: color 0.2s var(--ease), filter 0.2s var(--ease), transform 0.28s var(--ease-spring);
  position: relative;
  z-index: 2;
}
.nav-tab:hover {
  color: var(--text-primary);
}
.nav-tab:hover svg {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Tab label */
.nav-tab-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease), font-weight 0.2s var(--ease);
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
/* COSMOS first-letter accent */
.nav-tab-label .cosmos-letter {
  font-style: normal;
  font-weight: 700;
  font-size: 0.74rem;
  color: rgba(165, 176, 208, 0.9);
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}

/* ── Active Tab ── */
.nav-tab.active {
  color: var(--purple-l);
  transform: scale(1.08);
}
.nav-tab.active svg {
  color: #C0C1FF;
  filter: drop-shadow(0 0 8px rgba(192, 193, 255, 0.45));
}
.nav-tab.active .nav-tab-label {
  font-weight: 600;
  color: #C0C1FF;
}
.nav-tab.active .nav-tab-label .cosmos-letter {
  color: #FFD54F !important;
  text-shadow: 0 0 8px rgba(255, 213, 79, 0.35);
  font-weight: 700;
}

/* Active indicator — Radial glow pill behind icon */
.nav-tab.active::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(192, 193, 255, 0.22) 0%,
    rgba(192, 193, 255, 0.06) 60%,
    transparent 100%
  );
  z-index: 0;
  animation: navGlowIn 0.35s var(--ease-spring) both;
}

.nav-tab:active {
  transform: scale(0.94);
  transition: transform 0.08s ease;
}
.nav-tab.active:active {
  transform: scale(1.02);
}

/* ── Notification Badge inside Dock ── */
.nav-tab .notif-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  animation: badgePulse 2s ease-in-out infinite;
}

/* ===================== TOP BAR (Full Width) ===================== */
.top-bar {
  left: 0;
  right: 0;
  width: 100%;
}
.top-bar-logo {
  display: flex;
}

/* ===================== MAIN CONTENT AREA (Full Width) ===================== */
.app-content {
  padding-top: calc(var(--top-bar-h) + var(--safe-top));
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 36px);
  margin-left: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}


/* Page transitions */
.page-exit { opacity: 0; transform: translateY(8px); transition: all 0.15s var(--ease); }
.page-enter { animation: pageEnter 0.3s var(--ease-out) both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== PAGE CONTAINER ===================== */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===================== CARDS ===================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.25s var(--ease);
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.card-glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-highlight {
  border-color: rgba(167,139,250,0.2);
  box-shadow: 0 0 20px rgba(167,139,250,0.08);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(167,139,250,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(167,139,250,0.5);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(167,139,250,0.1);
}
.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.btn-danger {
  background: var(--gradient-danger);
  color: #fff;
}
.btn-success {
  background: var(--gradient-success);
  color: #fff;
}
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: 14px; }
.btn-full { width: 100%; }
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ===================== FORMS ===================== */
.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.15);
}
.form-input:hover {
  border-color: var(--border-hover);
}
.form-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.25rem;
}
textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* ===================== TAGS ===================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--purple);
}
.tag-blue { background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.2); color: var(--blue); }
.tag-green { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.2); color: var(--green); }
.tag-pink { background: rgba(244,114,182,0.12); border-color: rgba(244,114,182,0.2); color: var(--pink); }
.tag-amber { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.2); color: var(--amber); }

/* ===================== AVATARS ===================== */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  background: var(--gradient-primary);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-sm { width: 36px; height: 36px; font-size: 0.75rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.6rem; }

/* ===================== SECTION DIVIDERS ===================== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

/* ===================== GRADIENT TEXT ===================== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== BADGE ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-purple { background: rgba(167,139,250,0.15); color: var(--purple); }
.badge-green  { background: rgba(52,211,153,0.15);  color: var(--green); }
.badge-blue   { background: rgba(96,165,250,0.15);  color: var(--blue); }
.badge-amber  { background: rgba(251,191,36,0.15);  color: var(--amber); }
.badge-red    { background: rgba(248,113,113,0.15);  color: var(--red); }

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 1rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.empty-state-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto 1.5rem;
}

/* ===================== TOAST ===================== */
.toast-container {
  position: fixed;
  top: calc(var(--top-bar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: rgba(12,16,32,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: auto;
  animation: toastIn 0.4s var(--ease-spring) both;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast-success { border-color: rgba(52,211,153,0.3); }
.toast-error   { border-color: rgba(248,113,113,0.3); }
.toast.toast-exit { animation: toastOut 0.3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(0.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px) scale(0.95); } }

/* ===================== LOADING ===================== */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.06) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===================== AUTH PAGE ===================== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--top-bar-h));
  min-height: calc(100dvh - var(--top-bar-h));
  padding: 2rem 1rem;
}
.auth-container {
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.6s var(--ease) both;
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo-wrap {
  margin-bottom: 1.25rem;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--purple);
  font-weight: 600;
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}
.google-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}

/* ===================== CONNECT / SWIPE PAGE ===================== */
.connect-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  min-height: calc(100vh - var(--top-bar-h) - 2rem);
}
.connect-header {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.connect-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.connect-counter {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.connect-counter strong {
  color: var(--purple-l);
  font-weight: 700;
}
.connect-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.connect-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--blue) 100%);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

.swipe-area {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 480px;
  height: min(480px, calc(100vh - 280px));
  margin: 0 auto;
}

.profile-card {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 26, 0.65);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  overflow: hidden;
  cursor: grab;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
  touch-action: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(167, 139, 250, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.profile-card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.7), 0 0 50px rgba(167, 139, 250, 0.08);
}
.profile-card:active { cursor: grabbing; }
.profile-card.swiping { transition: none; }
.profile-card.swipe-right {
  animation: swipeRight 0.5s var(--ease) forwards;
}
.profile-card.swipe-left {
  animation: swipeLeft 0.5s var(--ease) forwards;
}

@keyframes swipeRight {
  to { transform: translateX(160%) rotate(24deg); opacity: 0; }
}
@keyframes swipeLeft {
  to { transform: translateX(-160%) rotate(-24deg); opacity: 0; }
}

.profile-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.12) 0%, rgba(96, 165, 250, 0.03) 80%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* ── Top Badges Overlay ── */
.profile-card-top-badges {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.profile-tier-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tier-explorer {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.25);
  color: var(--blue);
}
.tier-member {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.25);
  color: var(--purple-l);
}
.tier-inner {
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.25);
  color: var(--pink);
}
.tier-founder {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
  color: var(--amber);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}
.user-type-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-card-avatar {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  margin: 4.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-card-avatar .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  position: relative;
}
.profile-card-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
  animation: avatarPulse 3s infinite alternate;
}
@keyframes avatarPulse {
  0% { transform: scale(0.96); opacity: 0.35; }
  100% { transform: scale(1.04); opacity: 0.65; }
}

.profile-card-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem 1.25rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.profile-card-info::-webkit-scrollbar {
  display: none;
}

.profile-card-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
.profile-card-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-l);
  margin-bottom: 0.75rem;
  text-align: center;
}
.profile-card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.profile-card-location svg {
  color: var(--blue);
}
.profile-card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #60a5fa;
  font-weight: 600;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  transition: all 0.25s var(--ease);
}
.profile-card-linkedin:hover {
  background: rgba(96, 165, 250, 0.14);
  box-shadow: 0 0 10px rgba(96,165,250,0.15);
}

.profile-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  margin: 0.375rem 0 0.625rem;
  width: 100%;
}
.profile-card-tags .tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.profile-card-tags .tag-blue { background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.15); color: var(--blue); }
.profile-card-tags .tag-pink { background: rgba(244,114,182,0.08); border-color: rgba(244,114,182,0.15); color: var(--pink); }
.profile-card-tags .tag-green { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.15); color: var(--green); }
.profile-card-tags .tag-amber { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.15); color: var(--amber); }

.profile-card-bio {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  margin: 0.375rem 0;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card-looking-for {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  margin-bottom: 0.625rem;
  width: 100%;
}
.looking-for-pill {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.12);
  color: var(--purple-l);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.profile-card-insight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(167, 139, 250, 0.05);
  border: 1px dashed rgba(167, 139, 250, 0.18);
  border-radius: 12px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  color: var(--purple-l);
  margin: 0.25rem 0 0.5rem;
  width: 100%;
  line-height: 1.4;
  justify-content: center;
}
.insight-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.profile-card-match {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: auto auto 0;
  margin-top: auto !important;
  padding: 0.35rem 0.875rem;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  box-shadow: 0 2px 10px rgba(52,211,153,0.1);
  animation: matchScorePulse 2.5s infinite alternate;
}
@keyframes matchScorePulse {
  0% { box-shadow: 0 2px 10px rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.2); }
  100% { box-shadow: 0 4px 18px rgba(52,211,153,0.25); border-color: rgba(52,211,153,0.4); }
}

.profile-card-mutual {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.swipe-indicator {
  position: absolute;
  top: 35px;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  transform: rotate(-10deg);
  opacity: 0;
  transition: opacity 0.15s var(--ease);
  z-index: 20;
  pointer-events: none;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.swipe-indicator-right {
  right: 30px;
  background: rgba(52, 211, 153, 0.12);
  border: 2px solid rgba(52, 211, 153, 0.6);
  color: #34d399;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}
.swipe-indicator-left {
  left: 30px;
  background: rgba(248, 113, 113, 0.12);
  border: 2px solid rgba(248, 113, 113, 0.6);
  color: #f87171;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.2);
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
  transform: rotate(10deg);
}

/* Swipe action buttons */
.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  z-index: 10;
}
.swipe-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-spring);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  background: rgba(18, 22, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  position: relative;
}
.swipe-btn svg {
  transition: transform 0.2s var(--ease);
}
.swipe-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(12, 16, 32, 0.95);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 30;
}
.swipe-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.swipe-btn-skip {
  border-color: rgba(248,113,113,0.2);
  color: var(--red);
}
.swipe-btn-skip:hover {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.6);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(248,113,113,0.25);
}
.swipe-btn-skip:hover svg {
  transform: rotate(90deg);
}
.swipe-btn-connect {
  border-color: rgba(52,211,153,0.2);
  color: var(--green);
  width: 64px;
  height: 64px;
}
.swipe-btn-connect:hover {
  background: rgba(52,211,153,0.12);
  border-color: rgba(52,211,153,0.6);
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(52,211,153,0.3);
}
.swipe-btn-connect:hover svg {
  transform: scale(1.15);
}
.swipe-btn-info {
  border-color: rgba(96,165,250,0.2);
  color: var(--blue);
}
.swipe-btn-info:hover {
  background: rgba(96,165,250,0.12);
  border-color: rgba(96,165,250,0.6);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(96,165,250,0.25);
}
.swipe-btn-info:hover svg {
  transform: translateY(-2px);
}

/* ── Premium Empty State (Radar Scanner) ── */
.caught-up-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}
.radar-scanner {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}
.radar-circle {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(167, 139, 250, 0.15);
  border-radius: 50%;
  animation: radarPulseAnim 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
.radar-circle:nth-child(2) {
  animation-delay: 1s;
}
.radar-circle:nth-child(3) {
  animation-delay: 2s;
}
.radar-scanner::after {
  content: '🌌';
  font-size: 2.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: radarFloat 4s ease-in-out infinite;
}
@keyframes radarPulseAnim {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}
@keyframes radarFloat {
  0%, 100% { transform: translate(-50%, -52%); }
  50% { transform: translate(-50%, -48%); }
}
.caught-up-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.caught-up-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ── Keyboard Shortcuts Hint ── */
.visual-kbd-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  opacity: 0.8;
}
.kbd-key {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 3px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--text-secondary);
  transition: all 0.1s var(--ease);
  font-weight: bold;
}
.kbd-key.active-press {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  border-bottom-width: 1px;
  transform: translateY(2px);
  color: var(--purple-l);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

/* ── Detailed Profile Drawer / Modal ── */
.profile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.profile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.profile-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  height: 85%;
  max-height: 720px;
  background: rgba(12, 16, 32, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  z-index: 2001;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-drawer.active {
  transform: translateX(-50%) translateY(0);
}
.profile-drawer-header {
  padding: 1.25rem 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.profile-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}
.profile-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.profile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: scale(1.05);
}
.profile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
}
.profile-drawer-body::-webkit-scrollbar {
  width: 4px;
}
.profile-drawer-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}
.profile-drawer-intro-section {
  background: rgba(167, 139, 250, 0.03);
  border: 1px solid rgba(167, 139, 250, 0.08);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.profile-drawer-headline-row {
  display: flex;
  gap: 1.125rem;
  align-items: center;
  margin-bottom: 1rem;
}
.drawer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  box-shadow: 0 4px 12px rgba(167,139,250,0.2);
  object-fit: cover;
}
.drawer-meta-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple-l);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.drawer-text-block {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.drawer-goals-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.drawer-goal-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 0.875rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.drawer-pitch-area {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.25rem;
}
.drawer-pitch-input {
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.6rem 0.875rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  resize: none;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s var(--ease);
}
.drawer-pitch-input:focus {
  border-color: var(--purple);
}

/* ── Skeleton Loading ── */
.profile-card-skeleton {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 38, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.skeleton-pulse {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  animation: skeletonPulse 1.5s infinite ease-in-out;
}
@keyframes skeletonPulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}
.skeleton-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.skeleton-name {
  width: 140px;
  height: 18px;
  margin-bottom: 0.75rem;
}
.skeleton-role {
  width: 180px;
  height: 14px;
  margin-bottom: 1.25rem;
}
.skeleton-tags-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.skeleton-tag {
  width: 60px;
  height: 20px;
  border-radius: 6px;
}
.skeleton-bio {
  width: 100%;
  height: 12px;
  margin-bottom: 0.5rem;
}
.skeleton-bio-short {
  width: 80%;
  height: 12px;
  margin-bottom: 2rem;
}

/* Orbit Loader Animation */
.connect-loading-orbit {
  position: relative;
  width: 60px;
  height: 60px;
  margin-top: 1rem;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(167, 139, 250, 0.15);
  border-radius: 50%;
}
.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  margin-left: -4px;
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--purple);
  animation: spin 1.5s linear infinite;
  transform-origin: 4px 34px;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.connect-loading-text {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
}



/* ── Cosmic Match Overlay Screen ── */
.cosmic-match-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.cosmic-match-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cosmic-match-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.6s var(--ease-spring);
}
.cosmic-match-overlay.active .cosmic-match-title {
  transform: scale(1);
}
.cosmic-match-system {
  position: relative;
  width: 280px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.cosmic-match-orbit {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px dashed rgba(167, 139, 250, 0.3);
  border-radius: 50%;
  animation: successOrbit 6s linear infinite;
}
.cosmic-match-node {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.5s ease;
}
.cosmic-match-node-me {
  left: 20px;
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(167,139,250,0.3);
  animation: meGather 1s var(--ease-spring) forwards;
}
.cosmic-match-node-them {
  right: 20px;
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(96,165,250,0.3);
  animation: themGather 1s var(--ease-spring) forwards;
}
@keyframes successOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes meGather {
  0% { transform: translateX(-60px) scale(0.5); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes themGather {
  0% { transform: translateX(60px) scale(0.5); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
.cosmic-match-wave {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, transparent 70%);
  animation: successWave 2s ease-out infinite;
  z-index: -1;
}
@keyframes successWave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.cosmic-match-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 320px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Radar Scanner Grid Lines ── */
.radar-grid-line-x {
  position: absolute;
  top: 50%; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent);
}
.radar-grid-line-y {
  position: absolute;
  left: 50%; top: 5%; bottom: 5%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent);
}

/* ===================== EVENTS PAGE ===================== */
.events-page { padding: 0.75rem 1rem; }
.events-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.events-tabs::-webkit-scrollbar { display: none; }
.event-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}
.event-tab.active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(167,139,250,0.3);
}
.event-tab:hover:not(.active) {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.events-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.25s var(--ease);
}
.event-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.event-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(167,139,250,0.12);
}
.event-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.event-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.event-card-attendees {
  display: flex;
  align-items: center;
}
.event-card-attendees .avatar {
  width: 28px;
  height: 28px;
  font-size: 0.6rem;
  margin-left: -8px;
  border: 2px solid var(--bg-primary);
}
.event-card-attendees .avatar:first-child { margin-left: 0; }
.event-card-spots {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.event-card-timer {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
}

/* ===================== CONVERSATIONS / CRM PAGE ===================== */
.conversations-page { padding: 0.5rem 0; }
.conversations-search {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.conversations-list {
  display: flex;
  flex-direction: column;
}
.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.conversation-item:hover {
  background: var(--bg-card);
}
.conversation-item:active {
  background: var(--bg-card-hover);
}
.conversation-info {
  flex: 1;
  min-width: 0;
}
.conversation-name {
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.conversation-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}
.conversation-meta {
  text-align: right;
  flex-shrink: 0;
}
.conversation-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.conversation-unread {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-top: 0.25rem;
}
.conversation-label {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

/* Chat Detail */
.chat-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--top-bar-h));
  height: calc(100dvh - var(--top-bar-h));
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.chat-back-btn {
  color: var(--text-secondary);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.chat-bubble {
  max-width: 78%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: bubbleIn 0.3s var(--ease-spring) both;
}
@keyframes bubbleIn { from { opacity: 0; transform: scale(0.9) translateY(8px); } }
.chat-bubble-sent {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble-received {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-bubble-time {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
  text-align: right;
}
.chat-bubble-received .chat-bubble-time {
  color: var(--text-muted);
}
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(6,8,17,0.9);
}
.chat-input {
  flex: 1;
  padding: 0.625rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--purple); }
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.chat-send-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(167,139,250,0.4); }

/* ===================== COMMUNITIES / ORBITS PAGE ===================== */
.communities-page { padding: 0.75rem 1rem; }
.orbit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.orbit-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.orbit-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.orbit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.orbit-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.orbit-card-members {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.orbit-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.orbit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Orbit Detail View Styling */
.orbit-detail-page { padding: 0.75rem 1rem; }
.orbit-detail-hero {
  position: relative;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.orbit-detail-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: var(--gradient-primary);
  opacity: 0.12;
  z-index: 0;
}
.orbit-detail-back-btn {
  position: absolute;
  top: 16px; left: 16px;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  z-index: 10;
}
.orbit-detail-back-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.orbit-detail-avatar-wrap {
  position: relative;
  z-index: 1;
  margin: 0 auto 0.75rem;
  width: 72px; height: 72px;
}
.orbit-detail-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}
.orbit-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.orbit-detail-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Tab styling matching events tabs */
.orbit-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.orbit-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.orbit-tab.active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(167,139,250,0.3);
}
.orbit-tab:hover:not(.active) {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* Feed Compose Area */
.orbit-feed-compose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.orbit-feed-compose-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.orbit-feed-compose textarea {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 0.75rem;
  resize: none;
  min-height: 72px;
  outline: none;
  transition: border-color 0.2s;
}
.orbit-feed-compose textarea:focus {
  border-color: var(--purple);
}

/* Member and Request List Items */
.orbit-member-item, .orbit-request-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: all 0.2s var(--ease);
}
.orbit-member-item:hover, .orbit-request-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.orbit-member-info, .orbit-request-info {
  flex: 1;
  min-width: 0;
}
.orbit-member-name, .orbit-request-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.orbit-member-headline, .orbit-request-headline {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

/* Danger Zone */
.danger-zone-box {
  border: 1px solid rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.04);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 2rem;
}
.danger-zone-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.danger-zone-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ===================== SOCIAL FEED PAGE ===================== */
.social-page { padding: 0.75rem 1rem; }
.post-image-wrap {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 400px;
  background: var(--bg-input);
}
.post-image-wrap img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}
.post-image-preview-wrap {
  position: relative;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-input);
}
.post-image-preview-wrap img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.btn-remove-preview-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(6, 8, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.btn-remove-preview-image:hover {
  background: rgba(248, 113, 113, 0.9);
  color: white;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
  transition: all 0.2s var(--ease);
}
.post-card:hover { border-color: var(--border-hover); }
.post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.post-author-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.post-author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.post-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}
.post-content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.post-action {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.post-action:hover { color: var(--purple); }
.post-action.liked { color: var(--pink); }

/* ===================== PROFILE PAGE ===================== */
.profile-page { padding: 0.75rem 1rem; }
.profile-hero {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}
.profile-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--gradient-primary);
  opacity: 0.12;
}
.profile-avatar-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}
.profile-avatar-wrap .avatar {
  margin: 0 auto;
  border: 3px solid rgba(167,139,250,0.3);
}
.profile-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.profile-headline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.profile-stat {
  text-align: center;
}
.profile-stat-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Profile sections */
.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
}
.profile-section-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.profile-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { color: var(--purple); }
.profile-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
}
.profile-menu-label {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
}
.profile-menu-arrow {
  color: var(--text-muted);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0 1rem;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
}

.profile-about {
  margin-top: 1rem;
  padding: 0 1rem;
  text-align: center;
}

.profile-about-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.profile-complete-banner {
  margin: 1rem 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167,139,250,0.25);
  background: rgba(167,139,250,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-complete-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.profile-complete-banner strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.15rem;
}

/* ===================== NOTIFICATIONS PAGE ===================== */
.notifications-page { padding: 0.75rem 1rem; }
.notif-list {
  display: flex;
  flex-direction: column;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.notif-item:hover { background: var(--bg-card); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: var(--radius-sm); }
.notif-item.unread { background: rgba(167,139,250,0.04); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: var(--radius-sm); }
.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-content { flex: 1; }
.notif-text {
  font-size: 0.88rem;
  line-height: 1.5;
}
.notif-text strong { font-weight: 600; color: var(--text-primary); }
.notif-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ===================== NETWORKING DASHBOARD ===================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.dashboard-card-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dashboard-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 99px;
  transition: width 0.8s var(--ease);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fade-in { animation: fadeIn 0.4s var(--ease) both; }
.anim-fade-up { animation: fadeInUp 0.5s var(--ease) both; }
.anim-scale-in { animation: scaleIn 0.4s var(--ease-spring) both; }

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* ===================== MODAL / OVERLAY ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s var(--ease);
}
.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem;
  overflow-y: auto;
  animation: slideUp 0.3s var(--ease-spring);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border-hover);
  border-radius: 99px;
  margin: 0 auto 1rem;
}

/* ===================== SEARCH ===================== */
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s var(--ease);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(167,139,250,0.12); }

/* ===================== AI SUMMARY ===================== */
.ai-summary {
  background: rgba(167,139,250,0.06);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem 0;
}
.ai-summary-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.5rem;
}
.ai-summary-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 768px) {
  .swipe-area {
    max-height: 600px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .modal-content {
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
  }
  .modal-overlay {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page {
    max-width: 900px;
  }
  .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================== HIDE SHELL WHEN NOT LOGGED IN ===================== */
body.auth-mode .top-bar,
body.auth-mode .side-nav {
  display: none;
}
body.auth-mode .app-content {
  padding-top: 0;
  padding-bottom: 0;
  margin-left: 0;
}

/* Hide shell chrome on focused sub-pages (settings, edit profile, help) */
body.sub-page-mode .top-bar,
body.sub-page-mode .side-nav {
  display: none;
}
body.sub-page-mode .app-content {
  padding-top: 0;
  padding-bottom: 0;
  margin-left: 0;
}

/* ===================== PWA INSTALL PROMPT ===================== */
.install-prompt {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 24px);
  left: 1rem;
  right: 1rem;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(12,16,32,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: slideInUp 0.5s var(--ease-spring) both;
}
@keyframes slideInUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.install-prompt-text {
  flex: 1;
}
.install-prompt-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}
.install-prompt-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.install-prompt-close {
  color: var(--text-muted);
  padding: 4px;
}

/* ===================== CONNECT PAGE ENHANCEMENTS ===================== */

/* ── Loading Skeleton ── */
.profile-card-skeleton {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 0.75rem;
}
.skeleton-pulse {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-avatar-lg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}
.skeleton-name {
  width: 180px;
  height: 22px;
  border-radius: 8px;
}
.skeleton-role {
  width: 140px;
  height: 16px;
  border-radius: 6px;
}
.skeleton-tags-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.skeleton-tag {
  width: 64px;
  height: 26px;
  border-radius: var(--radius-full);
}
.skeleton-bio {
  width: 90%;
  height: 14px;
  border-radius: 6px;
}
.skeleton-bio-short {
  width: 60%;
  height: 14px;
  border-radius: 6px;
}

/* Orbit loading animation */
.connect-loading-orbit {
  position: relative;
  width: 48px;
  height: 48px;
  margin-top: 1.5rem;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(167,139,250,0.15);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  margin-left: -4px;
  box-shadow: 0 0 12px rgba(167,139,250,0.6);
  animation: spin 1.2s linear infinite;
}
.connect-loading-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Profile Card Top Badges ── */
.profile-card-top-badges {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  padding-top: 1rem;
}
.profile-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tier-explorer {
  background: rgba(144,143,160,0.15);
  color: #908fa0;
  border: 1px solid rgba(144,143,160,0.25);
}
.tier-member {
  background: rgba(5,102,217,0.15);
  color: #60a5fa;
  border: 1px solid rgba(5,102,217,0.25);
}
.tier-inner {
  background: rgba(73,75,214,0.15);
  color: #a78bfa;
  border: 1px solid rgba(73,75,214,0.3);
}
.tier-founder {
  background: rgba(192,193,255,0.12);
  color: #c0c1ff;
  border: 1px solid rgba(192,193,255,0.25);
  box-shadow: 0 0 12px rgba(192,193,255,0.15);
}
.user-type-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.2);
  color: var(--blue);
}

/* ── Location ── */
.profile-card-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Looking For Pills ── */
.profile-card-looking-for {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.looking-for-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
}

/* ===================== SUB-PAGES (Settings, Edit Profile, Help) ===================== */
:root {
  --primary: var(--purple);
  --secondary: var(--blue);
  --tertiary: var(--teal);
  --text: var(--text-primary);
  --glass-bg: var(--bg-glass);
  --glass-border: var(--border);
}

.sub-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1.5px solid var(--border);
}

.sub-page-header .page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  flex-shrink: 0;
}

/* ===================== SETTINGS & CONTROL CENTER ===================== */
.settings-page {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100%;
  padding: 0.5rem 0.5rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 36px);
  position: relative;
  overflow: hidden;
}

/* ── Floating Cosmic Particles ── */
.cosmic-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cosmic-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: cosmicFloat 18s infinite ease-in-out;
}
.cosmic-particle:nth-child(1) { width: 3px; height: 3px; background: rgba(167,139,250,0.6); left: 12%; top: 20%; animation-delay: 0s; animation-duration: 22s; }
.cosmic-particle:nth-child(2) { width: 2px; height: 2px; background: rgba(96,165,250,0.5); left: 45%; top: 60%; animation-delay: 3s; animation-duration: 19s; }
.cosmic-particle:nth-child(3) { width: 4px; height: 4px; background: rgba(244,114,182,0.4); left: 78%; top: 30%; animation-delay: 6s; animation-duration: 24s; }
.cosmic-particle:nth-child(4) { width: 2px; height: 2px; background: rgba(52,211,153,0.5); left: 30%; top: 80%; animation-delay: 9s; animation-duration: 20s; }
.cosmic-particle:nth-child(5) { width: 3px; height: 3px; background: rgba(251,191,36,0.4); left: 65%; top: 15%; animation-delay: 12s; animation-duration: 25s; }
.cosmic-particle:nth-child(6) { width: 2px; height: 2px; background: rgba(167,139,250,0.5); left: 90%; top: 70%; animation-delay: 4s; animation-duration: 21s; }
.cosmic-particle:nth-child(7) { width: 3px; height: 3px; background: rgba(96,165,250,0.4); left: 5%; top: 50%; animation-delay: 7s; animation-duration: 23s; }
.cosmic-particle:nth-child(8) { width: 2px; height: 2px; background: rgba(244,114,182,0.5); left: 55%; top: 90%; animation-delay: 10s; animation-duration: 18s; }

@keyframes cosmicFloat {
  0%, 100% { opacity: 0; transform: translateY(0) translateX(0) scale(0.5); }
  10% { opacity: 0.8; }
  50% { opacity: 0.4; transform: translateY(-120px) translateX(30px) scale(1.2); }
  90% { opacity: 0.6; }
}

/* ── Cosmic Command Header ── */
.settings-header-banner {
  padding: 0.75rem 0.5rem 1rem;
  position: relative;
  z-index: 1;
}
.cosmic-command-title {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #c4b5fd 0%, #60a5fa 40%, #f472b6 70%, #a78bfa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cosmicTitleShift 6s ease-in-out infinite;
  margin: 0;
  letter-spacing: -0.3px;
}
.cosmic-command-subtitle {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
@keyframes cosmicTitleShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Holographic Hero Profile Card ── */
.settings-hero-card {
  position: relative;
  border-radius: 24px;
  background: rgba(12, 16, 32, 0.75);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  z-index: 1;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(167, 139, 250, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.settings-hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167,139,250,0.4) 0%, rgba(96,165,250,0.2) 30%, rgba(244,114,182,0.3) 60%, rgba(167,139,250,0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: holoBorderRotate 8s linear infinite;
  background-size: 300% 300%;
}
@keyframes holoBorderRotate {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
.settings-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% -10%, rgba(167, 139, 250, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at -10% 100%, rgba(96, 165, 250, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.settings-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Orbital Avatar */
.settings-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.cosmic-avatar-orbit {
  position: relative;
  width: 80px;
  height: 80px;
}
.cosmic-avatar-orbit::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #a78bfa, #60a5fa, #f472b6, #34d399, #a78bfa);
  animation: orbitSpin 4s linear infinite;
  opacity: 0.7;
}
.cosmic-avatar-orbit::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--bg-primary);
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
.settings-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}
.settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.settings-verified-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a66c2, #0077b5);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--bg-primary);
  z-index: 3;
  box-shadow: 0 0 10px rgba(10, 102, 194, 0.4);
}

/* Hero Info */
.settings-hero-info {
  flex: 1;
  min-width: 200px;
}
.settings-hero-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.settings-hero-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #f1f5f9 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.settings-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.settings-tier-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: tierShimmer 3s ease-in-out infinite;
}
@keyframes tierShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -100% 0; }
}
.settings-tier-pill:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px currentColor;
}
.tier-badge-explorer {
  color: var(--blue);
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.35);
}
.tier-badge-member {
  color: var(--green);
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
}
.tier-badge-inner {
  color: var(--purple-l);
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.25);
}
.tier-badge-founder {
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.12) 100%);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
}
.settings-hero-headline {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0.3rem 0 0.5rem;
}
.settings-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.settings-meta-item {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.settings-meta-item:hover {
  color: var(--text-secondary);
}
.settings-hero-action {
  flex-shrink: 0;
}
.settings-hero-action .btn {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--purple-l);
  transition: all 0.3s var(--ease);
}
.settings-hero-action .btn:hover {
  background: rgba(167, 139, 250, 0.25);
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
  transform: translateY(-1px);
}

/* ── Cosmic Fuel Gauge (Monthly Progress) ── */
.cosmic-fuel-gauge {
  position: relative;
  border-radius: 20px;
  background: rgba(12, 16, 32, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.15rem 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.cosmic-fuel-gauge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(167,139,250,0.5) 30%, rgba(96,165,250,0.5) 70%, transparent 100%);
}
.settings-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.settings-progress-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.settings-progress-count {
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cosmic-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.cosmic-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  position: relative;
  transition: width 0.8s var(--ease-spring);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}
.cosmic-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: fuelShimmer 2.5s ease-in-out infinite;
  border-radius: 999px;
}
@keyframes fuelShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -100% 0; }
}
.settings-progress-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Orbital Stats Grid ── */
.settings-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
@media (max-width: 480px) {
  .settings-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}
.cosmic-stat-pod {
  text-align: center;
  background: rgba(12, 16, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1rem 0.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(12px);
}
.cosmic-stat-pod::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stat-accent, var(--purple)), transparent);
  opacity: 0.5;
}
.cosmic-stat-pod::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--stat-accent, var(--purple)), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.cosmic-stat-pod:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--stat-accent, var(--purple));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 24px color-mix(in srgb, var(--stat-accent, var(--purple)) 20%, transparent);
}
.cosmic-stat-pod:hover::after {
  opacity: 0.06;
}
.cosmic-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  font-family: var(--font-display);
  position: relative;
  z-index: 1;
}
.cosmic-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* ── Cosmic Section Headers ── */
.cosmic-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  position: relative;
}
.cosmic-section-emoji {
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.3));
}
.cosmic-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple-l) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cosmic-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.3) 0%, transparent 100%);
  margin-left: 0.5rem;
}

/* ── Section & Card Base ── */
.settings-section {
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
}
.settings-section + .settings-section {
  margin-top: 1.5rem;
}

.settings-card {
  background: rgba(12, 16, 32, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.settings-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(167, 139, 250, 0.3) 20%, rgba(96, 165, 250, 0.3) 80%, transparent 95%);
}

/* ── Premium Settings Item Rows ── */
.settings-item {
  display: flex;
  align-items: center;
  gap: 0.88rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.settings-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(167, 139, 250, 0.04) 50%, transparent 100%);
  transition: left 0.5s var(--ease);
}
.settings-item:hover::after {
  left: 100%;
}
.settings-item:last-child {
  border-bottom: none;
}
.settings-item:hover {
  background: rgba(167, 139, 250, 0.04);
}
.settings-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.1);
}
.settings-item:hover .settings-item-icon {
  background: rgba(167, 139, 250, 0.2);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.25);
  transform: scale(1.05);
}
.settings-item-text {
  flex: 1;
  min-width: 0;
}
.settings-item-label {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.settings-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  line-height: 1.3;
}
.settings-item-value {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
  font-weight: 500;
}
.settings-item-chevron {
  color: var(--text-muted);
  opacity: 0.4;
  transition: all 0.2s;
  flex-shrink: 0;
}
.settings-item:hover .settings-item-chevron {
  opacity: 0.8;
  transform: translateX(2px);
  color: var(--purple);
}

/* ── Notification & Privacy Toggle Rows ── */
.settings-card-padded {
  padding: 0.4rem 1.15rem;
}
.settings-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}
.settings-toggle-row:last-child {
  border-bottom: none;
}
.settings-toggle-row:hover {
  background: rgba(255, 255, 255, 0.015);
}
.settings-toggle-copy {
  min-width: 0;
}
.settings-toggle-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.settings-toggle-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* ── Cosmic Toggle Switch ── */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 27px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.35s var(--ease);
}
.slider:before {
  position: absolute;
  content: "";
  height: 21px;
  width: 21px;
  left: 2px;
  bottom: 2px;
  background: linear-gradient(135deg, #e2e8f0, #fff);
  transition: all 0.35s var(--ease);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.switch input:checked + .slider {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.3);
}
.switch input:checked + .slider:before {
  transform: translateX(21px);
  background: #fff;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.4), 0 1px 4px rgba(0,0,0,0.15);
}
.slider.round {
  border-radius: 999px;
}
.slider.round:before {
  border-radius: 50%;
}

/* ── Danger Zone ── */
.settings-card-danger {
  background: rgba(248, 113, 113, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(248, 113, 113, 0.12);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 30px rgba(248, 113, 113, 0.05);
}
.settings-card-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(248, 113, 113, 0.4) 30%, rgba(239, 68, 68, 0.4) 70%, transparent 95%);
}
.settings-item-danger {
  color: var(--red);
}
.settings-item-danger .settings-item-icon {
  background: rgba(248, 113, 113, 0.12);
  color: var(--red);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.1);
}
.settings-item-danger:hover .settings-item-icon {
  background: rgba(248, 113, 113, 0.2);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.25);
}
.settings-item-danger .settings-item-chevron {
  color: var(--red);
}

/* ── Membership Tiers Modal ── */
.membership-modal-card {
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
}
.membership-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .membership-tiers-grid {
    grid-template-columns: 1fr;
  }
}
.membership-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s var(--ease);
}
.membership-tier-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.membership-tier-card.active-tier {
  border-color: var(--purple-l);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.15);
}
.membership-tier-header {
  margin-bottom: 0.75rem;
}
.tier-icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}
.tier-title {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.tier-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}
.tier-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}
.tier-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tier-perks li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.tier-badge-current {
  display: block;
  text-align: center;
  padding: 0.45rem;
  background: rgba(167, 139, 250, 0.15);
  color: var(--purple-l);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* ── Staggered Cosmic Entrance ── */
.cosmic-enter {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  animation: cosmicEnter 0.6s var(--ease-spring) forwards;
}
@keyframes cosmicEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Relations Modal ── */
.relations-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); display: flex; align-items: flex-end; justify-content: center; }
.relations-modal.hidden { display: none; }
.relations-modal-inner { width: 100%; max-width: 600px; max-height: 85vh; background: var(--bg-secondary); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 -8px 32px rgba(0,0,0,0.4); }

/* Dashboard tile compat (used by stats) */
.dashboard-tile {
  cursor: pointer;
  text-align: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.dashboard-tile:hover {
  transform: scale(1.02);
  border-color: rgba(167,139,250,0.35);
}
.dashboard-tile-value {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}
.dashboard-tile-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}


/* ===================== EDIT PROFILE ===================== */
.edit-profile-form {
  padding: 1rem 1rem 6rem;
}

.edit-profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.edit-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.edit-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-profile-avatar-placeholder {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.edit-profile-avatar-placeholder small {
  font-size: 0.72rem;
}

.edit-profile-card {
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.linkedin-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.linkedin-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #0a66c2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.linkedin-icon.connected {
  background: rgba(52,211,153,0.2);
  color: var(--green);
}

.linkedin-copy {
  flex: 1;
  min-width: 0;
}

.linkedin-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.linkedin-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-section-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.user-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag-chip {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.tag-chip.active {
  background: rgba(167,139,250,0.2);
  border-color: rgba(167,139,250,0.4);
  color: var(--purple);
}

.edit-profile-actions {
  margin-top: 1.5rem;
}

.form-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.form-error.hidden {
  display: none;
}

/* ===================== HELP & SUPPORT ===================== */
.help-intro {
  padding: 1rem 1rem 0;
}

.help-intro h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.help-intro p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.help-search-wrap {
  position: relative;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-search-wrap svg {
  position: absolute;
  left: 1.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.help-search-input {
  padding-left: 2.5rem !important;
  flex: 1;
}

.help-search-clear {
  position: absolute;
  right: 1.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.help-faq-list {
  padding: 0 1rem;
}

.help-faq-group {
  margin-bottom: 1.25rem;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--purple);
  transition: transform 0.2s var(--ease);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.help-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

.help-contact-section {
  padding: 0 1rem 6rem;
  margin-top: 1rem;
}

.help-contact-card {
  padding: 1.25rem;
}

.help-form-intro {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.help-success {
  text-align: center;
  padding: 0.5rem 0;
}

.help-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.help-success h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.help-success p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* ===================== MODAL ===================== */
/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 8, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  animation: modalEnter 0.3s var(--ease-spring) both;
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  border: 1px solid rgba(255,255,255,0.05);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}
.modal-body::-webkit-scrollbar {
  width: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--purple-d);
  border-radius: var(--radius-full);
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ── Form Controls & Labels ── */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.25s var(--ease);
  outline: none;
}

.form-input:focus {
  border-color: var(--purple);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

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

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* Custom styles for select inside forms */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form-input option {
  background: #0b1020;
  color: var(--text-primary);
}

/* Custom toggle switch styling */
.switch-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.switch-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 1rem;
}

.switch-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.switch-description {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .3s var(--ease);
  border-radius: 24px;
  border: 1px solid var(--border);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .3s var(--ease);
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: var(--purple-d);
  border-color: var(--purple);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #fff;
}

/* ── Event Cover Image Upload zone ── */
.image-upload-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s var(--ease);
}
.image-upload-wrapper:hover {
  border-color: var(--purple);
  background: rgba(167, 139, 250, 0.04);
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  pointer-events: none;
}
.upload-placeholder svg {
  color: var(--purple-l);
}
.preview-crop-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-remove-image {
  transition: all 0.2s var(--ease);
}
.btn-remove-image:hover {
  background: #ef4444 !important;
  color: #fff !important;
  transform: scale(1.05);
}
.image-adjust-controls {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 100%;
}
.form-input-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  accent-color: var(--purple);
  background: rgba(255, 255, 255, 0.1);
}
.default-covers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.default-cover-option {
  aspect-ratio: 2 / 1;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.default-cover-option:hover {
  transform: scale(1.05);
}
.default-cover-option.active {
  border-color: var(--purple) !important;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

/* ── Location Autocomplete Suggestions ── */
#location-suggestions {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f1322 !important;
  border-radius: 8px;
  overflow: hidden;
}
.suggestion-item {
  transition: background 0.2s var(--ease);
}
#location-map-preview {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Global Hidden Class */
.hidden {
  display: none !important;
}

/* Relations Modal Styling */
.relations-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 17, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s ease;
}

.relations-modal-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  background: #060811;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ===================== LUMA-STYLE EVENTS LAYOUT ===================== */

/* Row-style Luma cards */
.luma-event-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.luma-event-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.25);
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.luma-card-left {
  flex-shrink: 0;
}

.luma-card-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease);
}
.luma-event-card:hover .luma-card-cover {
  transform: scale(1.03);
}

.luma-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.luma-card-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.luma-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

/* Host badge */
.event-host-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.host-avatar-placeholder {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.host-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-avatar-initial {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--purple-l);
  text-transform: uppercase;
}

.host-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.luma-price-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid;
}
.luma-price-badge.paid {
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.25);
  color: var(--green);
}
.luma-price-badge.free {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.luma-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.luma-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.luma-time-text {
  color: var(--amber);
  font-weight: 600;
}

.luma-location-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.luma-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.luma-card-tags-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.luma-card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.375rem;
  border-radius: 4px;
  color: var(--text-secondary);
}


/* ===================== MOBILE ANDROID-NATIVE EXPERIENCE ===================== */
/* Matches the Android CosmosBottomNavBar.kt glassmorphic floating pill design */

/* ── Mobile Global Touch & Gesture Optimizations ── */
@media (max-width: 768px) {

  /* Prevent browser pull-to-refresh and overscroll bounce — feels native */
  html {
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
  }
  body {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* Prevent double-tap zoom */
    touch-action: manipulation;
  }

  /* Hide scrollbars on mobile for native app feel */
  ::-webkit-scrollbar { display: none; }
  * { scrollbar-width: none; }

  /* ── Ripple Effect — Android Material Ripple ── */
  .btn,
  .card,
  .top-bar-btn,
  .google-btn,
  .event-tab,
  .settings-item,
  .connection-card,
  .social-post-card,
  .orbit-card,
  .messenger-item {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }
  .btn::after,
  .card::after,
  .google-btn::after,
  .event-tab::after,
  .settings-item::after,
  .connection-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
      rgba(192, 193, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
  }
  .btn:active::after,
  .card:active::after,
  .google-btn:active::after,
  .event-tab:active::after,
  .settings-item:active::after,
  .connection-card:active::after {
    opacity: 1;
    transition: opacity 0.05s ease;
  }

  /* ── Active Press Feedback — Android-like Scale ── */
  .btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
  }
  .card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  .top-bar-btn:active {
    transform: scale(0.88);
    transition: transform 0.1s ease;
  }

  /* ── Top Bar — Material 3 Glass App Bar ── */
  .top-bar {
    left: 0;
    background: rgba(17, 20, 23, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: none;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.04),
      0 4px 20px rgba(0,0,0,0.3);
  }
  .top-bar-logo { display: flex; }

  /* ── Page Transitions — Smoother Android Container Transform ── */
  .page-exit {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
    transition: all 0.12s cubic-bezier(0.4, 0, 1, 1);
  }
  .page-enter {
    animation: mobilePageEnter 0.28s cubic-bezier(0, 0, 0.2, 1) both;
  }

  /* ── Main Content Area ── */
  .app-content {
    margin-left: 0;
    /* Extra bottom padding for floating pill nav + safe area */
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 40px);
  }

  /* ── Cards — Material 3 Elevation for Mobile ── */
  .card {
    background: rgba(25, 28, 31, 0.85);
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease,
                border-color 0.25s ease;
  }

  /* ── Chat View Height ── */
  .chat-view {
    height: calc(100vh - var(--top-bar-h) - var(--bottom-nav-h) - 40px);
    height: calc(100dvh - var(--top-bar-h) - var(--bottom-nav-h) - 40px);
  }

  /* ── Install Prompt Position ── */
  .install-prompt {
    bottom: calc(var(--bottom-nav-h) + 44px);
    left: 1rem;
    right: 1rem;
  }

  /* ── Auth/Sub-page Content Reset ── */
  body.auth-mode .app-content,
  body.sub-page-mode .app-content { margin-left: 0; }

  /* ====================================================================
     MOBILE BOTTOM DOCK NAVIGATION ADJUSTMENTS
     ==================================================================== */
  .bottom-nav,
  .side-nav {
    padding: 0 12px calc(12px + var(--safe-bottom));
  }

  .bottom-nav-inner,
  .side-nav-links {
    max-width: 100%;
    height: 64px;
    padding: 0 6px;
    border-radius: 32px;
  }

  .nav-tab {
    padding: 4px 2px;
    gap: 2px;
  }
  .nav-tab svg {
    width: 20px;
    height: 20px;
  }
  .nav-tab-label {
    font-size: 0.58rem;
  }
  .nav-tab-label .cosmos-letter {
    font-size: 0.64rem;
  }

  .nav-tab.active::before {
    top: 3px;
    width: 32px;
    height: 32px;
  }

  /* ====================================================================
     MOBILE PAGE-SPECIFIC ADJUSTMENTS
     Account for the floating pill nav height and improve mobile UX
     ==================================================================== */

  /* ── Connect / Swipe Page ── */
  .connect-page {
    min-height: calc(100vh - var(--top-bar-h) - var(--bottom-nav-h) - 60px);
    min-height: calc(100dvh - var(--top-bar-h) - var(--bottom-nav-h) - 60px);
    padding: 1rem 0.75rem;
  }
  .swipe-area {
    height: min(480px, calc(100vh - 300px));
    height: min(480px, calc(100dvh - 300px));
  }

  /* ── Profile Card — Touch Optimized ── */
  .profile-card {
    border-radius: 24px;
    touch-action: pan-y;
  }

  /* ── Page Container ── */
  .page {
    padding: 0.875rem;
  }
  .page-title {
    font-size: 1.5rem;
  }

  /* ── Settings Items — Larger Touch Targets ── */
  .settings-item {
    min-height: 52px;
    padding: 0.875rem 1rem;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }
  .settings-item:active {
    background: rgba(192, 193, 255, 0.06);
  }

  /* ── Toggle Switch — Larger for Mobile Touch ── */
  .toggle-track {
    min-width: 48px;
    height: 26px;
  }

  /* ── Modal / Dialog — Mobile Full Width ── */
  .modal-content {
    margin: auto 0.75rem;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    border-radius: 20px;
  }

  /* ── Toast — Position Above Floating Pill ── */
  .toast-container {
    top: calc(var(--top-bar-h) + 8px);
  }

  /* ── Messenger Items — Touch Targets ── */
  .conversation-item {
    padding: 0.875rem 1rem;
    -webkit-tap-highlight-color: transparent;
  }

  /* ── Empty State — Compact Mobile ── */
  .empty-state {
    padding: 2rem 1.25rem;
  }

  /* ── Events Grid — Single Column on Small Screens ── */
  .events-grid {
    grid-template-columns: 1fr;
  }

  /* ── Social Feed — Edge-to-Edge Cards ── */
  .social-post-card {
    border-radius: 16px;
    margin-left: -0.125rem;
    margin-right: -0.125rem;
  }

  /* ── Auth Page — Better Mobile Spacing ── */
  .auth-page {
    padding: 1.5rem 1rem;
  }
  .auth-card {
    padding: 1.5rem;
  }
}

/* ── Mobile Keyframes ── */
@keyframes mobilePageEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes navGlowIn {
  from { transform: translateX(-50%) scale(0); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(248,113,113,0); }
}

/* ============================================================
   EVENTS (ORGANIZE) PAGE OVERHAUL (WIZARD & TIMELINE & LAYOUT)
   ============================================================ */

/* ── Page Header & Layout ── */
.events-page {
  padding-bottom: 3rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ── Events Tabs ── */
.events-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none; /* Firefox */
}

.events-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.event-tab {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  white-space: nowrap;
}

.event-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: translateY(-1px);
}

.event-tab.active {
  background: var(--purple);
  color: #ffffff;
  border-color: var(--purple);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

/* ── Sections ── */
.your-events-section,
.explore-events-section {
  margin-bottom: 3rem;
}

.your-events-title,
.upcoming-events-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

/* ── Empty States ── */
.your-events-empty-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.your-events-empty-card:hover {
  border-color: rgba(167, 139, 250, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.your-events-empty-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(96, 165, 250, 0.04) 100%);
  border: 1px solid rgba(167, 139, 250, 0.15);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.05);
}

.your-events-empty-info h4 {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.your-events-empty-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.empty-state {
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.empty-state:hover {
  border-color: rgba(167, 139, 250, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(96, 165, 250, 0.04) 100%);
  border: 1px solid rgba(167, 139, 250, 0.15);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.05);
}

.empty-state-title {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .page-header .btn {
    width: 100%;
    justify-content: center;
  }
  .your-events-empty-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

/* ── Timeline View ── */
.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

.timeline-day-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-day-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 132px; /* Align with the cards on grid layout (100px + 32px) */
}

.timeline-day-events {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}



/* ── Wizard Form Indicator & Steps ── */
.form-steps-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0 1rem 0;
  border-bottom: 1px solid var(--border);
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.step-indicator-item.active {
  color: var(--purple-l);
}

.step-indicator-item.completed {
  color: var(--green);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  transition: all 0.3s var(--ease);
  background: transparent;
}

.step-indicator-item.active .step-num {
  border-color: var(--purple);
  background: rgba(167, 139, 250, 0.15);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.step-indicator-item.completed .step-num {
  border-color: var(--green);
  background: rgba(52, 211, 153, 0.15);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.75rem;
  position: relative;
  border-radius: 99px;
}

.step-indicator-item.completed + .step-line {
  background: var(--green);
}

/* ── Wizard Step Panes Transitions ── */
.form-step-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.form-step-pane.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

.form-step-pane.active {
  animation: paneEnter 0.35s var(--ease-out) both;
}

@keyframes paneEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Timeline Grid & Layout (Desktop) ── */
.timeline-event-row {
  display: grid;
  grid-template-columns: 100px 32px 1fr;
  align-items: stretch;
  margin-bottom: 0.5rem;
  position: relative;
}

.timeline-time-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: 3.125rem;
  text-align: right;
}

.timeline-time-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.timeline-timezone-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.timeline-node-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-node-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--border) 0%, rgba(255,255,255,0.02) 100%);
  position: absolute;
  top: 0;
  bottom: -0.5rem;
}

/* Connect vertical lines between rows nicely */
.timeline-event-row:last-child .timeline-node-line {
  height: 3.75rem;
  flex: none;
}

.timeline-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px var(--purple);
  position: absolute;
  top: 3.45rem;
  z-index: 2;
  transition: transform 0.25s var(--ease-spring), background-color 0.25s;
}

/* Hover accent animation on dot when card is hovered */
.timeline-event-row:hover .timeline-node-dot {
  transform: scale(1.4);
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.timeline-card-col {
  padding-left: 0.5rem;
}

/* Ensure timeline events have clean margin-bottom inside list */
.timeline-day-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .timeline-day-header {
    padding-left: 0;
  }
  .timeline-event-row {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }
  .timeline-time-col,
  .timeline-node-col {
    display: none !important;
  }
  .timeline-card-col {
    padding-left: 0;
  }
}

/* ── Default Cover Themes Selector ── */
.default-covers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.default-cover-option {
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.default-cover-option:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}

.default-cover-option.active {
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

/* ============================================================
   PREMIUM ORGANIZE DASHBOARD AND ANDROID MODAL REDESIGN
   ============================================================ */

/* Dashboard Layout Grid */
.organize-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .organize-dashboard-grid {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }
}

/* Premium Dashboard Card Panels */
.organize-card {
  background: rgba(22, 24, 39, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s var(--ease);
}

.organize-card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 20px 48px rgba(167, 139, 250, 0.06);
}

.organize-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.125rem;
}

.organize-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.organize-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Adjust original inner containers to fit inside cards */
.organize-card .your-events-container,
.organize-card .events-timeline {
  margin-top: 0;
  margin-bottom: 0;
}

/* Android-Style Bottom Sheet and Centered Dialog Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 17, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: flex-end; /* Slides up like a bottom sheet on mobile */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay .modal-card {
  width: 100%;
  max-height: 90vh;
  background: #181926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0; /* Bottom sheet top rounded corners */
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.94, 0.6, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

@media (min-width: 769px) {
  .modal-overlay {
    align-items: center; /* Center modal on desktop screen sizes */
  }
  
  .modal-overlay .modal-card {
    max-width: 520px;
    max-height: 85vh;
    border-radius: 24px; /* Fully rounded card corners on desktop */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  }
  
  .modal-overlay.active .modal-card {
    transform: scale(1);
    opacity: 1;
  }
}


/* ============================================================
   PRODUCTION-GRADE OVERHAUL — PREMIUM VISUAL ENHANCEMENTS
   All feature pages: Connect, Social, Messenger, Orbits,
   Profile, Settings, Notifications, Search
   ============================================================ */

/* ===================== GLOBAL PAGE POLISH ===================== */

/* Gradient accent line under page headers */
.page-header {
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 99px;
}

/* Page title subtle text shadow */
.page-title {
  text-shadow: 0 2px 16px rgba(167, 139, 250, 0.08);
}

/* Section entrance animations */
.page > .anim-fade-up,
.page > div[class*="section"],
.page > div[class*="card"] {
  animation: fadeInUp 0.5s var(--ease) both;
}

/* Richer card glass effect */
.card-glass,
.post-card,
.orbit-card,
.conversation-item,
.notif-item {
  position: relative;
  overflow: hidden;
}

/* Subtle top shine on cards */
.post-card::before,
.orbit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(167,139,250,0.2) 50%, transparent 100%);
  z-index: 1;
}

/* Premium loading states */
.loading-spinner {
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.3));
}

/* Enhanced empty state */
.empty-state {
  position: relative;
}
.empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(167,139,250,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.empty-state-icon {
  position: relative;
  z-index: 1;
}

/* ===================== CONNECT PAGE — PREMIUM DECK ===================== */

/* Stacked deck illusion — shadow cards behind */
.swipe-area::before,
.swipe-area::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
  transition: all 0.4s var(--ease);
}
.swipe-area::before {
  bottom: -6px;
  width: 92%;
  height: 100%;
  background: rgba(18, 22, 38, 0.35);
  z-index: -1;
}
.swipe-area::after {
  bottom: -12px;
  width: 84%;
  height: 100%;
  background: rgba(18, 22, 38, 0.2);
  z-index: -2;
}

/* Card entrance animation */
.profile-card {
  animation: cardEntrance 0.45s var(--ease-spring) both;
}
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Connect page counter chip */
.connect-counter {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.15);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Swipe button active feedback */
.swipe-btn:active {
  transform: scale(0.9) !important;
}

/* Better profile card gradient bg */
.profile-card-bg {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.14) 0%, rgba(96, 165, 250, 0.06) 40%, transparent 100%);
}

/* Card match score glow */
.profile-card-match {
  animation: matchGlow 3s ease-in-out infinite alternate;
}
@keyframes matchGlow {
  0% { box-shadow: 0 2px 10px rgba(52,211,153,0.1); }
  100% { box-shadow: 0 2px 20px rgba(52,211,153,0.25); }
}

/* ===================== SOCIAL PAGE — ENGAGEMENT POLISH ===================== */

/* Post card hover lift */
.post-card {
  transition: all 0.3s var(--ease);
}
.post-card:hover {
  border-color: rgba(167, 139, 250, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* Like animation */
.post-action.liked svg {
  animation: heartBurst 0.4s var(--ease-spring);
}
@keyframes heartBurst {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Post action hover effects */
.post-action {
  border-radius: 8px;
  padding: 0.35rem 0.625rem;
  transition: all 0.2s var(--ease);
}
.post-action:hover {
  background: rgba(167, 139, 250, 0.08);
}
.post-action.liked:hover {
  background: rgba(244, 114, 182, 0.1);
}

/* Post image aspect ratio container */
.post-image-wrap {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.post-image-wrap:hover {
  transform: scale(1.005);
}
.post-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,8,17,0.3) 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* Post author name with subtle weight */
.post-author-name {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Create Post button glow */
.social-page .btn-primary {
  position: relative;
}

/* ===================== MESSENGER — CONVERSATION POLISH ===================== */

/* Conversation item premium hover */
.conversation-item {
  border-radius: 12px;
  margin: 0 0.5rem;
  padding: 0.875rem;
  transition: all 0.25s var(--ease);
  border-bottom: none;
  position: relative;
}
.conversation-item + .conversation-item {
  border-top: 1px solid rgba(255,255,255,0.03);
}
.conversation-item:hover {
  background: rgba(167, 139, 250, 0.04);
  border-color: transparent;
}
.conversation-item:active {
  transform: scale(0.99);
}

/* Unread conversation emphasis */
.conversation-item:has(.conversation-unread) {
  background: rgba(167, 139, 250, 0.03);
}
.conversation-item:has(.conversation-unread) .conversation-name {
  color: var(--text-primary);
  font-weight: 700;
}
.conversation-item:has(.conversation-unread) .conversation-preview {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Conversation avatar glow for unread */
.conversation-unread {
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

/* Chat header glass effect */
.chat-header {
  background: rgba(6, 8, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Chat bubble entrance */
.chat-bubble {
  position: relative;
}
.chat-bubble-sent {
  box-shadow: 0 2px 12px rgba(167, 139, 250, 0.15);
}
.chat-bubble-received {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Chat send button pulse */
.chat-send-btn {
  position: relative;
}
.chat-send-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s;
}
.chat-send-btn:hover::before {
  opacity: 0.3;
  animation: sendPulse 1.5s ease-in-out infinite;
}
@keyframes sendPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.2); opacity: 0.35; }
}

/* Date separator styling */
.chat-date-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chat-date-separator::before,
.chat-date-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Message grouping — tighter spacing for consecutive */
.chat-bubble-group {
  margin-bottom: 0.15rem;
}
.chat-bubble-group:last-child {
  margin-bottom: 0.625rem;
}

/* ===================== ORBITS — COMMUNITY GLOW ===================== */

/* Orbit card gradient accent on hover */
.orbit-card {
  position: relative;
  overflow: hidden;
}
.orbit-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s var(--ease);
  border-radius: 0 4px 4px 0;
}
.orbit-card:hover::after {
  background: var(--gradient-primary);
}

/* Orbit icon animation */
.orbit-icon {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
}
.orbit-card:hover .orbit-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.2);
}

/* Orbit detail hero animated gradient */
.orbit-detail-hero {
  position: relative;
  overflow: hidden;
}
.orbit-detail-hero-bg {
  animation: heroGradientShift 8s ease-in-out infinite alternate;
}
@keyframes heroGradientShift {
  0% { opacity: 0.1; transform: translateX(-5%); }
  100% { opacity: 0.18; transform: translateX(5%); }
}

/* Orbit tab switch transition */
.orbit-tab-content {
  animation: tabContentEnter 0.3s var(--ease) both;
}
@keyframes tabContentEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Orbit member item polish */
.orbit-member-item {
  transition: all 0.25s var(--ease);
}
.orbit-member-item:hover {
  transform: translateX(4px);
}

/* Orbit feed compose focus state */
.orbit-feed-compose:focus-within {
  border-color: rgba(167, 139, 250, 0.2);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.06);
}

/* ===================== PROFILE — PREMIUM IDENTITY ===================== */

/* Animated gradient ring around avatar */
.profile-avatar-wrap .avatar {
  position: relative;
  z-index: 1;
}
.profile-avatar-wrap {
  position: relative;
}
.profile-avatar-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--blue), var(--pink), var(--purple));
  z-index: 0;
  opacity: 0.5;
  filter: blur(6px);
  animation: avatarRingRotate 6s linear infinite;
}
@keyframes avatarRingRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Profile hero enhanced gradient */
.profile-hero {
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(96,165,250,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Dashboard card glass effect */
.dashboard-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease);
}
.dashboard-card:hover {
  border-color: rgba(167, 139, 250, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.dashboard-card:hover::before {
  opacity: 1;
}

/* Profile stat animated value */
.profile-stat-num {
  transition: transform 0.3s var(--ease-spring);
}
.profile-stat:hover .profile-stat-num {
  transform: scale(1.08);
}

/* Profile completion banner enhanced */
.profile-complete-banner {
  position: relative;
  overflow: hidden;
  animation: bannerPulse 4s ease-in-out infinite alternate;
}
@keyframes bannerPulse {
  0% { border-color: rgba(167,139,250,0.2); }
  100% { border-color: rgba(167,139,250,0.4); }
}

/* Profile menu item premium hover */
.profile-menu-item {
  border-radius: 12px;
  padding: 0.875rem 0.75rem;
  margin: 0 -0.25rem;
}
.profile-menu-item:hover {
  background: rgba(167, 139, 250, 0.04);
}
.profile-menu-item:hover .profile-menu-icon {
  transform: scale(1.05);
  background: rgba(167, 139, 250, 0.12);
}
.profile-menu-icon {
  transition: all 0.2s var(--ease);
}

/* Profile section title with icon */
.profile-section-title {
  font-family: var(--font-display);
  position: relative;
  padding-left: 0;
}

/* ===================== NOTIFICATIONS — VISUAL HIERARCHY ===================== */

/* Notification item premium styling */
.notif-item {
  border-radius: 14px;
  padding: 1rem;
  margin: 0 0;
  transition: all 0.25s var(--ease);
  border-bottom: none;
  border: 1px solid transparent;
}
.notif-item + .notif-item {
  margin-top: 0.375rem;
}
.notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

/* Unread notification emphasis */
.notif-item.unread {
  background: rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.1);
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
}
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gradient-primary);
  border-radius: 0 4px 4px 0;
}

/* Notification dot pulse */
.notif-dot {
  animation: notifDotPulse 2s ease-in-out infinite;
}
@keyframes notifDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167,139,250,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(167,139,250,0); }
}

/* Notification icon enhanced */
.notif-icon {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s var(--ease);
}
.notif-item:hover .notif-icon {
  transform: scale(1.05);
}

/* Notification text styling */
.notif-text strong {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Mark all read button */
#mark-all-read {
  border: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(167, 139, 250, 0.06);
  color: var(--purple-l);
  transition: all 0.2s var(--ease);
}
#mark-all-read:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
}

/* ===================== SEARCH PAGE — RESULTS POLISH ===================== */

/* Search page layout */
.search-page {
  padding: 0.75rem 1rem;
}

/* Filter pills premium styling */
.filter-pill {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}
.filter-pill:hover:not(.active) {
  border-color: var(--border-hover);
  color: var(--text-secondary);
  transform: translateY(-1px);
}
.filter-pill.active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3);
}

/* Search result cards */
.search-results-grid .card {
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.search-results-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.15), transparent);
}
.search-results-grid .card:hover {
  border-color: rgba(167, 139, 250, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Search input focus enhancement */
.search-page .search-input:focus {
  box-shadow: 0 0 0 3px rgba(167,139,250,0.12), 0 4px 16px rgba(0,0,0,0.2);
}

/* ===================== SETTINGS — CLEANUP & POLISH ===================== */

/* Settings section fade-in */
.settings-section {
  animation: fadeInUp 0.4s var(--ease) both;
}

/* Settings card enhanced glass */
.settings-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Settings item hover enhanced */
.settings-item:hover {
  background: rgba(167, 139, 250, 0.04);
}
.settings-item:hover .settings-item-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.3));
}
.settings-item-icon {
  transition: all 0.2s var(--ease);
}

/* Dashboard tile enhanced */
.dashboard-tile {
  position: relative;
  overflow: hidden;
}
.dashboard-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s var(--ease);
}
.dashboard-tile:hover::before {
  background: var(--gradient-primary);
}

/* Toggle switch enhanced */
.switch input:checked + .slider {
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

/* Danger zone enhanced */
.settings-item-danger:hover {
  background: rgba(248, 113, 113, 0.06) !important;
}

/* ===================== AUTH PAGE — PREMIUM LOGIN ===================== */

/* Auth card glass polish */
.auth-card {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.25), transparent);
}

/* Google button hover glow */
.google-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* ===================== TOAST ENHANCED ===================== */

.toast {
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.toast-success {
  border-left: 3px solid var(--green);
}
.toast-error {
  border-left: 3px solid var(--red);
}
.toast-info {
  border-left: 3px solid var(--blue);
}

/* ===================== IMAGE LIGHTBOX ===================== */

.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: fadeIn 0.2s var(--ease);
}
.image-lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: scaleIn 0.3s var(--ease-spring);
}
.image-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-size: 1.25rem;
}
.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ===================== MICRO-ANIMATION UTILITIES ===================== */

/* Subtle float animation for important elements */
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Gradient text shimmer for premium elements */
.gradient-text-shimmer {
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--pink), var(--purple));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 4s linear infinite;
}
@keyframes gradientShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Ripple effect for interactive buttons */
.btn-primary:active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.15);
  animation: btnRipple 0.4s ease-out;
}
@keyframes btnRipple {
  from { opacity: 1; transform: scale(0.8); }
  to { opacity: 0; transform: scale(1.2); }
}

/* ===================== RESPONSIVE POLISH ===================== */

@media (max-width: 768px) {
  /* Tighter mobile page padding */
  .page {
    padding: 0.75rem;
  }

  /* Connect page mobile spacing */
  .connect-page {
    padding: 0.75rem 0.5rem;
    min-height: calc(100vh - var(--top-bar-h) - var(--bottom-nav-h) - 2rem);
  }

  /* Orbits mobile card */
  .orbit-card {
    border-radius: 14px;
    padding: 1rem;
  }

  /* Profile mobile hero */
  .profile-hero {
    border-radius: 18px;
    padding: 1.25rem 0.75rem;
  }

  /* Notification mobile spacing */
  .notif-item {
    padding: 0.875rem 0.75rem;
    border-radius: 12px;
  }

  /* Search results single column */
  .search-results-grid {
    grid-template-columns: 1fr !important;
  }

  /* Filter pills hide scrollbar */
  .filter-pills-wrap::-webkit-scrollbar {
    display: none;
  }

  /* Chat view full height mobile */
  .chat-view {
    position: relative;
  }

  /* Settings dashboard grid 2 columns on mobile */
  .settings-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hide stacked deck on mobile to save performance */
  .swipe-area::before,
  .swipe-area::after {
    display: none;
  }
}

@media (min-width: 769px) {
  /* Desktop: larger swipe area */
  .swipe-area {
    height: min(580px, calc(100vh - 220px));
  }

  /* Better chat layout on desktop */
  .chat-messages {
    padding: 1.5rem 2rem;
  }

  /* Two-column search results on tablet */
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  /* Three-column search results on desktop */
  .search-results-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Better profile dashboard layout */
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================== EVENT DETAILS & PARTICIPATION MODAL ===================== */
.event-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-host-admin-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 16px;
}

.event-host-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.event-host-admin-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-registrant-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(167, 139, 250, 0.2);
  color: var(--purple-light);
}

.event-registrants-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.event-registrant-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.event-registrant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.event-registrant-info {
  flex: 1;
  min-width: 0;
}

.event-registrant-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-registrant-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-participate-form {
  margin-top: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-participate-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.event-participate-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
}

.event-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-status-pill.hosting {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.event-status-pill.joined {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Event Host Actions */
.event-host-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.btn-event-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-event-edit {
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple-l);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.btn-event-edit:hover {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-1px);
}
.btn-event-edit:active {
  transform: translateY(0);
}

.btn-event-delete {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.btn-event-delete:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  transform: translateY(-1px);
}
.btn-event-delete:active {
  transform: translateY(0);
}

.event-confirm-dialog {
  max-width: 380px !important;
  text-align: center;
  padding: 1.75rem 1.5rem !important;
  border-radius: 20px !important;
  background: var(--bg-secondary) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

.event-confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
  color: var(--red);
}

.event-confirm-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem 0;
}

.event-confirm-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

.event-confirm-actions {
  display: flex;
  gap: 0.6rem;
}

.event-confirm-actions .btn {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
}

/* ============================================================
   COSMIC EDIT PROFILE — PREMIUM COSMOS VIBE
   ============================================================ */

.cosmic-edit-page {
  position: relative;
  min-height: 100%;
  padding-bottom: calc(var(--bottom-nav-h) + 2rem);
  overflow-x: hidden;
}

/* Cosmic Nebula Glows in Background */
.cosmic-nebula-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 25%, rgba(96, 165, 250, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.cosmic-edit-container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

/* Top Cosmic Badge */
.cosmic-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-l);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.15);
  margin-bottom: 0.85rem;
}

.cosmic-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  animation: cosmicPulse 2s infinite ease-in-out;
}

@keyframes cosmicPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ── Live Hologram Card Preview ── */
.cosmic-preview-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 10px 30px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 25px -5px rgba(124, 58, 237, 0.15);
  margin-bottom: 1.75rem;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.cosmic-preview-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cosmic-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cosmic-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cosmic-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: cosmicPulse 1.8s infinite;
}

.cosmic-preview-content {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.cosmic-preview-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 3px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 50%, var(--pink) 100%);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.35);
}

.cosmic-preview-avatar img,
.cosmic-preview-avatar .avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--purple-l);
}

.cosmic-preview-details {
  flex: 1;
  min-width: 0;
}

.cosmic-preview-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cosmic-preview-headline {
  font-size: 0.84rem;
  color: var(--purple-l);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cosmic-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.cosmic-meta-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Avatar Forge Orb ── */
.cosmic-avatar-forge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem 0 2rem 0;
  position: relative;
}

.cosmic-avatar-ring {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #f472b6 100%);
  box-shadow: 
    0 0 24px rgba(167, 139, 250, 0.35),
    0 0 50px rgba(96, 165, 250, 0.15);
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
}

.cosmic-avatar-ring:hover {
  transform: scale(1.04);
  box-shadow: 
    0 0 32px rgba(167, 139, 250, 0.5),
    0 0 60px rgba(96, 165, 250, 0.25);
}

.cosmic-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cosmic-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cosmic-avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--purple-l);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  gap: 0.2rem;
}

.cosmic-avatar-placeholder svg {
  color: var(--purple);
}

.cosmic-avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}

.cosmic-avatar-ring:hover .cosmic-avatar-edit-badge {
  transform: scale(1.15);
}

.cosmic-avatar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

/* ── Cosmic Form Sections & Cards ── */
.cosmic-section-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s var(--ease);
}

.cosmic-section-card:hover {
  border-color: rgba(167, 139, 250, 0.2);
}

.cosmic-section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.cosmic-section-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  line-height: 1.4;
}

/* ── Cosmic Persona Chips ── */
.cosmic-persona-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cosmic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-spring);
  user-select: none;
}

.cosmic-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.cosmic-chip.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(96, 165, 250, 0.3) 100%);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
  box-shadow: 
    0 0 16px rgba(167, 139, 250, 0.35),
    inset 0 0 12px rgba(167, 139, 250, 0.2);
  transform: translateY(-1px) scale(1.02);
}

/* ── Cosmic Input Wrap & Custom Fields ── */
.cosmic-field-group {
  margin-bottom: 1.15rem;
}

.cosmic-field-group:last-child {
  margin-bottom: 0;
}

.cosmic-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.cosmic-field-label .required-star {
  color: var(--purple);
}

.cosmic-char-counter {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cosmic-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.cosmic-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--purple-l);
  opacity: 0.7;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, color 0.2s;
}

.cosmic-input {
  width: 100%;
  padding: 0.78rem 1rem 0.78rem 2.85rem;
  background: rgba(12, 16, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.cosmic-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.cosmic-input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.cosmic-input:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(12, 16, 32, 0.95);
  box-shadow: 
    0 0 0 3px rgba(167, 139, 250, 0.15),
    0 0 20px rgba(167, 139, 250, 0.25);
}

.cosmic-input:focus + .cosmic-input-icon,
.cosmic-input-box:focus-within .cosmic-input-icon {
  opacity: 1;
  color: var(--purple);
}

.cosmic-textarea {
  min-height: 110px;
  resize: vertical;
  padding-top: 0.85rem;
}

/* ── LinkedIn Trust Node ── */
.cosmic-linkedin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(10, 102, 194, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cosmic-linkedin-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.cosmic-linkedin-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0a66c2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
  flex-shrink: 0;
}

.cosmic-linkedin-icon.connected {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.cosmic-linkedin-info h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.cosmic-linkedin-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

/* ── Save CTA Button ── */
.cosmic-save-wrap {
  position: sticky;
  bottom: calc(var(--bottom-nav-h) + 0.5rem);
  z-index: 10;
  padding: 0.75rem 0;
  background: linear-gradient(to top, var(--bg-primary) 70%, transparent 100%);
}

.btn-cosmic-save {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 
    0 6px 25px rgba(124, 58, 237, 0.45),
    0 0 15px rgba(96, 165, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s var(--ease-spring);
}

.btn-cosmic-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 30px rgba(124, 58, 237, 0.6),
    0 0 25px rgba(96, 165, 250, 0.45);
}

.btn-cosmic-save:active:not(:disabled) {
  transform: translateY(0);
}

.btn-cosmic-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cosmic-save-sparkle {
  animation: cosmicRotate 6s infinite linear;
}

@keyframes cosmicRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




