/* --- Unified Header & Navigation --- */
.modern-header {
  background: linear-gradient(90deg, #5dff89 0%, #66e6ff 100%);
  box-shadow: 0 4px 24px #0002;
  border-radius: 0 0 32px 32px;
  margin-bottom: 0;
}
.flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px 18px 40px;
}
.brand-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #232a3d;
  margin-left: 8px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-link {
  font-size: 1.08em;
  color: #232a3d;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-link.active, .nav-link:hover {
  background: #5dff89;
  color: #232a3d;
  font-weight: 700;
}
.beta {
  background: #232a3d;
  color: #5dff89;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.95em;
  margin-left: 12px;
}

/* --- Unified Card & Section Styles --- */
.modern-panel, .auth-form, .profile-card, .profile-bio-card, .profile-social-card, .profile-theme-card, .profile-share-card, .profile-analytics-card, .profile-activity-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0002;
  padding: 24px 20px;
  margin-bottom: 0;
}
.auth-title, .hero-title, h1, h2 {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: #232a3d;
}
.auth-input, .profile-edit-input {
  border: 1.5px solid #66e6ff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1em;
  margin-top: 6px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}
.auth-form button, .btn, .cta-row .btn {
  font-size: 1.08em;
  border-radius: 8px;
  padding: 10px 24px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px #5dff8922;
  transition: background 0.2s, color 0.2s;
}
.btn.primary, .btn.pill.primary {
  background: #5dff89;
  color: #232a3d;
  font-weight: 700;
}
.btn.ghost, .btn.pill.ghost {
  background: #fff;
  color: #232a3d;
  border: 1.5px solid #66e6ff;
}
.btn.subtle, .btn.pill.subtle {
  background: #e6eaf3;
  color: #232a3d;
}
.btn:hover, .btn:focus {
  background: #66e6ff;
  color: #232a3d;
}

