:root {
  --feed-max-width: 630px;
  --sidebar-width: 320px;
  --navbar-height: 64px;
  --story-ring-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --story-ring-tavada: linear-gradient(135deg, #FF9950 0%, #DF7B3C 40%, #E63946 80%, #7209B7 100%);
  --like-red: #ed4956;
  --nav-float-radius: 32px;
}

body.feed-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

.feed-app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 96px;
}

@media (min-width: 769px) {
  .feed-app-wrapper {
    padding-bottom: 40px;
  }
}

.floating-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: var(--nav-float-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  user-select: none;
}

[data-theme="light"] .floating-navbar,
html.light-mode .floating-navbar,
body.light-mode .floating-navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(223, 123, 60, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .floating-navbar,
body.dark-mode .floating-navbar,
body.dark .floating-navbar {
  background: rgba(22, 22, 28, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.6),
    0 2px 12px rgba(223, 123, 60, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.desktop-navbar {
  position: sticky;
  top: 14px;
  width: calc(100% - 32px);
  max-width: 1020px;
  margin: 14px auto 20px auto;
  z-index: 1000;
  height: 56px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--primary-orange-gradient) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 18px rgba(223, 123, 60, 0.28) !important;
  border: none !important;
  box-sizing: border-box;
}

.desktop-navbar .brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  flex-shrink: 0;
}

.desktop-navbar .brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-navbar .brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.desktop-navbar .full-width-search {
  width: 100%;
  max-width: 100%;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.desktop-navbar .nav-search-box {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.desktop-navbar .nav-search-box:focus-within {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.desktop-navbar .nav-search-icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.desktop-navbar .nav-search-input {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
}

.desktop-navbar .nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.desktop-navbar .nav-search-clear {
  color: #ffffff;
}

.desktop-navbar .search-results-dropdown {
  width: 100%;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.desktop-nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.desktop-navbar .desktop-theme-toggle-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.desktop-navbar .desktop-theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: scale(1.08) rotate(15deg);
}

.desktop-navbar .desktop-theme-toggle-btn svg {
  stroke: #ffffff !important;
}

.desktop-nav-profile-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.desktop-nav-profile-link:hover {
  transform: scale(1.06);
}

.desktop-nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
  .desktop-navbar {
    display: none !important;
  }
}

.insta-left-sidebar {
  display: none;
}

@media (min-width: 769px) {
  .feed-app-wrapper.has-left-sidebar {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
  }

  .feed-content-wrapper {
    flex: 1;
    min-width: 0;
    margin-left: 76px;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .insta-left-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 76px;
    height: 100vh;
    padding: 20px 10px 24px 10px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-subtle);
    z-index: 1020;
    box-sizing: border-box;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    overflow-y: auto;
    overflow-x: hidden;
  }

  [data-theme="light"] .insta-left-sidebar,
  html.light-mode .insta-left-sidebar,
  body.light-mode .insta-left-sidebar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.04);
  }

  [data-theme="dark"] .insta-left-sidebar,
  body.dark-mode .insta-left-sidebar,
  body.dark .insta-left-sidebar {
    background: rgba(18, 18, 24, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
  }
}

@media (min-width: 1260px) {
  .feed-content-wrapper {
    margin-left: 240px;
  }

  .insta-left-sidebar {
    width: 240px;
    padding: 24px 14px 24px 14px;
  }
}

.insta-sidebar-top {
  display: flex;
  align-items: center;
  padding: 8px 6px 20px 6px;
}

.insta-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  height: 44px;
  padding: 0 4px;
  border-radius: 14px;
  transition: opacity 0.2s ease, transform 0.15s ease;
  width: 100%;
}

.insta-logo-link:hover {
  transform: scale(1.02);
}

.insta-logo-full-img {
  display: none;
  height: 38px;
  max-width: 165px;
  object-fit: contain;
  object-position: left center;
}

.insta-logo-collapsed-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin: 0 auto;
}

@media (min-width: 1260px) {
  .insta-logo-full-img {
    display: block;
  }

  .insta-logo-collapsed-img {
    display: none;
  }
}

.insta-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding-top: 4px;
}

.insta-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-family: inherit;
  position: relative;
}

.insta-nav-link:hover {
  background: rgba(125, 125, 125, 0.08);
  transform: translateX(2px);
}

.insta-nav-link:active {
  transform: scale(0.98);
}

.insta-nav-link.active {
  font-weight: 700;
  color: var(--primary-orange);
}

.insta-nav-link.active svg {
  color: var(--primary-orange);
}

.insta-nav-icon-wrap {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  color: inherit;
}

.insta-nav-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: inherit;
  transition: transform 0.15s ease;
}

.insta-nav-link:hover .insta-nav-icon-wrap svg {
  transform: scale(1.08);
}

.insta-nav-label-wrap {
  display: none;
  overflow: hidden;
}

.insta-nav-label {
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
}

@media (min-width: 1260px) {
  .insta-nav-label-wrap {
    display: block;
  }
}

.insta-badge-pill {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--like-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  border: 2px solid var(--bg-card);
  line-height: 1.2;
}

.insta-sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.insta-profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-subtle);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.insta-nav-link:hover .insta-profile-avatar,
.insta-nav-link.active .insta-profile-avatar {
  border-color: var(--primary-orange);
  transform: scale(1.08);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-logo {
  font-family: var(--font-logo);
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--primary-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.5px;
}

.nav-brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
}

