/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --p: #4a2e2a;
  --pl: #7a5c56;
  --pd: #2e1c19;
  --a: #fbeedb;
  --am: #f0d5b0;
  --ad: #c9955a;
  --bg: #fff;
  --bg2: #fdf8f2;
  --bg3: #f5ede0;
  --t: #1a0f0d;
  --t2: #6b4c44;
  --t3: #9c7b73;
  --bd: rgba(74, 46, 42, 0.12);
  --bd2: rgba(74, 46, 42, 0.22);
  --sh: 0 2px 12px rgba(74, 46, 42, 0.1);
  --sh2: 0 6px 32px rgba(74, 46, 42, 0.16);
  --r: 14px;
  --rs: 8px;
  --sidebar-w: 240px; /* expanded desktop sidebar */
  --sidebar-cw: 68px; /* collapsed desktop sidebar */
  --topbar-h: 60px;
  --bottomnav-h: 64px;
  --tube-shell: var(--bg);
  --tube-shell-2: var(--bg2);
  --tube-surface: var(--bg);
  --tube-surface-alt: var(--bg2);
  --tube-surface-strong: var(--bg3);
  --tube-text: var(--t);
  --tube-muted: var(--t2);
  --tube-muted-soft: var(--t3);
  --tube-border: var(--bd);
  --tube-border-strong: var(--bd2);
  --tube-accent: var(--p);
  --tube-like: #c96b58;
  --tube-chip-bg: var(--bg3);
  --tube-chip-text: var(--t2);
  --tube-chip-on-bg: var(--a);
  --tube-chip-on-text: var(--p);
  --tube-chip-on-border: var(--bd2);
  --tube-action-bg: var(--bg2);
  --tube-action-hover: var(--a);
  --tube-sub-bg: var(--p);
  --tube-sub-text: #fff;
  --tube-sub-border: var(--p);
  --tube-subbed-bg: var(--bg2);
  --tube-subbed-text: var(--p);
  --tube-subbed-border: var(--bd2);
  --tube-player-bg: #000;
}
[data-dark] {
  --bg: #150d0b;
  --bg2: #1e1310;
  --bg3: #2a1a16;
  --t: #f5ede0;
  --t2: #c9a898;
  --t3: #7a5a52;
  --bd: rgba(251, 238, 219, 0.1);
  --bd2: rgba(251, 238, 219, 0.2);
  --a: #2e1c19;
  --am: #3d2520;
  --ad: #c9955a;
  --dark-accent-text: #e1c0b0;
  --dark-muted-text: #c9a393;
  --tube-shell: var(--bg);
  --tube-shell-2: var(--bg2);
  --tube-surface: var(--bg2);
  --tube-surface-alt: var(--bg3);
  --tube-surface-strong: var(--a);
  --tube-text: var(--t);
  --tube-muted: var(--dark-accent-text);
  --tube-muted-soft: var(--dark-muted-text);
  --tube-border: var(--bd);
  --tube-border-strong: var(--bd2);
  --tube-accent: var(--dark-accent-text);
  --tube-like: #e2a67a;
  --tube-chip-bg: var(--bg3);
  --tube-chip-text: var(--dark-accent-text);
  --tube-chip-on-bg: var(--a);
  --tube-chip-on-text: var(--dark-accent-text);
  --tube-chip-on-border: var(--bd2);
  --tube-action-bg: var(--bg3);
  --tube-action-hover: var(--a);
  --tube-sub-bg: var(--pl);
  --tube-sub-border: var(--pl);
  --tube-subbed-bg: var(--bg3);
  --tube-subbed-text: var(--dark-accent-text);
  --tube-subbed-border: var(--bd2);
}

/* Improve dark-mode readability without changing light mode layout or palette */
[data-dark] .topbar-logo-text,
[data-dark] .sidebar-logo-text strong,
[data-dark] .drawer-logo-info strong,
[data-dark] .ftab.on,
[data-dark] #prTabs .tab.on,
[data-dark] .ps strong,
[data-dark] .mandir-stat strong,
[data-dark] .bnb.on,
[data-dark] .sb.on,
[data-dark] .drawer-item.on,
[data-dark] .drawer-item.mandir-item {
  color: var(--dark-accent-text);
}

[data-dark] .sidebar-logo-text span,
[data-dark] .drawer-logo-info span,
[data-dark] .ftab,
[data-dark] #prTabs .tab,
[data-dark] .ps span,
[data-dark] .mandir-stat span,
[data-dark] .bnb,
[data-dark] .sb,
[data-dark] .drawer-item {
  color: var(--dark-muted-text);
}

[data-dark] .ftab.on,
[data-dark] #prTabs .tab.on {
  border-bottom-color: var(--dark-accent-text);
}

[data-dark] .bnb.on::after,
[data-dark] .sb.on::before,
[data-dark] .drawer-item.on::before {
  background: var(--dark-accent-text);
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--t);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition:
    background 0.2s,
    color 0.2s;
}

/* ============================================================
   BRAND SPLASH
   ============================================================ */
#brandSplash {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #f7ead8;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.42s ease,
    visibility 0.42s ease;
}
#brandSplash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.brand-splash-inner {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px calc(env(safe-area-inset-bottom, 0px) + 40px);
}
.brand-splash-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.42s ease,
    opacity 0.32s ease;
}
.brand-splash-logo {
  width: clamp(88px, 13vw, 122px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: clamp(24px, 3vw, 34px);
  box-shadow:
    0 20px 50px rgba(74, 46, 42, 0.14),
    0 8px 18px rgba(74, 46, 42, 0.08);
  animation: splashLogoIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.brand-splash-copy {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: rgba(74, 46, 42, 0.72);
  animation: splashCopyIn 0.52s ease both;
  animation-delay: 0.08s;
}
.brand-splash-from {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-splash-name {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: #4a2e2a;
  letter-spacing: 0.01em;
}
#brandSplash.is-hidden .brand-splash-logo-wrap,
#brandSplash.is-hidden .brand-splash-copy {
  transform: translateY(-8px);
  opacity: 0;
}
@keyframes splashLogoIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes splashCopyIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 640px) {
  .brand-splash-inner {
    padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 28px);
  }
  .brand-splash-copy {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  }
  .brand-splash-from {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #brandSplash,
  .brand-splash-logo-wrap,
  .brand-splash-logo,
  .brand-splash-copy {
    animation: none;
    transition: none;
  }
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
input,
textarea,
select {
  font-family: inherit;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
video {
  display: block;
  width: 100%;
  background: #000;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--pl);
  border-radius: 2px;
}

/* ============================================================
   APP SHELL
   ============================================================ */
#app {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   ★ DESKTOP SIDEBAR — EXPANDED WITH LABELS
   ============================================================ */
#sidebar {
  width: var(--sidebar-w);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--bg);
  border-right: 1px solid var(--bd);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 300;
  transition:
    width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s;
  overflow: hidden;
}

/* Logo area at top of sidebar */
.sidebar-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--bd);
  min-height: 72px;
  flex-shrink: 0;
}
/* =========================================================
   ★ LOGO — REPLACE src WITH YOUR OWN IMAGE PATH
   Place your logo file in an /images/ folder next to this HTML:
   Example: <img src="images/logo.png" alt="Mandir Community Logo">
   ========================================================= */
.sidebar-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  /* Fallback gradient shown when no image is loaded */
  background: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sidebar-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback SVG shown inside logo box when no img */
.sidebar-logo-fallback {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    opacity 0.2s,
    width 0.2s;
}
.sidebar-logo-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--p);
  white-space: nowrap;
}
.sidebar-logo-text span {
  font-size: 11px;
  color: var(--t3);
  white-space: nowrap;
}

/* Nav items */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 0;
  color: var(--t2);
  transition: all 0.18s;
  cursor: pointer;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  border: none;
  background: none;
  position: relative;
}
.sb:hover {
  background: var(--a);
  color: var(--p);
}
.sb.on {
  background: var(--a);
  color: var(--p);
  font-weight: 600;
}
.sb.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--p);
  border-radius: 0 3px 3px 0;
}
.sb svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  pointer-events: none;
}
.mandir-nav-ico {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
  stroke: none !important;
}
.sb-label {
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

/* Notification dot on sidebar */
.ndot {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: #e53935;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: none;
}

/* Bottom of sidebar: user area */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-footer-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.sidebar-footer-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer-text span {
  display: block;
  font-size: 11px;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MAIN AREA
   ============================================================ */
#mainArea {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  max-width: calc(100vw - var(--sidebar-w));
  overflow-x: hidden;
}
#feedWrap {
  flex: 1;
  border-right: 1px solid var(--bd);
  min-height: 100vh;
  max-width: 640px;
  min-width: 0;
}
#rightWrap {
  width: 320px;
  padding: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  min-width: 0;
}

/* ============================================================
   ★ MOBILE TOP BAR
   ============================================================ */
#topBar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
  z-index: 400;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  transition: background 0.2s;
}
[data-dark] #topBar {
  background: var(--bg);
}

/* Mobile logo in top bar */
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.topbar-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.topbar-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topbar-logo-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--p);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--bd);
  color: var(--t2);
  transition: all 0.18s;
  cursor: pointer;
}
.topbar-btn:hover {
  background: var(--a);
  color: var(--p);
}
.topbar-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.topbar-auth-btn {
  background: var(--a) !important;
  border-color: var(--p) !important;
}
.topbar-auth-btn:hover {
  background: var(--am) !important;
}

/* Hamburger button */
#hamburgerBtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--bd);
  color: var(--t2);
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
#hamburgerBtn:hover {
  background: var(--a);
  color: var(--p);
}
.ham-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.ham-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
/* Hamburger → X animation */
#hamburgerBtn.open .ham-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#hamburgerBtn.open .ham-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#hamburgerBtn.open .ham-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================================
   ★ MOBILE DRAWER OVERLAY
   ============================================================ */
#drawerOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 350;
  opacity: 0;
  transition: opacity 0.25s;
}
#drawerOverlay.open {
  display: block;
  opacity: 1;
}

/* ============================================================
   ★ MOBILE DRAWER SIDEBAR
   ============================================================ */
#mobileDrawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: var(--bg);
  z-index: 360;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--sh2);
  overflow-y: auto;
}
#mobileDrawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  flex-shrink: 0;
}
/* =========================================================
   ★ MOBILE DRAWER LOGO — same as desktop
   Replace src with your logo path
   ========================================================= */
.drawer-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.drawer-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-logo-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--p);
}
.drawer-logo-info span {
  display: block;
  font-size: 11px;
  color: var(--t3);
}

.drawer-nav {
  flex: 1;
  padding: 8px 0;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  color: var(--t2);
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.drawer-item:hover {
  background: var(--a);
  color: var(--p);
}
.drawer-item.on {
  background: var(--a);
  color: var(--p);
  font-weight: 600;
}
.drawer-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--p);
  border-radius: 0 3px 3px 0;
}
.drawer-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  pointer-events: none;
}

/* Special: Mandir Community accent */
.drawer-item.mandir-item {
  color: var(--p);
}
.drawer-item.mandir-item .drawer-badge {
  margin-left: auto;
  background: var(--p);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.drawer-divider {
  height: 1px;
  background: var(--bd);
  margin: 6px 16px;
}
.drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-footer-info {
  flex: 1;
  min-width: 0;
}
.drawer-footer-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-footer-info span {
  display: block;
  font-size: 11px;
  color: var(--t3);
}

/* ============================================================
   ★ BOTTOM NAV BAR (mobile)
   ============================================================ */
#bottomNav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottomnav-h);
  background: var(--bg);
  border-top: 1px solid var(--bd);
  z-index: 300;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bnb-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}
