/* ==========================================================================
   iosi.live – Main Stylesheet (LIGHT EDITION)
   Inspired by modern social media & premium startup design
   ========================================================================== */

:root {
  --bg-main: #FFFFFF;
  --bg-secondary: #F8F6FF;
  --bg-card: #FFFFFF;
  --bg-hover: #F3EEFF;
  --bg-input: #F3F0FA;
  --border-subtle: #EFEAFF;
  --border-light: #E5E0F2;
  --primary: #7928F5;
  --primary-hover: #671FE0;
  --primary-light: #EFEAFF;
  --accent-pink: #E85BCB;
  --gradient-brand: linear-gradient(135deg, #7928F5 0%, #E85BCB 100%);
  --gradient-story: linear-gradient(45deg, #7928F5 0%, #E85BCB 50%, #FF758C 100%);
  --gradient-card: linear-gradient(135deg, #7928F5 0%, #B847E4 50%, #E85BCB 100%);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --danger: #EF4444;
  --success: #10B981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(121, 40, 245, 0.04);
  --shadow-card: 0 10px 30px rgba(121, 40, 245, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-elevated: 0 20px 40px rgba(121, 40, 245, 0.12);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Modern Dark Glass Theme overrides when user toggles switch (Red background removed) */
body.dark-mode {
  --bg-main: #0F172A;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.88);
  --bg-hover: rgba(121, 40, 245, 0.22);
  --bg-input: rgba(30, 41, 59, 0.90);
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-light: rgba(255, 255, 255, 0.22);
  --primary: #A855F7;
  --primary-hover: #9333EA;
  --primary-light: rgba(168, 85, 247, 0.22);
  --accent-pink: #F472B6;
  --gradient-brand: linear-gradient(135deg, #7928F5 0%, #EC4899 100%);
  --gradient-card: linear-gradient(135deg, #4C1D95 0%, #7928F5 55%, #EC4899 100%);
  --text-main: #F8FAFC;
  --text-muted: #CBD5E1;
  --text-light: #94A3B8;
  --shadow-card: 0 12px 32px rgba(2, 6, 23, 0.55);
  background-color: #0F172A !important;
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.66) 0%, rgba(30, 27, 75, 0.56) 50%, rgba(15, 23, 42, 0.70) 100%),
    url('../images/lovers-hero-bg.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  color: #F8FAFC !important;
}

body.dark-mode .post-card,
body.dark-mode .modal-card,
body.dark-mode .right-card,
body.dark-mode .story-tray-card,
body.dark-mode .create-post-trigger-card,
body.dark-mode .left-sidebar,
body.dark-mode .mobile-header,
body.dark-mode .mobile-bottom-nav,
body.dark-mode .room-chat-panel,
body.dark-mode .room-top-header-card {
  background: rgba(15, 23, 42, 0.86) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #F8FAFC !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .form-control,
body.dark-mode .form-input {
  background-color: rgba(30, 41, 59, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #F8FAFC !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: var(--text-3) !important;
}

body.dark-mode .nav-item {
  color: #E2E8F0 !important;
}

body.dark-mode .nav-item:hover,
body.dark-mode .nav-item.active {
  background: linear-gradient(135deg, rgba(121, 40, 245, 0.30), rgba(236, 72, 153, 0.30)) !important;
  color: #FFFFFF !important;
  border-color: #A855F7 !important;
}

body.dark-mode .room-chat-line,
body.dark-mode .comment-preview-item {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #F8FAFC !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode strong,
body.dark-mode label,
body.dark-mode p,
body.dark-mode span {
  color: inherit;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-family);
  background-color: var(--bg-secondary);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(248, 246, 255, 0.56) 50%, rgba(255, 255, 255, 0.64) 100%),
    url('../images/lovers-hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Large Moving Floating Hearts Background Layer */
.iosi-floating-hearts-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.iosi-bg-heart {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 12px 28px rgba(232, 91, 203, 0.35));
}
.iosi-bg-heart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.iosi-heart-1 { width: 118px; height: 118px; top: 8%;   left: 2%;    opacity: 0.72; animation: iosiHeartFloatA 9s ease-in-out infinite; }
.iosi-heart-2 { width: 92px;  height: 92px;  top: 58%;  left: 14%;   opacity: 0.65; animation: iosiHeartFloatB 11s ease-in-out infinite; }
.iosi-heart-3 { width: 132px; height: 132px; top: 14%;  right: 3%;   opacity: 0.72; animation: iosiHeartFloatC 10s ease-in-out infinite; }
.iosi-heart-4 { width: 84px;  height: 84px;  top: 46%;  right: 16%;  opacity: 0.62; animation: iosiHeartFloatA 12s ease-in-out infinite reverse; }
.iosi-heart-5 { width: 108px; height: 108px; bottom: 8%; left: 22%;  opacity: 0.68; animation: iosiHeartFloatB 9.5s ease-in-out infinite; }
.iosi-heart-6 { width: 124px; height: 124px; bottom: 6%; right: 6%;  opacity: 0.70; animation: iosiHeartFloatC 11.5s ease-in-out infinite; }
.iosi-heart-7 { width: 76px;  height: 76px;  top: 28%;  left: 23%;   opacity: 0.56; animation: iosiHeartFloatA 8.5s ease-in-out infinite; }
.iosi-heart-8 { width: 98px;  height: 98px;  bottom: 24%; right: 24%; opacity: 0.60; animation: iosiHeartFloatB 10.5s ease-in-out infinite reverse; }

@keyframes iosiHeartFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg) scale(1); }
  50%      { transform: translate3d(18px, -28px, 0) rotate(8deg) scale(1.12); }
}
@keyframes iosiHeartFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(5deg) scale(0.98); }
  50%      { transform: translate3d(-22px, -32px, 0) rotate(-8deg) scale(1.14); }
}
@keyframes iosiHeartFloatC {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg) scale(1.02); }
  50%      { transform: translate3d(14px, 26px, 0) rotate(9deg) scale(1.15); }
}

.app-container {
  position: relative;
  z-index: 1;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Main App Layout Grid
   Desktop: Left Sidebar (250px) | Main Feed Center (640px) | Right Sidebar (330px)
   ========================================================================== */
.app-container {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 28px;
}

/* Left Sidebar */
.left-sidebar {
  width: 265px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 24px 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px rgba(121, 40, 245, 0.06);
  flex-shrink: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.left-sidebar::-webkit-scrollbar {
  display: none;
}

.left-sidebar .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 18px 12px;
}

.brand-logo-img {
  height: 132px;
  width: auto;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  flex: 1;
}

.nav-item a, .nav-item button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-item a:hover, .nav-item button:hover {
  background-color: var(--bg-hover);
  color: var(--primary);
  transform: translateX(3px);
}

.nav-item.active a {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background-color: #EF4444;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Left Sidebar Go Premium Mini Card */
.sidebar-premium-card {
  background: linear-gradient(135deg, #F5EFFF 0%, #FDEDFA 100%);
  border: 1px solid #EBDCFF;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  margin-top: auto;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(121, 40, 245, 0.05);
}

.sidebar-premium-card .crown-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px auto;
  color: var(--brand);
}

.sidebar-premium-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sidebar-premium-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.btn-sidebar-upgrade {
  display: inline-block;
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(121, 40, 245, 0.3);
}

.btn-sidebar-upgrade:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Dark Mode Switcher */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.theme-switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

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

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #D1D5DB;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   Center Main Feed
   ========================================================================== */
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 630px;
  padding: 24px 0 60px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Full Width Main Content (Used for Live, Video Chat, Rooms, Messages) */
.app-container.no-right-sidebar {
  max-width: 1440px;
  width: 100%;
}
.app-container.no-right-sidebar .main-content,
.main-content.full-width {
  max-width: 1140px;
  width: 100%;
}

/* Top Search Bar (Desktop / Center Header) */
.feed-top-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.search-box-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-box-pill:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(121, 40, 245, 0.12);
}

.search-box-pill input {
  width: 100%;
  color: var(--text-main);
  font-size: 14px;
}

.search-box-pill input::placeholder {
  color: var(--text-light);
}

.feed-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  position: relative;
  transition: var(--transition);
}

.action-circle-btn:hover {
  background-color: var(--bg-hover);
  color: var(--primary);
}

.action-circle-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #EF4444;
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

/* ==========================================================================
   Stories Horizontal Tray
   ========================================================================== */
.stories-tray-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
}