[data-theme="dark"] .nav-brand-badge,
body.dark-mode .nav-brand-badge {
  background: rgba(223, 123, 60, 0.2);
  color: #ff9d5c;
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-pill-link:hover {
  color: var(--text-primary);
  background: rgba(125, 125, 125, 0.08);
}

.nav-pill-link.active {
  color: #ffffff;
  background: var(--primary-orange-gradient);
  box-shadow: 0 4px 14px var(--primary-orange-glow);
}

.nav-pill-link.active svg {
  stroke: #ffffff;
}

.desktop-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-orange-gradient);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-orange-glow);
  transition: all 0.25s ease;
}

.nav-create-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-orange-glow);
}

.nav-create-btn:active {
  transform: translateY(1px);
}

.mobile-top-bar,
.header-card.mobile-top-bar {
  display: none !important;
}

@media (max-width: 768px) {

  .mobile-top-bar,
  .header-card.mobile-top-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 8px 20px;
    position: sticky;
    top: 10px;
    z-index: 999;
    width: calc(100% - 24px);
    max-width: 440px;
    box-sizing: border-box;
    background: var(--primary-orange-gradient) !important;
    box-shadow: 0 4px 18px rgba(223, 123, 60, 0.28) !important;
    border-radius: 9999px !important;
    margin: 10px auto 16px auto !important;
    border: none !important;
  }
}

@media (max-width: 400px) {
  .mobile-top-bar {
    padding: 6px 12px 6px 16px;
    width: calc(100% - 20px);
    margin: 8px auto 14px auto !important;
  }

  .mobile-top-bar .brand-logo-img {
    height: 28px;
    max-width: 115px;
  }

  .mobile-top-bar .header-right-actions {
    gap: 6px;
  }

  .mobile-top-bar .mobile-notif-btn,
  .mobile-top-bar .theme-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  .mobile-top-bar .mobile-notif-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: #ffffff !important;
    color: #ffffff !important;
  }
}

.mobile-top-logo {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--primary-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-bottom-navbar,
.feed-body .mobile-bottom-navbar,
.feed-body.has-left-sidebar .mobile-bottom-navbar {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-bottom-navbar,
  .feed-body .mobile-bottom-navbar,
  .feed-body.has-left-sidebar .mobile-bottom-navbar {
    display: flex !important;
    position: fixed;
    bottom: 14px;
    left: 12px;
    right: 12px;
    max-width: 440px;
    margin: 0 auto;
    z-index: 1000;
    height: 60px;
    padding: 4px 8px;
    gap: 2px;
    box-sizing: border-box;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  border-radius: 18px;
  position: relative;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-item.active {
  color: var(--primary-orange);
}

.mobile-nav-item.active svg {
  transform: scale(1.15);
  stroke: var(--primary-orange);
}

.mobile-nav-item:active svg {
  transform: scale(0.9);
}

.mobile-nav-item.create-item {
  flex: 1.05;
}

.mobile-create-trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-orange-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px var(--primary-orange-glow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
}

@media (max-width: 380px) {
  .mobile-bottom-navbar {
    bottom: 10px;
    left: 8px;
    right: 8px;
    height: 56px;
    padding: 3px 4px;
    gap: 1px;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-create-trigger {
    width: 38px;
    height: 38px;
  }

  .mobile-create-trigger svg {
    width: 18px;
    height: 18px;
  }
}

.mobile-create-trigger:hover,
.mobile-create-trigger:active {
  transform: scale(1.08);
  box-shadow: 0 6px 24px var(--primary-orange-glow);
}

.mobile-create-trigger svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 2.4;
}

.feed-main-container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 0 16px;
  box-sizing: border-box;
}

.feed-content-column {
  width: 100%;
  max-width: var(--feed-max-width);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-sidebar-column {
  display: none;
  width: var(--sidebar-width);
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .feed-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(223, 123, 60, 0.3) transparent;
    padding-right: 6px;
    padding-bottom: 24px;
  }

  .feed-sidebar-column::-webkit-scrollbar {
    width: 6px;
  }

  .feed-sidebar-column::-webkit-scrollbar-track {
    background: transparent;
  }

  .feed-sidebar-column::-webkit-scrollbar-thumb {
    background: rgba(223, 123, 60, 0.25);
    border-radius: 9999px;
  }

  .feed-sidebar-column::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
  }
}

.feed-trending-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 14px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feed-trending-tags-bar::-webkit-scrollbar {
  display: none;
}

.trending-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.trending-tag-pill:hover,
.trending-tag-pill.active {
  background: var(--primary-orange-light);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-1px);
}

.double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.45s ease;
}

.double-tap-heart.animate {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 0.95;
}

.post-restaurant-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(223, 123, 60, 0.14);
  color: var(--primary-orange);
  border: 1px solid rgba(223, 123, 60, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.post-restaurant-badge:hover {
  background: var(--primary-orange);
  color: #ffffff;
}

.stories-tray-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stories-scroll-container {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 6px;
}

.stories-scroll-container::-webkit-scrollbar {
  display: none;
}

.story-bubble-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  user-select: none;
}

.story-ring-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #FF7A00 0%, #DF7B3C 35%, #E63946 70%, #9D4EDD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 3px 12px rgba(223, 123, 60, 0.35);
}