/* --- Smooth Page Transition --- */
body.fade-out {
  opacity: 0;
  transition: opacity 0.25s;
}
/* --- Drastically Improved Profile Page Layout --- */
.profile-main-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
}
.profile-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: linear-gradient(90deg, #5dff89 0%, #66e6ff 100%);
  padding: 32px 40px 24px 40px;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px #0002;
  margin-bottom: 0;
}
.profile-header-info {
  margin-left: 32px;
}
.profile-header-info h1 {
  font-size: 2.2em;
  margin: 0;
  color: #232a3d;
}
.profile-header-info span {
  font-size: 1.1em;
  color: #232a3d99;
}
.profile-content {
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding: 32px 40px;
}
.profile-sidebar {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: linear-gradient(120deg, #181e2b 0%, #232a3d 100%);
  border-radius: 24px;
  box-shadow: 0 4px 24px #0007;
  padding: 32px 18px;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px #5dff8944;
  margin-bottom: 8px;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-details {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.profile-bio-card, .profile-social-card, .profile-theme-card, .profile-share-card, .profile-analytics-card, .profile-activity-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0002;
  padding: 24px 20px;
  margin-bottom: 0;
}
.profile-bio-card h2, .profile-social-card h2, .profile-theme-card h2, .profile-share-card h2, .profile-analytics-card h2, .profile-activity-card h2 {
  margin-top: 0;
  font-size: 1.25em;
  color: #232a3d;
}
.profile-bio {
  font-size: 1.1em;
  color: #232a3dcc;
  margin-top: 8px;
}
.profile-social-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.social-link img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s;
}
.social-link:hover img {
  transform: scale(1.15);
}
@media (max-width: 900px) {
  .profile-content {
    flex-direction: column;
    gap: 24px;
    padding: 18px 8px;
  }
  .profile-sidebar {
    flex: none;
    width: 100%;
    border-radius: 18px;
    padding: 18px 8px;
  }
  .profile-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 12px 8px;
    border-radius: 0 0 18px 18px;
  }
  .profile-header-info {
    margin-left: 0;
    margin-top: 12px;
  }
}
/* --- Accessibility & Dark Mode Polish --- */
body, input, button {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1em;
  outline: none;
}
button:focus, .theme-preset:focus, .badge:focus {
  outline: 2px solid #ffd966;
  outline-offset: 2px;
}
input:focus {
  outline: 2px solid #66e6ff;
  outline-offset: 2px;
}
@media (prefers-color-scheme: dark) {
  body {
    background: #10131b;
    color: #e6eaf3;
  }
  .profile-card, .profile-mood, .profile-history, .profile-activity, .profile-analytics, .profile-share, .profile-theme {
    background: linear-gradient(120deg, #181e2b 0%, #232a3d 100%);
    color: #e6eaf3;
  }
  input, button {
    background: #181e2b;
    color: #ffd966;
  }
}
/* --- Theme Presets & Customizer --- */
.profile-theme {
  background: linear-gradient(120deg, #181e2b 0%, #232a3d 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0007, 0 1.5px 0 #ffffff0e inset;
  padding: 24px 20px 18px 20px;
  margin-bottom: 18px;
}
.profile-theme h3 {
  margin-top: 0;
  font-size: 1.18em;
  color: #5dff89;
  letter-spacing: 0.5px;
}
#themePresets {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.theme-preset {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  color: #232a3d;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 1.5px 0 #5dff8944 inset;
  transition: transform 0.15s, box-shadow 0.15s;
}
.theme-preset:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px #5dff8944, 0 1.5px 0 #ffd96655 inset;
}
.theme-custom-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 18px;
}
.theme-custom-row input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #232a3d;
  cursor: pointer;
}
/* --- Profile Share (URL & QR) --- */
.profile-share {
  background: linear-gradient(120deg, #181e2b 0%, #232a3d 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0007, 0 1.5px 0 #ffffff0e inset;
  padding: 24px 20px 18px 20px;
  margin-bottom: 18px;
}
.profile-share h3 {
  margin-top: 0;
  font-size: 1.18em;
  color: #ff66c4;
  letter-spacing: 0.5px;
}
.profile-url-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
#profileUrl {
  flex: 1;
  font-size: 1em;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ffd96655;
  background: #181e2b;
  color: #ffd966;
  font-weight: 600;
  letter-spacing: 0.5px;
}
#qrCodeBox {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* --- Profile Analytics Charts --- */
.profile-analytics {
  background: linear-gradient(120deg, #181e2b 0%, #232a3d 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0007, 0 1.5px 0 #ffffff0e inset;
  padding: 24px 20px 18px 20px;
  margin-bottom: 18px;
}
.profile-analytics h3 {
  margin-top: 0;
  font-size: 1.18em;
  color: #66e6ff;
  letter-spacing: 0.5px;
}
.analytics-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.analytics-chart {
  background: #232a3d;
  border-radius: 12px;
  padding: 14px 18px 10px 18px;
  box-shadow: 0 1.5px 0 #66e6ff22 inset;
  min-width: 140px;
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chart-title {
  color: #b6c6e0;
  font-size: 1em;
  margin-bottom: 6px;
  font-weight: 600;
}
.analytics-chart svg {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 36px;
}
/* --- Friend Activity Feed --- */
.profile-activity {
  background: linear-gradient(120deg, #181e2b 0%, #232a3d 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0007, 0 1.5px 0 #ffffff0e inset;
  padding: 24px 20px 18px 20px;
  margin-bottom: 18px;
}
.profile-activity h3 {
  margin-top: 0;
  font-size: 1.18em;
  color: #ffd966;
  letter-spacing: 0.5px;
}
#friendActivity {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #232a3d;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 1.5px 0 #ffd96622 inset;
  transition: background 0.18s;
}
.activity-row:hover {
  background: #2e3650;
}
.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 2px #ffd96655;
  background: #444;
  margin-right: 4px;
  transition: box-shadow 0.18s;
}
.activity-row:hover .activity-avatar {
  box-shadow: 0 0 0 4px #ffd96699;
}
.activity-info {
  flex: 1;
  font-size: 1em;
}
.activity-time {
  color: #b6c6e0;
  font-size: 0.98em;
  min-width: 48px;
  text-align: right;
}
/* --- Animated Badges (Achievements) --- */
.profile-badges {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd966 0%, #ff66c4 100%);
  color: #222;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 2px 12px #ffd96644, 0 1.5px 0 #ff66c433 inset;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.badge .badge-icon {
  font-size: 1.2em;
  filter: drop-shadow(0 0 6px #ffd96688);
}
.badge.animated-badge:hover {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 4px 24px #ff66c488, 0 1.5px 0 #ffd96655 inset;
  z-index: 2;
}
.badge.animated-badge::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%) scale(0.95);
  background: #232a3d;
  color: #ffd966;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.98em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 12px #0008;
  transition: opacity 0.18s, transform 0.18s;
  font-weight: 500;
}
.badge.animated-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1.04);
}
/* --- Dynamic Banner Media (video/image) --- */
#profileBanner img, #profileBanner video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.4s;
}