.stories-tray-card::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.stories-list {
  display: flex;
  gap: 18px;
  align-items: center;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 70px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.story-item:hover {
  transform: translateY(-2px);
}

.story-avatar-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-story);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.story-avatar-wrap.viewed {
  background: var(--surface-3);
}

.story-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--ring);
  overflow: hidden;
  background-color: var(--surface-2);
}

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

.story-add-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background-color: var(--primary);
  color: #FFFFFF;
  border: 2px solid var(--ring);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.story-username {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Post Card
   ========================================================================== */
.post-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-elevated);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-meta {
  display: flex;
  flex-direction: column;
}

.post-author-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-author-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.post-author-username:hover {
  color: var(--primary);
}

.verified-icon {
  width: 16px;
  height: 16px;
  color: #3B82F6;
  flex-shrink: 0;
}

.post-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.post-options-btn {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
}

.post-options-btn:hover {
  background-color: var(--bg-hover);
  color: var(--primary);
}

/* Post Media Carousel */
.post-media-container {
  position: relative;
  width: 100%;
  background-color: var(--surface-2);
  overflow: hidden;
}

.post-media-wrapper {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.post-media-slide {
  min-width: 100%;
  position: relative;
}

.post-media-slide img, .post-media-slide video {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  display: block;
}

.carousel-counter-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.carousel-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: var(--transition);
}