.story-ring-wrap.has-story:not(.is-viewed),
.story-bubble-item:not(.viewed-story) .story-ring-wrap,
.story-bubble-item.add-story.has-my-story:not(.viewed-story) .story-ring-wrap:not(.is-viewed) {
  background: linear-gradient(135deg, #FF7A00 0%, #DF7B3C 35%, #E63946 70%, #9D4EDD 100%) !important;
  box-shadow: 0 3px 14px rgba(223, 123, 60, 0.45) !important;
  opacity: 1 !important;
}

.story-ring-wrap.is-viewed,
.story-bubble-item.viewed-story .story-ring-wrap,
.story-bubble-item.add-story.has-my-story.viewed-story .story-ring-wrap,
.story-bubble-item.add-story.has-my-story .story-ring-wrap.is-viewed {
  background: #525252 !important;
  box-shadow: none !important;
  opacity: 0.65 !important;
}

[data-theme="light"] .story-ring-wrap.is-viewed,
[data-theme="light"] .story-bubble-item.viewed-story .story-ring-wrap,
[data-theme="light"] .story-bubble-item.add-story.has-my-story.viewed-story .story-ring-wrap,
[data-theme="light"] .story-bubble-item.add-story.has-my-story .story-ring-wrap.is-viewed,
html.light-mode .story-ring-wrap.is-viewed,
html.light-mode .story-bubble-item.viewed-story .story-ring-wrap,
html.light-mode .story-bubble-item.add-story.has-my-story.viewed-story .story-ring-wrap,
html.light-mode .story-bubble-item.add-story.has-my-story .story-ring-wrap.is-viewed {
  background: #cbd5e1 !important;
  opacity: 0.75 !important;
}

.story-bubble-item.viewed-story .story-author-label {
  color: var(--text-secondary);
  opacity: 0.85;
}

.story-bubble-item:hover .story-ring-wrap {
  transform: scale(1.06);
}

.story-bubble-item:active .story-ring-wrap {
  transform: scale(0.95);
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  border: 2px solid var(--bg-card);
}

.story-bubble-item.add-story:not(.has-my-story) .story-ring-wrap {
  background: none !important;
  border: 2px dashed var(--border-subtle) !important;
  padding: 2px !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.story-bubble-item.add-story.has-my-story .story-ring-wrap {
  border: none !important;
  padding: 2.5px !important;
}

.story-add-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-orange-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.story-author-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.feed-posts-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.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-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 1.5px;
  background: var(--story-ring-tavada);
}

.post-author-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--bg-card);
}

.post-author-names {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.post-location-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.post-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-recipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="dark"] .post-recipe-badge {
  background: rgba(223, 123, 60, 0.2);
  color: #ff9d5c;
}

.post-recipe-badge:hover {
  background: var(--primary-orange);
  color: #ffffff;
}

.post-menu-container {
  position: relative;
  display: flex;
  align-items: center;
}

.post-menu-trigger-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.post-menu-trigger-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .post-menu-trigger-btn:hover,
body.dark-mode .post-menu-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.post-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 105;
  display: none;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: postMenuAnim 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-dropdown-menu.active {
  display: flex;
}

@keyframes postMenuAnim {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.post-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.post-menu-item .menu-item-icon {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.post-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-theme="dark"] .post-menu-item:hover,
body.dark-mode .post-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.post-menu-item.danger {
  color: #ef4444;
}

.post-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.post-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 4px;
}

.report-reason-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
  background: var(--bg-card);
}

.report-reason-radio-label:hover {
  border-color: var(--primary-orange);
  background: rgba(223, 123, 60, 0.06);
}

.report-reason-radio-label input[type="radio"] {
  accent-color: var(--primary-orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.post-dialog-cancel-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-dialog-cancel-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.post-media-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  background: #0d0d0f;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.heart-burst-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
}

.heart-burst-overlay svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4));
}

.heart-burst-overlay.animate-burst {
  animation: heartPopAnim 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPopAnim {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }

  20% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }

  40% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 1;
  }

  70% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

.post-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 6px 18px;
}

.post-left-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.15s ease, color 0.15s ease;
}

.action-icon-btn:hover {
  color: var(--primary-orange);
}

.action-icon-btn:active {
  transform: scale(0.85);
}

.action-icon-btn svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-icon-btn.liked {
  color: var(--like-red);
}