/* --- Live Mood Particles (Aura) --- */
.avatar-clip {
  position: relative;
  z-index: 2;
}
.mood-particle {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  background: radial-gradient(circle, var(--mood-color, #00f2ff) 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0.7;
  transform: translate(-50%, -50%) scale(1);
  animation: mood-particle-float 2.5s linear infinite;
  animation-delay: calc(var(--i) * 0.18s);
  pointer-events: none;
}
@keyframes mood-particle-float {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.7; }
  60% { opacity: 1; }
  100% { transform: translate(-50%, -90px) scale(1.2) rotate(360deg); opacity: 0; }
}
/* === Futuristic Profile Banner & Avatar === */
.profile-banner-section {
  width: 100%;
  margin-bottom: 0px;
}
.profile-banner {
  width: 100%;
  min-height: 120px;
  max-height: 220px;
  border-radius: 22px 22px 12px 12px;
  background: linear-gradient(120deg, #232a3d 0%, #181f2e 100%);
  box-shadow: 0 8px 48px #000a, 0 1.5px 0 #ffffff08 inset;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.profile-banner video, .profile-banner img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.banner-upload-btn {
  position: relative;
  z-index: 2;
  margin: 18px 18px 12px 0;
  background: rgba(24,28,42,0.7);
  color: #cfe7ff;
  border: 1.5px solid #223046;
  font-size: 1em;
  box-shadow: 0 2px 8px #0002;
}
.banner-upload-btn:hover {
  background: #232a3a;
  color: #fff;
}
/* === Advanced Profile Features === */
.aura-animated {
  position: relative;
  overflow: visible;
}
.aura-animated::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, var(--brand-1) 0%, var(--brand-2) 80%, transparent 100%);
  filter: blur(18px);
  opacity: 0.55;
  z-index: 0;
  animation: auraPulse 3.5s infinite alternate;
}
@keyframes auraPulse {
  0% { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.08); }
}

.profile-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.profile-badges .badge {
  background: linear-gradient(90deg, #ffd966, #ff66c4);
  color: #232a3d;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.98em;
  box-shadow: 0 2px 8px #ffd96644;
  border: 1.5px solid #ff66c4;
  letter-spacing: 0.2px;
}

.profile-customize {
  background: linear-gradient(120deg, #181c2a 0%, #232a3a 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0007, 0 1.5px 0 #ffffff0e inset;
  padding: 18px 20px 12px 20px;
  margin-bottom: 8px;
}
#themePicker {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
#themePicker .theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff2; cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  transition: border-color 0.18s, transform 0.18s;
}
#themePicker .theme-btn.selected {
  border-color: var(--brand-1);
  transform: scale(1.12);
}

.profile-streak {
  margin-top: 12px;
  font-size: 1.08em;
  color: #ffd966;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-streak .fire {
  font-size: 1.2em;
  margin-right: 2px;
}

.profile-timeline {
  background: linear-gradient(120deg, #181c2a 0%, #232a3a 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0007, 0 1.5px 0 #ffffff0e inset;
  padding: 18px 20px 12px 20px;
  margin-bottom: 8px;
}
#moodTimeline {
  min-height: 60px;
  margin-top: 8px;
}