.bnb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--t3);
  padding: 4px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.18s;
  flex: 1;
  text-align: center;
  border: none;
  background: none;
  position: relative;
  min-width: 0;
}
.bnb.on {
  color: var(--p);
}
.bnb svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bnb-label {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56px;
}
/* Active indicator dot */
.bnb.on::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--p);
  margin: 0 auto;
  margin-top: 2px;
}
/* Mandir special tab indicator */
.bnb.mandir-tab.on {
  color: var(--ad);
}
.bnb.mandir-tab.on::after {
  background: var(--ad);
}
/* Small badge on bottom nav notification */
.bnb-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  width: 7px;
  height: 7px;
  background: #e53935;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: none;
}

/* ============================================================
   FEED HEADER
   ============================================================ */
.fhdr {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd);
  z-index: 100;
  padding: 12px 16px;
  transition: background 0.2s;
}
[data-dark] .fhdr {
  background: rgba(21, 13, 11, 0.94);
}
.fhdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fhdr-title {
  font-size: 18px;
  font-weight: 700;
}
.ftabs {
  display: flex;
}
.ftab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: var(--t3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
  font-weight: 500;
  border-top: none;
  border-left: none;
  border-right: none;
  background: none;
}
.ftab.on {
  color: var(--p);
  border-bottom-color: var(--p);
}

/* ============================================================
   AVATAR
   ============================================================ */
.av {
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: var(--p);
  color: #fff;
  flex-shrink: 0;
}
.av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.av40 {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.av36 {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
.av28 {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.av80 {
  width: 80px;
  height: 80px;
  font-size: 22px;
  border: 3px solid var(--bg);
}

/* ============================================================
   STORIES
   ============================================================ */
.stories {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  overflow-x: auto;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar {
  display: none;
}
.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.s-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--p), var(--ad));
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-ring.seen {
  background: var(--bd2);
}
.s-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--pl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
}
.s-inner img,
.s-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.s-lbl {
  font-size: 11px;
  color: var(--t2);
  max-width: 56px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   STORY VIEWER
   ============================================================ */
#sv {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 900;
  display: none;
  flex-direction: column;
}
#sv.show {
  display: flex;
}
.sv-bars {
  display: flex;
  gap: 4px;
  padding: 10px 14px 4px;
}
.sv-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.sv-fill {
  height: 100%;
  background: #fff;
  width: 0;
  transition: width 5s linear;
}
.sv-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: #fff;
}
.sv-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.sv-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.sv-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: none;
}
.sv-close svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.sv-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  overflow: hidden;
}
.sv-cap {
  padding: 16px;
  color: #fff;
  text-align: center;
  font-size: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* ============================================================
   COMPOSER
   ============================================================ */
.composer {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  gap: 10px;
}
.cmp-right {
  flex: 1;
  min-width: 0;
}
.cmp-ta {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--t);
  resize: none;
  line-height: 1.5;
  cursor: pointer;
  min-height: 40px;
}
.cmp-ta::placeholder {
  color: var(--t3);
}
.cmp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--bd);
}
.cmp-icons {
  display: flex;
  gap: 2px;
}
.icoBtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  transition: background 0.18s;
  cursor: pointer;
  border: none;
  background: none;
}
.icoBtn:hover {
  background: var(--a);
}
.icoBtn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.icoBtn input[type="file"] {
  display: none;
}

/* ============================================================
   POST
   ============================================================ */
.post {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bd);
  transition: background 0.15s;
}
.post:hover {
  background: var(--bg2);
}
.post-row {
  display: flex;
  gap: 10px;
}
.post-body {
  flex: 1;
  min-width: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.post-name {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.post-handle,
.post-time {
  font-size: 13px;
  color: var(--t3);
}
.post-txt {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
  cursor: pointer;
}
.post-img {
  width: 100%;
  border-radius: 12px;
  max-height: 380px;
  object-fit: cover;
  margin-bottom: 10px;
  cursor: pointer;
  display: block;
}
.post-acts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pa {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--t3);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 20px;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  border: none;
}
.pa:hover {
  background: var(--a);
  color: var(--p);
}
.pa.liked {
  color: #e53935;
}
.pa.reposted {
  color: #43a047;
}
.pa.saved {
  color: var(--ad);
}
.pa svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.pa.liked svg {
  stroke: #e53935;
  fill: #e53935;
}
.pa.saved svg {
  stroke: var(--ad);
  fill: var(--ad);
}

/* ============================================================
   MORE MENU
   ============================================================ */
.more-wrap {
  position: relative;
  margin-left: auto;
}
.more-menu {
  position: absolute;
  right: 0;
  top: 30px;
  background: var(--bg);
  border: 1px solid var(--bd2);
  border-radius: 12px;
  box-shadow: var(--sh2);
  z-index: 200;
  min-width: 165px;
  overflow: hidden;
  display: none;
}
.more-menu.show {
  display: block;
}
.mi {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.mi:hover {
  background: var(--bg2);
}
.mi.red {
  color: #e53935;
}
.mi svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.cmts {
  display: none;
  padding: 4px 16px 12px;
  border-bottom: 1px solid var(--bd);
  background: var(--bg2);
}
.cmt {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bd);
}
.cmt:last-of-type {
  border-bottom: none;
}
.cmt-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}
.cmt-name {
  font-weight: 600;
  font-size: 13px;
}
.cmt-time {
  font-size: 12px;
  color: var(--t3);
  margin-left: 4px;
}
.cmt-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.cmt-in {
  flex: 1;
  background: var(--bg3);
  border: 1.5px solid var(--bd);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--t);
  outline: none;
  transition: border-color 0.18s;
  min-width: 0;
}
.cmt-in:focus {
  border-color: var(--p);
  background: var(--bg);
}

/* ============================================================
   POLL
   ============================================================ */
.poll {
  margin-bottom: 10px;
}
.poll-opt {
  width: 100%;
  padding: 8px 14px;
  border: 1.5px solid var(--bd2);
  border-radius: 20px;
  margin-bottom: 6px;
  text-align: left;
  font-size: 14px;
  color: var(--t);
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--bg);
}
.poll-opt:hover:not([disabled]) {
  border-color: var(--p);
}
.poll-opt[disabled] {
  cursor: default;
}
.poll-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--a);
  z-index: 0;
  transition: width 0.5s ease;
  border-radius: 20px;
}
[data-dark] .poll-bar {
  background: var(--am);
}
.poll-lbl {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
}
.poll-voted {
  border-color: var(--p);
  font-weight: 600;
  color: var(--p);
}
.poll-info {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skel {
  background: linear-gradient(
    90deg,
    var(--bg2) 25%,
    var(--bg3) 50%,
    var(--bg2) 75%
  );
  background-size: 200% 100%;
  animation: sk 1.3s infinite;
  border-radius: 8px;
}
@keyframes sk {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================================
   RIGHT WIDGETS
   ============================================================ */
.widget {
  background: var(--bg2);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 14px;
}
.widget h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.srch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1.5px solid var(--bd);
  border-radius: 24px;
  padding: 8px 14px;
  margin-bottom: 14px;
  transition: border-color 0.18s;
}
.srch:focus-within {
  border-color: var(--p);
  background: var(--bg);
}
.srch input {
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  color: var(--t);
}
.srch svg {
  width: 15px;
  height: 15px;
  stroke: var(--t3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.trend-item {
  padding: 7px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.trend-item:hover {
  background: var(--bg3);
}
.trend-cat {
  font-size: 12px;
  color: var(--t3);
}
.trend-name {
  font-weight: 600;
  font-size: 14px;
}
.trend-cnt {
  font-size: 12px;
  color: var(--t3);
}
.who-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.who-name {
  font-size: 14px;
  font-weight: 600;
}
.who-hdl {
  font-size: 12px;
  color: var(--t3);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.prof-banner {
  height: 150px;
  background: linear-gradient(135deg, var(--p), var(--pl));
  position: relative;
  overflow: hidden;
}
.prof-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prof-hdr {
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--bd);
}
.prof-av-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -44px;
  margin-bottom: 10px;
}
.prof-name {
  font-size: 20px;
  font-weight: 700;
}
.prof-hdl {
  font-size: 14px;
  color: var(--t3);
}
.prof-bio {
  font-size: 15px;
  margin: 6px 0 8px;
}
.prof-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 10px;
}
.prof-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.prof-meta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prof-stats {
  display: flex;
  gap: 20px;
}
.ps strong {
  font-weight: 700;
  font-size: 16px;
}
.ps span {
  color: var(--t3);
  font-size: 14px;
}
.ps {
  cursor: pointer;
}
.ps:hover strong {
  text-decoration: underline;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--bd);
}
.tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: var(--t3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
  font-weight: 500;
  border-top: none;
  border-left: none;
  border-right: none;
  background: none;
}
.tab.on {
  color: var(--p);
  border-bottom-color: var(--p);
}

/* ============================================================
   SEARCH
   ============================================================ */
.srch-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1.5px solid var(--bd);
  border-radius: 24px;
  padding: 9px 16px;
  margin: 12px 16px;
  transition: border-color 0.18s;
}
.srch-box:focus-within {
  border-color: var(--p);
  background: var(--bg);
}
.srch-box input {
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  flex: 1;
  color: var(--t);
}
.srch-box svg {
  width: 16px;
  height: 16px;
  stroke: var(--t3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.s-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.s-result:hover {
  background: var(--bg2);
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notif {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  cursor: pointer;
  transition: background 0.15s;
}
.notif:hover {
  background: var(--bg2);
}
.notif.unread {
  background: var(--a);
}
[data-dark] .notif.unread {
  background: var(--am);
}
.notif-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.notif-txt {
  font-size: 14px;
  line-height: 1.4;
}
.notif-tm {
  font-size: 12px;
  color: var(--t3);
}

/* ============================================================
   MESSAGES
   ============================================================ */
.conv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.conv:hover {
  background: var(--bg2);
}
.conv-name {
  font-size: 14px;
  font-weight: 600;
}
.conv-prev {
  font-size: 13px;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-tm {
  font-size: 12px;
  color: var(--t3);
}
.chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 72%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.bubble.mine {
  background: var(--p);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble.theirs {
  background: var(--bg2);
  color: var(--t);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble-time {
  font-size: 11px;
  opacity: 0.65;
  margin-top: 3px;
  text-align: right;
}
.msg-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--bd);
  align-items: center;
}
.msg-in {
  flex: 1;
  background: var(--bg2);
  border: 1.5px solid var(--bd);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--t);
  outline: none;
  transition: border-color 0.18s;
  min-width: 0;
}
.msg-in:focus {
  border-color: var(--p);
}

/* ============================================================
   MODALS
   ============================================================ */
.ovl {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ovl.show {
  display: flex;
}
.modal {
  background: var(--bg);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  animation: mIn 0.2s ease;
}
@keyframes mIn {
  from {
    transform: translateY(16px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.mhdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  border-radius: 20px 20px 0 0;
}
.mhdr h3 {
  font-size: 17px;
  font-weight: 700;
}
.xbtn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t2);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
}
.xbtn:hover {
  background: var(--bg3);
}
.xbtn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.mpad {
  padding: 18px;
}

/* ============================================================
   FORMS
   ============================================================ */
.fl {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--t);
}
.fi {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--bd2);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--t);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}
.fi:focus {
  border-color: var(--p);
  background: var(--bg);
}
.fg {
  margin-bottom: 14px;
}
.ferr {
  font-size: 12px;
  color: #e53935;
  display: none;
  margin-top: 3px;
}
.ferr.show {
  display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
}
.btn-p {
  background: var(--p);
  color: #fff;
}
.btn-p:hover {
  background: var(--pd);
  transform: translateY(-1px);
}
.btn-o {
  background: transparent;
  color: var(--p);
  border: 1.5px solid var(--p);
}
.btn-o:hover {
  background: var(--a);
}
.btn-w {
  background: var(--bg);
  color: var(--t);
  border: 1.5px solid var(--bd2);
}
.btn-w:hover {
  background: var(--bg2);
}
.btn-sm {
  padding: 5px 12px;
  font-size: 13px;
}
.btn-red {
  background: #e53935;
  color: #fff;
}
.btn-red:hover {
  background: #c62828;
}

/* Verified badge */
.vbadge {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
}
.vbadge svg {
  width: 15px;
  height: 15px;
  fill: #1d9bf0;
}

/* ============================================================
   MANDIR COMMUNITY TOAST NOTIFICATIONS
   ============================================================ */
#toastContainer {
  position: fixed;
  top: 20px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 320px;
  width: calc(100% - 32px);
}
.mc-toast {
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--sh2);
  overflow: hidden;
  pointer-events: all;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--bd2);
}
@keyframes toastIn {
  from {
    transform: translateX(110%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes toastOut {
  to {
    transform: translateX(110%) scale(0.9);
    opacity: 0;
  }
}
.mc-toast-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p);
}
.mc-toast-header svg {
  width: 13px;
  height: 13px;
  stroke: var(--p);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mc-toast-body {
  padding: 4px 12px 10px;
  font-size: 13px;
  color: var(--t);
  line-height: 1.4;
}
.mc-toast-bar {
  height: 3px;
  width: 100%;
}
.mc-toast-bar.s {
  background: #43a047;
}
.mc-toast-bar.e {
  background: #e53935;
}
.mc-toast-bar.i {
  background: var(--p);
}
.mc-toast-bar.w {
  background: #f57c00;
}

/* ============================================================
   VIDEO PAGE
   ============================================================ */
.vid-hdr {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd);
  z-index: 100;
  padding: 12px 16px;
}
[data-dark] .vid-hdr {
  background: rgba(21, 13, 11, 0.93);
}
.vid-hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vid-hdr-title {
  font-size: 18px;
  font-weight: 700;
}
.vid-stories {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  overflow-x: auto;
  scrollbar-width: none;
  align-items: flex-start;
}
.vid-stories::-webkit-scrollbar {
  display: none;
}
.add-story-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.add-story-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px dashed var(--bd2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  background: var(--bg2);
  transition: all 0.18s;
}
.add-story-ring:hover {
  background: var(--a);
  border-color: var(--p);
}
.add-story-ring svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.live-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
}
.live-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-badge {
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.live-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.live-scroll::-webkit-scrollbar {
  display: none;
}
.live-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bd);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.live-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.live-card-thumb {
  width: 100%;
  height: 124px;
  background: linear-gradient(135deg, var(--p), var(--pl));
  position: relative;
  overflow: hidden;
}
.live-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-card-thumb .live-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-card-info {
  padding: 8px 10px;
}
.live-card-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-card-channel {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}
.live-viewers {
  font-size: 11px;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}
