/* ==========================================
   LyLyEcogroup - Flower Shop Social Platform
   Light & Elegant Floral Theme
   ========================================== */
.breadcrumb__area,
.tp-subscribe-area,
.tp-footer-area,
.tp-header-sticky.header-main,
.tp-mobile-menu {
  display: none !important;
}

.container {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

:root {
  /* Light Floral Theme - Red & Pink */
  --bg-primary: #fffbfc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #fff5f7;
  --bg-hover: #ffe8ed;

  --border-color: #f8d7dd;

  --text-primary: #4a2c32;
  --text-secondary: #8b6a70;
  --text-link: #c62f5a;

  /* Primary colors - Rose Red & Pink */
  --primary: #e91e63;
  --primary-light: #f48fb1;
  --primary-dark: #c2185b;
  --heart-red: #ff1744;

  /* Accent colors */
  --accent-rose: #e91e63;
  --accent-pink: #f06292;
  --accent-coral: #ff6b6b;
  --accent-gold: #ffd700;

  /* Floral gradient for stories/accents */
  --story-gradient: linear-gradient(135deg, #ff6b6b, #e91e63, #c2185b, #ad1457);
  --floral-gradient: linear-gradient(135deg, #fff5f7 0%, #ffe0e6 50%, #ffd1dc 100%);
  --rose-gradient: linear-gradient(135deg, #e91e63, #f06292, #ff8a80);

  /* Typography - Instagram Style */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --sidebar-width: 220px;
  --sidebar-collapsed: 72px;

  /* Shadows */
  --shadow-soft: 0 2px 20px rgba(233, 30, 99, 0.1);
  --shadow-card: 0 4px 30px rgba(233, 30, 99, 0.08);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ==========================================
   Left Sidebar
   ========================================== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 8px 12px 20px;
  display: flex;
  flex-direction: column;
}

.logo {
  padding: 25px 12px 20px;
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
}

.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  color: var(--text-primary);
  transition: background 0.2s;
}

.nav-item:hover {
  background: var(--bg-hover);
}

.nav-item.active {
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-hover);
}

.nav-item i {
  font-size: 24px;
  width: 24px;
  text-align: center;
}

.nav-item span {
  font-size: 16px;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--heart-red);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Profile in nav */
.nav-profile img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.more-menu {
  margin-top: auto;
}

/* ==========================================
   Main Content
   ========================================== */
.main-content {
  margin-left: var(--sidebar-width);
  display: flex;
  justify-content: center;
  /* padding: 0 20px; */
  min-height: 100vh;
}

.feed-container {
  max-width: 500px;
  width: 100%;
}

.feed-infinite {
  padding: 16px 0 24px;
  text-align: center;
}

.feed-loading,
.feed-end {
  font-size: 14px;
  color: var(--text-secondary);
}

.feed-loading.is-hidden,
.feed-end.is-hidden {
  display: none;
}

.feed-sentinel {
  height: 1px;
}

/* ==========================================
   Stories
   ========================================== */
.stories {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  position: relative;
  padding-right: 40px;
}

.stories-items {
  display: contents;
}

.stories-loading {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 0;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.suggestion-loading {
  opacity: 0.75;
}

.story-ring {
  width: 66px;
  height: 66px;
  padding: 3px;
  border-radius: 50%;
  background: var(--story-gradient);
}

.story.seen .story-ring {
  background: var(--border-color);
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  object-fit: cover;
}

.story-create {
  text-decoration: none;
  padding: 0;
}

.story-create .story-ring {
  position: relative;
  background: var(--border-color);
}

.story-create .story-ring img {
  border-color: var(--border-color);
}

.story-create-plus {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  font-size: 11px;
}

.story-suggest {
  text-decoration: none;
  padding: 0;
}

.story-suggest .story-ring {
  position: relative;
  background: var(--border-color);
}

.story-suggest .story-ring img {
  border-color: var(--border-color);
}

.story-follow-plus {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  font-size: 11px;
}

.story-suggest-leaving {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.story-name {
  font-size: 12px;
  color: var(--text-primary);
  max-width: 74px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.story-create-overlay {
  position: fixed;
  inset: 0;
  background: rgba(83, 81, 81, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.story-create-overlay.active {
  display: flex;
}

.story-create-modal {
  width: min(760px, 92vw);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.story-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.story-create-header h3 {
  font-size: 18px;
  margin: 0;
}

.story-create-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-create-errors {
  display: none;
  background: var(--bg-tertiary);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.story-create-errors.active {
  display: block;
}

.story-create-drop {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-color);
  border-radius: 18px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.story-create-drop input {
  display: none;
}

.story-create-drop-icon {
  font-size: 42px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.story-create-drop-inner p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.story-create-file-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
}

.story-create-file-name {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.story-create-colors {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.story-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.story-color.active {
  border-color: var(--bg-secondary);
  box-shadow: 0 0 0 2px var(--primary);
}

.story-create-text label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.story-create-text textarea {
  width: 100%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 90px;
}

.story-create-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.story-create-submit {
  /* background: var(--primary); */
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
}

.post-create-overlay {
  position: fixed;
  inset: 0;
  background: rgba(83, 81, 81, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.post-create-overlay.active {
  display: flex;
}

.post-create-modal {
  width: min(560px, 92vw);
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 20px 22px;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.post-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.post-create-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.post-create-close {
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

.post-create-errors {
  display: none;
  background: var(--bg-tertiary);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.post-create-errors.active {
  display: block;
}

.post-create-text textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
}

.post-create-upload {
  margin-top: 16px;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-create-upload input {
  display: none;
}

.post-create-file-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.post-create-file-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.post-create-privacy {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-create-privacy label {
  font-size: 13px;
  color: var(--text-secondary);
}

.post-create-privacy select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 8px 12px;
}

.post-create-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.post-create-submit {
  /* background: var(--primary); */
  color: var(--primary);
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 600;
}

.post-comment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(83, 81, 81, 0.85);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 1002;
}

.post-comment-overlay.active {
  display: flex;
}

.post-comment-modal {
  width: min(1280px, 96vw);
  height: calc(100vh - var(--admin-bar-height, 0px) - 40px);
  max-height: calc(100vh - var(--admin-bar-height, 0px) - 40px);
  margin-top: calc(var(--admin-bar-height, 0px) + 20px);
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.post-comment-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  color: var(--text-primary);
  z-index: 3;
}

.post-comment-media {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-comment-empty {
  color: #fff;
  font-size: 14px;
  opacity: 0.7;
}

.post-comment-media .post-media {
  width: 100%;
  height: 100%;
}

.post-comment-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  height: 100%;
  min-height: 0;
}

.post-comment-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.post-comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.post-comment-name {
  font-weight: 600;
  font-size: 14px;
}

.post-comment-time {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.post-comment-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}

.post-comment-caption {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.post-comment-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-comment-item {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  gap: 12px;
  align-items: flex-start;
}

.post-comment-item img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.post-comment-main {
  flex: 1;
  min-width: 0;
}

.post-comment-text-row {
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-word;
}

.post-comment-user {
  font-weight: 600;
  margin-right: 6px;
}

.post-comment-text {
  color: var(--text-primary);
}

.post-comment-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.post-comment-meta button {
  color: var(--text-link);
  font-weight: 600;
}

.post-comment-meta>* {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-comment-like-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-comment-like-count.is-hidden {
  display: none;
}

.post-comment-like {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
  justify-self: end;
}

.post-comment-like.active {
  color: var(--heart-red);
}

.post-comment-toggle {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 22px;
}

.post-comment-toggle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--border-color);
  transform: translateY(-50%);
}

.post-comment-replies {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--border-color);
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-right: 0;
  grid-column: 2 / 4;
}

.post-comment-replies.active {
  display: flex;
}

.post-comment-reply {
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  gap: 8px;
}

.post-comment-reply img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.post-comment-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}

.post-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-comment-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-comment-action {
  font-size: 18px;
  color: var(--text-primary);
}

.post-comment-action.liked {
  color: var(--heart-red);
}

.post-comment-action.reposted {
  color: var(--primary);
}

.post-comment-action.saved {
  color: var(--primary);
}

.post-comment-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.post-comment-footer-time {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.post-comment-replying {
  display: none;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.post-comment-replying.active {
  display: flex;
}

.post-comment-replying button {
  color: var(--text-link);
  font-weight: 600;
}

.post-comment-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-comment-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-comment-input i {
  color: var(--text-secondary);
}

.post-comment-input input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
}

.post-comment-form button {
  /* background: var(--primary); */
  color: var(--primary);
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 600;
}

/* Post share modal */
.post-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(83, 81, 81, 0.85);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 1003;
}

.post-share-overlay.active {
  display: flex;
}

.post-share-modal {
  position: relative;
  width: min(900px, 96vw);
  /* height: calc(100vh - var(--admin-bar-height, 0px) - 40px); */
  max-height: calc(100vh - var(--admin-bar-height, 0px) - 40px);
  margin-top: calc(var(--admin-bar-height, 0px) + 20px);
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 20px 24px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.post-share-close {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 20px;
  color: var(--text-primary);
}

.post-share-header {
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);

  h3 {
    font-size: 16px;
  }
}

.post-share-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--text-secondary);
}

.post-share-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
}

.post-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  overflow-y: auto;
  padding: 4px;
  min-height: 120px;
  /* flex: 1; */
}

.post-share-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: transparent;
  transition: background 0.2s ease;
  height: 168px;
  justify-content: flex-start;
}

.post-share-user img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.post-share-user .post-share-name {
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-share-user.selected {
  background: var(--bg-tertiary);
}

.post-share-empty {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 16px;
}

.post-share-divider {
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
}

.post-share-actions {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.post-share-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.post-share-selected {
  font-size: 13px;
  color: var(--text-secondary);
}

.post-share-send {
  /* background: var(--primary); */
  color: var(--primary);
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
}

.post-share-send.disabled,
.post-share-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.post-share-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.post-share-action i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@media (max-width: 900px) {
  .post-share-modal {
    width: min(96vw, 96vw);
    height: calc(100vh - var(--admin-bar-height, 0px));
    max-height: calc(100vh - var(--admin-bar-height, 0px));
    margin-top: var(--admin-bar-height, 0px);
    margin-bottom: 0;
    border-radius: 20px;
    padding: 18px 16px;
  }

  .post-share-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 900px) {
  .post-comment-modal {
    grid-template-columns: 1fr;
    /* height: calc(100vh - var(--admin-bar-height, 0px)); */
    max-height: calc(100vh - var(--admin-bar-height, 0px));
  }

  .post-comment-media {
    display: none;
  }
}

@media (min-width: 901px) {
  .post-comment-replies {
    width: 100%;
    margin-right: 0;
  }
}

/* Story navigation arrow */
.story-nav {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #262626;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Post
   ========================================== */
.post {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
}

.post-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  justify-content: space-between;
}

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.post-user {
  flex: 1;
}

.post-username {
  font-weight: 600;
  font-size: 14px;
}

.post-username .verified {
  color: var(--primary);
  font-size: 12px;
  margin-left: 4px;
}

.post-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-more {
  color: var(--text-primary);
  font-size: 16px;
  padding: 8px;
}

.post-media {
  position: relative;
  overflow: hidden;
  background: #111;
}

.post-media-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.post-media-slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.post-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #111;
  display: block;
}

.post-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.post-media-nav.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.post-media-prev {
  left: 10px;
}

.post-media-next {
  right: 10px;
}

.post-media-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.post-media-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.post-media-dot.active {
  background: #fff;
}

.post-media-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.post-media-sound.is-muted {
  opacity: 0.7;
}

.post-actions {
  display: flex;
  align-items: center;
  padding: 8px 16px 0;
}

.post-actions-left {
  display: flex;
  gap: 16px;
  flex: 1;
}

.action-btn {
  font-size: 24px;
  color: var(--text-primary);
  padding: 8px;
  margin: -8px;
  transition: opacity 0.2s;
}

.action-btn:hover {
  opacity: 0.6;
}

.action-btn.liked {
  color: var(--heart-red);
}

.action-btn.reposted {
  color: var(--primary);
}

.action-btn.saved {
  color: var(--primary);
}

.post-likes {
  padding: 0 16px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

.post-likes .is-hidden {
  display: none;
}

.post-caption {
  padding: 8px 16px 0;
  font-size: 14px;
}

.post-caption-content {
  line-height: 1.4;
}

.post-caption.is-collapsed .post-caption-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-caption strong {
  font-weight: 600;
  margin-right: 4px;
}

.post-caption-toggle {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.post-caption-toggle.is-hidden {
  display: none;
}

.post-caption .hashtag {
  color: var(--text-link);
}

.view-comments {
  padding: 8px 16px 0;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.post-timestamp {
  padding: 8px 16px 16px;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.add-comment {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

.add-comment .emoji {
  font-size: 24px;
  color: var(--text-primary);
  margin-right: 12px;
}

.add-comment input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
}

.add-comment input::placeholder {
  color: var(--text-secondary);
}

.add-comment input:focus {
  outline: none;
}

.add-comment .post-btn {
  color: var(--primary);
  font-weight: 600;
  opacity: 0.3;
}

.add-comment .post-btn.active {
  opacity: 1;
}

/* ==========================================
   Right Sidebar
   ========================================== */
.right-sidebar {
  width: 320px;
  padding: 32px 0 0 32px;
  position: sticky;
  top: 0;
  height: fit-content;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.sidebar-profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.sidebar-profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar-profile-info .username {
  font-weight: 600;
  font-size: 14px;
}

.sidebar-profile-info .name {
  font-size: 14px;
  color: var(--text-secondary);
}

.switch-btn {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

/* Suggestions */
.suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.suggestions-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.suggestions-header a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.suggestion {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  max-height: 80px;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin-bottom 0.25s ease;
}

.suggestion img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.suggestion-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.suggestion-info .username {
  font-weight: 600;
  font-size: 14px;
}

.suggestion-info .reason {
  font-size: 12px;
  color: var(--text-secondary);
}

.follow-btn {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.suggestion.suggestion-enter {
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  margin-bottom: 0;
}

.suggestion.suggestion-leaving {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-bottom: 0;
}

/* Footer */
.sidebar-footer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.sidebar-footer a {
  color: var(--text-secondary);
}

.sidebar-footer a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Messages floating button */
.messages-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.messages-btn i {
  font-size: 20px;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1264px) {
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {

  .tp-header-top-2,
  .messages-btn {
    display: none !important;
  }

  .sidebar {
    width: var(--sidebar-collapsed);
    padding: 8px;
  }

  .logo {
    font-size: 28px;
    padding: 25px 8px;
  }

  .logo span {
    display: none;
  }

  .nav-item span,
  .nav-item .badge {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }

  .main-content {
    margin-left: var(--sidebar-collapsed);
  }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes heartPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  15% {
    transform: scale(1.2);
    opacity: 1;
  }

  30% {
    transform: scale(0.95);
    opacity: 1;
  }

  45%,
  80% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.heart-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 80px;
  color: white;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.heart-overlay.show {
  animation: heartPop 1s ease forwards;
}

/* Story viewer */
.story-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.9);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
}

.story-overlay.active {
  display: flex;
}

.story-viewer {
  width: min(520px, 92vw);
  height: calc(100vh - var(--admin-bar-height, 0px));
  max-height: calc(100vh - var(--admin-bar-height, 0px));
  margin-top: var(--admin-bar-height, 0px);
  background: #1f232b;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.story-progress {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  height: 3px;
  z-index: 12;
}

.story-progress-segment {
  flex: 1;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.story-progress-segment span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.story-viewer-header {
  position: absolute;
  top: 22px;
  left: 16px;
  right: 16px;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.story-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.story-user-name {
  font-weight: 600;
  font-size: 14px;
}

.story-user-time {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.story-viewer-close {
  position: absolute;
  top: 18px;
  right: 16px;
  color: #fff;
  font-size: 22px;
  z-index: 12;
  cursor: pointer;
}

.story-viewer-pause {
  position: absolute;
  top: 18px;
  right: 56px;
  color: #fff;
  font-size: 20px;
  z-index: 12;
  cursor: pointer;
}

.story-viewer-body {
  width: 100%;
  height: 100%;
  background: #151820;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-media {
  width: 100%;
  max-width: 100%;
  display: none;
  object-fit: cover;
}

.story-media.is-active {
  display: block;
}

.story-media-video {
  background: #000;
}

.story-media-text {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
  line-height: 1.4;
  box-sizing: border-box;
}

.story-media-text.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-viewer-footer {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 12;
}

.story-reply {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.story-viewer-footer input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  padding: 10px 52px 10px 14px;
  color: #fff;
}

.story-viewer-footer input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.story-reply-send {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
}

.story-reply.has-text .story-reply-send {
  opacity: 1;
  pointer-events: auto;
}

.story-footer-like {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.story-footer-like i {
  color: var(--primary);
}

.story-footer-like.active,
.story-footer-like.active i {
  color: var(--heart-red);
}

.story-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
}

.story-nav-prev {
  left: 12px;
}

.story-nav-next {
  right: 12px;
}