.profile-friends {
  background: linear-gradient(120deg, #181c2a 0%, #232a3a 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0007, 0 1.5px 0 #ffffff0e inset;
  padding: 18px 20px 12px 20px;
  margin-bottom: 8px;
}
#friendsList {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
#friendsList .friend-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #232a3a; display: flex; align-items: center; justify-content: center;
  font-size: 1.2em; color: #fff; font-weight: 700; box-shadow: 0 2px 8px #0002;
  border: 2px solid #fff2;
  transition: border-color 0.18s, transform 0.18s;
}
#friendsList .friend-avatar:hover {
  border-color: var(--brand-1);
  transform: scale(1.08);
}

.qr-modal {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(10, 11, 15, 0.85);
  display: flex; align-items: center; justify-content: center;
}
.qr-modal-content {
  background: #181c2a;
  border-radius: 18px;
  padding: 32px 24px 18px 24px;
  box-shadow: 0 8px 40px #000a;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.qr-modal-content .close {
  position: absolute; top: 12px; right: 18px; font-size: 2em; color: #fff; cursor: pointer; opacity: 0.7;
  transition: opacity 0.18s;
}
.qr-modal-content .close:hover {
  opacity: 1;
}
#qrCode {
  margin: 18px 0 8px 0;
}
/* === Community Page Modern Styles === */
.community-search {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.community-search input[type="text"] {
  flex: 1 1 220px;
  max-width: 340px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #223046;
  background: #10131b;
  color: #eaf6ff;
  font-size: 1.08em;
  outline: none;
  transition: border-color 0.18s;
}
.community-search input[type="text"]:focus {
  border-color: var(--brand-1);
}
.community-search .btn {
  font-size: 1em;
  padding: 10px 18px;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: center;
}

.add-post .post-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.add-post textarea {
  flex: 1 1 220px;
  min-height: 48px;
  font-size: 1.1em;
  border-radius: 10px;
  border: 1.5px solid #223046;
  background: #10131b;
  color: #eaf6ff;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.18s;
}
.add-post textarea:focus {
  border-color: var(--brand-1);
}
.emoji-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 6px;
}
.emoji-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
  filter: grayscale(0.2) brightness(0.95);
  border-radius: 8px;
  padding: 2px 4px;
}
.emoji-btn:hover, .emoji-btn.active {
  transform: scale(1.18) rotate(-6deg);
  filter: none;
  background: #232a3a;
}

@media (max-width: 700px) {
  .community-search {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .add-post .post-row {
    flex-direction: column;
    gap: 8px;
  }
  .emoji-picker {
    flex-direction: row;
    gap: 8px;
    margin-left: 0;
  }
}

/* === Profile Page Modern Styles === */
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  background: linear-gradient(120deg, #181f2e 0%, #232a3d 100%);
  border-radius: 24px;
  box-shadow: 0 8px 48px #000a, 0 1.5px 0 #ffffff08 inset;
  padding: 32px 28px;
  position: relative;
  min-height: 180px;
}
.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 4px 24px #00baff33, 0 1.5px 0 #ffffff0e inset;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8em;
  color: #fff;
  font-weight: 800;
  margin-right: 12px;
  position: relative;
  overflow: hidden;
}
.avatar-initial {
  font-size: 2.2em;
  font-weight: 700;
  color: #fff;
  opacity: 0.92;
  letter-spacing: 1px;
}
.profile-info {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#profileName {
  font-size: 2em;
  font-weight: 800;
  margin: 0;
  color: #eaf6ff;
  letter-spacing: -0.5px;
}
.profile-handle {
  color: var(--brand-2);
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 2px;
}
.profile-email {
  color: #b6c6e0;
  font-size: 1em;
  font-weight: 400;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 24px;
}
.profile-actions .btn {
  min-width: 120px;
  font-size: 1em;
}