.cat-chips {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--bd);
}
.cat-chips::-webkit-scrollbar {
  display: none;
}
.cat-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  background: var(--bg2);
  color: var(--t2);
  border: 1.5px solid var(--bd);
}
.cat-chip.on {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}
.cat-chip:hover:not(.on) {
  background: var(--bg3);
}
.vid-tabs {
  display: flex;
  border-bottom: 1px solid var(--bd);
  padding: 0 16px;
}
.vid-tab {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--t3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
  font-weight: 500;
  border-top: none;
  border-left: none;
  border-right: none;
  background: none;
}
.vid-tab.on {
  color: var(--p);
  border-bottom-color: var(--p);
}
.vid-card {
  border-bottom: 1px solid var(--bd);
  background: var(--bg);
}
.vid-card-thumb {
  width: 100%;
  position: relative;
}
.vid-card-thumb video {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #000;
  display: block;
}
.vid-card-thumb .vid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 10px 12px;
  display: flex;
  justify-content: flex-end;
}
.vid-duration {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.vid-card-body {
  padding: 10px 14px;
}
.vid-card-meta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.vid-card-info {
  flex: 1;
  min-width: 0;
}
.vid-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: pointer;
}
.vid-card-channel {
  font-size: 13px;
  color: var(--t3);
  cursor: pointer;
}
.vid-card-stats {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}
.vid-card-actions {
  display: flex;
  gap: 2px;
  padding: 6px 14px 12px;
  flex-wrap: wrap;
}
.va {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--t3);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 20px;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  border: none;
}
.va:hover {
  background: var(--a);
  color: var(--p);
}
.va.vliked {
  color: #e53935;
}
.va.vliked svg {
  stroke: #e53935;
  fill: #e53935;
}
.va svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.vcmts {
  display: none;
  padding: 8px 14px 14px;
  background: var(--bg2);
  border-top: 1px solid var(--bd);
}
.vcmt {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bd);
}
.vcmt:last-of-type {
  border-bottom: none;
}
.vcmt-body {
  flex: 1;
  font-size: 14px;
}
.vcmt-name {
  font-weight: 600;
  font-size: 13px;
}
#videoDetailOvl {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
.modal.video-detail-modal {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--tube-shell);
  color: var(--tube-text);
  border: none;
  border-radius: 0;
  box-shadow: var(--sh2);
}
.video-detail-modal .mhdr {
  background: linear-gradient(180deg, var(--tube-surface), var(--tube-shell));
  border-bottom: 1px solid var(--tube-border);
  border-radius: 0;
  padding: max(12px, env(safe-area-inset-top, 0px)) 18px 12px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  align-items: center;
}
.video-detail-modal .mhdr h3 {
  color: var(--tube-text);
  letter-spacing: 0.01em;
  text-align: center;
  font-size: 17px;
}
.video-detail-left,
.video-detail-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.video-detail-left {
  gap: 10px;
}
.video-detail-right {
  justify-content: flex-end;
}
.video-detail-modal .xbtn {
  background: var(--tube-action-bg);
  color: var(--tube-text);
}
.video-detail-modal .xbtn:hover {
  background: var(--tube-action-hover);
}
.video-detail-body {
  max-height: calc(100dvh - 64px);
  overflow: auto;
  padding: 18px;
  background:
    radial-gradient(circle at top left, var(--a), transparent 36%),
    linear-gradient(180deg, var(--tube-shell-2), var(--tube-shell));
}
.video-back-btn svg {
  width: 18px;
  height: 18px;
}
.video-detail-brand {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tube-surface-alt);
  border: 1px solid var(--tube-border);
  flex-shrink: 0;
}
.video-detail-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-detail-right {
  width: 84px;
}
.vid-card-play {
  position: absolute;
  left: 12px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.video-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}
