/* ==========================================================================
   SEREINA - LIGHT MODE DESIGN SYSTEM (Light Orange Highlight System)
   Tagline: Whispers. Connections. Conversations.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Light Mode Backgrounds */
  --bg-app: #FEFAF5;
  --bg-sidebar: #FFFFFF;
  --bg-topbar: rgba(255, 255, 255, 0.96);
  --bg-dashboard: #F9F5EF;
  --bg-card: #FFFFFF;

  /* Radiant Light Orange Highlight System */
  --primary-orange: #F3621B;
  --primary-orange-hover: #D44E10;
  --primary-orange-light: #FFF2E8;
  --primary-orange-soft: #FFEDD5;
  --primary-orange-gradient: linear-gradient(135deg, #FFA048 0%, #F3621B 100%);
  --accent-gold: #F3621B;
  --online-green: #10B981;

  /* Primary Aliases */
  --primary-purple: #F3621B;
  --primary-purple-hover: #D44E10;
  --primary-purple-light: #FFF2E8;
  --primary-purple-gradient: linear-gradient(135deg, #FFA048 0%, #F3621B 100%);

  /* Text Colors */
  --text-dark: #1E1917;
  --text-body: #423B38;
  --text-muted: #8C7B74;
  --text-muted-dark: #786C66;
  --text-muted-light: #B5A9A3;
  --text-light: #FFFFFF;

  /* Borders */
  --border-light: #EDE5DA;
  --border-dark: #EDE5DA;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(60, 40, 20, 0.05);
  --shadow-card-hover: 0 10px 30px rgba(243, 98, 27, 0.14);
  --shadow-purple-glow: 0 8px 24px rgba(243, 98, 27, 0.32);
  --shadow-orange-glow: 0 8px 24px rgba(243, 98, 27, 0.32);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 5 Light Sanctuary Theme Palettes ── */
[data-theme-palette="amber"] {
  --primary-orange: #F3621B;
  --primary-orange-hover: #D44E10;
  --primary-orange-light: #FFF2E8;
  --primary-orange-soft: #FFEDD5;
  --primary-orange-gradient: linear-gradient(135deg, #FFA048 0%, #F3621B 100%);
  --accent-gold: #F3621B;
  --primary-purple: #F3621B;
  --primary-purple-hover: #D44E10;
  --primary-purple-light: #FFF2E8;
  --primary-purple-gradient: linear-gradient(135deg, #FFA048 0%, #F3621B 100%);
  --shadow-card-hover: 0 10px 30px rgba(243, 98, 27, 0.14);
  --shadow-orange-glow: 0 8px 24px rgba(243, 98, 27, 0.32);
}

[data-theme-palette="sage"] {
  --primary-orange: #15803D;
  --primary-orange-hover: #166534;
  --primary-orange-light: #F0FDF4;
  --primary-orange-soft: #DCFCE7;
  --primary-orange-gradient: linear-gradient(135deg, #4ADE80 0%, #15803D 100%);
  --accent-gold: #15803D;
  --primary-purple: #15803D;
  --primary-purple-hover: #166534;
  --primary-purple-light: #F0FDF4;
  --primary-purple-gradient: linear-gradient(135deg, #4ADE80 0%, #15803D 100%);
  --shadow-card-hover: 0 10px 30px rgba(21, 128, 61, 0.14);
  --shadow-orange-glow: 0 8px 24px rgba(21, 128, 61, 0.32);
}

[data-theme-palette="rose"] {
  --primary-orange: #E11D48;
  --primary-orange-hover: #BE123C;
  --primary-orange-light: #FFF1F2;
  --primary-orange-soft: #FFE4E6;
  --primary-orange-gradient: linear-gradient(135deg, #FB7185 0%, #E11D48 100%);
  --accent-gold: #E11D48;
  --primary-purple: #E11D48;
  --primary-purple-hover: #BE123C;
  --primary-purple-light: #FFF1F2;
  --primary-purple-gradient: linear-gradient(135deg, #FB7185 0%, #E11D48 100%);
  --shadow-card-hover: 0 10px 30px rgba(225, 29, 72, 0.14);
  --shadow-orange-glow: 0 8px 24px rgba(225, 29, 72, 0.32);
}

[data-theme-palette="azure"] {
  --primary-orange: #0284C7;
  --primary-orange-hover: #0369A1;
  --primary-orange-light: #F0F9FF;
  --primary-orange-soft: #E0F2FE;
  --primary-orange-gradient: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  --accent-gold: #0284C7;
  --primary-purple: #0284C7;
  --primary-purple-hover: #0369A1;
  --primary-purple-light: #F0F9FF;
  --primary-purple-gradient: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  --shadow-card-hover: 0 10px 30px rgba(2, 132, 199, 0.14);
  --shadow-orange-glow: 0 8px 24px rgba(2, 132, 199, 0.32);
}

[data-theme-palette="linen"] {
  --primary-orange: #D97706;
  --primary-orange-hover: #B45309;
  --primary-orange-light: #FFFBEB;
  --primary-orange-soft: #FEF3C7;
  --primary-orange-gradient: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  --accent-gold: #D97706;
  --primary-purple: #D97706;
  --primary-purple-hover: #B45309;
  --primary-purple-light: #FFFBEB;
  --primary-purple-gradient: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  --shadow-card-hover: 0 10px 30px rgba(217, 119, 6, 0.14);
  --shadow-orange-glow: 0 8px 24px rgba(217, 119, 6, 0.32);
}


html, body {
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-body);
  line-height: 1.5;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea {
  font-family: var(--font-sans);
  font-size: 15px;
}

/* ==========================================================================
   DESKTOP APP FRAME & SIDEBAR (Full Width & Natural Scroll)
   ========================================================================== */
.serein-app-frame {
  display: flex;
  min-height: 100vh;
  height: auto;
  width: 100%;
  max-width: 100vw;
  overflow: visible;
}

.serein-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1rem 1.6rem 0.75rem;
  position: relative;
  top: auto;
  height: auto;
  min-height: 100vh;
  box-sizing: border-box;
  z-index: 100;
}

.sidebar-top-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  text-decoration: none;
  padding: 0.15rem 0 0.85rem 0;
  width: 100%;
}

.sidebar-brand-logo-img {
  height: 76px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  align-self: center;
}

.sidebar-brand-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.sidebar-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(243, 98, 27, 0.3));
}

.sidebar-brand-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.sidebar-brand-tagline {
  font-size: 0.98rem;
  color: #6E5C52;
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0.85rem 0.72rem 0.65rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sidebar-nav-item:hover {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
}

.sidebar-nav-item.active {
  background: var(--primary-orange-gradient);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: var(--shadow-orange-glow);
}

.sidebar-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sidebar-nav-icon svg {
  width: 22px;
  height: 22px;
}

.sidebar-nav-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sidebar-nav-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: inherit;
  letter-spacing: -0.01em;
}

.sidebar-nav-sub {
  font-size: 0.76rem;
  color: var(--text-muted-light);
  margin-top: 1px;
}

.sidebar-nav-item.active .sidebar-nav-sub {
  color: rgba(255, 255, 255, 0.8);
}

/* Serena is Online Large Sidebar Card */
.sidebar-sara-online-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  background: linear-gradient(145deg, #FFF9F4 0%, #FFEEDD 100%);
  border: 2px solid #FDDCB8;
  border-radius: 24px;
  padding: 1.6rem 0.5rem 1.4rem 0.5rem;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 12px 32px rgba(243, 98, 27, 0.18);
  transition: all 0.22s ease;
  overflow: hidden;
}

.sidebar-sara-online-card:hover {
  box-shadow: 0 18px 46px rgba(243, 98, 27, 0.35);
  transform: translateY(-2px);
}

.sidebar-sara-online-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.sidebar-sara-online-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.sidebar-sara-online-title {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text-dark);
}

.sidebar-sara-online-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  transform: scale(1.24);
  margin: 1.65rem 0 1.5rem 0;
  filter: drop-shadow(0 16px 36px rgba(243, 98, 27, 0.35));
  transition: opacity 0.32s ease-in-out, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.sidebar-sara-online-card:hover .sidebar-sara-online-img {
  transform: scale(1.30);
}

.sidebar-sara-online-btn {
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--primary-orange-gradient);
  padding: 0.65rem 1.55rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(243, 98, 27, 0.4);
  text-align: center;
  letter-spacing: 0.01em;
  margin-top: 0.35rem;
}

.sidebar-bottom-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-privacy-card {
  background: var(--primary-orange-light);
  border: 1px solid rgba(243, 98, 27, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.sidebar-privacy-badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(243, 98, 27, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--primary-orange);
}

.sidebar-privacy-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.sidebar-privacy-link {
  font-size: 0.76rem;
  color: var(--primary-orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.sidebar-privacy-link:hover {
  color: var(--primary-orange-hover);
}

.sidebar-footer-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem;
}

.sidebar-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--online-green);
  box-shadow: 0 0 8px var(--online-green);
  flex-shrink: 0;
}

.sidebar-status-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sidebar-status-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.sidebar-status-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DESKTOP TOPBAR (Light Mode)
   ========================================================================== */
.serein-main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-app);
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.desktop-topbar {
  height: 72px;
  padding: 0 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(60, 40, 20, 0.04);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-search-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.topbar-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.topbar-search-input {
  width: 100%;
  padding: 0.7rem 1.25rem 0.7rem 2.85rem;
  background: #F5EFE8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.topbar-search-input:focus {
  border-color: var(--primary-orange);
  background: #FFF5ED;
  box-shadow: 0 0 0 3px rgba(243, 98, 27, 0.12);
}

.topbar-search-input::placeholder {
  color: var(--text-muted-light);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F5EFE8;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.btn-settings-theme {
  color: var(--primary-orange, #F3621B) !important;
  border-color: #FDDCB8 !important;
}

.btn-settings-theme .settings-gear-icon,
.btn-settings-theme svg {
  stroke: var(--primary-orange, #F3621B) !important;
  color: var(--primary-orange, #F3621B) !important;
}

.btn-settings-theme:hover {
  background: var(--primary-orange-light, #FFF3EA) !important;
  border-color: var(--primary-orange, #F3621B) !important;
  transform: scale(1.05);
}

.topbar-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #FF3B70;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.topbar-user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  background: #F5EFE8;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topbar-user-pill:hover {
  border-color: var(--primary-orange);
  background: var(--primary-orange-light);
}

.topbar-user-avatar,
.user-avatar,
.chat-avatar,
.author-avatar,
.online-user-avatar,
.profile-avatar-img,
.profile-avatar-wrap,
#haven-partner-avatar,
.haven-partner-avatar,
.whisper-avatar,
.comment-author-avatar,
.member-avatar {
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
  object-fit: cover !important;
}

.topbar-user-avatar {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--primary-orange);
}

.topbar-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.topbar-user-chevron {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO BANNER (Serena Terrace sara2.png Scenic Background - Full Serena Display)
   ========================================================================== */
.dashboard-hero-banner {
  margin: 0 2rem 1.75rem 2rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 98, 27, 0.22);
  box-shadow: 0 16px 48px rgba(60, 40, 20, 0.16);
  padding: 5.35rem 3rem 2.25rem 3rem;
  min-height: 550px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  background-image: url('../sara2.png');
  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat;
}

.dashboard-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 245, 0.94) 0%, rgba(255, 250, 245, 0.82) 36%, rgba(255, 250, 245, 0.12) 58%, rgba(255, 250, 245, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-left-content {
  z-index: 2;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  align-self: flex-start;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.hero-greeting-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-greeting-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-mobile-sara-mini {
  display: none !important;
}

.hero-greeting-title {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-greeting-highlight {
  color: var(--primary-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-greeting-sparkle {
  color: var(--primary-orange);
  filter: drop-shadow(0 0 8px rgba(243, 98, 27, 0.6));
}

.hero-subtitle-desc {
  font-size: 1.02rem;
  color: #3E2F23;
  line-height: 1.42;
  font-weight: 500;
  margin: 0;
}

.hero-login-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.85rem;
  background: var(--primary-orange-gradient, linear-gradient(135deg, #FFA048 0%, #F3621B 100%));
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-orange-glow, 0 6px 20px rgba(243, 98, 27, 0.32));
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.hero-login-start-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(243, 98, 27, 0.45);
}

.hero-login-start-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-continue-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--primary-orange, #F3621B);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(243, 98, 27, 0.25);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-continue-view-all:hover {
  background: #FFF3EA;
  border-color: var(--primary-orange, #F3621B);
  color: var(--primary-orange, #F3621B);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243, 98, 27, 0.15);
}

.hero-continue-view-all:active {
  transform: translateY(0);
}

.btn-hero-sara-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  background: var(--primary-orange-gradient);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-orange-glow);
  transition: all var(--transition-fast);
}

.btn-hero-sara-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(243, 98, 27, 0.5);
}

/* Floating Action on Terrace Background */
.hero-sara-action-col {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.hero-sara-terrace-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.45rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(243, 98, 27, 0.35);
  border-radius: 9999px;
  color: var(--primary-orange);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-sara-terrace-btn:hover {
  background: var(--primary-orange-gradient);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-orange-glow);
}

.hero-sara-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.hero-sara-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-sara-name {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-sara-badge {
  font-size: 0.82rem;
  color: var(--primary-orange);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-sara-desc {
  font-size: 0.92rem;
  color: #5C4837;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.btn-hero-sara-msg {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.35rem;
  background: var(--primary-orange-gradient);
  border: none;
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-orange-glow);
  transition: all var(--transition-fast);
}

.btn-hero-sara-msg:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(243, 98, 27, 0.4);
}

/* ==========================================================================
   MAIN DASHBOARD SHEET & GRID (Light Mode)
   ========================================================================== */
.serein-dashboard-sheet {
  background: var(--bg-dashboard);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 2rem 2rem 4rem 2rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-2col-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 1.75rem;
}

.dashboard-left-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.dashboard-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

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

.dash-section-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.dash-section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dash-section-link:hover {
  color: var(--primary-orange-hover);
}

/* Continue Chatting Cards Grid */
.continue-chat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.contact-chat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.contact-chat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(243, 98, 27, 0.3);
}

.contact-avatar-box {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  align-self: center;
}

.contact-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.contact-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--online-green);
  border: 2px solid #FFFFFF;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.contact-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-last-msg {
  font-size: 0.76rem;
  color: var(--text-muted-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

.contact-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid #FAF5EE;
}

.contact-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.contact-unread-badge {
  background: var(--primary-orange);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Trending Rooms Grid */
.trending-rooms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.trending-room-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.trending-room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(243, 98, 27, 0.3);
}

.room-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFF2E8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-thumb-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.trending-room-card:hover .room-thumb-img {
  transform: scale(1.04);
}

.room-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.room-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-members-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.room-desc-snippet {
  font-size: 0.74rem;
  color: var(--text-muted-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

.room-online-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.room-online-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online-green);
}

/* Bottom Quote Ribbon */
.dash-quote-ribbon {
  background: linear-gradient(135deg, #FFF3E6 0%, #FFE6D5 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(243, 98, 27, 0.08);
}

.dash-quote-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dash-quote-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.dash-quote-text-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dash-quote-main {
  font-size: 0.96rem;
  font-weight: 600;
  color: #7C2D12;
}

.dash-quote-sub {
  font-size: 0.78rem;
  color: #C2410C;
}

/* Online Now Card */
.online-now-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.online-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.online-user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition-fast);
}

.online-user-item:hover {
  transform: translateX(4px);
}

.online-user-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.online-user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.online-user-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--online-green);
  border: 1.5px solid #FFFFFF;
}

.online-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-more-online {
  width: 100%;
  padding: 0.65rem;
  background: #FFF2E8;
  color: var(--primary-orange);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-align: center;
  transition: all var(--transition-fast);
  border: 1px solid #FED7AA;
}

.btn-more-online:hover {
  background: #FFE4D1;
}

/* Safe Space Card */
.safe-space-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.safe-space-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.safe-space-icon {
  color: var(--primary-orange);
  font-size: 1.2rem;
}

.safe-space-desc {
  font-size: 0.78rem;
  color: var(--text-muted-dark);
  line-height: 1.4;
}

.btn-safe-space-link {
  width: 100%;
  padding: 0.65rem;
  background: #FFF2E8;
  color: var(--primary-orange);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid #FED7AA;
  transition: all var(--transition-fast);
}

.btn-safe-space-link:hover {
  background: var(--primary-orange-gradient);
  color: #FFFFFF;
  border-color: transparent;
}

/* ==========================================================================
   AUTH MODAL (Light Mode with Light Orange Highlighting)
   ========================================================================== */
.serein-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 23, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.serein-auth-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.serein-auth-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(60, 40, 20, 0.18);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-normal);
  box-sizing: border-box;
}

.serein-auth-modal-backdrop.open .serein-auth-card {
  transform: translateY(0) scale(1);
}

.auth-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5EFE8;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.auth-close-btn:hover {
  background: #FFF2E8;
  color: var(--primary-orange);
}

.auth-brand-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand-logo {
  width: auto;
  height: 76px;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(243, 98, 27, 0.18));
}