.profile-mood, .profile-history {
  background: linear-gradient(120deg, #171c2a 0%, #232a3d 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0007, 0 1.5px 0 #ffffff0e inset;
  padding: 24px 20px 18px 20px;
}
.profile-mood h3, .profile-history h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #cfe7ff;
  font-size: 1.25em;
  font-weight: 700;
}
#moodMeter {
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .profile-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 8px;
  }
  .profile-avatar {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .profile-actions {
    flex-direction: row;
    gap: 10px;
    margin-left: 0;
    margin-top: 10px;
  }
  .profile-main {
    gap: 18px;
    margin-top: 18px;
    margin-bottom: 18px;
  }
  .profile-mood, .profile-history {
    padding: 14px 6px 10px 6px;
    border-radius: 12px;
  }
}
/* ---------- Toasts ---------- */
#np-toast-host .np-toast{
  background: linear-gradient(180deg,#141a27,#101621);
  border:1px solid #223046; color:#e9f5ff;
  padding:10px 14px; border-radius:12px;
  transform: translateY(8px); opacity:0; transition:.25s ease;
  box-shadow: 0 10px 30px #0008, inset 0 1px 0 #ffffff12;
}
#np-toast-host .np-toast.in{ transform: translateY(0); opacity:1; }
#np-toast-host .np-toast.success{ border-color:#1d3f34; color:#c7ffe7; }
#np-toast-host .np-toast.error{ border-color:#4a2222; color:#ffd0d0; }

/* ---------- Ripple ---------- */
.ripple{
  position:absolute; border-radius:50%;
  background: radial-gradient(circle at center, #ffffff55, transparent 60%);
  transform: scale(0); animation: np-ripple .6s ease-out;
  pointer-events:none;
}
@keyframes np-ripple{ to { transform: scale(1); opacity: 0; } }

/* ---------- Command Palette ---------- */
#np-cmdk{ position:fixed; inset:0; display:none; place-items:center; z-index:1500; }
#np-cmdk .npk-backdrop{ position:absolute; inset:0; backdrop-filter: blur(8px) saturate(130%); background:#0b0d13cc; }
#np-cmdk .npk-card{
  position:relative; width:min(92vw,620px); border-radius:16px; padding:12px;
  background:linear-gradient(180deg,#151829,#111725); border:1px solid #20263a;
  box-shadow: 0 20px 60px #000a, inset 0 1px 0 #ffffff10;
}
#np-cmdk input{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid #2a3348; background:#0f1522; color:#fff; outline:none;
}
#np-cmdk ul{ list-style:none; padding:8px 0 0; margin:0; max-height:40vh; overflow:auto; }
#np-cmdk li{ padding:10px 12px; border-radius:10px; cursor:pointer; }
#np-cmdk li:hover{ background:#151d2e; }

/* ---------- Skeleton ---------- */
.np-skeleton{ position:relative; background:#111726; overflow:hidden; border-radius:8px; }
.np-skeleton::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, #111726 0%, #1a2235 50%, #111726 100%);
  animation: np-shimmer 1.4s infinite; transform: translateX(-100%);
}
@keyframes np-shimmer{ to { transform: translateX(100%); } }