.video-watch-main,
.video-watch-side {
  min-width: 0;
}
.video-watch-side {
  position: sticky;
  top: 0;
  align-self: start;
}
.video-watch-player,
.video-side-card,
.video-comments-card,
.video-channel-hero,
.video-meta-card,
.video-channel-panel {
  background: var(--tube-surface);
  border: 1px solid var(--tube-border);
  border-radius: 22px;
  box-shadow: var(--sh);
}
.video-watch-player {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-watch-player video,
.video-watch-player img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--tube-player-bg);
}
.video-watch-meta {
  padding: 16px 0 0;
}
.video-watch-title {
  font-size: clamp(15px, 1.55vw, 19px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--tube-text);
}
.video-watch-sub {
  font-size: 14px;
  color: var(--tube-muted-soft);
}
.video-channel-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-top: 16px;
  border-radius: 18px;
  background: var(--tube-surface-alt);
  border: 1px solid var(--tube-border);
}
.video-channel-main {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.video-channel-main .av {
  cursor: pointer;
}
.video-channel-copy {
  min-width: 0;
}
.video-channel-copy strong,
.video-channel-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-channel-copy strong {
  font-size: 16px;
  color: var(--tube-text);
}
.video-channel-copy span {
  font-size: 13px;
  color: var(--tube-muted-soft);
}
.video-sub-btn {
  min-width: 118px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--tube-sub-border);
  background: var(--tube-sub-bg);
  color: var(--tube-sub-text);
}
.video-sub-btn.subbed {
  background: var(--tube-subbed-bg);
  color: var(--tube-subbed-text);
  border-color: var(--tube-subbed-border);
}
.video-react-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.video-pill-group {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tube-action-bg);
  border: 1px solid var(--tube-border);
}
.video-pill-divider {
  width: 1px;
  height: 24px;
  background: var(--tube-border-strong);
}
.video-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--tube-border);
  background: var(--tube-action-bg);
  color: var(--tube-text);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.video-pill-group .video-react-btn {
  border: none;
  background: transparent;
  border-radius: 0;
}
.video-react-btn:hover {
  background: var(--tube-action-hover);
}
.video-react-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.video-react-btn.on.like {
  color: var(--tube-like);
}
.video-react-btn.on.like svg {
  fill: var(--tube-like);
  stroke: var(--tube-like);
}
.video-react-btn.on.dislike {
  color: var(--tube-accent);
}
.video-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--tube-text);
  margin-bottom: 0;
}
.video-meta-card {
  padding: 18px;
  margin-top: 16px;
  background: var(--tube-surface-alt);
}
.video-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--tube-muted-soft);
}
.video-meta-top strong {
  color: var(--tube-text);
  font-weight: 800;
}
.video-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tube-chip-on-bg);
  color: var(--tube-chip-on-text);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--tube-chip-on-border);
}
.video-meta-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--tube-text);
}
.video-chip-row {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
}
.video-chip-row::-webkit-scrollbar {
  display: none;
}
.video-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--tube-border);
  background: var(--tube-chip-bg);
  color: var(--tube-chip-text);
  font-size: 13px;
  font-weight: 700;
}
.video-chip.on {
  background: var(--tube-chip-on-bg);
  color: var(--tube-chip-on-text);
  border-color: var(--tube-chip-on-border);
}
.video-side-card,
.video-comments-card,
.video-channel-panel {
  padding: 16px;
}
.video-side-header,
.video-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.video-side-header span {
  color: var(--tube-muted-soft);
  font-size: 13px;
}
.video-side-list,
.video-channel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.video-side-item {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 12px;
  padding: 6px;
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
.video-side-item:hover {
  background: var(--tube-action-hover);
  transform: translateY(-1px);
}
.video-side-thumb {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.video-side-thumb video,
.video-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-side-thumb .vid-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
}
.video-side-copy {
  min-width: 0;
  align-self: center;
}
.video-side-copy strong,
.video-side-copy span {
  display: block;
}
.video-side-copy strong {
  color: var(--tube-text);
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-side-copy span {
  margin-top: 4px;
  color: var(--tube-muted-soft);
  font-size: 12px;
}
.video-side-copy .video-side-channel {
  color: var(--tube-muted);
  font-weight: 600;
}
.video-comments-card {
  margin-top: 18px;
}
.video-comment-card {
  padding: 12px 0;
  border-top: 1px solid var(--tube-border);
}
.video-comment-card:first-of-type {
  border-top: none;
  padding-top: 0;
}
.video-comment-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.video-comment-copy {
  flex: 1;
  min-width: 0;
}
.video-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--tube-muted-soft);
}
.video-comment-meta strong {
  color: var(--tube-text);
  font-size: 13px;
}
.video-pinned-pill {
  background: var(--tube-chip-on-bg);
  color: var(--tube-chip-on-text);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--tube-chip-on-border);
}
.video-comment-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tube-text);
}
.video-comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.video-text-btn {
  padding: 0;
  color: var(--tube-muted);
  font-size: 12px;
  font-weight: 700;
  background: none;
  border: none;
}
.video-text-btn:hover {
  color: var(--tube-accent);
}
.video-replies {
  margin: 10px 0 0 38px;
  padding-left: 12px;
  border-left: 2px solid var(--tube-border-strong);
}
.video-reply-item {
  display: flex;
  gap: 8px;
  padding: 8px 0 0;
}
.video-reply-copy {
  flex: 1;
  font-size: 13px;
}
.video-reply-box,
.video-comment-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.video-comment-box input,
.video-reply-box input {
  flex: 1;
  min-width: 0;
  background: var(--tube-shell);
  border: 1px solid var(--tube-border-strong);
  border-radius: 16px;
  color: var(--tube-text);
  padding: 12px 14px;
}
.video-comment-box input::placeholder,
.video-reply-box input::placeholder {
  color: var(--tube-muted-soft);
}
.video-channel-hero {
  overflow: hidden;
}
.video-channel-banner {
  height: 220px;
  background: linear-gradient(135deg, var(--p), var(--pl) 52%, var(--ad) 100%);
}
.video-channel-body {
  padding: 22px;
}
.video-channel-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: -70px;
}
.video-channel-top .av {
  border: 4px solid var(--tube-surface);
  box-shadow: var(--sh2);
}
.video-channel-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--tube-text);
}
.video-channel-handle,
.video-channel-stats {
  color: var(--tube-muted-soft);
  font-size: 14px;
  margin-top: 5px;
}
.video-channel-bio {
  color: var(--tube-text);
  font-size: 15px;
  margin-top: 14px;
  line-height: 1.6;
  max-width: 760px;
}
.video-channel-tabs {
  margin: 16px 0 14px;
}
.video-channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1180px) {
  .video-watch-layout {
    grid-template-columns: minmax(0, 1fr) 336px;
  }
  .video-watch-title {
    font-size: 18px;
  }
  .video-side-item {
    grid-template-columns: 156px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .video-watch-layout {
    grid-template-columns: 1fr;
  }
  .video-watch-side {
    position: static;
  }
  .video-channel-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .modal.video-detail-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .video-detail-modal .mhdr {
    padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px;
    border-radius: 0;
    min-height: 56px;
    grid-template-columns: 76px minmax(0, 1fr) 76px;
  }
  .video-detail-left {
    gap: 8px;
  }
  .video-detail-brand {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .video-detail-right {
    width: 76px;
  }
  .video-detail-body {
    max-height: calc(100dvh - 56px);
    padding: 0 0 20px;
  }
  .video-watch-player {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .video-watch-meta {
    padding: 12px 12px 0;
  }
  .video-watch-title {
    font-size: 15px;
  }
  .video-watch-sub {
    font-size: 13px;
  }
  .video-channel-row {
    padding: 0;
    margin-top: 14px;
    background: transparent;
    border: none;
  }
  .video-channel-main {
    min-width: 0;
  }
  .video-sub-btn {
    min-width: auto;
    padding: 12px 18px;
  }
  .video-react-row {
    flex-wrap: nowrap;
    overflow: auto;
    padding: 2px 0 6px;
    margin-top: 14px;
    scrollbar-width: none;
  }
  .video-react-row::-webkit-scrollbar {
    display: none;
  }
  .video-pill-group,
  .video-react-btn {
    flex: 0 0 auto;
  }
  .video-meta-card,
  .video-comments-card,
  .video-side-card,
  .video-channel-panel {
    margin: 0 12px 14px;
    border-radius: 20px;
  }
  .video-chip-row {
    padding: 0 12px 4px;
  }
  .video-side-card,
  .video-comments-card,
  .video-channel-panel {
    padding: 14px 12px;
  }
  .video-side-item {
    grid-template-columns: 134px minmax(0, 1fr);
    padding: 0;
  }
  .video-comment-box,
  .video-reply-box {
    align-items: stretch;
  }
  .video-channel-banner {
    height: 140px;
  }
  .video-channel-body {
    padding: 16px 12px 18px;
  }
  .video-channel-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: -44px;
  }
  .video-channel-name {
    font-size: 24px;
  }
}
.upload-zone {
  border: 2px dashed var(--bd2);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--bg2);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--p);
  background: var(--a);
}
.upload-zone svg {
  width: 40px;
  height: 40px;
  stroke: var(--t3);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 10px;
  display: block;
}
.upload-zone p {
  color: var(--t3);
  font-size: 14px;
}
.upload-zone strong {
  color: var(--p);
}
.thumb-prev {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--bd);
}
.thumb-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   ★ MANDIR COMMUNITY PAGE
   ============================================================ */
.mandir-hero {
  background: linear-gradient(
    160deg,
    var(--p) 0%,
    var(--pl) 60%,
    var(--pd) 100%
  );
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mandir-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.mandir-hero-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.mandir-hero h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}
.mandir-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto 20px;
}
.mandir-hero-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.mandir-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bd);
  border-bottom: 1px solid var(--bd);
}
.mandir-stat {
  background: var(--bg2);
  padding: 16px 12px;
  text-align: center;
}
.mandir-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--p);
}
.mandir-stat span {
  font-size: 12px;
  color: var(--t3);
}

.mandir-section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--bd);
}
.mandir-seeker-cta {
  background: #6f4b42;
  color: #fff;
  border-radius: 28px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--sh);
}
.mandir-seeker-cta h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.mandir-seeker-cta p {
  max-width: 860px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.6;
}
.mandir-seeker-btn {
  min-width: 220px;
  background: #fff;
  color: var(--p);
  font-weight: 800;
  border: none;
  box-shadow: none;
}
.mandir-seeker-btn:hover {
  background: #fff8f2;
}
.mandir-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mandir-section-title h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Temple cards */
.temple-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.temple-scroll::-webkit-scrollbar {
  display: none;
}
.temple-card {
  flex-shrink: 0;
  width: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--bd);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.18s;
}
.temple-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.temple-thumb {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.temple-info {
  padding: 8px 10px;
}
.temple-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.temple-loc {
  font-size: 11px;
  color: var(--t3);
}

/* ============================================================
         ★ FEATURED TEMPLES — IMAGE GRID (Mandir Community)
         HOW TO ADD TEMPLE IMAGES:
         1. Create folder: images/temples/ next to index.html
         2. Place images inside: kashi-vishwanath.jpg, tirupati.jpg, etc.
         3. Recommended: 400x280px, 16:9 ratio, .jpg / .png / .webp
         ============================================================ */
.temple-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}
.temple-img-card {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.temple-img-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
  border-color: var(--bd2);
}
.temple-img-wrap {
  position: relative;
  height: 130px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p), var(--pl));
}
.temple-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.temple-img-card:hover .temple-img-wrap img {
  transform: scale(1.05);
}
.temple-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--p), var(--pl));
}
.temple-img-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.temple-img-body {
  padding: 9px 11px 10px;
}
.temple-img-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.temple-img-desc {
  font-size: 11px;
  color: var(--t3);
  line-height: 1.4;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  line-clamp: 2;
  overflow: hidden;
}
.temple-img-loc {
  font-size: 11px;
  color: var(--ad);
  margin-top: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}
.temple-img-loc svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 400px) {
  .temple-img-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .mandir-seeker-cta {
    border-radius: 22px;
    padding: 22px 16px;
  }
  .mandir-seeker-cta h3 {
    font-size: 18px;
  }
  .mandir-seeker-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
         ★ BHAJAN SECTION — Tirth Tube
         HOW TO ADD MORE BHAJANS:
         Copy a .bhajan-card block and update the YouTube embed URL.
         YouTube embed format: https://www.youtube.com/embed/VIDEO_ID
         Get VIDEO_ID from: youtube.com/watch?v=VIDEO_ID
         ============================================================ */
.bhajan-section {
  padding: 14px 16px 6px;
  border-bottom: 1px solid var(--bd);
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.bhajan-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--t);
}
.bhajan-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.bhajan-scroll::-webkit-scrollbar {
  display: none;
}
.bhajan-card {
  flex-shrink: 0;
  width: 260px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: var(--sh);
}
.bhajan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh2);
  border-color: var(--bd2);
}
/* Responsive YouTube iframe wrapper — 16:9 */
.yt-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.yt-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.bhajan-info {
  padding: 9px 12px 11px;
}
.bhajan-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}
.bhajan-sub {
  font-size: 11px;
  color: var(--t3);
}
@media (max-width: 640px) {
  .bhajan-card {
    width: 220px;
  }
}

/* ============================================================
         ★ YOUTUBE LINK INPUT — Compose Post
         ============================================================ */
.yt-link-row {
  margin-top: 8px;
}
.yt-link-inner {
  display: flex;
  gap: 8px;
  align-items: center;
}
.yt-link-input {
  flex: 1;
  background: var(--bg3);
  border: 1.5px solid var(--bd);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--t);
  outline: none;
  transition: border-color 0.18s;
  min-width: 0;
  font-family: inherit;
}
.yt-link-input:focus {
  border-color: var(--p);
}
.yt-link-preview {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bd);
}

/* Event list */
.event-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bd);
  align-items: center;
}
.event-item:last-child {
  border-bottom: none;
}
.event-date {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-date .ed-day {
  font-size: 16px;
  font-weight: 700;
  color: var(--p);
  line-height: 1;
}
.event-date .ed-mon {
  font-size: 10px;
  color: var(--t2);
  font-weight: 500;
}
.event-info {
  flex: 1;
  min-width: 0;
}
.event-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-sub {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}
.event-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--a);
  color: var(--p);
  font-weight: 500;
  flex-shrink: 0;
}

/* ============================================================
   ★ SANTS GRID — Mandir Community Section
   ============================================================ */
.sant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sant-card {
  background: var(--bg2);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--bd);
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}
.sant-card:hover {
  background: var(--a);
  border-color: var(--p);
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
/* Sant avatar with photo support */
.sant-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pl));
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--p);
  position: relative;
}
.sant-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sant-avatar-wrap span {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.av-ini-fb {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sant-info {
  flex: 1;
  min-width: 0;
}
.sant-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sant-chk {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sant-title {
  font-size: 11px;
  color: var(--t3);
  margin-top: 1px;
}
.sant-followers {
  font-size: 11px;
  color: var(--p);
  margin-top: 3px;
  font-weight: 600;
}

/* ============================================================
   ★ SANT ALL LIST PAGE  (pgSantAll)
   ============================================================ */
/* Search Bar */
.sant-all-search-wrap {
  padding: 12px 14px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
}
.sant-all-search-inner {
  position: relative;
}
.sant-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--t3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.sant-all-search {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--bd);
  border-radius: 22px;
  padding: 10px 16px 10px 38px;
  font-size: 14px;
  color: var(--t);
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s;
  box-sizing: border-box;
}
.sant-all-search::placeholder { color: var(--t3); }
.sant-all-search:focus {
  border-color: var(--p);
  background: var(--bg2);
}

/* Stats Bar */
.sant-all-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bd);
  background: var(--bg2);
}
.sant-all-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--p);
  background: var(--a);
  padding: 3px 10px;
  border-radius: 12px;
}
.sant-all-count {
  font-size: 13px;
  color: var(--t3);
  font-weight: 500;
}