.action-icon-btn.liked svg {
  fill: var(--like-red);
  stroke: var(--like-red);
  animation: likePulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes likePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.post-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-icon-btn.saved {
  color: var(--primary-orange) !important;
}

.action-icon-btn.saved svg {
  fill: var(--primary-orange) !important;
  stroke: var(--primary-orange) !important;
  animation: likePulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-details {
  padding: 6px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-likes-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.post-caption-box {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
}

.post-caption-author {
  font-weight: 700;
  margin-right: 6px;
}

.post-caption-text .hashtag {
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
}

[data-theme="dark"] .post-caption-text .hashtag {
  color: #60a5fa;
}

.post-caption-text .caption-recipe-link {
  color: var(--primary-orange, #DF7B3C) !important;
  font-weight: 700;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.post-caption-text .caption-recipe-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.post-view-comments-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  margin-top: 2px;
}

.post-view-comments-btn:hover {
  text-decoration: underline;
}

.post-comments-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-preview-item {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.comment-preview-author {
  font-weight: 600;
  margin-right: 6px;
}

.post-time-ago {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.post-quick-comment-form {
  display: flex;
  align-items: center;
  padding: 10px 18px 12px 18px;
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
}

.quick-comment-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
}

.quick-comment-input::placeholder {
  color: var(--text-secondary);
}

.quick-comment-submit-btn {
  background: none;
  border: none;
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.quick-comment-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-user-handle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.sidebar-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-suggested-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-mini-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-item-subtitle {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.sidebar-follow-btn {
  background: none;
  border: none;
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.sidebar-follow-btn:hover {
  color: var(--primary-orange-hover);
}

.feed-daily-menu-card {
  background: linear-gradient(135deg, rgba(223, 123, 60, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1.5px solid rgba(223, 123, 60, 0.3);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(223, 123, 60, 0.08);
  transition: all 0.25s ease;
}

[data-theme="dark"] .feed-daily-menu-card,
body.dark-mode .feed-daily-menu-card {
  background: linear-gradient(135deg, rgba(223, 123, 60, 0.18) 0%, rgba(30, 41, 59, 0.7) 100%);
  border-color: rgba(223, 123, 60, 0.4);
}

.feed-daily-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.feed-daily-menu-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-daily-menu-star {
  font-size: 1.2rem;
}

.feed-daily-menu-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-daily-menu-bonus-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #D97706;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

[data-theme="dark"] .feed-daily-menu-bonus-tag,
body.dark-mode .feed-daily-menu-bonus-tag {
  background: rgba(245, 158, 11, 0.25);
  color: #FBBF24;
}

.feed-daily-menu-all-link {
  text-decoration: none;
  color: var(--primary-orange);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.feed-daily-menu-all-link:hover {
  transform: translateX(2px);
}

.feed-daily-menu-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feed-daily-menu-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.feed-daily-menu-img-link:hover .feed-daily-menu-img {
  transform: scale(1.04);
}

.feed-daily-menu-info {
  flex: 1;
  min-width: 0;
}

.feed-daily-menu-day-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.feed-daily-menu-recipe-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-daily-menu-recipe-category {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

.feed-daily-menu-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-daily-menu-cook-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #DF7B3C 0%, #D97706 100%);
  padding: 5px 12px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(223, 123, 60, 0.25);
  transition: transform 0.2s ease;
}

.feed-daily-menu-cook-btn:hover {
  transform: translateY(-1px);
}

.feed-daily-menu-calendar-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.feed-daily-menu-calendar-btn:hover {
  color: var(--primary-orange);
}

.sidebar-weekly-menu-card {
  background: linear-gradient(135deg, rgba(223, 123, 60, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid rgba(223, 123, 60, 0.25);
}

[data-theme="dark"] .sidebar-weekly-menu-card,
body.dark-mode .sidebar-weekly-menu-card {
  background: linear-gradient(135deg, rgba(223, 123, 60, 0.12) 0%, rgba(30, 41, 59, 0.6) 100%);
  border-color: rgba(223, 123, 60, 0.35);
}

.sidebar-weekly-today-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 4px 0;
  transition: transform 0.2s ease;
}

.sidebar-weekly-today-item:hover {
  transform: translateX(2px);
}

.sidebar-weekly-mini-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(223, 123, 60, 0.25);
  flex-shrink: 0;
}

.sidebar-weekly-mini-info {
  flex: 1;
  min-width: 0;
}

.sidebar-weekly-sub-badge {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--primary-orange);
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.sidebar-weekly-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-weekly-meta {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.story-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.story-viewer-modal.active {
  display: flex;
}

.story-top-stage-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.story-stage-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-brand-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.story-stage-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-stage-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.story-carousel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  padding: 20px;
  position: relative;
}

.story-preview-card {
  width: 200px;
  height: 356px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.45;
  transform: scale(0.85);
  display: block;
}

.story-preview-card:hover {
  opacity: 0.85;
  transform: scale(0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.story-preview-card.hidden {
  display: none !important;
}

.story-preview-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.story-preview-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.story-preview-badge-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: #ffffff;
  text-align: center;
  z-index: 5;
}

.story-preview-avatar-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--story-ring-tavada, linear-gradient(45deg, #DF7B3C, #f59e0b, #ec4899));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.story-preview-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #111111;
}

.story-preview-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-preview-username {
  font-size: 0.86rem;
  font-weight: 700;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.story-preview-time {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
}

.story-main-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.story-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 60;
  transition: all 0.2s ease;
}

.story-nav-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.12);
}

.story-nav-arrow.left {
  left: -64px;
}

.story-nav-arrow.right {
  right: -64px;
}

.story-nav-arrow:disabled,
.story-nav-arrow.disabled {
  opacity: 0;
  pointer-events: none;
}

.story-viewer-frame {
  width: min(440px, 92vw);
  height: min(780px, 86vh);
  aspect-ratio: 9 / 16;
  background: #000000;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.story-progress-bar-tray {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 30;
}

.story-progress-seg {
  height: 2.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  flex: 1;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: #ffffff;
  width: 0%;
  border-radius: 4px;
}

.story-header-bar {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  color: #ffffff;
}

.story-author-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-avatar-link {
  text-decoration: none;
  display: block;
}

.story-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  object-fit: cover;
  display: block;
}

.story-header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-header-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.story-header-dot {
  font-size: 0.8rem;
  opacity: 0.6;
}

.story-header-time {
  font-size: 0.78rem;
  opacity: 0.85;
}

.story-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-control-btn {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.story-control-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.story-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.story-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-tap-zone {
  position: absolute;
  top: 60px;
  bottom: 80px;
  width: 45%;
  z-index: 20;
}

.story-tap-zone.left {
  left: 0;
}

.story-tap-zone.right {
  right: 0;
}

.story-caption-overlay {
  position: absolute;
  bottom: 80px;
  left: 16px;
  right: 16px;
  z-index: 30;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.story-interactive-bottom-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  z-index: 35;
}

.story-likers-trigger-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 8px 14px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-likers-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.story-likers-icon {
  font-size: 1rem;
}

.story-likers-subtext {
  font-size: 0.76rem;
  opacity: 0.8;
  font-weight: 500;
}

.story-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.story-action-icon-btn {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.story-action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.story-action-icon-btn.liked {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
}

.story-action-icon-btn.liked .story-heart-icon {
  fill: #ef4444;
  stroke: #ef4444;
  animation: heartBurst 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes heartBurst {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.story-quick-emoji:hover {
  transform: scale(1.35);
}

.story-reaction-float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 45;
}

.floating-story-emoji {
  position: absolute;
  bottom: 80px;
  font-size: 2.2rem;
  animation: floatEmojiUp 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  pointer-events: none;
}

@keyframes floatEmojiUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }

  50% {
    opacity: 0.9;
    transform: translateY(-240px) scale(1.3) rotate(var(--rot, 15deg));
  }

  100% {
    opacity: 0;
    transform: translateY(-480px) scale(1) rotate(var(--rot, -15deg));
  }
}

.story-header-close-btn {
  display: none;
}

@media (min-width: 901px) {
  .story-header-close-btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .story-top-stage-bar {
    display: none !important;
  }

  .story-header-close-btn {
    display: flex !important;
  }

  .story-preview-card {
    display: none !important;
  }

  .story-nav-arrow {
    display: none !important;
  }

  .story-viewer-modal {
    background: #000000;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 3000;
  }

  .story-carousel-stage {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    gap: 0;
  }

  .story-main-card-wrapper {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
  }

  .story-viewer-frame {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    aspect-ratio: unset;
    position: fixed;
    inset: 0;
  }

  .story-progress-bar-tray {
    top: max(8px, env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    gap: 3px;
    z-index: 40;
  }

  .story-progress-seg {
    height: 2px;
  }

  .story-header-bar {
    top: calc(max(8px, env(safe-area-inset-top)) + 8px);
    left: 12px;
    right: 12px;
    z-index: 40;
  }

  .story-author-left {
    gap: 8px;
  }

  .story-header-avatar {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
  }

  .story-header-name {
    font-size: 0.88rem;
    font-weight: 600;
  }

  .story-header-time {
    font-size: 0.8rem;
    opacity: 0.75;
  }

  .story-control-btn {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 32px;
    height: 32px;
  }

  .story-image-wrap {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000000;
  }

  .story-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .story-caption-overlay {
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 58px);
    left: 12px;
    right: 12px;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .story-interactive-bottom-bar {
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .story-reply-input-wrap {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
  }

  .story-reply-input {
    height: 44px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 0.88rem;
    padding: 0 38px 0 16px;
    width: 100%;
  }

  .story-action-icon-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .story-quick-reactions-tray {
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px);
    left: 8px;
    right: 8px;
    border-radius: 24px;
    padding: 8px 6px;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: space-around;
  }

  .story-quick-emoji {
    font-size: 1.45rem;
    padding: 2px 4px;
  }
}

.comments-drawer-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.comments-drawer-modal.active {
  display: flex;
}

@media (min-width: 769px) {
  .comments-drawer-modal {
    align-items: center;
  }
}

.comments-drawer-card {
  width: 100%;
  max-width: 540px;
  max-height: 80vh;
  background: var(--bg-card);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-dropdown);
  animation: slideUpDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (min-width: 769px) {
  .comments-drawer-card {
    border-radius: 28px;
    height: 650px;
  }
}

@keyframes slideUpDrawer {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.comments-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.comments-drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.comments-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.comments-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}

.comment-row-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  width: 100%;
}

.comment-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.comment-row-content {
  flex: 1;
  min-width: 0;
}

.comment-row-bubble {
  background: rgba(125, 125, 125, 0.06);
  padding: 8px 14px;
  border-radius: 16px;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

[data-theme="dark"] .comment-row-bubble,
body.dark-mode .comment-row-bubble {
  background: rgba(255, 255, 255, 0.06);
}

.comment-author-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.comment-row-author {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.comment-row-author:hover {
  color: var(--primary-orange);
}

.comment-reply-to-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-orange);
  background: rgba(223, 123, 60, 0.12);
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.comment-reply-to-badge .reply-arrow {
  font-size: 0.82rem;
  font-weight: 900;
}

.comment-row-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.comment-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 4px;
  padding-left: 4px;
}

.comment-time-ago {
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.comment-reply-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}

.comment-reply-btn:hover {
  color: var(--primary-orange, #DF7B3C);
  background: rgba(223, 123, 60, 0.12);
  text-decoration: underline;
}

.comment-side-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
  padding-top: 2px;
  position: relative;
}

.comment-like-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 26px;
}

.comment-like-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.comment-heart-svg {
  display: block;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.15s ease, stroke 0.15s ease;
}

.comment-like-btn:hover {
  transform: scale(1.15);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.comment-like-btn:active {
  transform: scale(0.9);
}

.comment-like-btn.liked {
  color: #ef4444;
}

.comment-like-btn.liked .comment-heart-svg {
  fill: #ef4444;
  stroke: #ef4444;
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

.comment-likes-count-link {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  user-select: none;
  line-height: 1;
  margin-top: 1px;
}

.comment-likes-count-link:hover {
  color: #ef4444;
}

.comment-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.comment-menu-trigger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.comment-menu-trigger-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-primary);
}

[data-theme="dark"] .comment-menu-trigger-btn:hover,
body.dark-mode .comment-menu-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.comment-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 175px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  z-index: 150;
  display: none;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: commentMenuAnim 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.comment-dropdown-menu.active {
  display: flex;
}

@keyframes commentMenuAnim {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.comment-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}

.comment-dropdown-item svg {
  flex-shrink: 0;
}

.comment-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-orange);
}

[data-theme="dark"] .comment-dropdown-item:hover,
body.dark-mode .comment-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-orange);
}

.comment-dropdown-item.danger {
  color: #ef4444;
}

.comment-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.comment-replies-list {
  margin-top: 10px;
  margin-left: 18px;
  padding-left: 16px;
  border-left: 2.5px solid var(--primary-orange);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.comment-row-item.is-reply {
  background: rgba(223, 123, 60, 0.04);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(223, 123, 60, 0.15);
  position: relative;
}

.comment-row-item.is-reply::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 16px;
  width: 12px;
  height: 2px;
  background: var(--primary-orange);
}

.comment-row-item.is-reply .comment-row-avatar {
  width: 28px;
  height: 28px;
}

.comment-row-item.is-reply .comment-row-bubble {
  background: transparent;
  padding: 0;
}

@media (max-width: 768px) {
  .comments-list-body {
    padding: 12px 14px;
    gap: 12px;
  }

  .comment-row-item {
    gap: 8px;
  }

  .comment-row-avatar {
    width: 32px;
    height: 32px;
  }

  .comment-row-bubble {
    padding: 7px 11px;
    border-radius: 14px;
  }

  .comment-row-author {
    font-size: 0.82rem;
  }

  .comment-row-text {
    font-size: 0.84rem;
  }

  .comment-side-actions {
    gap: 3px;
    padding-top: 2px;
  }

  .comment-like-btn,
  .comment-menu-trigger-btn {
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .comment-dropdown-menu {
    min-width: 170px;
    z-index: 300;
  }

  .comment-dropdown-item {
    padding: 10px 12px;
    min-height: 40px;
    font-size: 0.84rem;
  }

  .comment-replies-list {
    margin-left: 10px;
    padding-left: 12px;
    margin-top: 8px;
    gap: 8px;
  }

  .comment-row-item.is-reply {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .comment-row-item.is-reply::before {
    left: -12px;
    top: 14px;
    width: 10px;
  }

  .comment-row-item.is-reply .comment-row-avatar {
    width: 24px;
    height: 24px;
  }
}

.comment-reply-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(223, 123, 60, 0.12);
  border-top: 1.5px solid var(--primary-orange);
  border-bottom: 1px solid rgba(223, 123, 60, 0.2);
  font-size: 0.84rem;
  color: var(--text-primary);
  animation: fadeIn 0.2s ease;
}

.comment-reply-indicator-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.comment-reply-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-orange);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.comment-reply-cancel-btn {
  background: rgba(125, 125, 125, 0.15);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.comment-reply-cancel-btn:hover {
  color: #fff;
  background: #ef4444;
}

.comments-drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.active {
  display: flex;
}

.create-dialog-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-dropdown);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: zoomModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomModal {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.create-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.create-modal-type-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-surface-secondary, rgba(255, 255, 255, 0.08));
  border-radius: 9999px;
  padding: 3px;
  gap: 4px;
}

.create-tab-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary, #9ca3af);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.create-tab-btn:hover {
  color: var(--text-primary, #ffffff);
}

.create-tab-btn.active {
  background: var(--primary-orange-gradient, linear-gradient(135deg, #df7b3c 0%, #ff9254 100%));
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(223, 123, 60, 0.35);
}

.create-dialog-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.create-dialog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 75vh;
  overflow-y: auto;
}

.photo-upload-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(125, 125, 125, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.photo-upload-dropzone:hover,
.photo-upload-dropzone.dragover {
  border-color: var(--primary-orange);
  background: rgba(223, 123, 60, 0.06);
}

.photo-upload-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-orange);
}

.photo-upload-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.photo-upload-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.photo-preview-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: none;
}

.photo-preview-wrap.has-image {
  display: block;
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-change-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.create-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.create-input-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.create-text-input,
.create-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.create-text-input:focus,
.create-textarea:focus {
  border-color: var(--primary-orange);
}

.create-textarea {
  resize: vertical;
  min-height: 80px;
}

.create-submit-btn {
  background: var(--primary-orange-gradient);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-orange-glow);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.create-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-orange-glow);
}

.create-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.nav-search-container {
  position: relative;
  flex: 1;
  max-width: 320px;
  margin: 0 12px;
}

@media (max-width: 900px) {
  .nav-search-container {
    max-width: 220px;
  }
}

.nav-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(125, 125, 125, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 6px 14px;
  transition: all 0.25s ease;
}

.nav-search-box:focus-within {
  border-color: var(--primary-orange);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(223, 123, 60, 0.15);
}

.nav-search-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.nav-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.nav-search-input::placeholder {
  color: var(--text-secondary);
}

.nav-search-clear {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}

.nav-search-clear:hover {
  color: var(--primary-orange);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 340px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1100;
  max-height: 480px;
  overflow-y: auto;
  padding: 8px;
}

.search-section-header {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  padding: 8px 12px 4px 12px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.18s ease;
}

.search-result-item:hover {
  background: rgba(125, 125, 125, 0.08);
}

.search-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.search-item-avatar.restaurant {
  border-radius: 10px;
}

.search-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-subtitle {
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 14px;
  white-space: nowrap;
}

.search-badge.user {
  background: rgba(223, 123, 60, 0.1);
  color: var(--primary-orange);
}

.search-badge.restaurant {
  background: rgba(255, 193, 7, 0.15);
  color: #d97706;
}

[data-theme="dark"] .search-badge.restaurant {
  color: #fbbf24;
}

.mobile-search-tray {
  display: block;
  width: calc(100% - 24px);
  max-width: 440px;
  margin: 0 auto 14px auto;
  padding: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .mobile-search-tray {
    display: none !important;
  }
}

.mobile-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 9px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

[data-theme="dark"] .mobile-search-box,
body.dark-mode .mobile-search-box,
html.dark-mode .mobile-search-box {
  background: #18181C !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

.mobile-search-box:focus-within {
  border-color: var(--primary-orange) !important;
  box-shadow: 0 4px 20px rgba(223, 123, 60, 0.25) !important;
}

[data-theme="dark"] .mobile-search-box:focus-within,
body.dark-mode .mobile-search-box:focus-within,
html.dark-mode .mobile-search-box:focus-within {
  border-color: var(--primary-orange) !important;
  box-shadow: 0 4px 22px rgba(223, 123, 60, 0.35) !important;
}

.mobile-search-box svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}

[data-theme="dark"] .mobile-search-box svg,
body.dark-mode .mobile-search-box svg,
html.dark-mode .mobile-search-box svg {
  color: #A1A1AA !important;
}

.mobile-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
}

[data-theme="dark"] .mobile-search-input,
body.dark-mode .mobile-search-input,
html.dark-mode .mobile-search-input {
  color: #F5F5F7 !important;
}

.mobile-search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.85;
}