/* ---------- Gradient borders (apply via .g-border) ---------- */
.g-border{
  position:relative; border-radius:16px; background: #0f1422;
}
.g-border::before{
  content:""; position:absolute; inset: -1px; border-radius: inherit; z-index:-1;
  background: linear-gradient(120deg, var(--sig, #66e6ff), var(--sig-2, #a48bff));
  filter: blur(10px); opacity:.35;
}

/* ---------- Parallax tilt (apply .tilt) ---------- */
.tilt{ transform-style: preserve-3d; will-change: transform; transition: transform .2s ease; }
.tilt:hover{ transform: perspective(800px) rotateX(4deg) rotateY(-4deg); }

/* ---------- Mention autocomplete pop ---------- */
.mention-pop{
  position:absolute; display:none; max-height:200px; overflow:auto;
  background:#0f1522; border:1px solid #20263a; border-radius:10px;
  box-shadow: 0 14px 40px #000a; color:#eaeaea; z-index:1200;
}
.mention-pop .item{ padding:8px 12px; cursor:pointer; display:flex; gap:8px; align-items:center; }
.mention-pop .item:hover{ background:#151d2e; }
.mention-pop .avatar{
  width:22px; height:22px; border-radius:50%; background:#1a2132; border:1px solid #2a3348;
}

/* ---------- Notification bell ---------- */
.dot{ display:inline-block; width:8px; height:8px; background:#ff7b7b; border-radius:50%; margin-left:6px; box-shadow:0 0 10px #ff7b7b; }
.notif-panel{
  position:absolute; right:16px; top:62px; width:min(92vw,360px); display:none; z-index:1400;
  background:linear-gradient(180deg,#151829,#111725); border:1px solid #20263a; border-radius:14px; padding:10px;
  box-shadow: 0 20px 60px #000a, inset 0 1px 0 #ffffff10;
}
.notif-item{ padding:10px; border-radius:10px; }
.notif-item:hover{ background:#151d2e; }
/* === Futuristic Emotional Platform Additions === */
.hero-future {
  display:grid; grid-template-columns:1fr 1fr; gap:40px;
  align-items:center; padding:80px 0;
}
.hero-text h1 {
  font-family: 'Segoe UI Rounded', 'Nunito', 'Quicksand', ui-sans-serif, system-ui, sans-serif;
  font-size:48px; font-weight:900; letter-spacing:-1px;
  margin:0 0 12px;
}
.hero-visual { display:flex; align-items:center; justify-content:center; }
.avatar-aura {
  width:200px; height:200px; border-radius:50%; overflow:hidden;
  position:relative; display:flex; align-items:center; justify-content:center;
}
.avatar-aura::before {
  content:""; position:absolute; inset:-20px;
  border-radius:50%; background:var(--sig-color, #00baff);
  filter:blur(40px); opacity:.6; animation:pulse 4s infinite;
}
.avatar-aura.calm    { --sig-color:#00baff; }
.avatar-aura.focused { --sig-color:#9b5dff; }
.avatar-aura.inspired{ --sig-color:#ffd966; }
.avatar-aura.happy   { --sig-color:#ff66c4; }
.avatar-aura.stressed{ --sig-color:#ff4d4d; }
.avatar-aura.tired   { --sig-color:#8888ff; }
.avatar-aura.anxious { --sig-color:#ff884d; }
.avatar-aura.grateful{ --sig-color:#5dff89; }
.avatar-aura img { border-radius:50%; width:100%; z-index:1; }
@keyframes pulse {
  0%,100% { transform:scale(1); opacity:.6; }
  50% { transform:scale(1.2); opacity:.3; }
}

/* emotional signature glows */
.sig {
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  color:#fff;
  font-weight:500;
  cursor:pointer;
  transition: transform .2s ease;
  font-family: 'Segoe UI Rounded', 'Nunito', 'Quicksand', ui-sans-serif, system-ui, sans-serif;
  font-size:15px;
  border:none;
  background: #181c2a;
  box-shadow: 0 0 0 1.5px var(--sig-color, #888) inset, 0 2px 12px #00000030;
}
.sig::before {
  content:"";
  position:absolute; inset:0;
  border-radius:999px;
  background:var(--sig-color, #888);
  filter: blur(12px);
  opacity:0.5;
  z-index:-1;
  transition: opacity .3s;
}
.sig:hover { transform: scale(1.05); box-shadow:0 0 0 2.5px var(--sig-color, #888) inset, 0 4px 18px var(--sig-color, #8882); }

/* emotional color themes */
.sig.calm     { --sig-color:#00baff; }
.sig.focused  { --sig-color:#9b5dff; }
.sig.inspired { --sig-color:#ffd966; }
.sig.happy    { --sig-color:#ff66c4; }
.sig.stressed { --sig-color:#ff4d4d; }
.sig.tired    { --sig-color:#8888ff; }
.sig.anxious  { --sig-color:#ff884d; }
.sig.grateful { --sig-color:#5dff89; }

/* Micro-interactions */
.btn, .sig {
  transition: box-shadow .18s, transform .18s, background .18s;
}
.btn:hover {
  box-shadow:0 0 0 2px var(--brand-1) inset, 0 2px 12px var(--brand-2)44;
  transform:translateY(-2px) scale(1.04);
}
.card {
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow:0 4px 32px #00baff22, 0 0 0 2px #9b5dff33;
  transform:rotateY(2deg) scale(1.012);
}
/* === Theme === */
:root{
  --bg:#0a0b0f; 
  --bg-2:#0b0c12;
  --text:#f2f3f5;
  --muted:#a4a8b3;
  --line:#22252e;

  /* Brand gradient (cyan → purple) */
  --brand-1:#66e6ff; 
  --brand-2:#a48bff;

  /* Surfaces */
  --card:#11131a;
  --card-2:#0f1118;

  /* Accents */
  --glow: #66e6ff30;
}

/* Reset / base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% -10%, #0f1628 0%, var(--bg) 45%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* Layout containers */
.wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }
.stack{ display:flex; flex-direction:column; gap:16px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.grid-1{ display:grid; grid-template-columns:1fr; gap:12px; }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 56px;
    padding: 8px 0 4px 0;
  }
  .nav {
    gap: 14px;
    font-size: 1em;
    flex-wrap: wrap;
  }
  .actions {
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 18px;
    border-radius: 14px;
    gap: 18px;
  }
  .hero-left h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .lead {
    font-size: 1.05em;
  }
  .hero-right .panel {
    min-height: 120px;
    padding: 16px 8px;
    border-radius: 14px;
  }
  .pill-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px 0 6px;
  }
  .pill-card {
    padding: 14px 10px 12px 10px;
    border-radius: 14px;
  }
}

/* === Header === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  background: rgba(11, 13, 19, 0.92);
  border-bottom: 1.5px solid #181b24;
  box-shadow: 0 4px 24px #000a, 0 1.5px 0 #ffffff08 inset;
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header .wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding-top: 2px;
  padding-bottom: 2px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 1.35em;
  transition: color 0.18s;
}
.brand:hover {
  color: var(--brand-1);
}
.logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: conic-gradient(from 220deg, var(--brand-1), var(--brand-2), #6ed9ff);
  box-shadow: 0 0 24px var(--glow), 0 2px 8px #0008;
  transition: box-shadow 0.18s, transform 0.18s;
}
.brand:hover .logo {
  box-shadow: 0 0 32px var(--brand-2), 0 4px 16px #000a;
  transform: scale(1.08) rotate(-3deg);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.08em;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: color 0.18s;
}
.nav a.active, .nav a:hover {
  color: #fff;
}
.nav a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.18s, transform 0.18s;
}
.nav a.active::after, .nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.beta {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #181b24, #141821);
  color: #cfd6ff;
  border: 1px solid #202432;
  margin-left: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #0002;
}
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.status {
  color: var(--muted);
  font-size: 12px;
}

/* === Buttons === */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border:1px solid var(--line);
  background:#ffffff10; color:#fff; text-decoration:none; cursor:pointer;
  border-radius:10px;
}
.btn:hover{ background:#ffffff18; }
.btn.pill{ border-radius:999px; }
.btn.primary{
  border-color:#284b61;
  background: linear-gradient(180deg, #15222b, #101a21);
  box-shadow: 0 0 0 1px #66e6ff1f inset, 0 12px 30px #00000040;
}
.btn.primary:hover{
  background: linear-gradient(180deg, #182a36, #111f26);
}
.btn.ghost{ background:transparent; color:#d0d4ff; border-color:#263046; }
.btn.ghost:hover{ background:#141825; }
.btn.lg{ padding:12px 18px; font-weight:600; }

/* === Cards === */
.card{
  background: linear-gradient(180deg, #141722, #121620);
  border:1px solid #1d2230; border-radius:16px; padding:16px;
  box-shadow: 0 1px 0 #ffffff10 inset, 0 0 0 1px #00000066;
}
.card h2{ margin:0 0 10px; font-size:18px; }

/* === Inputs === */
label{ display:flex; flex-direction:column; gap:6px; font-size:14px; color:#d6d9e3; }
input, textarea{
  width:100%; padding:11px 13px; border:1px solid #242a3a; border-radius:12px;
  background:#0e1118; color:var(--text); outline:none;
}
input:focus, textarea:focus{ border-color:#2f6ea0; box-shadow: 0 0 0 3px #2f6ea022; }
textarea{ resize:vertical; }

/* === Home / Hero === */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  padding: 72px 0 36px;
  background: linear-gradient(120deg, #181f2e 0%, #232a3d 100%);
  border-radius: 22px;
  box-shadow: 0 8px 48px #000a, 0 1.5px 0 #ffffff08 inset;
  margin-bottom: 18px;
}
.hero-left h1 {
  margin: 0 0 18px;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: #fff;
  text-shadow: 0 2px 16px #0004;
}
.grad {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: brightness(1.2);
}
.lead {
  color: #cfd3df;
  max-width: 680px;
  font-size: 1.35em;
  margin-bottom: 18px;
}
.cta-row {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-right .panel {
  min-height: 240px;
  border-radius: 22px;
  background: radial-gradient(120% 120% at 20% 10%, #232a3d, #181f2e);
  box-shadow: 0 8px 32px #000a, 0 1.5px 0 #ffffff08 inset;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.panel-title {
  font-size: 1.18em;
  margin-bottom: 14px;
  font-weight: 700;
  color: #cfe7ff;
  opacity: .93;
}

/* Right preview panel */
.panel{
  height:260px; border-radius:18px; padding:16px;
  background: radial-gradient(120% 120% at 20% 10%, #1a2032, #0f1522);
  border:1px solid #20263a; box-shadow: inset 0 12px 30px #00000055, 0 0 0 1px #00000080;
  display:flex; align-items:center; justify-content:center;
  color:#cdd3e6;
}
.panel-title{ opacity:.9; }

@media (max-width:960px){
  .hero{ grid-template-columns:1fr; }
  .hero-left h1{ font-size:36px; }
}

/* === Pill cards bar === */
.pill-cards{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
  margin:22px 0 10px;
}

.pill-card {
  background: linear-gradient(180deg, #171a27 60%, #131826 100%);
  border: 1.5px solid #232a3d;
  border-radius: 22px;
  padding: 22px 18px 18px 18px;
  box-shadow: 0 4px 32px #00baff18, 0 1.5px 0 #ffffff0e inset, 0 2px 12px #000a;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  position: relative;
  overflow: hidden;
}
.pill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--brand-1)11, transparent 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.pill-card:hover {
  box-shadow: 0 8px 48px #66e6ff33, 0 2px 16px #a48bff22, 0 1.5px 0 #ffffff0e inset;
  border-color: var(--brand-1);
  transform: translateY(-4px) scale(1.025);
}
.pill-card:hover::before {
  opacity: 0.13;
}
.pill-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #cfe7ff;
  letter-spacing: 0.2px;
  font-weight: 700;
}
.pill-card p {
  margin: 0;
  color: #c7ccda;
  font-size: 1.08em;
}



/* Dock buttons (E / T / D) */
.dock{
  display:flex; gap:10px; justify-content:center; margin:16px 0 6px;
}
.dock-btn{
  width:44px; height:44px; border-radius:12px; border:1px solid #223046;
  background: linear-gradient(180deg,#121a28,#0f1623); color:#cfe7ff;
  box-shadow: 0 10px 28px #00000050, inset 0 1px 0 #ffffff12;
  cursor:pointer;
}
.dock-btn:hover{ filter:brightness(1.08); }

/* Lists / History / Feed */
.list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.list li{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  background:#0f121b; border:1px solid #1d2434; padding:12px; border-radius:14px;
}
.list a{ color:#cfe7ff; text-decoration:none; }
.list a:hover{ text-decoration:underline; }

.muted{ color:var(--muted); }

/* Footer */
.site-foot{ border-top:1px solid #10131b; padding:16px 0 28px; color:var(--muted); }

/* Chips (mood tags) */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chips button{
  border-radius:999px; padding:8px 12px; border:1px solid #24304a; background:#0f1626; color:#e9ecff;
  cursor:pointer; box-shadow: inset 0 1px 0 #ffffff10;
}
.chips button:hover{ background:#121c31; }