/* Sant List Item */
.sant-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bd);
  cursor: pointer;
  transition: background 0.15s;
}
.sant-list-item:last-child { border-bottom: none; }
.sant-list-item:hover { background: var(--bg2); }
.sant-list-item:active { background: var(--a); }

/* List Avatar with gradient ring */
.sant-list-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 2.5px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sant-list-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  display: block;
}
.av-ini-fb-only {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pl));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg);
}

.sant-list-info {
  flex: 1;
  min-width: 0;
}
.sant-list-name {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--t);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sant-list-sub {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sant-list-title {
  font-size: 11px;
  color: var(--t2);
  margin-top: 1px;
  font-weight: 500;
}

/* Follow Button */
.sant-list-follow {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: var(--p);
  color: #fff;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
}
.sant-list-follow:hover { opacity: 0.88; }
.sant-list-follow.following {
  background: var(--bg3);
  color: var(--t);
  border: 1.5px solid var(--bd);
}

/* Empty state */
.sant-all-empty {
  text-align: center;
  padding: 48px 16px;
  font-size: 15px;
  color: var(--t3);
}

/* ============================================================
   ★ SANT PROFILE PAGE  (pgSantProfile)
   ============================================================ */
/* Large avatar with fallback */
.sp-avatar-wrap {
  width: 84px !important;
  height: 84px !important;
}
.sp-avatar-img {
  width: 84px !important;
  height: 84px !important;
  object-fit: cover !important;
}
.sp-avatar-fb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pl));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  border: 3px solid var(--p);
}

/* Verified checkmark SVG in name row */
.sp-verified-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Website link row */
.mc-website a {
  color: var(--p);
  text-decoration: none;
  font-weight: 500;
}
.mc-website a:hover { text-decoration: underline; }
.mc-website svg {
  width: 13px;
  height: 13px;
  stroke: var(--p);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Follow button on profile page */
.sp-follow-btn {
  background: var(--p) !important;
  color: #fff !important;
  border: none !important;
}
.sp-follow-btn:hover { opacity: 0.88 !important; }
.sp-follow-btn.sp-following {
  background: var(--bg3) !important;
  color: var(--t) !important;
  border: 1.5px solid var(--bd) !important;
}

/* Story Highlights for sant profile */
.sp-hl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sp-hl-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pl));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border: 2px solid var(--bd2);
  transition: transform 0.18s, border-color 0.18s;
}
.sp-hl-circle:hover {
  transform: scale(1.06);
  border-color: var(--p);
}
.sp-hl-label {
  font-size: 11px;
  color: var(--t3);
  max-width: 64px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty Post Grid placeholder */
.sp-post-grid-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 200px;
  background: var(--bg2);
}
.sp-empty-grid {
  text-align: center;
  padding: 40px 16px;
}
.sp-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.sp-empty-grid p {
  font-size: 16px;
  font-weight: 700;
  color: var(--t);
  margin: 0 0 4px;
}
.sp-empty-grid span {
  font-size: 13px;
  color: var(--t3);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .sant-grid { grid-template-columns: 1fr; }
  .sant-list-avatar { width: 46px; height: 46px; }
  .av-ini-fb-only { width: 38px; height: 38px; font-size: 14px; }
  .sant-list-follow { padding: 7px 12px; font-size: 12px; }
}

/* Discussion feed */
.disc-post {
  padding: 12px 0;
  border-bottom: 1px solid var(--bd);
  display: flex;
  gap: 10px;
}
.disc-post:last-child {
  border-bottom: none;
}
.disc-body {
  flex: 1;
  min-width: 0;
}
.disc-meta {
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 4px;
}
.disc-text {
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.disc-acts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.disc-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--t3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 8px;
  transition: all 0.18s;
}
.disc-btn:hover {
  background: var(--a);
  color: var(--p);
}
.disc-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Join banner */
.mandir-join-banner {
  margin: 20px 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--p), var(--pl));
  border-radius: 16px;
  text-align: center;
}
.mandir-join-banner h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.mandir-join-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-bottom: 14px;
}

/* ============================================================
   ★ MANDIR COMMUNITY DETAIL PAGE (Instagram-style)
   ============================================================ */

/* ── Top Bar ── */
.mc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}
.mc-topbar-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  text-align: center;
}
.mc-back-btn, .mc-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-back-btn:hover, .mc-more-btn:hover {
  background: var(--bg2);
}
.mc-back-btn svg, .mc-more-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--t);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mc-more-btn svg {
  fill: var(--t);
  stroke: none;
}

/* ── Profile Header ── */
.mc-profile-header {
  padding: 16px;
}
.mc-profile-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}
.mc-avatar-wrap {
  flex-shrink: 0;
}
.mc-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--p);
  object-fit: cover;
  background: var(--bg3);
}
.mc-stats-row {
  display: flex;
  flex: 1;
  justify-content: space-around;
  text-align: center;
}
.mc-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mc-stat-item strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--t);
}
.mc-stat-item span {
  font-size: 12px;
  color: var(--t3);
}

/* ── Profile Info ── */
.mc-profile-info {
  margin-bottom: 14px;
}
.mc-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-name-row h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.mc-verified-badge {
  font-size: 14px;
}
.mc-category {
  font-size: 13px;
  color: var(--t3);
  margin: 2px 0 6px;
}
.mc-bio {
  font-size: 14px;
  line-height: 1.45;
  color: var(--t);
  margin: 0 0 6px;
  word-break: break-word;
}
.mc-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--t3);
}
.mc-location svg {
  width: 13px;
  height: 13px;
  stroke: var(--t3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Action Buttons ── */
.mc-action-btns {
  display: flex;
  gap: 6px;
}
.mc-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.18s;
}
.mc-btn-follow {
  background: var(--bg3);
  color: var(--t);
  border: 1px solid var(--bd);
}
.mc-btn-follow:hover {
  background: var(--bg2);
}
.mc-btn-message {
  background: var(--bg3);
  color: var(--t);
  border: 1px solid var(--bd);
}
.mc-btn-message:hover {
  background: var(--bg2);
}
.mc-btn-add {
  flex: 0;
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 8px;
}
.mc-btn-add svg {
  width: 16px;
  height: 16px;
  stroke: var(--t);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mc-btn-add:hover {
  background: var(--bg2);
}

/* ── Story Highlights ── */
.mc-highlights {
  display: flex;
  gap: 16px;
  padding: 8px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mc-highlights::-webkit-scrollbar {
  display: none;
}
.mc-hl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mc-hl-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--bd2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  font-size: 22px;
  cursor: pointer;
  transition: border-color 0.18s;
}
.mc-hl-circle:hover {
  border-color: var(--p);
}
.mc-hl-label {
  font-size: 11px;
  color: var(--t3);
  max-width: 60px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Tab Bar ── */
.mc-tab-bar {
  display: flex;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}
.mc-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  border-bottom: 2px solid transparent;
  opacity: 0.4;
}
.mc-tab.on {
  opacity: 1;
  border-bottom-color: var(--t);
}
.mc-tab svg {
  width: 22px;
  height: 22px;
  stroke: var(--t);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mc-tab.on svg {
  stroke-width: 2;
}

/* ── Post Grid (Instagram 3-column) ── */
.mc-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.mc-post-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
}
.mc-grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.mc-post-cell:hover .mc-grid-img {
  transform: scale(1.05);
}
.mc-grid-text {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  text-align: center;
}
.mc-grid-text p {
  font-size: 12px;
  color: var(--t);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.mc-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
.mc-post-cell:hover .mc-post-overlay {
  opacity: 1;
}
.mc-post-overlay span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Compose FAB ── */
.mc-compose-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 40;
  transition: all 0.2s;
}
.mc-compose-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.mc-compose-fab svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Empty State ── */
.mc-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--t3);
}
.mc-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.mc-empty p {
  font-size: 16px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 4px;
}
.mc-empty span {
  font-size: 13px;
}

/* ── Mobile responsive for Mandir Community ── */
@media (max-width: 640px) {
  .mc-topbar {
    top: 0;
    position: sticky;
  }
  .mc-avatar-img {
    width: 70px;
    height: 70px;
  }
  .mc-profile-top {
    gap: 16px;
  }
  .mc-stat-item strong {
    font-size: 16px;
  }
  .mc-hl-circle {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  .mc-compose-fab {
    bottom: 70px;
    right: 14px;
    width: 50px;
    height: 50px;
  }
  .mc-compose-fab svg {
    width: 20px;
    height: 20px;
  }
  .mc-post-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.15);
  }
  .mc-post-overlay span {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .mc-avatar-img {
    width: 60px;
    height: 60px;
  }
  .mc-profile-top {
    gap: 12px;
  }
  .mc-stat-item strong {
    font-size: 15px;
  }
  .mc-hl-circle {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
  .mc-hl-label {
    font-size: 10px;
    max-width: 50px;
  }
}
/* ============================================================
   ★ MANDIR COMMUNITY — MULTIMEDIA & SHORTS
   ============================================================ */

/* ── Compose Toolbar ── */
.mc-comp-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--bd);
}
.mc-comp-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  cursor: pointer;
  transition: all 0.18s;
  font-size: 13px;
  color: var(--t2);
}
.mc-comp-btn:hover {
  background: var(--bg3);
  border-color: var(--p);
}
.mc-comp-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--t2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Media Preview (compose) ── */
.mc-media-preview {
  position: relative;
  margin: 10px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bd);
}
.mc-media-preview img,
.mc-media-preview video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}
.mc-media-rm {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}
.mc-media-rm:hover {
  background: rgba(200, 0, 0, 0.8);
}
.mc-media-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.mc-vid-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

/* ── Grid: Video Play Overlay ── */
.mc-grid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
}
.mc-grid-video-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ── Shorts / Reels Viewer ── */
.mc-shorts-ovl {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-shorts-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-shorts-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}
.mc-shorts-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.18s;
}
.mc-shorts-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.mc-shorts-mute {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.18s;
}
.mc-shorts-mute:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ── Shorts Actions (right side) ── */
.mc-shorts-actions {
  position: absolute;
  right: 14px;
  bottom: 140px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10001;
}
.mc-shorts-act-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  transition: transform 0.15s;
}
.mc-shorts-act-btn:hover {
  transform: scale(1.15);
}
.mc-shorts-act-btn span {
  font-size: 26px;
}
.mc-shorts-act-btn small {
  font-size: 11px;
  font-weight: 600;
}

/* ── Shorts Info (bottom) ── */
.mc-shorts-info {
  position: absolute;
  bottom: 50px;
  left: 16px;
  right: 80px;
  z-index: 10001;
}
.mc-shorts-user {
  color: #fff;
  font-size: 15px;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.mc-shorts-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── Shorts Navigation ── */
.mc-shorts-nav {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10001;
}
.mc-shorts-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: all 0.18s;
}
.mc-shorts-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ── Mobile: Shorts ── */
@media (max-width: 640px) {
  .mc-shorts-close,
  .mc-shorts-mute {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .mc-shorts-actions {
    right: 10px;
    bottom: 120px;
    gap: 14px;
  }
  .mc-shorts-act-btn span {
    font-size: 22px;
  }
  .mc-shorts-info {
    bottom: 40px;
    left: 12px;
    right: 60px;
  }
  .mc-shorts-nav {
    display: none; /* swipe only on mobile */
  }
  .mc-comp-toolbar {
    flex-wrap: wrap;
  }
}

/* ============================================================
   SHARE / REPOST SHEETS
   ============================================================ */
#shareSheet,
#rpSheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 18px;
  z-index: 600;
  transform: translateY(100%);
  transition: transform 0.25s;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}