[data-theme="dark"] .mobile-search-input::placeholder,
body.dark-mode .mobile-search-input::placeholder,
html.dark-mode .mobile-search-input::placeholder {
  color: #8E8E93 !important;
}

.mobile-search-clear {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 4px;
}

[data-theme="dark"] .mobile-search-clear,
body.dark-mode .mobile-search-clear,
html.dark-mode .mobile-search-clear {
  color: #A1A1AA !important;
}

.mobile-search-dropdown {
  margin-top: 8px;
  max-height: 380px;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 8px;
}

[data-theme="dark"] .mobile-search-dropdown,
body.dark-mode .mobile-search-dropdown,
html.dark-mode .mobile-search-dropdown {
  background: #18181C !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
}

.sidebar-restaurant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  padding: 6px;
  border-radius: 12px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.sidebar-restaurant-item:hover {
  background: rgba(125, 125, 125, 0.06);
}

.sidebar-restaurant-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.feed-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.feed-stream-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.feed-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feed-refresh-btn:hover {
  background: var(--primary-orange);
  color: #fff;
  border-color: var(--primary-orange);
  transform: translateY(-1px);
}

.feed-refresh-btn.spinning .refresh-icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.notifications-drawer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.notifications-drawer-modal.active {
  display: flex !important;
}