.carousel-arrow-btn:hover {
  background: var(--surface);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow-btn.prev {
  left: 12px;
}

.carousel-arrow-btn.next {
  right: 12px;
}

/* Post Actions Bar */
.post-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 8px 18px;
}

.post-actions-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-post-action svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-post-action:hover svg {
  transform: scale(1.15);
}

.btn-post-action.liked {
  color: #EF4444;
}

.btn-post-action.liked svg {
  fill: #EF4444;
}

.btn-post-action.saved svg {
  fill: var(--text-main);
}

/* Post Details (Caption, Comments) */
.post-body {
  padding: 4px 18px 16px 18px;
}

.post-caption {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.post-caption .caption-author {
  font-weight: 700;
  margin-right: 6px;
}

.view-comments-btn {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  cursor: pointer;
}

.view-comments-btn:hover {
  color: var(--primary);
}

.comments-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.comment-preview-item {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-preview-text strong {
  margin-right: 6px;
  font-weight: 600;
}

/* Add Comment Inline Input */
.post-add-comment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 14px 18px;
  border-top: 1px solid var(--border-subtle);
}

.comment-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-input-pill {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border-radius: var(--radius-full);
  padding: 8px 14px;
}

.comment-input-pill input {
  flex: 1;
  font-size: 13px;
  color: var(--text-main);
}

.comment-input-pill input::placeholder {
  color: var(--text-light);
}

.btn-emoji {
  color: var(--text-muted);
  font-size: 16px;
  padding: 0 4px;
}

.btn-post-comment-submit {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
}

/* ==========================================================================
   Right Sidebar (Suggestions, Go Premium Gradient Banner)
   ========================================================================== */
.right-sidebar {
  width: 320px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

/* User Profile Mini Bar at top of right sidebar */
.sidebar-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-user-names h4 {
  font-size: 14px;
  font-weight: 700;
}

.sidebar-user-names p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Suggested For You Card */
.suggestions-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.suggestions-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.suggestions-header .see-all-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suggestion-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.suggestion-names h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.suggestion-names p {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-follow-pill {
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-follow-pill:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-follow-pill.following {
  background-color: var(--surface-3);
  color: var(--text);
}

/* Right Sidebar Go Premium Vibrant Gradient Card (Matching screenshot) */
.premium-gradient-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(121, 40, 245, 0.25);
  position: relative;
  overflow: hidden;
}

.premium-gradient-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.premium-gradient-card .crown-icon-large {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px auto;
  color: #FFFFFF;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.premium-gradient-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.premium-gradient-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 18px;
}

.btn-premium-now {
  display: inline-block;
  background-color: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn-premium-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Mobile Bottom Navigation & Mobile Top Header
   ========================================================================== */
.mobile-top-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.mobile-top-header .brand-logo-img {
  height: 78px;
}

.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
  padding: 6px;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

/* ==========================================================================
   Modals (Create Post, Stories Viewer, Toasts)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"],
.modal-overlay[style*="display: block"] {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay[style*="display: flex"] .modal-card,
.modal-overlay[style*="display:flex"] .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 95%;
  max-width: 580px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-close-btn {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control,
.form-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 15px;
  font-size: 14px;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus,
.form-input:focus {
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(121, 40, 245, 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(121, 40, 245, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.3s ease;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .right-sidebar {
    display: none;
  }
  .app-container {
    max-width: 960px;
  }
}

@media (max-width: 768px) {
  .left-sidebar {
    display: none;
  }
  .feed-top-header {
    display: none;
  }
  .mobile-top-header {
    display: flex;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .app-container {
    padding: 0;
    gap: 0;
  }
  .main-content {
    max-width: 100%;
    padding: 8px 0 70px 0;
  }
  .post-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 12px;
  }
  .stories-tray-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .app-container.no-right-sidebar .main-content,
  .main-content.full-width {
    padding: 8px 10px 75px 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }
  .mobile-top-header {
    padding: 8px 12px;
  }
  .mobile-top-actions {
    gap: 8px;
  }
}

/* ==========================================================================
   Mobile Slide-out Drawer Navigation
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 86vw;
  background: var(--bg-card);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 6px 0 28px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 20px 18px 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-profile {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.mobile-drawer-profile img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.mobile-drawer-nav {
  list-style: none;
  padding: 12px 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-nav li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-drawer-nav li a:hover,
.mobile-drawer-nav li.active a {
  background: var(--brand-tint);
  color: var(--primary);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   Universal 100+ Interactive Emoji Picker
   ========================================================================== */
.emoji-picker-popover {
  position: absolute;
  z-index: 99999;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(121, 40, 245, 0.16), 0 4px 16px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: emojiPickerFadeIn 0.18s ease-out;
}

.emoji-picker-popover.active {
  display: flex;
}

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

.emoji-picker-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 8px;
  gap: 6px;
  overflow-x: auto;
}

.emoji-tab-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.emoji-tab-btn.active, .emoji-tab-btn:hover {
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.emoji-picker-search {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.emoji-picker-search input {
  width: 100%;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  font-size: 13px;
  outline: none;
}

.emoji-picker-search input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px;
  max-height: 230px;
  overflow-y: auto;
}

.emoji-picker-btn {
  background: none;
  border: none;
  font-size: 22px;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.12s ease, background 0.12s ease;
}

.emoji-picker-btn:hover {
  background: var(--brand-tint);
  transform: scale(1.25);
}

/* Live Stream Cinema Stage Enhancements */
.live-cinema-container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .live-cinema-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   2026 AURORA GLASS UI/UX OVERHAUL & VIP AVATAR FRAMES
   ========================================================================== */
body.iosi-retired-glass {
  background-image:
    radial-gradient(at 8% 12%, rgba(121, 40, 245, 0.16) 0px, transparent 52%),
    radial-gradient(at 92% 14%, rgba(232, 91, 203, 0.16) 0px, transparent 52%),
    radial-gradient(at 50% 92%, rgba(56, 189, 248, 0.12) 0px, transparent 55%),
    linear-gradient(135deg, var(--surface) 0%, rgba(246, 243, 255, 0.82) 100%),
    url('../images/lovers-hero-bg.jpg');
}

body.iosi-retired-glass .left-sidebar,
body.iosi-retired-glass .post-card,
body.iosi-retired-glass .stories-bar,
body.iosi-retired-glass .suggestions-card,
body.iosi-retired-glass .mobile-nav-top,
body.iosi-retired-glass .mobile-nav-bottom,
body.iosi-retired-glass .mobile-drawer {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(121, 40, 245, 0.12) !important;
  box-shadow: 0 12px 36px rgba(30, 27, 75, 0.06);
}

@media (min-width: 1024px) {
  .left-sidebar {
    margin: 14px 0;
    height: calc(100vh - 28px);
    top: 14px;
    border-radius: 24px;
  }
}

.stories-bar {
  border-radius: 22px !important;
  padding: 16px 18px !important;
  margin-bottom: 20px !important;
}

.story-item:hover .story-ring {
  transform: scale(1.06);
}

.story-ring {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card {
  border-radius: 24px !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(121, 40, 245, 0.11) !important;
}

.post-action-btn {
  border-radius: 12px;
  padding: 6px 10px;
  transition: background 0.18s ease, transform 0.16s ease;
}

.post-action-btn:hover {
  background: rgba(121, 40, 245, 0.08);
  transform: translateY(-1px);
}

.suggestions-card {
  border-radius: 22px !important;
  padding: 20px !important;
}

.btn-follow-pill {
  border-radius: 9999px !important;
  font-weight: 800 !important;
  transition: all 0.18s ease !important;
}

.btn-follow-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(121, 40, 245, 0.22);
}

.nav-item {
  border-radius: 14px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 22px rgba(121, 40, 245, 0.28);
}

.nav-item.active > a,
.nav-item.active > button {
  background: transparent !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.nav-item.active svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

.btn, .btn-primary, .btn-secondary {
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 8px 22px rgba(121, 40, 245, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(121, 40, 245, 0.36);
  filter: brightness(1.04);
}

.form-input, .form-control {
  border-radius: 14px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input:focus, .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3.5px rgba(121, 40, 245, 0.16) !important;
}

.modal-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content, .modal-card {
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35) !important;
}

.premium-gradient-card {
  border-radius: 24px !important;
  box-shadow: 0 18px 40px rgba(121, 40, 245, 0.28) !important;
}

@media (max-width: 768px) {
  .mobile-nav-bottom {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.10) !important;
  }
}

/* VIP Avatar Frames */
.avatar-frame-gold {
  padding: 2.5px;
  border: 2.5px solid #F59E0B !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.65);
}

.avatar-frame-neon {
  padding: 2.5px;
  border: 2.5px solid #22D3EE !important;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.7), 0 0 24px rgba(168, 85, 247, 0.45);
}

.avatar-frame-fire {
  padding: 2.5px;
  border: 2.5px solid #EF4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.7), 0 0 24px rgba(245, 158, 11, 0.5);
}

.avatar-frame-royal {
  padding: 2.5px;
  border: 2.5px solid #A855F7 !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.75), 0 0 26px rgba(236, 72, 153, 0.5);
}

.avatar-frame-wrap {
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.growth-card-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.lb-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lb-row-item:hover {
  transform: translateX(3px);
  border-color: rgba(121, 40, 245, 0.35);
  box-shadow: 0 6px 18px rgba(121, 40, 245, 0.10);
}

/* Polished Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(121, 40, 245, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(121, 40, 245, 0.45);
}