.auth-modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
}

.auth-modal-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.auth-tab-switch {
  display: flex;
  background: #F5EFE8;
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 1.35rem;
  border: 1px solid var(--border-light);
}

.auth-tab-btn {
  flex: 1;
  padding: 0.55rem;
  text-align: center;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-orange);
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.08);
}

.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(60, 40, 20, 0.05);
}

.btn-google-auth:hover {
  background: #FFF2E8;
  border-color: #FED7AA;
  color: var(--primary-orange);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0;
  color: var(--text-muted-light);
  font-size: 0.75rem;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.auth-input-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
}

.auth-input-field {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: #F9F5EF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.auth-input-field:focus {
  background: #FFFFFF;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(243, 98, 27, 0.12);
}

.btn-auth-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary-orange-gradient);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-orange-glow);
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(243, 98, 27, 0.4);
}

.auth-footer-text {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1.15rem;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & MOBILE APP LAYOUT (Native App Feel)
   ========================================================================== */
.serein-mobile-header, .serein-mobile-nav, .mobile-only {
  display: none !important;
}

@media (max-width: 900px) {
  /* Restore natural scrolling on mobile */
  html, body {
    height: auto !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    -webkit-tap-highlight-color: transparent;
  }

  .serein-app-frame {
    height: auto !important;
    overflow: visible !important;
  }

  .serein-main-viewport {
    height: auto !important;
    overflow: visible !important;
  }

  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
  .serein-sidebar, .desktop-topbar {
    display: none !important;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 12px));
    background: var(--bg-dashboard);
  }

  /* App Shell Top Header */
  .serein-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.15rem;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(60, 40, 20, 0.04);
  }

  .mobile-brand-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .mobile-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .mobile-brand-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
  }

  .mobile-bell-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5EFE8;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
  }

  /* Dashboard Mobile Hero */
  .dashboard-hero-banner {
    margin: 0.65rem 0.75rem 1rem 0.75rem;
    padding: 1.65rem 1.15rem 1.25rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 400px;
    border-radius: 22px;
    background-position: 78% bottom;
  }

  .dashboard-hero-banner::before {
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.95) 0%, rgba(255, 250, 245, 0.84) 50%, rgba(255, 250, 245, 0.2) 78%, rgba(255, 250, 245, 0) 100%);
  }

  .hero-greeting-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
  }

  .hero-greeting-block {
    gap: 0.15rem;
  }

  .hero-greeting-title {
    font-size: 1.75rem;
    line-height: 1.15;
    margin: 0;
    flex: 1;
  }

  .hero-login-start-btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
  }

  .hero-mobile-sara-mini {
    display: inline-block !important;
    height: 160px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 24px rgba(243, 98, 27, 0.38));
    margin-left: auto;
    margin-top: -5px;
    margin-bottom: -5px;
  }

  .hero-left-content {
    margin-top: 0 !important;
    margin-bottom: 0.25rem;
  }

  .hero-sara-action-col {
    align-self: flex-start;
  }

  .serein-dashboard-sheet {
    padding: 1.25rem 0.85rem 2rem 0.85rem;
    border-radius: 24px 24px 0 0;
  }

  .dashboard-2col-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Horizontal swipe cards */
  .continue-chat-grid, .trending-rooms-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .continue-chat-grid::-webkit-scrollbar,
  .trending-rooms-grid::-webkit-scrollbar {
    display: none;
  }

  .contact-chat-card {
    min-width: 135px;
    width: 135px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0.85rem 0.75rem;
  }

  .trending-room-card {
    min-width: 155px;
    width: 155px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* Floating Mobile App Bottom Dock */
  .serein-mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    right: 10px;
    height: 58px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 30px;
    border: 1px solid rgba(239, 232, 222, 0.9);
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    z-index: 99999;
    box-shadow: 0 8px 32px rgba(60, 40, 20, 0.14);
  }

  .mobile-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 8px;
    flex: 1 1 0;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
  }

  .mobile-nav-tab-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-tab.active {
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    font-weight: 700;
  }

  /* Haven mobile: show as full stacked page */
  /* Haven mobile: show as full stacked page */
  .haven-chat-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem !important;
    gap: 0.75rem !important;
    height: auto !important;
    overflow: visible !important;
    min-height: unset !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Each panel takes full width and shows fully */
  .haven-chat-container > aside,
  .haven-chat-container > main {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* Messages stream on mobile: natural height, no horizontal overflow */
  #haven-messages-stream {
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden !important;
    min-height: 200px;
    padding: 0.85rem 0.65rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* ── Full Width Mobile Layout ────────────────────────────────────────────── */

  /* Ensure the entire page never exceeds viewport width */
  html, body, .serein-app-frame, .serein-main-viewport, .serein-main-content {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Any element that might overflow */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Footer: full width on mobile with bottom padding for mobile dock */
  .serein-global-footer {
    display: flex !important;
    padding: 1.75rem 1.25rem calc(80px + env(safe-area-inset-bottom, 16px)) 1.25rem !important;
    width: 100% !important;
    background: #FFFFFF !important;
  }

  /* Dashboard sheet: full width, no horizontal overflow */
  .serein-dashboard-sheet {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Whisper full-width on mobile */
  .whisper-grid-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: unset !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Whisper chat card: full width on mobile */
  .whisper-chat-card-mobile {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    flex: 1 !important;
    box-sizing: border-box !important;
  }

  /* Chat stream on mobile: constrained to viewport */
  #whisper-chat-stream {
    min-height: unset !important;
    overflow-x: hidden !important;
    padding: 0.85rem 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile topic chips horizontal bar */
  .whisper-mobile-chips {
    display: flex !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    padding: 0.65rem 0.75rem !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border-light) !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  .whisper-mobile-chips::-webkit-scrollbar {
    display: none !important;
  }

  /* Serena chat: full width */
  #sara-conversation-stream {
    padding: 1rem 0.85rem !important;
    max-width: 100% !important;
  }

  /* Chat composer inputs: flex-shrink allowed, no horizontal push */
  .haven-chat-container input[type="text"],
  .whisper-chat-card-mobile input[type="text"],
  #haven-msg-input,
  #whisper-chat-input {
    min-width: 0 !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.86rem !important;
  }

  /* Composer bars: no overflow */
  .haven-chat-container > main > div:last-child,
  .whisper-chat-card-mobile > div:last-child {
    padding: 0.55rem 0.65rem !important;
    gap: 0.4rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Chat bubbles inside messages stream on mobile */
  #haven-messages-stream > div,
  #whisper-chat-stream > div {
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* Mobile audio element sizing */
  #haven-messages-stream audio,
  #whisper-chat-stream audio {
    width: 100% !important;
    max-width: 200px !important;
    height: 32px !important;
  }

  /* Profile page: full width */
  .profile-grid,
  .profile-section,
  [class*="profile-"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Prevent hero banner overflow */
  .dashboard-hero-banner {
    width: calc(100% - 1.5rem) !important;
    overflow: hidden !important;
  }

  /* Prevent card overflow in grids */
  .contact-chat-card,
  .trending-room-card {
    word-break: break-word !important;
  }

  /* Mobile login tab indicator */
  .mobile-nav-tab-auth .mobile-nav-tab-icon {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   SEREINA GLOBAL FOOTER
   ========================================================================== */
.serein-global-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 2.25rem 2rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: auto;
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-logo {
  height: 52px;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links-col {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s ease;
}

.footer-link-btn:hover {
  color: var(--primary-orange);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F5EFE8;
  padding-top: 1.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .serein-global-footer {
    padding: 1.75rem 1.25rem 1.25rem 1.25rem;
    gap: 1.2rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-links-col {
    gap: 0.85rem;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   SEREINA UNIVERSAL POP-UP MODAL SYSTEM
   ========================================================================== */
.serein-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: rgba(30, 25, 23, 0.55) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem !important;
  animation: sereinModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

@keyframes sereinModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.serein-modal-card,
.serein-dialog-card {
  background: #FFFFFF !important;
  border-radius: 24px !important;
  padding: 1.75rem 1.6rem 1.5rem 1.6rem !important;
  max-width: 480px !important;
  width: 100% !important;
  box-shadow: 0 24px 64px rgba(60, 40, 20, 0.24), 0 4px 16px rgba(243, 98, 27, 0.12) !important;
  border: 1.5px solid #FDDCB8 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  box-sizing: border-box !important;
  animation: sereinModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

@keyframes sereinModalSlideUp {
  from { transform: translateY(22px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.serein-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
}

.serein-modal-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}

.serein-modal-icon-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: #FFF3EA !important;
  border: 1px solid #FED7AA !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  flex-shrink: 0 !important;
}

.serein-modal-title {
  font-family: var(--font-serif, Georgia, serif) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1E1917 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

.serein-modal-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #FAF7F2 !important;
  border: 1px solid #EDE5DA !important;
  color: #8C7B74 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1.2rem !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.serein-modal-close-btn:hover {
  background: #F3ECE2 !important;
  color: #1E1917 !important;
  transform: scale(1.05) !important;
}

.serein-modal-actions {
  display: flex !important;
  gap: 0.65rem !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 0.35rem !important;
}

.serein-modal-btn {
  padding: 0.65rem 1.45rem !important;
  border-radius: 9999px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: none !important;
  font-family: inherit !important;
  transition: all 0.18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
}

.serein-modal-btn-primary {
  background: linear-gradient(135deg, #FFA048 0%, #F3621B 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(243, 98, 27, 0.32) !important;
}

.serein-modal-btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(243, 98, 27, 0.45) !important;
}

/* Single elegant scrollbar for info modals */
.serein-info-modal-scroll {
  scrollbar-width: thin;
  scrollbar-color: #FDDCB8 transparent;
}

.serein-info-modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.serein-info-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.serein-info-modal-scroll::-webkit-scrollbar-thumb {
  background: #FDDCB8;
  border-radius: 9999px;
}

.serein-info-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange, #F3621B);
}