#shareSheet.show,
#rpSheet.show {
  transform: translateY(0);
}
#shareOvl,
#rpOvl {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 599;
}
.sh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.sh-ico {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.sh-ico:hover {
  background: var(--bg2);
}
.sh-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.rp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.rp-item:hover {
  background: var(--bg2);
}
.rp-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ============================================================
   COMPOSE EXTRAS
   ============================================================ */
.char-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--bd2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
}
.img-prev {
  position: relative;
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
}
.img-prev img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.img-rm {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: none;
}
.img-rm svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.emoji-area {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  background: var(--bg2);
  border-radius: 8px;
  margin-top: 6px;
}
.emj {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
}
.emj:hover {
  background: var(--bg3);
}
.poll-area {
  margin-top: 10px;
  padding: 12px;
  background: var(--bg2);
  border-radius: 10px;
}
.poll-area h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--t2);
}
.ep-banner {
  height: 90px;
  background: linear-gradient(135deg, var(--p), var(--pl));
  border-radius: 8px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ep-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.ep-banner-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}
.ep-banner-label svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ep-av-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.ep-av-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--p);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  cursor: pointer;
}
.ep-av-btn svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.media-cell {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
}
.media-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.media-cell:hover img {
  transform: scale(1.05);
}
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--t3);
}
.empty-ico {
  font-size: 40px;
  margin-bottom: 12px;
}
.empty-ttl {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--t2);
}
.empty-sub {
  font-size: 14px;
}
.fol-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--bd);
}

/* ============================================================
   PAGES
   ============================================================ */
.page {
  display: none;
}
.page.on {
  display: block;
}
.hide {
  display: none !important;
}

/* ============================================================
   ★ RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: collapse sidebar labels */
@media (max-width: 1200px) {
  #rightWrap {
    display: none;
  }
  #pgChats.on ~ * #rightWrap,
  #app:has(#pgChats.on) #rightWrap {
    display: none;
  }
  #mainArea {
    max-width: calc(100vw - var(--sidebar-w));
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 68px;
  }
  .sidebar-logo-text,
  .sb-label,
  .sidebar-footer-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .sidebar-footer {
    padding: 12px;
    justify-content: center;
  }
  .sb {
    padding: 11px;
    justify-content: center;
  }
  .sb.on::before {
    top: 6px;
    bottom: 6px;
  }
}

/* Mobile: hide sidebar, show topbar + drawer + bottom nav */
@media (max-width: 640px) {
  #sidebar {
    display: none;
  }
  #mainArea {
    margin-left: 0;
    max-width: 100vw;
    margin-top: 0;
    padding-top: 0;
  }
  #feedWrap {
    max-width: 100%;
    border-right: none;
  }
  #topBar {
    display: flex;
  }
  #bottomNav {
    display: block;
  }
  /* Push only #app down by topbar height — avoids double-shifting body */
  #app {
    padding-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h));
    box-sizing: border-box;
  }
  body {
    padding-bottom: var(--bottomnav-h);
  }
  /* fhdr sticks at top of viewport on mobile (already inside #app padding offset) */
  .fhdr {
    top: 0;
  }
  .vid-hdr {
    top: 0;
  }

  /* Modal as bottom sheet on mobile */
  .ovl {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 95vh;
  }
  .mhdr {
    border-radius: 20px 20px 0 0;
  }

  /* Bigger tap targets on mobile */
  .pa {
    padding: 8px 10px;
  }
  .btn-sm {
    padding: 7px 14px;
  }
  .post {
    padding: 12px;
  }
  .post-txt {
    font-size: 14px;
  }

  /* Video cards */
  .live-card {
    width: 180px;
  }
  .vid-card-thumb video {
    max-height: 260px;
  }

  /* Chat height */
  .chat {
    height: calc(100vh - var(--topbar-h) - var(--bottomnav-h));
  }

  /* Mandir community stats */
  .mandir-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sant grid */
  .sant-grid {
    grid-template-columns: 1fr;
  }

  /* Toast position */
  #toastContainer {
    top: calc(var(--topbar-h) + 8px);
  }
}

@media (max-width: 380px) {
  .post-acts {
    gap: 0;
  }
  .pa {
    padding: 6px 5px;
    font-size: 12px;
  }
  .pa svg {
    width: 14px;
    height: 14px;
  }
  .bnb-label {
    display: none;
  }
}

/* ============================================================
   CHATS PAGE — WhatsApp-style
   Paste this at the VERY BOTTOM of your Style.css
   ============================================================ */

#pgChats {
  display: none;
  height: calc(100vh - 0px);
  overflow: hidden;
}
#pgChats.on {
  display: flex !important;
}

.chats-panel {
  width: 340px;
  min-width: 280px;
  border-right: 1px solid var(--bd);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}
.chats-hdr {
  padding: 14px 14px 0;
  border-bottom: 1px solid var(--bd);
  background: var(--bg);
  flex-shrink: 0;
}
.chats-hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chats-hdr-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--t);
}
.chats-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--bd);
  color: var(--t2);
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.chats-icon-btn:hover {
  background: var(--a);
  color: var(--p);
}
.chats-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.chats-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1.5px solid var(--bd);
  border-radius: 22px;
  padding: 8px 14px;
  margin-bottom: 10px;
  transition: border-color 0.18s;
}
.chats-search-box:focus-within {
  border-color: var(--p);
  background: var(--bg);
}
.chats-search-box input {
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  color: var(--t);
}
.chats-search-box svg {
  width: 15px;
  height: 15px;
  stroke: var(--t3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.chats-filter-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chats-filter-tabs::-webkit-scrollbar {
  display: none;
}
.chats-ftab {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  background: var(--bg2);
  color: var(--t2);
  border: 1.5px solid var(--bd);
}
.chats-ftab.on {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

#chatsList {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--pl) transparent;
}
#chatsList::-webkit-scrollbar {
  width: 3px;
}
#chatsList::-webkit-scrollbar-thumb {
  background: var(--pl);
  border-radius: 2px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--bd);
  position: relative;
}
.chat-item:hover {
  background: var(--bg2);
}
.chat-item.active {
  background: var(--a);
}
[data-dark] .chat-item.active {
  background: var(--am);
}

.chat-item-av {
  position: relative;
  flex-shrink: 0;
}
.chat-item-av .av {
  width: 46px;
  height: 46px;
  font-size: 16px;
}
.chat-item-online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background: #43a047;
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.chat-item-body {
  flex: 1;
  min-width: 0;
}
.chat-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.chat-item-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.chat-item-time {
  font-size: 11px;
  color: var(--t3);
  flex-shrink: 0;
  margin-left: 6px;
}
.chat-item-time.unread-time {
  color: var(--p);
  font-weight: 600;
}
.chat-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-item-prev {
  font-size: 13px;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.chat-item-prev.bold {
  font-weight: 600;
  color: var(--t2);
}
.chat-unread-badge {
  min-width: 20px;
  height: 20px;
  background: var(--p);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}
.chat-group-badge {
  font-size: 10px;
  background: var(--a);
  color: var(--p);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 4px;
  flex-shrink: 0;
}

.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.chat-window.hide {
  display: none !important;
}

.chat-win-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background-image: radial-gradient(circle, var(--bd) 1px, transparent 1px);
  background-size: 28px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--pl) transparent;
}
.chat-win-msgs::-webkit-scrollbar {
  width: 3px;
}
.chat-win-msgs::-webkit-scrollbar-thumb {
  background: var(--pl);
  border-radius: 2px;
}

.chat-win-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.chat-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--t2);
  transition: background 0.15s;
}
.chat-back-btn:hover {
  background: var(--bg2);
}
.chat-back-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.chat-win-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}
.chat-win-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-win-info {
  flex: 1;
  min-width: 0;
}
.chat-win-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-win-sub {
  font-size: 12px;
  color: var(--t3);
}

.chat-win-menu {
  position: absolute;
  right: 14px;
  top: 56px;
  background: var(--bg);
  border: 1px solid var(--bd2);
  border-radius: 10px;
  box-shadow: var(--sh2);
  z-index: 200;
  min-width: 160px;
  overflow: hidden;
}
.chat-win-menu.hide {
  display: none !important;
}
.chat-win-mi {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--t);
  transition: background 0.15s;
}
.chat-win-mi:hover {
  background: var(--bg2);
}
.chat-win-mi.red {
  color: #e53935;
}

.msg-date-sep {
  text-align: center;
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--t3);
  font-weight: 500;
}
.msg-date-sep span {
  background: var(--bg2);
  border: 1px solid var(--bd);
  padding: 3px 12px;
  border-radius: 12px;
}
.msg-row {
  display: flex;
  margin-bottom: 2px;
  align-items: flex-end;
  gap: 6px;
}
.msg-row.out {
  justify-content: flex-end;
}
.msg-row.in {
  justify-content: flex-start;
}

.msg-av-small {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.msg-av-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.msg-av-placeholder {
  width: 26px;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 68%;
  padding: 8px 12px 6px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.msg-row.out .msg-bubble {
  background: var(--p);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-row.in .msg-bubble {
  background: var(--bg);
  color: var(--t);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--bd);
}
.msg-sender-name {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--ad);
}
.msg-bubble-img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  margin-bottom: 4px;
  display: block;
  object-fit: cover;
  max-height: 200px;
}
.msg-bubble-video {
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
  margin-bottom: 4px;
  display: block;
  background: #000;
  max-height: 260px;
}
.msg-bubble-audio {
  width: min(260px, 100%);
  margin-bottom: 4px;
}
.msg-bubble-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 4px;
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.06);
}
.msg-row.out .msg-bubble-doc {
  background: rgba(255, 255, 255, 0.16);
}
.msg-bubble-doc-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  font-size: 16px;
  flex-shrink: 0;
}
.msg-bubble-doc-meta {
  min-width: 0;
}
.msg-bubble-doc-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}
.msg-bubble-doc-sub {
  font-size: 11px;
  opacity: 0.72;
}
.msg-bubble-reply {
  border-left: 3px solid var(--ad);
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.05);
}
.msg-row.out .msg-bubble-reply {
  background: rgba(255, 255, 255, 0.12);
}
.msg-bubble-reply-name {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}
.msg-bubble-reply-text {
  font-size: 12px;
  opacity: 0.82;
  line-height: 1.35;
}
.msg-bubble-forwarded {
  font-size: 11px;
  font-style: italic;
  opacity: 0.82;
  margin-bottom: 4px;
}
.msg-bubble-deleted {
  font-style: italic;
  opacity: 0.82;
}
.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 3px;
}
.msg-time {
  font-size: 10px;
  opacity: 0.65;
}
.msg-tick-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 18px;
  height: 14px;
}
.msg-tick {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}
.msg-tick.double {
  position: absolute;
}
.msg-tick.double:first-child {
  left: 0;
}
.msg-tick.double:last-child {
  left: 5px;
}
.tick-sent {
  color: rgba(255, 255, 255, 0.7);
}
.tick-delivered {
  color: rgba(255, 255, 255, 0.8);
}
.tick-read {
  color: #a5d6a7;
}
.msg-row.in .tick-sent,
.msg-row.in .tick-delivered,
.msg-row.in .tick-read {
  color: var(--p);
}