.notifications-drawer-card {
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 768px) {
  .notifications-drawer-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10001 !important;
    padding: calc(68px + env(safe-area-inset-top, 0px)) 12px calc(85px + env(safe-area-inset-bottom, 0px)) 12px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }

  .notifications-drawer-card {
    width: 100% !important;
    max-width: 440px !important;
    max-height: calc(100vh - 165px) !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
  }
}

.notifications-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.notifications-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notifications-drawer-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.notifications-badge {
  background: var(--primary-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notifications-mark-all-btn {
  background: none;
  border: none;
  color: var(--primary-orange);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.notifications-mark-all-btn:hover {
  background: rgba(223, 123, 60, 0.1);
}

.notifications-tabs-bar {
  display: flex;
  padding: 8px 16px;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.notification-tab-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notification-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(125, 125, 125, 0.08);
}

.notification-tab-btn.active {
  background: var(--primary-orange);
  color: #fff;
}

.notifications-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  max-height: 480px;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: background 0.2s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.notification-item:hover {
  background: rgba(125, 125, 125, 0.06);
}

.notification-item.unread {
  background: rgba(223, 123, 60, 0.06);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-orange);
}

.notification-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-subtle);
}

.notification-content {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.4;
}

.notification-actor {
  font-weight: 700;
  color: var(--text-primary);
}

.notification-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.notification-icon-badge {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.likers-dialog-card {
  width: 100%;
  max-width: 420px;
  max-height: 70vh;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.likers-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  max-height: 420px;
}

.liker-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.liker-user-item:hover {
  background: rgba(125, 125, 125, 0.06);
}

.liker-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.liker-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.liker-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.liker-user-handle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.post-author-info {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.post-author-info:hover {
  opacity: 0.85;
}

.post-likes-count {
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.post-likes-count:hover {
  text-decoration: underline;
  color: var(--primary-orange);
}

.hashtag {
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.15s ease;
}

[data-theme="dark"] .hashtag {
  color: #60a5fa;
}

.hashtag:hover {
  text-decoration: underline;
  color: var(--primary-orange);
}

#postLikersModal,
#storyViewersModal {
  z-index: 100005 !important;
  background: rgba(0, 0, 0, 0.75);
}

.likers-dialog-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: zoomModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 82vh;
}

.likers-list-body {
  padding: 12px 18px;
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.liker-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.liker-user-item.has-liked-story {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.04);
}

.liker-user-item:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}

.liker-user-item.has-liked-story:hover {
  background: rgba(239, 68, 68, 0.08);
}

.liker-avatar-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.story-viewer-heart-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 0.78rem;
  background: var(--bg-card, #1e1e1e);
  border: 1.5px solid var(--bg-card, #1e1e1e);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.story-viewer-liked-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.liker-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.liker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-subtle);
}

.liker-user-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.liker-user-handle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  #postLikersModal.modal-backdrop,
  #storyViewersModal.modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
  }

  #postLikersModal .likers-dialog-card,
  #storyViewersModal .likers-dialog-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 26px 26px 0 0 !important;
    max-height: 80vh !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    animation: slideUpBottomSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85) !important;
  }

  @keyframes slideUpBottomSheet {
    from {
      transform: translateY(100%);
      opacity: 0.5;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  #postLikersModal .likers-list-body {
    max-height: 62vh !important;
    padding: 14px 18px 36px 18px !important;
  }
}