.chat-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg2);
  border-top: 1px solid var(--bd);
}
.chat-reply-preview.hide {
  display: none !important;
}
.chat-reply-preview-main {
  min-width: 0;
}
.chat-reply-preview-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--p);
  margin-bottom: 2px;
}
.chat-reply-preview-text {
  font-size: 12px;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-reply-preview-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--t2);
  cursor: pointer;
  flex-shrink: 0;
}
.chat-msg-menu {
  position: fixed;
  min-width: 170px;
  background: var(--bg);
  border: 1px solid var(--bd2);
  border-radius: 12px;
  box-shadow: var(--sh2);
  z-index: 1000;
  padding: 6px;
}
.chat-msg-menu.hide {
  display: none !important;
}
.chat-msg-action {
  display: block;
  width: 100%;
  border: none;
  background: none;
  color: var(--t);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
.chat-msg-action:hover {
  background: var(--bg2);
}
.chat-msg-action.red {
  color: #e53935;
}
.chat-forward-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bd);
  cursor: pointer;
}
.chat-forward-item:last-child {
  border-bottom: none;
}
.chat-forward-item-meta {
  min-width: 0;
}
.chat-forward-item-name {
  font-size: 14px;
  font-weight: 600;
}
.chat-forward-item-sub {
  font-size: 12px;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--bd);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
}
.chat-emoji-btn,
.chat-attach-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--t3);
  cursor: pointer;
  transition: color 0.18s;
  flex-shrink: 0;
}
.chat-emoji-btn:hover,
.chat-attach-btn:hover {
  color: var(--p);
}
.chat-emoji-btn svg,
.chat-attach-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.chat-emoji-picker {
  position: absolute;
  bottom: 60px;
  left: 14px;
  background: var(--bg);
  border: 1px solid var(--bd2);
  border-radius: 12px;
  box-shadow: var(--sh2);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 260px;
  z-index: 100;
}
.chat-emoji-picker.hide {
  display: none !important;
}
.chat-emoji-btn2 {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
}
.chat-emoji-btn2:hover {
  background: var(--bg3);
}
.chat-msg-input {
  flex: 1;
  background: var(--bg2);
  border: 1.5px solid var(--bd);
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--t);
  outline: none;
  transition: border-color 0.18s;
  min-width: 0;
  font-family: inherit;
}
.chat-msg-input:focus {
  border-color: var(--p);
  background: var(--bg);
}
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.chat-send-btn:hover {
  background: var(--pd);
  transform: scale(1.05);
}
.chat-send-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  text-align: center;
  padding: 40px;
  height: 100%;
}

.ng-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--bd);
}
.ng-member-item:last-child {
  border-bottom: none;
}
.ng-member-item:hover {
  background: var(--bg2);
}
.ng-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--bd2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.ng-check.checked {
  background: var(--p);
  border-color: var(--p);
}
.ng-check.checked::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.dm-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--bd);
  border-radius: 8px;
  padding: 9px 8px;
  transition: background 0.15s;
}
.dm-user-item:hover {
  background: var(--bg2);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  margin-bottom: 4px;
}
.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--t3);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  #pgChats.on {
    flex-direction: column;
    height: calc(100vh - var(--bottomnav-h));
    height: calc(100dvh - var(--bottomnav-h));
  }
  .chats-panel {
    width: 100%;
    border-right: none;
    height: 100%;
  }
  .chat-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    height: 100% !important;
    height: 100dvh !important;
    background: var(--bg2);
    display: flex;
    flex-direction: column;
  }
  .chat-win-hdr {
    flex-shrink: 0;
  }
  .chat-win-msgs {
    padding: 10px 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .chat-win-bar {
    flex-shrink: 0;
    position: relative;
  }
  .msg-bubble {
    max-width: 80%;
  }
  .chat-back-btn {
    display: flex;
  }
  /* Hide top bar and bottom nav when chat is fullscreen */
  body.chat-fullscreen #topBar,
  body.chat-fullscreen #bottomNav {
    display: none !important;
  }
  body.chat-fullscreen #app {
    padding-top: 0;
    padding-bottom: 0;
  }
}
@media (min-width: 641px) {
  .chat-back-btn {
    display: none !important;
  }
  #pgChats.on {
    height: calc(100vh - 0px);
  }
  .chat-window {
    display: flex !important;
  }
}
@media (max-width: 640px) {
  .chat-back-btn {
    display: flex !important;
  }
}

/*===============================/*

/* ── PROFILE PAGE UI IMPROVEMENTS ── */

/* Banner */
.prof-banner {
  height: 180px;
  background: linear-gradient(
    135deg,
    var(--p) 0%,
    var(--pl) 50%,
    var(--ad) 100%
  );
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.prof-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile header card */
.prof-hdr {
  background: var(--bg);
  border-radius: 20px;
  margin: -30px 12px 0;
  padding: 16px 18px 18px;
  box-shadow: 0 4px 24px rgba(74, 46, 42, 0.12);
  position: relative;
  z-index: 2;
  border: 1px solid var(--bd);
}

/* Avatar — sits on top of the card, above the card top edge */
.prof-av-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.prof-av-wrap .av.av80 {
  width: 84px;
  height: 84px;
  font-size: 26px;
  border: 4px solid var(--bg);
  box-shadow: 0 2px 12px rgba(74, 46, 42, 0.18);
  margin-top: -54px; /* pulls avatar up over banner */
  flex-shrink: 0;
}

/* Action buttons — right side, same row as avatar */
#prActions {
  position: static; /* remove absolute positioning */
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px; /* small top gap so it's visually centered with avatar */
  flex-shrink: 0;
}

/* Name styling */
.prof-name {
  font-size: 20px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 2px;
  color: var(--t);
}

/* Handle */
.prof-hdl {
  font-size: 14px;
  color: var(--t3);
  margin-bottom: 10px;
}

/* Bio */
.prof-bio {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Meta row */
.prof-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 14px;
}
.prof-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg2);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--bd);
}
.prof-meta svg {
  width: 12px;
  height: 12px;
  stroke: var(--ad);
  fill: none;
  stroke-width: 2;
}

/* Stats row */
.prof-stats {
  display: flex;
  gap: 0;
  background: var(--bg2);
  border-radius: 14px;
  padding: 10px 0;
  border: 1px solid var(--bd);
  margin-top: 4px;
}
.ps {
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding: 4px 0;
  border-right: 1px solid var(--bd);
  transition: background 0.15s;
}
.ps:last-child {
  border-right: none;
}
.ps:hover {
  background: var(--a);
  border-radius: 14px;
}
.ps strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--p);
}
.ps span {
  font-size: 12px;
  color: var(--t3);
  font-weight: 500;
}

/* Profile tabs */
#prTabs {
  margin: 14px 12px 0;
  border-radius: 14px 14px 0 0;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-bottom: none;
  overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .prof-banner {
    height: 130px;
  }
  .prof-hdr {
    margin: -28px 8px 0;
    padding: 14px 14px 14px;
    border-radius: 16px;
  }
  .prof-av-wrap .av.av80 {
    width: 72px;
    height: 72px;
    font-size: 20px;
    margin-top: -48px;
  }
  #prActions {
    margin-top: 6px;
  }
  .prof-name {
    font-size: 18px;
  }
  .ps strong {
    font-size: 16px;
  }
  #prTabs {
    margin: 10px 8px 0;
  }
}

/* ============================================================
   PULL TO REFRESH
   ============================================================ */
#pullIndicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
}

#pullIndicator.visible {
  height: 60px;
}

#pullIndicator.refreshing {
  height: 60px;
}

.pull-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#pullIndicator.visible .pull-inner,
#pullIndicator.refreshing .pull-inner {
  opacity: 1;
  transform: translateY(0);
}

.pull-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--a);
  border: 2px solid var(--bd2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.pull-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--p);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

#pullIndicator.ready .pull-icon svg {
  transform: rotate(180deg);
}

#pullIndicator.refreshing .pull-icon {
  animation: pullSpin 0.8s linear infinite;
  background: var(--p);
  border-color: var(--p);
}

#pullIndicator.refreshing .pull-icon svg {
  stroke: #fff;
}

@keyframes pullSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Push page content down while refreshing — mobile only */
@media (max-width: 640px) {
  #app.pull-refreshing {
    padding-top: calc(var(--topbar-h) + 60px);
    transition: padding-top 0.2s ease;
  }
}

@media (max-width: 640px) {
  .chat-win-hdr {
    padding: 8px 10px;
    gap: 8px;
    padding-top: max(8px, env(safe-area-inset-top, 8px));
  }
  .chats-icon-btn {
    width: 32px;
    height: 32px;
  }
  .chats-icon-btn svg {
    width: 15px;
    height: 15px;
  }
  .chat-win-av {
    width: 34px;
    height: 34px;
  }
  .chat-win-name {
    font-size: 14px;
  }
  .chat-win-bar {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  }
}

/* =========================================
   WEBRTC CALL OVERLAY
   ========================================= */