.mention-link {
  color: var(--primary-orange, #DF7B3C) !important;
  font-weight: 700;
  text-decoration: none;
  background: rgba(223, 123, 60, 0.12);
  padding: 1px 7px;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.2s ease;
  word-break: break-word;
  cursor: pointer;
}

.mention-link:hover {
  background: var(--primary-orange, #DF7B3C) !important;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(223, 123, 60, 0.35);
}

.mention-autocomplete-dropdown {
  position: fixed;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  max-height: 230px;
  overflow-y: auto;
  z-index: 10005;
  display: none;
  min-width: 250px;
  max-width: 320px;
  padding: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: mentionMenuAnim 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .mention-autocomplete-dropdown,
body.dark-mode .mention-autocomplete-dropdown {
  background: #1c1d22;
  border-color: rgba(255, 255, 255, 0.15);
}

.mention-autocomplete-dropdown.active {
  display: block;
}

@keyframes mentionMenuAnim {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mention-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  color: var(--text-primary);
  user-select: none;
}

.mention-autocomplete-item:hover,
.mention-autocomplete-item.active {
  background: rgba(223, 123, 60, 0.18);
  color: var(--primary-orange, #DF7B3C);
}

.mention-item-avatar,
.mention-autocomplete-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
}

.mention-item-userinfo,
.mention-autocomplete-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.25;
  text-align: left;
  flex: 1;
}

.mention-item-name,
.mention-autocomplete-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-item-username,
.mention-autocomplete-handle {
  font-size: 0.74rem;
  color: var(--primary-orange, #DF7B3C);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   🍽️ FEED MODU SLIDER'I & MEKANLAR KAYDIRILABİLİR AKIŞ (SLIDER)
   ========================================================= */
.feed-view-slider-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0 16px 0;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.feed-sliding-nav-container {
  position: relative;
  background: var(--bg-card, #1c1d22);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 9999px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 420px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.feed-sliding-nav-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--primary-orange-gradient, linear-gradient(135deg, #DF7B3C 0%, #e05e19 100%));
  border-radius: 9999px;
  box-shadow: 0 4px 14px var(--primary-orange-glow, rgba(223, 123, 60, 0.35));
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1), background 0.32s ease, box-shadow 0.32s ease;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.feed-sliding-nav-container.restaurants-active .feed-sliding-nav-indicator {
  transform: translateX(100%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.38);
}

.feed-nav-toggle-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.feed-nav-toggle-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.feed-nav-toggle-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.feed-nav-toggle-btn.active {
  color: #ffffff !important;
}

.feed-nav-toggle-btn:hover:not(.active) {
  color: var(--text-primary, #ffffff);
}

@media (max-width: 768px) {
  .feed-view-slider-wrapper {
    margin: 4px 0 14px 0;
    padding: 0 10px;
  }

  .feed-sliding-nav-container {
    max-width: 100%;
    padding: 3px;
  }

  .feed-sliding-nav-indicator {
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
  }

  .feed-nav-toggle-btn {
    padding: 8px 8px;
    font-size: 0.86rem;
    gap: 6px;
  }

  .feed-nav-toggle-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 380px) {
  .feed-view-slider-wrapper {
    padding: 0 6px;
    margin: 2px 0 12px 0;
  }

  .feed-nav-toggle-btn {
    padding: 7px 5px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .feed-nav-toggle-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Kayan Akış Container & Slider Track */
.feed-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.feed-slider-track {
  width: 200%;
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.feed-slider-viewport.restaurants-active .feed-slider-track {
  transform: translateX(-50%);
}

.feed-slider-pane {
  width: 50%;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.35s ease;
  min-width: 0;
}

.feed-slider-viewport:not(.restaurants-active) .feed-restaurant-pane {
  opacity: 0.15;
  pointer-events: none;
}

.feed-slider-viewport.restaurants-active .feed-user-pane {
  opacity: 0.15;
  pointer-events: none;
}

/* =========================================================
   🏪 GÖNDERİ PAYLAŞIMINDA RESTORAN KİMLİĞİ SEÇİM ALANI
   ========================================================= */
.create-identity-wrapper {
  background: var(--bg-muted, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 12px 14px;
}

.identity-switch-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.identity-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-card, #1c1d22);
  border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary, #94a3b8);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.identity-option-label input[type="radio"] {
  display: none;
}

.identity-option-label:hover {
  border-color: var(--primary-orange, #DF7B3C);
  color: var(--text-primary, #ffffff);
}

.identity-option-label.active {
  background: rgba(223, 123, 60, 0.12);
  border-color: var(--primary-orange, #DF7B3C);
  color: var(--primary-orange, #DF7B3C);
  box-shadow: 0 2px 8px rgba(223, 123, 60, 0.2);
}

#identityLabelRestaurant.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.restaurant-select-box {
  animation: fadeInDown 0.25s ease;
}

.create-select-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.restaurant-selected-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
}

/* Restorana Özel Post Kartı Vurguları */
.post-card.restaurant-post-card {
  border-color: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.06);
}

.restaurant-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.22) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.2;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}