.call-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.call-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.call-overlay-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}
.call-remote-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: none;
}
.call-local-video {
  position: absolute;
  bottom: 100px;
  right: 20px;
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  z-index: 4;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: none;
}
.call-overlay-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}
.call-av {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--p);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
  animation: pulse-ring 2s infinite;
}
.call-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.call-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.call-status {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 60px;
}
.call-controls {
  display: flex;
  gap: 30px;
  align-items: center;
}
.call-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}
.call-btn:hover {
  transform: scale(1.05);
}
.call-btn svg {
  width: 28px;
  height: 28px;
}
.call-btn.btn-reject {
  background: #ff3b30;
}
.call-btn.btn-accept {
  background: #34c759;
  animation: bounce-ring 2s infinite;
}
.call-btn.btn-end {
  background: #ff3b30;
}
.call-btn.btn-action.off {
  background: rgba(255,255,255,0.8);
  color: #000;
}
@keyframes bounce-ring {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   ★ DESKTOP UI SCALING — Improved spacing, fonts, layout
   ============================================================ */
@media (min-width: 641px) {
  /* --- Google Font override for modern look --- */
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
  }

  /* --- Feed area uses flex, no overflow --- */
  #feedWrap {
    max-width: none;
    flex: 1;
    min-width: 0;
  }

  /* --- Right sidebar capped --- */
  #rightWrap {
    width: 340px;
    flex-shrink: 1;
    min-width: 260px;
    padding: 18px;
  }

  /* --- Sidebar scaling (compact) --- */
  .sidebar-logo-area {
    padding: 18px 16px 14px;
  }
  .sb {
    padding: 11px 16px;
    gap: 12px;
  }
  .sb svg {
    width: 20px;
    height: 20px;
  }
  .sb-label {
    font-size: 14px;
  }

  /* --- Feed header --- */
  .fhdr {
    padding: 12px 18px;
  }
  .fhdr-title {
    font-size: 20px;
  }
  .ftab {
    font-size: 14px;
    padding: 11px;
  }

  /* --- Stories --- */
  .stories {
    padding: 14px 20px;
    gap: 14px;
  }
  .s-ring {
    width: 62px;
    height: 62px;
  }
  .s-inner {
    width: 54px;
    height: 54px;
    font-size: 16px;
  }
  .s-lbl {
    font-size: 12px;
    max-width: 62px;
  }

  /* --- Composer --- */
  .composer {
    padding: 16px 20px;
    gap: 12px;
  }
  .cmp-ta {
    font-size: 16px;
    min-height: 44px;
  }

  /* --- Post cards --- */
  .post {
    padding: 18px 22px;
  }
  .post-row {
    gap: 14px;
  }
  .post-name {
    font-size: 16px;
  }
  .post-handle, .post-time {
    font-size: 14px;
  }
  .post-txt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .post-img {
    border-radius: 14px;
    max-height: 420px;
    margin-bottom: 12px;
  }
  .post-acts {
    gap: 6px;
    margin-top: 6px;
  }
  .pa {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 22px;
    gap: 6px;
  }
  .pa svg {
    width: 18px;
    height: 18px;
  }

  /* --- Comments --- */
  .cmts {
    padding: 6px 22px 14px;
  }
  .cmt-body {
    font-size: 15px;
  }
  .cmt-name {
    font-size: 14px;
  }
  .cmt-in {
    padding: 9px 16px;
    font-size: 15px;
  }

  /* --- Widgets --- */
  .widget {
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 16px;
  }
  .widget h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .srch {
    padding: 10px 16px;
    margin-bottom: 16px;
  }
  .srch input {
    font-size: 15px;
  }
  .trend-item {
    padding: 9px 10px;
  }
  .trend-cat {
    font-size: 13px;
  }
  .trend-name {
    font-size: 15px;
  }
  .trend-cnt {
    font-size: 13px;
  }
  .who-item {
    padding: 7px 0;
    gap: 10px;
  }
  .who-name {
    font-size: 15px;
  }
  .who-hdl {
    font-size: 13px;
  }

  /* --- Buttons --- */
  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }
  .btn-sm {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* --- Modals --- */
  .modal {
    border-radius: 18px;
  }
  .mhdr {
    padding: 14px 20px;
  }
  .mhdr h3 {
    font-size: 18px;
  }
  .mpad {
    padding: 20px;
  }
  .fi {
    font-size: 15px;
    padding: 10px 14px;
  }
  .fl {
    font-size: 14px;
  }

  /* --- Icon buttons --- */
  .icoBtn {
    width: 38px;
    height: 38px;
  }
  .icoBtn svg {
    width: 20px;
    height: 20px;
  }

  /* --- Notifications --- */
  .notif {
    padding: 14px 20px;
  }
  .notif-txt {
    font-size: 15px;
  }
  .notif-tm {
    font-size: 13px;
  }

  /* --- Profile on desktop --- */
  .prof-banner {
    height: 200px;
  }
  .prof-hdr {
    margin: -34px 16px 0;
    padding: 20px 22px 22px;
    border-radius: 22px;
  }
  .prof-av-wrap .av.av80 {
    width: 94px;
    height: 94px;
    font-size: 30px;
    margin-top: -58px;
  }
  .prof-name {
    font-size: 22px;
  }
  .prof-hdl {
    font-size: 15px;
  }
  .prof-bio {
    font-size: 16px;
  }
  .prof-meta {
    font-size: 14px;
  }
  .ps strong {
    font-size: 20px;
  }
  .ps span {
    font-size: 13px;
  }
}

/* Extra large screens */
@media (min-width: 1400px) {
  #rightWrap {
    width: 380px;
    padding: 22px;
  }
  .post {
    padding: 20px 24px;
  }
  .post-txt {
    font-size: 16px;
  }
  .fhdr-title {
    font-size: 22px;
  }
  .widget {
    padding: 20px;
  }
}

/* ============================================================
   ★ CHAT PAGE — Full-Screen WhatsApp-Style Desktop Layout
   ============================================================ */
@media (min-width: 641px) {
  #pgChats.on {
    height: 100vh;
    width: calc(100vw - var(--sidebar-w));
  }
  .chats-panel {
    width: 380px;
    min-width: 320px;
  }
  .chats-hdr {
    padding: 16px 16px 0;
  }
  .chats-hdr-title {
    font-size: 22px;
  }
  .chats-icon-btn {
    width: 38px;
    height: 38px;
  }
  .chats-icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .chats-search-box {
    padding: 10px 16px;
  }
  .chats-search-box input {
    font-size: 15px;
  }
  .chats-ftab {
    font-size: 14px;
    padding: 6px 16px;
  }
  .chat-item {
    padding: 13px 16px;
    gap: 13px;
  }
  .chat-item-av .av {
    width: 50px;
    height: 50px;
    font-size: 17px;
  }
  .chat-item-name {
    font-size: 15px;
  }
  .chat-item-prev {
    font-size: 14px;
  }
  .chat-item-time {
    font-size: 12px;
  }
  .chat-win-hdr {
    padding: 12px 18px;
    gap: 12px;
  }
  .chat-win-av {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
  .chat-win-name {
    font-size: 16px;
  }
  .chat-win-sub {
    font-size: 13px;
  }
  .chat-win-msgs {
    padding: 20px 24px;
    gap: 4px;
  }
  .msg-bubble {
    font-size: 15px;
    padding: 10px 16px;
  }
  .msg-time {
    font-size: 11px;
  }
}

/* ============================================================
   ★ DONATION MODAL STYLES
   ============================================================ */
.donate-modal-content {
  text-align: center;
}
.donate-temple-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--p);
  margin-bottom: 4px;
}
.donate-subtitle {
  font-size: 14px;
  color: var(--t3);
  margin-bottom: 20px;
}
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.donate-amt {
  padding: 14px 8px;
  border: 2px solid var(--bd2);
  border-radius: 14px;
  background: var(--bg2);
  font-size: 16px;
  font-weight: 700;
  color: var(--t);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.donate-amt:hover {
  border-color: var(--p);
  background: var(--a);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 46, 42, 0.12);
}
.donate-amt.selected {
  border-color: var(--p);
  background: var(--p);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74, 46, 42, 0.25);
  transform: translateY(-2px);
}
.donate-amt small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}
.donate-custom-wrap {
  margin-bottom: 20px;
}
.donate-custom-label {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 6px;
  text-align: left;
}
.donate-custom-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bd2);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--t);
  background: var(--bg2);
  outline: none;
  transition: border-color 0.2s;
}
.donate-custom-input:focus {
  border-color: var(--p);
  background: var(--bg);
}
.donate-custom-input::placeholder {
  color: var(--t3);
  font-weight: 400;
}
.donate-pay-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4a2e2a 0%, #7a5c56 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(74, 46, 42, 0.3);
}
.donate-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(74, 46, 42, 0.4);
}
.donate-pay-btn:active {
  transform: translateY(0);
}
.donate-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Success screen */
.donate-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.donate-success.show {
  display: block;
}
.donate-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #43a047, #66bb6a);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: donatePopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(67, 160, 71, 0.3);
}
.donate-success-icon svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.donate-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--p);
  margin-bottom: 6px;
}
.donate-success p {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.donate-success-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--p);
  margin-bottom: 20px;
}
@keyframes donatePopIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Secure badge */
.donate-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t3);
  margin-top: 14px;
}
.donate-secure svg {
  width: 14px;
  height: 14px;
  stroke: var(--t3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile donation adjustments */
@media (max-width: 640px) {
  .donate-amounts {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .donate-amt {
    padding: 12px 6px;
    font-size: 15px;
  }
  .donate-temple-name {
    font-size: 18px;
  }
}

/* ============================================================
   ★ SCROLL & RENDERING PERFORMANCE
   ============================================================ */
.stories,
#feedPosts,
#chatsList,
.sidebar-nav,
.chat-win-msgs,
#chatsPanel {
  -webkit-overflow-scrolling: touch;
}
.stories { will-change: scroll-position; }
.post { contain: layout style; }
.page { scroll-behavior: smooth; }

/* ============================================================
   REELS PAGE
   ============================================================ */
#pgReels {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #1a110e 0%, #0d0807 100%);
}

.reels-page-shell {
  position: relative;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(201, 149, 90, 0.18), transparent 36%),
    radial-gradient(circle at bottom, rgba(74, 46, 42, 0.18), transparent 42%),
    linear-gradient(180deg, #1a110e 0%, #0d0807 100%);
}

.reels-page-ambient {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  opacity: 0.96;
  filter: blur(34px);
  transform: scale(1.04);
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 149, 90, 0.34), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(122, 92, 86, 0.24), transparent 24%),
    radial-gradient(circle at 50% 86%, rgba(240, 213, 176, 0.18), transparent 32%);
}

.reels-page-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.reels-feed {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.reels-feed::-webkit-scrollbar {
  display: none;
}

.reel-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  height: 100%;
  padding: 28px clamp(20px, 5vw, 64px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.reel-stage {
  position: relative;
  width: min(100%, 430px);
  height: min(92vh, 820px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(251, 238, 219, 0.12);
  border-radius: 28px;
  background: #060606;
  cursor: pointer;
  outline: none;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.4),
    0 12px 36px rgba(13, 8, 7, 0.32);
  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    box-shadow 0.24s ease;
}

.reel-stage:focus-visible {
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.4),
    0 12px 36px rgba(13, 8, 7, 0.32),
    0 0 0 3px rgba(201, 149, 90, 0.52);
}

.reel-slide:not(.is-active) .reel-stage {
  transform: scale(0.985);
  opacity: 0.9;
}

.reel-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #060606;
}

.reel-progress {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 3px;
  z-index: 2;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.reel-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--ad), #fff0d8);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
}

.reel-mute-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.44);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.reel-mute-btn:hover {
  transform: translateY(-1px);
  background: rgba(20, 15, 13, 0.68);
  border-color: rgba(255, 255, 255, 0.26);
}

.reel-mute-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reel-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 32%;
  padding: 0 20px 28px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.62) 100%
  );
  pointer-events: none;
}

.reel-uploader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.36);
}

.reel-uploader-badge {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 240, 216, 0.14);
  box-shadow:
    0 0 0 3px rgba(201, 149, 90, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.reel-uploader-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-uploader strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.reels-desktop-nav {
  position: absolute;
  top: 50%;
  right: clamp(18px, 3vw, 42px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.reels-nav-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 238, 219, 0.14);
  border-radius: 999px;
  background: rgba(18, 11, 9, 0.64);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    border-color 0.18s ease;
}

.reels-nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(251, 238, 219, 0.26);
}

.reels-nav-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  box-shadow: none;
}

.reels-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.reels-mode {
  background: #060606;
}

@media (max-width: 640px) {
  body.reels-mode {
    padding-bottom: 0;
  }

  body.reels-mode #topBar {
    display: none;
  }

  body.reels-mode #app {
    padding-top: 0;
    min-height: 100dvh;
  }

  body.reels-mode #bottomNav {
    display: block;
    background: linear-gradient(
      180deg,
      rgba(9, 7, 6, 0) 0%,
      rgba(9, 7, 6, 0.86) 72%,
      rgba(9, 7, 6, 0.95) 100%
    );
    border-top-color: rgba(251, 238, 219, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.reels-mode .bnb {
    color: rgba(253, 248, 242, 0.72);
  }

  body.reels-mode .bnb.on {
    color: #fff;
  }

  body.reels-mode .bnb.on::after {
    background: var(--ad);
  }

  #pgReels,
  .reels-page-shell {
    height: 100dvh;
    min-height: 100dvh;
  }

  .reel-slide {
    padding: 0;
  }

  .reel-stage {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .reel-progress {
    top: max(14px, env(safe-area-inset-top, 0px) + 8px);
    left: 12px;
    right: 12px;
  }

  .reel-mute-btn {
    top: max(18px, env(safe-area-inset-top, 0px) + 12px);
    right: 14px;
  }

  .reel-overlay {
    min-height: 38%;
    padding: 0 18px calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px) + 18px);
  }

  .reels-desktop-nav {
    display: none;
  }
}

