/* ==========================================================================
   පිං පොත | කල්‍යාණ මිත්‍ර පුණ්‍ය ජාලය
   Core Design System & Stylesheet (Pure CSS3)
   ========================================================================== */

:root {
  /* Buddhist-inspired harmonious palette */
  --color-primary-900: #451a03;
  --color-primary-800: #78350f;
  --color-primary-700: #b45309;
  --color-primary-600: #d97706;
  --color-primary-500: #f59e0b;
  --color-primary-400: #fbbf24;
  --color-primary-100: #fef3c7;
  --color-primary-50:  #fffbeb;

  --color-charity-800: #065f46;
  --color-charity-700: #047857;
  --color-charity-600: #059669;
  --color-charity-100: #d1fae5;
  --color-charity-50:  #ecfdf5;

  --color-bg-page:     #f4f1e8;
  --color-bg-card:     #ffffff;
  --color-bg-subtle:   #fcfaf6;
  --color-border:      rgba(217, 119, 6, 0.18);
  --color-border-subtle: #f1ebd8;

  --color-text-main:   #1e293b;
  --color-text-muted:  #64748b;
  --color-text-light:  #94a3b8;

  --shadow-sm: 0 1px 3px rgba(69, 26, 3, 0.05);
  --shadow-md: 0 4px 14px rgba(69, 26, 3, 0.08);
  --shadow-lg: 0 10px 25px rgba(69, 26, 3, 0.12);
  --shadow-float: 0 12px 32px rgba(180, 83, 9, 0.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif Sinhala', serif;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 85px;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 30px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-600);
  border-radius: var(--radius-full);
}

/* Animations */
@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-45px) scale(1.35);
  }
}

.sadhu-anim {
  animation: floatUp 0.85s ease-out forwards;
}

/* Enhanced Sadhu Floating Micro-Interactions */
.sadhu-floating-badge {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45), 0 0 14px rgba(251, 191, 36, 0.6);
  border: 1.5px solid #fef08a;
  transform: translate(-50%, 0);
  animation: floatUpSadhu 0.95s ease-out forwards;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

@keyframes floatUpSadhu {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.85);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -38px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -60px) scale(0.95);
  }
}

.sadhu-particle {
  position: fixed;
  z-index: 999998;
  pointer-events: none;
  font-size: 1.15rem;
  animation: floatParticle 1.05s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes floatParticle {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, -50%), -75px) scale(1.25);
  }
}

.post-card-deleting {
  opacity: 0 !important;
  transform: scale(0.92) translateY(-15px) !important;
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

.animate-spin-slow {
  animation: spinSlow 24s linear infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pulse-indicator {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Header & Top Bar */
.app-header {
  background: linear-gradient(135deg, #451a03 0%, #78350f 50%, #92400e 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-400);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fffbeb;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: rgba(254, 243, 199, 0.85);
  display: block;
}

/* Search Input */
.search-wrapper {
  display: none;
  align-items: center;
  background: rgba(26, 10, 2, 0.4);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  width: 240px;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .search-wrapper {
    display: flex;
  }
}

.search-wrapper:focus-within {
  background: rgba(26, 10, 2, 0.7);
  border-color: var(--color-primary-400);
  width: 280px;
}

.search-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.8rem;
  width: 100%;
  margin-left: 8px;
}

.search-wrapper input::placeholder {
  color: rgba(254, 243, 199, 0.6);
}

/* Nav Tabs (Desktop) */
.nav-tabs-desktop {
  display: none;
  align-items: center;
  height: 64px;
  gap: 6px;
}

@media (min-width: 768px) {
  .nav-tabs-desktop {
    display: flex;
  }
}

.nav-tab-btn {
  height: 100%;
  min-width: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(254, 243, 199, 0.75);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 8px 8px 0 0;
}

.nav-tab-btn i {
  font-size: 1.25rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab-btn:hover i {
  transform: scale(1.12);
}

.nav-tab-btn.active {
  color: #fef08a;
  border-bottom-color: var(--color-primary-400);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active i {
  color: var(--color-primary-400);
}

.nav-tab-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge-live {
  background-color: var(--color-charity-600);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.badge-live-mini {
  position: absolute;
  top: -8px;
  right: -18px;
  background-color: var(--color-charity-600);
  color: #ffffff;
  font-size: 0.52rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  line-height: 1.2;
}

/* User Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-post-action {
  background: var(--color-primary-500);
  color: var(--color-primary-900);
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   Notifications System Styling
   ========================================================================== */
.notifications-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-bell-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(26, 10, 2, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.95rem;
}

.notification-bell-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--color-primary-400);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.notification-bell-btn.active {
  background: rgba(245, 158, 11, 0.35);
  border-color: var(--color-primary-400);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.5);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 1;
  padding: 0 4px;
  border-radius: 9999px;
  border: 2px solid #451a03;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 24px);
  background: rgba(43, 17, 4, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.15);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: notifDropIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  .notifications-dropdown {
    right: -45px;
    width: 325px;
  }
}

@keyframes notifDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(26, 10, 2, 0.6);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.notif-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fffbeb;
  font-family: var(--font-serif);
}

.notif-unread-pill {
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.notif-mark-read-btn {
  background: transparent;
  border: none;
  color: rgba(254, 243, 199, 0.75);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.notif-mark-read-btn:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.08);
}

.notif-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fef3c7;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notif-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.notif-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(20, 8, 2, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-filter-chip {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(254, 243, 199, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.notif-filter-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fffbeb;
}

.notif-filter-chip.active {
  background: var(--color-primary-600);
  color: #ffffff;
  border-color: var(--color-primary-400);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  text-align: left;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
}

.notif-item:hover {
  background: rgba(245, 158, 11, 0.15);
}

.notif-item.unread {
  background: rgba(245, 158, 11, 0.08);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.notif-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.notif-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-primary-600);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  overflow: hidden;
}

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

.notif-type-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border: 2px solid #3b1704;
}

.notif-type-icon.sadhu {
  background: #f59e0b;
  color: #451a03;
}

.notif-type-icon.comment {
  background: #0284c7;
  color: #ffffff;
}

.notif-type-icon.sathkara {
  background: #059669;
  color: #ffffff;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-body-text {
  font-size: 0.8rem;
  color: #fef3c7;
  line-height: 1.4;
  margin-bottom: 4px;
  word-break: break-word;
}

.notif-body-text strong {
  color: #ffffff;
  font-weight: 600;
}

.notif-time {
  font-size: 0.68rem;
  color: rgba(254, 243, 199, 0.55);
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(254, 243, 199, 0.6);
}

.notif-empty i {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: rgba(245, 158, 11, 0.4);
  display: block;
}

.notif-empty p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Post Pulse Highlight animation */
@keyframes postHighlightGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8);
    border-color: #f59e0b;
  }
  30% {
    box-shadow: 0 0 28px 6px rgba(245, 158, 11, 0.6);
    border-color: #fbbf24;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    border-color: var(--color-border);
  }
}

.highlight-post-pulse {
  animation: postHighlightGlow 2.5s ease-out forwards !important;
  border: 2px solid #f59e0b !important;
}


.user-profile-btn {
  background: rgba(26, 10, 2, 0.45);
  color: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 4px 12px 4px 5px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: rgba(26, 10, 2, 0.75);
}

.user-profile-btn.active {
  background: rgba(251, 191, 36, 0.25);
  border-color: var(--color-primary-400);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.4);
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--color-primary-500);
  color: var(--color-primary-900);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Cloud Status Banner */
.cloud-status-banner {
  background: #fffbeb;
  border-bottom: 1px solid rgba(217, 119, 6, 0.25);
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--color-primary-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cloud-status-banner.connected {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Main Grid Layout */
.main-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .main-layout {
    grid-template-columns: 280px 1fr 310px;
    align-items: start;
  }
}

/* Sidebar & Sticky Cards */
.sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
    position: sticky;
    top: 84px;
  }
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

/* User Card */
.profile-card-cover {
  height: 70px;
  background: linear-gradient(135deg, #78350f, #b45309, #d97706);
  position: relative;
}

.profile-card-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--color-primary-100);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  color: var(--color-primary-800);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -24px;
  left: 20px;
}

.profile-card-body {
  padding: 34px 18px 18px 18px;
}

.profile-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-role {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.stat-box {
  padding: 8px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid transparent;
}

.stat-box.merits {
  background: var(--color-primary-50);
  border-color: var(--color-primary-100);
}

.stat-box.sadhu {
  background: var(--color-charity-50);
  border-color: var(--color-charity-100);
}

.stat-number {
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.stat-number.amber { color: var(--color-primary-800); }
.stat-number.green { color: var(--color-charity-700); }

.stat-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

/* Category Menu */
.category-menu-card {
  padding: 16px;
}

.category-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 10px;
  padding-left: 4px;
}

.category-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.category-item:hover {
  background: #f8fafc;
  color: var(--color-text-main);
}

.category-item.active {
  background: var(--color-primary-50);
  color: var(--color-primary-900);
  font-weight: 700;
}

.cat-icon {
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

/* Newsfeed Composer (Create Post Box) */
.composer-card {
  padding: 16px;
}

.composer-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-input-btn {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--color-text-muted);
  text-align: left;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.composer-input-btn:hover {
  background: #e2e8f0;
  color: var(--color-text-main);
}

.composer-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.composer-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.composer-action-btn:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-800);
}

/* Premium Duo Split ("පින්කමක් | Short") */
.composer-duo-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0 !important;
  margin-top: 12px !important;
  padding: 5px 6px !important;
  border-top: 1px solid #f1f5f9 !important;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.35) 0%, rgba(254, 226, 226, 0.25) 100%);
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.composer-duo-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1e293b;
  position: relative;
}

.composer-duo-btn:hover {
  transform: translateY(-1px);
}

.composer-duo-btn:active {
  transform: scale(0.98);
}

.duo-merit-btn {
  color: #78350f;
}

.duo-merit-btn:hover {
  background: rgba(254, 243, 199, 0.9);
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.14);
}

.duo-short-btn {
  color: #991b1b;
}

.duo-short-btn:hover {
  background: rgba(254, 226, 226, 0.9);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.14);
}

.duo-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.composer-duo-btn:hover .duo-btn-icon {
  transform: scale(1.12);
}

.merit-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.16);
}

.short-icon {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.16);
}

.composer-duo-divider {
  width: 1.5px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(203, 213, 225, 0.95), transparent);
  margin: 0 4px;
  flex-shrink: 0;
}

.duo-btn-label {
  letter-spacing: 0.2px;
  font-size: 0.92rem;
}

/* Mobile Category Pills */
.mobile-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

@media (min-width: 1024px) {
  .mobile-categories {
    display: none;
  }
}

.category-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  background: #ffffff;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill.active {
  background: var(--color-primary-700);
  color: #ffffff;
  border-color: var(--color-primary-700);
}

/* Context Banners */
.context-banner {
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.context-banner.mybook {
  background: linear-gradient(135deg, #78350f, #92400e);
}

.context-banner.needs {
  background: linear-gradient(135deg, #065f46, #047857);
}

.context-banner h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.context-banner p {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 3px;
}

/* Feed Posts */
.post-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}

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

.post-card.need-card {
  border-color: rgba(5, 150, 105, 0.28);
}

.post-header {
  padding: 16px 18px 12px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

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

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.post-avatar.need {
  background: #d1fae5;
  color: var(--color-charity-800);
}

.post-author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.post-badges-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.post-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.post-badge.category {
  background: var(--color-primary-50);
  color: var(--color-primary-800);
  border: 1px solid var(--color-primary-100);
}

.post-badge.need {
  background: var(--color-charity-100);
  color: var(--color-charity-800);
  font-weight: 700;
}

.post-badge.private {
  background: #f1f5f9;
  color: var(--color-text-muted);
}

.post-meta-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.post-edit-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 0.88rem;
}

.post-edit-btn:hover {
  color: #d97706;
  background: #fffbeb;
}

.post-delete-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.post-delete-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Post Content */
.post-content-body {
  padding: 0 18px 12px 18px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}

.post-desc {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.6;
  white-space: pre-line;
}

/* Post Media */
.post-image-wrapper {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  max-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-image-wrapper img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-image-wrapper img:hover {
  transform: scale(1.01);
}

/* Engagement Stats */
.post-stats-bar {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid #f1f5f9;
}

.post-stats-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.stat-dot {
  opacity: 0.5;
  font-size: 0.65rem;
}

.sadhu-stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sadhu-emoji-circle {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Post Action Buttons */
.post-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.65);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.post-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  text-decoration: none;
}

.post-btn:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-900);
}

.post-btn.liked {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.45);
  font-weight: 700;
}

.post-btn.call-action {
  background: var(--color-charity-600);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.post-btn.call-action:hover {
  background: var(--color-charity-700);
}

/* Comments Section */
.comments-section {
  background: rgba(254, 243, 199, 0.2);
  border-top: 1px solid rgba(217, 119, 6, 0.15);
  padding: 14px 18px;
}

.quick-blessings-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.blessing-chip {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-primary-900);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blessing-chip:hover {
  background: var(--color-primary-100);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin: 10px 0;
}

.comment-bubble {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
  display: block;
}

.comment-text-box {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  border-top-left-radius: 4px;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.comment-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
}

.comment-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.comment-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.btn-comment-action-mini {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.74rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-comment-action-mini:hover {
  color: #d97706;
  background: #fffbeb;
}

.comment-time {
  font-size: 0.65rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.comment-edited-tag {
  font-size: 0.62rem;
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
}

.post-edited-tag {
  font-size: 0.68rem;
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
  margin-left: 4px;
}

.comment-body {
  color: #334155;
  margin-top: 3px;
  line-height: 1.45;
  word-break: break-word;
}

/* WhatsApp-Style Inline Corner Reactions Footer */
.comment-reactions-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 6px;
  padding-top: 2px;
}

.comment-emoji-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.comment-emoji-pill {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 2px 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.88rem;
  line-height: 1;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  color: #334155;
}

.comment-emoji-pill:hover {
  transform: scale(1.18);
  background: #fffbeb;
  border-color: #fde68a;
}

.comment-emoji-pill.has-count {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.comment-emoji-pill.active {
  background: #fef3c7;
  border-color: #f59e0b;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.25);
}

.comment-emoji-pill .emoji-icon {
  font-size: 0.92rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.15s ease;
}

.comment-emoji-pill:active .emoji-icon {
  transform: scale(1.25);
}

.comment-emoji-pill .emoji-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
}

.comment-emoji-pill.active .emoji-count {
  color: #b45309;
  font-weight: 800;
}


.comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.comment-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  outline: none;
}

.comment-input:focus {
  border-color: var(--color-primary-500);
}

.comment-send-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-600);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.comment-send-btn:hover {
  background: var(--color-primary-700);
}

/* Right Widgets */
.dhamma-quote-card {
  background: linear-gradient(135deg, #78350f 0%, #451a03 50%, #0f172a 100%);
  color: #ffffff;
  padding: 20px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.dhamma-quote-card .bg-icon {
  position: absolute;
  right: -14px;
  bottom: -14px;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.05);
}

.quote-title {
  color: var(--color-primary-400);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.quote-pali {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #fffbeb;
  font-style: italic;
}

.quote-sinhala {
  font-size: 0.72rem;
  color: rgba(254, 243, 199, 0.85);
  margin-top: 8px;
  line-height: 1.5;
}

/* Needs Widget */
.widget-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

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

.widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-sub-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary-700);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.side-needs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-need-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-charity-50);
  border: 1px solid var(--color-charity-100);
  cursor: pointer;
  transition: all 0.2s ease;
}

.side-need-item:hover {
  background: #dcfce7;
}

.side-need-location {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-charity-800);
  background: var(--color-charity-100);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.side-need-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.hidden,
.hidden {
  display: none !important;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-primary-100);
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #e2e8f0;
}

/* Modal Form Controls */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
  background: #ffffff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.type-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.type-toggle-btn {
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-toggle-btn.active {
  background: #ffffff;
  color: var(--color-primary-900);
  box-shadow: var(--shadow-sm);
}

.type-toggle-btn.active-need {
  background: #ffffff;
  color: var(--color-charity-800);
  box-shadow: var(--shadow-sm);
}

.type-toggle-btn.active-general {
  background: #ffffff;
  color: #0284c7;
  box-shadow: var(--shadow-sm);
}

.image-drop-area {
  background: var(--color-primary-50);
  border: 2px dashed var(--color-primary-400);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
}

.btn-submit-merit {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-800));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.btn-submit-merit:hover {
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary-900));
}

/* Mobile Bottom Navigation (Native App Style) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: 0 -4px 20px rgba(69, 26, 3, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px env(safe-area-inset-bottom, 0) 6px;
  z-index: 990;
  user-select: none;
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.mob-nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.mob-nav-item i {
  font-size: 1.35rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mob-nav-item:active {
  transform: scale(0.92);
}

.mob-nav-item.active {
  color: #b45309;
}

.mob-nav-item.active i {
  color: #d97706;
  transform: translateY(-2px) scale(1.12);
}

.mob-fab-center {
  margin-top: -22px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  color: #ffffff;
  border: 3px solid #f4f1e8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.42);
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.mob-fab-center:active {
  transform: scale(0.9) translateY(2px);
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.3);
}

.mob-live-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #ffffff;
  animation: badgePulse 1.8s infinite;
}

.mob-badge-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  padding: 0 3px;
  animation: badgePulse 2s infinite;
}

.mob-nav-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  overflow: hidden;
}

/* ==========================================================================
   Facebook-Style Premium Profile View System
   ========================================================================== */

.profile-page-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 40px 16px;
  animation: fadeIn 0.25s ease-out;
}

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

.profile-header-wrapper {
  background: #ffffff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-cover-banner {
  height: 320px;
  position: relative;
  background: linear-gradient(135deg, #78350f, #d97706);
  overflow: hidden;
  cursor: pointer;
}

@media (max-width: 768px) {
  .profile-cover-banner {
    height: 200px;
  }
}

.profile-cover-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.profile-cover-banner:hover img {
  transform: scale(1.02);
}

.profile-cover-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 60%);
  pointer-events: none;
}

.btn-edit-cover {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-edit-cover:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.profile-intro-bar {
  position: relative;
  padding: 0 32px 18px 32px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-avatar-outer {
  margin-top: -75px;
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  z-index: 5;
}

@media (max-width: 768px) {
  .profile-avatar-outer {
    margin-top: -65px;
    width: 120px;
    height: 120px;
  }
}

.profile-avatar-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 5px solid #ffffff;
  box-shadow: 0 8px 25px rgba(69, 26, 3, 0.18);
  background: var(--color-primary-500);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-avatar-img-wrap:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(69, 26, 3, 0.28);
}

.profile-avatar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-camera-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-camera-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: scale(1.05);
}

.profile-identity-info {
  flex: 1;
  min-width: 260px;
  padding-bottom: 4px;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-full-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.2;
}

.verified-pill {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-dhamma-bio {
  font-size: 0.92rem;
  color: #475569;
  font-style: italic;
  margin: 6px 0 10px 0;
  line-height: 1.5;
}

.profile-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: #64748b;
}

.profile-meta-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.btn-profile-primary {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-800));
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-profile-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary-900));
  transform: translateY(-1px);
}

.btn-profile-secondary {
  background: #f8fafc;
  color: #1e293b;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-profile-secondary:hover {
  background: #e2e8f0;
}

.btn-profile-danger {
  background: #fef2f2;
  color: #991b1b;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid #fecaca;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-profile-danger:hover {
  background: #fee2e2;
}

.profile-nav-tabs {
  display: flex;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 20px;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.profile-nav-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.prof-nav-btn {
  position: relative;
  padding: 13px 16px;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 0.86rem;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.prof-nav-btn:hover {
  color: var(--color-primary-800);
}

.prof-nav-btn.active {
  color: var(--color-primary-700);
  font-weight: 700;
}

.prof-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  transition: all 0.2s ease;
}

.prof-nav-btn.active::after {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.tab-counter {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.prof-nav-btn.active .tab-counter {
  background: #fef3c7;
  color: #b45309;
}

/* Profile 2-Column Content Layout */
.profile-content-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

/* Only Timeline ('පින්කම් සටහන්') tab displays the left sidebar (Intro, Badges, Mini Photos).
   All other tabs (Friends, Photos, Stats, Private) hide the sidebar and expand full width */
.profile-content-grid:not(.subtab-timeline) .profile-sidebar-col,
.profile-content-grid.subtab-friends .profile-sidebar-col,
.profile-content-grid.subtab-photos .profile-sidebar-col,
.profile-content-grid.subtab-stats .profile-sidebar-col,
.profile-content-grid.subtab-private .profile-sidebar-col {
  display: none !important;
}

.profile-content-grid:not(.subtab-timeline),
.profile-content-grid.subtab-friends,
.profile-content-grid.subtab-photos,
.profile-content-grid.subtab-stats,
.profile-content-grid.subtab-private {
  grid-template-columns: 1fr !important;
}

@media (max-width: 1024px) {
  .profile-intro-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px 20px 16px;
  }
  .profile-title-row {
    justify-content: center;
  }
  .profile-meta-tags {
    justify-content: center;
  }
  .profile-header-actions {
    justify-content: center;
    width: 100%;
  }
  .profile-content-grid {
    grid-template-columns: 1fr;
  }

  /* On mobile/tablets: show sidebar ONLY on timeline tab. Hide on all other sub-tabs so content opens right at top */
  .profile-content-grid:not(.subtab-timeline) .profile-sidebar-col,
  .profile-content-grid.subtab-friends .profile-sidebar-col,
  .profile-content-grid.subtab-photos .profile-sidebar-col,
  .profile-content-grid.subtab-stats .profile-sidebar-col,
  .profile-content-grid.subtab-private .profile-sidebar-col {
    display: none !important;
  }
}

.profile-widget-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.widget-head-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prof-widget-bio {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}

.btn-edit-bio-inline {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.78rem;
  color: #475569;
  cursor: pointer;
  text-align: center;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.btn-edit-bio-inline:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.prof-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prof-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #334155;
}

.prof-detail-item strong {
  color: #0f172a;
}

.badges-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-chip.gold {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.badge-chip.emerald {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.badge-chip.blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.badge-chip.purple {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #7e22ce;
}

.mini-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 10px;
  overflow: hidden;
}

.mini-photo-item {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mini-photo-item:hover {
  transform: scale(1.05);
}

.full-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-card {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #f1f5f9;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  color: #ffffff;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* Cover Preset Selection Cards */
.cover-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.cover-preset-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  height: 90px;
  transition: all 0.2s ease;
}

.cover-preset-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cover-preset-card.selected {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
}

.cover-preset-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-preset-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Circular Avatar Cropper & Zoom Modal
   ========================================================================== */
.crop-modal-container {
  max-width: 500px !important;
  width: 95% !important;
}

.crop-area-container {
  width: 100%;
  height: 310px;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make cropper selection circular for avatar */
#cropAvatarModal .cropper-view-box,
#cropAvatarModal .cropper-face {
  border-radius: 50% !important;
}

#cropAvatarModal .cropper-view-box {
  outline: 2px solid #f59e0b !important;
  outline-color: rgba(245, 158, 11, 0.95) !important;
  box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.65) !important;
}

/* Crop Cover Modal Styling */
#cropCoverModal .cropper-view-box {
  outline: 2px solid #f59e0b !important;
  outline-color: rgba(245, 158, 11, 0.95) !important;
  box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.65) !important;
  border-radius: 8px !important;
}

#cropCoverModal .cropper-face {
  border-radius: 8px !important;
}

.crop-controls-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 12px;
}

.btn-crop-ctrl {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-crop-ctrl:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.crop-zoom-slider {
  flex: 1;
  height: 6px;
  accent-color: #d97706;
  cursor: pointer;
}

.btn-crop-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-crop-cancel:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* ==========================================================================
   Settings & Policies Modal Styling
   ========================================================================== */
.settings-modal-box {
  max-width: 600px !important;
  width: 95% !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.settings-tabs-bar {
  display: flex;
  gap: 4px;
  background: #fdfaf2;
  border-bottom: 1px solid #fde68a;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.settings-tabs-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.settings-tab-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #78350f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.settings-tab-btn:hover {
  color: #b45309;
  background: rgba(245, 158, 11, 0.06);
}

.settings-tab-btn.active {
  color: #92400e;
  font-weight: 700;
}

.settings-tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  transition: all 0.2s ease;
}

.settings-tab-btn.active::after {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.settings-content-wrapper {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.settings-panel {
  display: block;
}

/* Policy & Terms Articles */
.policy-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.policy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 12px 14px;
}

.policy-section {
  background: #ffffff;
  border: 1px solid #f1ebd8;
  border-radius: 10px;
  padding: 12px 14px;
}

.policy-section h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 4px;
}

.policy-section p {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.55;
}

/* ==========================================================================
   Repost / Quoted Merit Styling
   ========================================================================== */
.repost-card {
  border-top: 3px solid #059669 !important;
}

.repost-header-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(5, 150, 105, 0.2);
}

.repost-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.repost-actor-name {
  font-size: 0.8rem;
  color: #065f46;
}

.repost-time {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
}

.repost-comment-bubble {
  background: #f0fdf4;
  border-left: 3px solid #059669;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.84rem;
  color: #14532d;
  font-weight: 500;
}

.quoted-merit-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.quoted-merit-box:hover {
  border-color: #f59e0b;
  background: #fffdf5;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
  transform: translateY(-1px);
}

#postDetailModal .post-card {
  margin-bottom: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.quoted-merit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quoted-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quoted-merit-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #451a03;
  margin-bottom: 4px;
}

.quoted-merit-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quoted-merit-image {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(245, 158, 11, 0.2);
  width: 100%;
}

.quoted-merit-image img {
  width: 100%;
  max-height: 480px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* ========================================================================= */
/* Photo Collage Grid & Gallery System                                       */
/* ========================================================================= */
.photo-collage-container {
  width: 100%;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  background: #0f172a;
  overflow: hidden;
  user-select: none;
}

.collage-grid {
  display: grid;
  gap: 3px;
  width: 100%;
  background: #0f172a;
}

.collage-grid.collage-1 {
  grid-template-columns: 1fr;
  max-height: 520px;
  background: #000000;
}
.collage-grid.collage-1 .collage-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  max-height: 520px;
  width: 100%;
}
.collage-grid.collage-1 .collage-item img {
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  background: #000000;
  display: block;
}

.collage-grid.collage-2 {
  grid-template-columns: 1fr 1fr;
  height: 280px;
}
.collage-grid.collage-2 .collage-item {
  height: 280px;
}

.collage-grid.collage-3 {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 320px;
}
.collage-grid.collage-3 .collage-item:nth-child(1) {
  grid-row: span 2;
  height: 320px;
}
.collage-grid.collage-3 .collage-item:nth-child(2),
.collage-grid.collage-3 .collage-item:nth-child(3) {
  height: 158px;
}

.collage-grid.collage-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 320px;
}
.collage-grid.collage-4 .collage-item {
  height: 158px;
}

.collage-grid.collage-5 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 180px 140px;
  height: 323px;
}
.collage-grid.collage-5 .collage-item:nth-child(1) {
  grid-column: span 3;
  height: 180px;
}
.collage-grid.collage-5 .collage-item:nth-child(2) {
  grid-column: span 3;
  height: 180px;
}
.collage-grid.collage-5 .collage-item:nth-child(3) {
  grid-column: span 2;
  height: 140px;
}
.collage-grid.collage-5 .collage-item:nth-child(4) {
  grid-column: span 2;
  height: 140px;
}
.collage-grid.collage-5 .collage-item:nth-child(5) {
  grid-column: span 2;
  height: 140px;
}

.collage-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1e293b;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
  display: block;
}

.collage-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.95);
}

.collage-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.collage-overlay span.sub-text {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 2px;
}

.collage-overlay:hover {
  background: rgba(15, 23, 42, 0.85);
}

/* Composer Thumbs Grid */
.composer-thumbs-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.composer-thumb-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #fde68a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.composer-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(225, 29, 72, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.composer-thumb-remove:hover {
  transform: scale(1.15);
  background: #be123c;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  user-select: none;
}

.lightbox-top-bar {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  pointer-events: auto;
}

.lightbox-zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-tool-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-tool-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-content-box {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  touch-action: none;
}

.lightbox-main-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.85);
  animation: scaleUp 0.2s ease;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-counter-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lightbox-close-btn {
  position: static;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(225, 29, 72, 0.85);
  transform: scale(1.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: rgba(245, 158, 11, 0.85);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

@media (max-width: 640px) {
  .lightbox-nav-btn.prev { left: 8px; }
  .lightbox-nav-btn.next { right: 8px; }
  .collage-grid.collage-2 { height: 210px; }
  .collage-grid.collage-3 { height: 240px; }
  .collage-grid.collage-4 { height: 240px; }
  .collage-grid.collage-5 { height: 240px; }
}

/* ==========================================================================
   Master Admin System & Official Post Styling
   ========================================================================== */
.header-admin-crown-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 1px solid rgba(254, 243, 199, 0.4);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
  animation: pulseGlow 2.5s infinite;
  transition: all 0.2s ease;
}

.header-admin-crown-btn:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35); }
  50% { box-shadow: 0 3px 18px rgba(245, 158, 11, 0.65); }
}

/* Global Broadcast Announcement Banner */
.global-announcement-banner {
  background: linear-gradient(90deg, #78350f, #b45309, #78350f);
  color: #fef3c7;
  padding: 8px 16px;
  border-bottom: 2px solid #f59e0b;
  position: sticky;
  top: 60px;
  z-index: 990;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.announcement-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}

.announcement-icon {
  color: #fde047;
  animation: shake 2s infinite ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-5deg); }
}

/* Official Post Card Styling */
.post-card.official-card {
  border: 2px solid #f59e0b !important;
  background: linear-gradient(to bottom, #fffdfa, #ffffff);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12) !important;
  position: relative;
}

.official-post-banner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-bottom: 1px solid #fde68a;
  padding: 8px 16px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  color: #78350f;
}

.official-post-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pinned-tag {
  background: #f59e0b;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.official-author-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.official-avatar-circle {
  background: linear-gradient(135deg, #d97706, #92400e) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
  border: 2px solid #fef3c7 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 9999px !important;
  flex-shrink: 0 !important;
  cursor: default !important;
}

.official-author-name {
  font-weight: 800 !important;
  color: #78350f !important;
  font-size: 0.95rem !important;
  cursor: default !important;
  letter-spacing: 0.2px;
}

.official-actions-single {
  grid-template-columns: 1fr !important;
  padding: 12px 16px 14px 16px;
  border-top: 1px solid rgba(245, 158, 11, 0.25) !important;
  background: rgba(254, 243, 199, 0.2) !important;
}

.official-sadhu-only-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  border: 1.5px solid rgba(217, 119, 6, 0.35);
  color: #92400e;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
}

.official-sadhu-only-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.3));
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.22);
}

.official-sadhu-only-btn.liked {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border-color: #b45309 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

.official-sadhu-only-btn.liked:hover {
  background: linear-gradient(135deg, #fbbf24, #d97706) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45) !important;
}

.post-pin-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.post-pin-btn:hover {
  background: #fef3c7;
  color: #d97706;
}

.post-pin-btn.is-pinned {
  color: #d97706;
  transform: rotate(-35deg);
}

.post-delete-btn.admin-delete-btn {
  color: #dc2626 !important;
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
}

.post-delete-btn.admin-delete-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* Admin Post Controls in Composer */
.admin-post-controls-box {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.admin-controls-header {
  font-size: 0.8rem;
  font-weight: 800;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.admin-checkboxes-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
  accent-color: #d97706;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Master Admin Settings Panel */
.admin-panel-hero {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.admin-stat-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #b45309;
}

.admin-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

.admin-section-box {
  background: #ffffff;
  border: 1px solid #f1ebd8;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.admin-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.admin-toggle-switch input[type="checkbox"] {
  accent-color: #059669;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Admin Moderation List */
.admin-mod-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.admin-mod-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
}

.admin-mod-info {
  flex: 1;
  min-width: 0;
}

.admin-mod-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-mod-meta {
  font-size: 0.66rem;
  color: #64748b;
  margin-top: 2px;
}

.btn-mod-delete {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-mod-delete:hover {
  background: #dc2626;
  color: #fff;
}

/* Verified Charity Badge on Post Cards & Admin */
.verified-need-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #10b981;
  color: #065f46;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
  letter-spacing: 0.2px;
}

.verified-need-badge i {
  color: #059669;
  font-size: 0.72rem;
}

.post-verify-btn {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.post-verify-btn:hover {
  background: #dcfce7;
  border-color: #22c55e;
}

.post-verify-btn.verified {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #047857;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.admin-charity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 6px;
}

.admin-charity-item.is-verified {
  background: #f0fdf4;
  border-color: #86efac;
}

.poya-admin-inputs-grid {
  display: grid;
  grid-template-columns: 80px 80px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

@media (max-width: 580px) {
  .poya-admin-inputs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Comprehensive Native Mobile App Overhaul (Android / iOS Super-App Feel)
   ========================================================================== */

/* 1. Global Viewport & Horizontal Overflow Prevention */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  /* Body bottom padding to account for fixed bottom navigation bar */
  body {
    padding-bottom: 74px !important;
  }

  /* 2. Top Application Bar (Header) - Ultra-Clean & Compact */
  .app-header {
    height: 56px !important;
  }

  .header-container {
    height: 56px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .brand-section {
    gap: 8px !important;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-icon-wrapper {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0;
  }

  .brand-icon-wrapper i {
    font-size: 1.15rem !important;
  }

  .brand-title {
    font-size: 1.15rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .brand-subtitle {
    font-size: 0.58rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    opacity: 0.85;
  }

  .header-actions {
    gap: 6px !important;
    flex-shrink: 0;
  }

  /* Hide the wide desktop "+ සටහන් කරන්න" button in mobile header (available in FAB and feed) */
  .btn-post-action {
    display: none !important;
  }

  /* Hide the top header notification bell button on mobile (user prefers the bottom bar's notif button) */
  #notificationBellBtn {
    display: none !important;
  }

  /* Compact icon buttons in header */
  .notification-bell-btn {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.88rem !important;
  }

  /* Master Admin Crown Button on mobile */
  .header-admin-crown-btn {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 9999px !important;
  }

  .header-admin-crown-btn span {
    display: none !important; /* Icon-only crown on mobile */
  }

  /* Profile Avatar in Header - Hide text, show only avatar */
  .user-profile-btn {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  #userNameDisplay {
    display: none !important;
  }

  .user-avatar-circle {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.88rem !important;
  }

  /* Completely hide both left and right sidebars on mobile screens <= 768px */
  .sidebar,
  aside.sidebar,
  .main-layout > aside,
  #mainFeedLayout > aside {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }

  /* 3. Main Feed Layout on Mobile - Pure Block Flow Never Blows Out */
  .main-layout:not(.hidden),
  #mainFeedLayout:not(.hidden) {
    display: block !important;
    padding: 10px 12px 84px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    gap: 0 !important;
  }

  .main-layout.hidden,
  #mainFeedLayout.hidden {
    display: none !important;
  }

  .main-feed-area,
  .feed-container,
  #postsContainer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  /* 4. Composer Card on Mobile */
  .composer-card {
    padding: 12px 14px !important;
    border-radius: 18px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 8px rgba(69, 26, 3, 0.04) !important;
  }

  .composer-top {
    gap: 10px !important;
  }

  .composer-input-btn {
    padding: 9px 14px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .composer-actions {
    display: flex !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
  }

  .composer-duo-actions {
    padding: 4px 6px !important;
    border-radius: 12px !important;
  }

  .composer-duo-btn {
    padding: 8px 10px !important;
    gap: 8px !important;
    font-size: 0.86rem !important;
  }

  .duo-btn-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  .composer-duo-divider {
    height: 24px !important;
  }

  .composer-action-btn {
    flex: 1 !important;
    padding: 6px 2px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }

  /* 5. Mobile Category Pills - Smooth Touch Scrolling */
  .mobile-categories {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 2px 6px 2px !important;
    margin-bottom: 12px !important;
  }

  .mobile-categories::-webkit-scrollbar {
    display: none !important;
  }

  .category-pill {
    flex-shrink: 0 !important;
    padding: 5px 13px !important;
    font-size: 0.74rem !important;
    border-radius: 20px !important;
  }

  /* 6. Post Cards on Mobile - Native Card Aesthetics */
  .post-card {
    border-radius: 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 2px 10px rgba(69, 26, 3, 0.05) !important;
    border: 1px solid rgba(217, 119, 6, 0.14) !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .post-header {
    padding: 12px 14px 8px 14px !important;
    gap: 8px !important;
  }

  .post-author-info {
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .post-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }

  .post-badges-wrap {
    gap: 4px !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
  }

  .post-author-name {
    font-size: 0.85rem !important;
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .official-author-badge {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
  }

  .post-badge {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }

  .post-meta-sub {
    font-size: 0.66rem !important;
    gap: 4px !important;
    margin-top: 2px !important;
  }

  /* Post Header Actions (Pin, Delete, Verify) - Never overflow */
  .post-pin-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.8rem !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  .post-delete-btn {
    padding: 6px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }

  .post-verify-btn .btn-text-resp {
    display: none !important; /* Show checkmark icon on small screens */
  }

  .post-verify-btn {
    padding: 4px 6px !important;
    font-size: 0.72rem !important;
  }

  .post-content-body {
    padding: 0 14px 10px 14px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .post-title {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
    margin-bottom: 5px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .post-desc {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .post-image-wrapper {
    width: 100% !important;
    max-height: 520px !important;
    background: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .post-image-wrapper img {
    width: 100% !important;
    max-height: 520px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Post Engagement Stats Row */
  .post-stats-bar {
    padding: 8px 14px !important;
    font-size: 0.72rem !important;
  }

  /* Post Action Buttons (Sadhu, Comments, Repost, Share) - Single Equal Grid Row */
  .post-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    gap: 3px !important;
    padding: 6px 4px !important;
    background: rgba(248, 250, 252, 0.75) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
  }

  .post-btn {
    min-width: 0 !important;
    padding: 7px 2px !important;
    font-size: 0.64rem !important;
    gap: 3px !important;
    border-radius: 8px !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .post-btn span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.63rem !important;
    max-width: 100% !important;
  }

  .post-btn:active {
    transform: scale(0.94) !important;
    background: rgba(245, 158, 11, 0.15) !important;
  }

  .comments-section {
    padding: 10px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .comment-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 6px !important;
  }

  .comment-input {
    min-width: 0 !important;
    flex: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 7px 12px !important;
  }

  /* 7. Notifications Dropdown on Mobile - Full Viewport Friendly */
  .notifications-dropdown {
    position: fixed !important;
    top: 58px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 80vh !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  }

  /* 8. Modals on Mobile - Native Bottom Sheet Styling */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    z-index: 1050 !important;
  }

  .modal-box {
    border-radius: 24px 24px 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: 88vh !important;
    padding: 20px 16px 40px 16px !important;
    animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
  }

  /* Drag handle bar visual hint at top of sheet */
  .modal-box::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 4px;
    margin: 0 auto 14px auto;
  }

  /* 9. Profile View on Mobile - Never Overflow & Clean Alignment */
  .profile-page-container:not(.hidden),
  #profilePageContainer:not(.hidden) {
    display: block !important;
    padding: 0 8px 80px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .profile-page-container.hidden,
  #profilePageContainer.hidden {
    display: none !important;
  }

  .profile-header-wrapper {
    border-radius: 0 0 18px 18px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .profile-intro-bar {
    padding: 0 14px 14px 14px !important;
    gap: 12px !important;
  }

  .profile-header-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .btn-profile-primary,
  .btn-profile-secondary {
    padding: 7px 12px !important;
    font-size: 0.74rem !important;
  }

  .profile-content-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .profile-sidebar-col,
  .profile-main-col {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .profile-content-grid:not(.subtab-timeline) .profile-sidebar-col,
  .profile-content-grid.subtab-friends .profile-sidebar-col,
  .profile-content-grid.subtab-photos .profile-sidebar-col,
  .profile-content-grid.subtab-stats .profile-sidebar-col,
  .profile-content-grid.subtab-private .profile-sidebar-col {
    display: none !important;
  }

  .profile-widget-card {
    padding: 14px 14px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    margin-bottom: 12px !important;
  }

  .widget-head-title {
    font-size: 0.92rem !important;
    margin-bottom: 10px !important;
  }

  .prof-widget-bio {
    font-size: 0.82rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }

  .btn-edit-bio-inline {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    font-size: 0.76rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  .profile-nav-tabs {
    padding: 0 8px !important;
    gap: 4px !important;
  }

  .prof-nav-btn {
    padding: 10px 10px !important;
    font-size: 0.74rem !important;
    gap: 6px !important;
  }

  .prof-nav-btn::after {
    left: 8px !important;
    right: 8px !important;
    height: 2.5px !important;
  }
}

@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Shared Post Deep-link Highlight Aura */
.highlight-shared-post {
  animation: postGlowPulse 2.5s ease-in-out infinite !important;
  border: 2px solid #d97706 !important;
  border-radius: var(--radius-lg);
}

@keyframes postGlowPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.6); }
  50% { box-shadow: 0 0 25px 8px rgba(217, 119, 6, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Daily Merit Checklist Styles */
.checklist-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.checklist-item-card:hover {
  border-color: #f59e0b;
  background: #fffdfa;
}

.checklist-item-card.checked {
  background: #f0fdf4;
  border-color: #86efac;
}

.checklist-item-card.checked .checklist-title {
  color: #166534;
  text-decoration: line-through;
  opacity: 0.85;
}

.checklist-checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checklist-item-card.checked .checklist-checkbox-box {
  background: #10b981;
  border-color: #10b981;
}

/* Spiritual Challenges Styles */
.challenge-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.challenge-card.active {
  border-color: #c084fc;
  background: #faf5ff;
}

.challenge-card.completed {
  border-color: #86efac;
  background: #f0fdf4;
}

/* ==========================================================================
   Clickable Author Profile Links (Facebook-style)
   ========================================================================== */
.author-click-link {
  cursor: pointer !important;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.author-click-link:hover {
  color: #b45309 !important;
  text-decoration: underline;
}

.post-avatar,
.quoted-avatar,
.repost-icon-circle,
.comment-avatar {
  cursor: pointer !important;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.18s ease;
}

.post-avatar:hover,
.quoted-avatar:hover,
.repost-icon-circle:hover,
.comment-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

/* ==========================================================================
   Facebook-Style Member Profile Modal View
   ========================================================================== */
.member-profile-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: 90vh !important;
  overscroll-behavior: contain;
}

.member-profile-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.member-profile-cover {
  width: 100%;
  height: 200px;
  position: relative;
  background: #1e293b;
  overflow: hidden;
}

.member-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.member-modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.08);
}

.member-profile-intro {
  padding: 0 22px 14px;
  display: flex;
  gap: 16px;
  position: relative;
}

.member-avatar-ring {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 2.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -49px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
  z-index: 5;
}

.member-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-info-col {
  flex: 1;
  padding-top: 8px;
}

.member-name-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.member-bio-text {
  font-size: 0.82rem;
  color: #475569;
  margin: 5px 0 8px;
  font-style: italic;
  line-height: 1.45;
}

.member-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.74rem;
  color: #64748b;
}

.member-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.member-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 22px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.member-stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
}

.member-stat-box .stat-num {
  font-size: 1.18rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.member-stat-box .stat-lbl {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
  display: block;
}

.member-section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #78350f;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-timeline-wrapper {
  padding: 18px 20px 24px;
}

.member-posts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 640px) {
  .member-profile-cover {
    height: 140px;
  }
  .member-avatar-ring {
    width: 76px;
    height: 76px;
    font-size: 1.8rem;
    margin-top: -38px;
  }
  .member-name-text {
    font-size: 1.1rem;
  }
  .member-profile-intro {
    padding: 0 14px 12px;
    gap: 12px;
  }
  .member-stats-bar {
    padding: 10px 14px;
    gap: 6px;
  }
  .member-timeline-wrapper {
    padding: 14px 12px 20px;
  }
}

/* ==========================================================================
   WhatsApp Status & Viral Post Card Image Generator Styling
   ========================================================================== */
#viralStatusCardRenderBox {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 620px;
  z-index: -9999;
  pointer-events: none;
  opacity: 1;
}

.share-choice-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.share-choice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.share-choice-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Smart Feed Algorithm & Sorting Switcher Styling
   ========================================================================== */
.feed-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff, #fffdfa);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  padding: 8px 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.06);
  flex-wrap: wrap;
  gap: 8px;
}

.feed-sort-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #78350f;
}

.feed-sort-label i {
  color: #d97706;
  font-size: 0.85rem;
}

.feed-sort-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.feed-sort-pill:hover {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
  transform: translateY(-1px);
}

.feed-sort-pill.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
}

.feed-sort-pill.active i {
  color: #ffffff !important;
}

/* Trending Post Badge on Cards */
.trending-badge {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 7px !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.12) !important;
  animation: pulse-soft 2.5s infinite;
}

.trending-badge i {
  color: #ea580c !important;
  animation: flame-flicker 1.8s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 3px #f97316); }
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 1px 4px rgba(234, 88, 12, 0.12); }
  50% { box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25); }
}

@media (max-width: 640px) {
  .feed-sort-bar {
    padding: 6px 10px;
    border-radius: 12px;
  }
  .feed-sort-pill {
    padding: 4px 9px;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   YouTube Shorts & Video Input Composer Styling
   ========================================================================== */
.video-input-group {
  background: linear-gradient(135deg, #fffdfa, #fef2f2);
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.video-input-group:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.video-tag-pill {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.video-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.video-input-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.video-input-field {
  width: 100%;
  padding: 10px 38px 10px 34px !important;
  font-size: 0.84rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: border-color 0.2s;
}

.video-input-field:focus {
  border-color: #ef4444 !important;
  outline: none;
}

.video-clear-btn {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.video-clear-btn:hover {
  background: #cbd5e1;
  color: #1e293b;
}

/* Video Preview Card in Composer */
.video-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.video-preview-thumb-wrap {
  position: relative;
  width: 80px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

.video-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}

.video-preview-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
}

.video-preview-info {
  flex: 1;
  min-width: 0;
}

.video-preview-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-preview-subtitle {
  font-size: 0.7rem;
  color: #059669;
  font-weight: 600;
  margin-top: 2px;
}

.video-preview-remove-btn {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.video-preview-remove-btn:hover {
  background: #fecaca;
  color: #991b1b;
}

/* Dedicated Standalone Shorts Preview Card */
.standalone-shorts-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
}

.standalone-shorts-thumb-wrap {
  position: relative;
  width: 76px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.standalone-shorts-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.standalone-shorts-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.standalone-shorts-info {
  flex: 1;
  min-width: 0;
}

.standalone-shorts-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.standalone-shorts-hint {
  font-size: 0.74rem;
  color: #059669;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   Post Card Video Facade & Player Styling
   ========================================================================== */
.post-video-container {
  position: relative;
  width: 100%;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-video-container.shorts-container {
  max-width: 380px;
  margin: 12px auto 10px auto;
  aspect-ratio: 9 / 16;
  max-height: 580px;
}

.post-video-container.standard-container {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #09090b;
  overflow: hidden;
}

.video-facade-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.video-facade:hover .video-facade-thumb {
  transform: scale(1.04);
  filter: brightness(0.9);
}

.video-facade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.video-facade-top-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-facade-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.glowing-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: play-pulse 2s infinite;
}

.video-facade:hover .glowing-play-btn {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.85), 0 6px 16px rgba(0, 0, 0, 0.5);
}

@keyframes play-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 32px rgba(239, 68, 68, 0.8);
  }
}

.video-facade-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.video-reels-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.video-reels-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.post-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* ==========================================================================
   Fullscreen Dharma Reels / Shorts Vertical Swipe Viewer (පුණ්‍ය දැක්ම)
   ========================================================================== */
.reels-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #09090b;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.reels-overlay.hidden {
  display: none !important;
}

/* Reels Top Header */
.reels-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  pointer-events: auto;
}

.reels-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reels-brand-title {
  font-weight: 800;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.reels-live-tag {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.reels-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reels-action-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.reels-action-header-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.reels-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.reels-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: rotate(90deg);
}

/* Reels Viewport (Vertical Scroll Snap) */
.reels-viewport {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.reels-viewport::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Reels Individual Slide */
.reels-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

.reels-media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reels-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
}

.reels-slide-facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  cursor: pointer;
  z-index: 10;
}

.reels-slide-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

/* Reels Floating Actions on Right Side */
.reels-actions-col {
  position: absolute;
  right: 14px;
  bottom: 84px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

.reels-action-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.reels-action-circle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.reels-action-circle.active-sadhu {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.9));
  border-color: #fde68a;
  animation: sadhu-bounce 0.4s ease;
}

@keyframes sadhu-bounce {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.reels-action-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Reels Bottom Post Information Overlay */
.reels-bottom-info {
  position: absolute;
  left: 16px;
  bottom: 24px;
  right: 76px;
  z-index: 60;
  color: #ffffff;
  pointer-events: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.reels-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.reels-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  object-fit: cover;
  background: #f59e0b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.reels-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  cursor: pointer;
}

.reels-author-name:hover {
  text-decoration: underline;
}

.reels-category-tag {
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef3c7;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

.reels-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
  line-height: 1.35;
}

.reels-post-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reels-post-desc.expanded {
  -webkit-line-clamp: unset;
  max-height: 160px;
  overflow-y: auto;
}

.reels-desc-more-btn {
  background: transparent;
  border: none;
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  margin-left: 4px;
}

/* Floating Navigation Hints (Desktop Arrow Up/Down) */
.reels-nav-hints {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 80;
  pointer-events: auto;
}

.reels-nav-hint-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.reels-nav-hint-btn:hover {
  background: rgba(245, 158, 11, 0.85);
  transform: scale(1.1);
  color: #ffffff;
}

@media (max-width: 768px) {
  .reels-nav-hints {
    display: none !important;
  }
  .reels-action-header-btn span {
    display: none;
  }
  .reels-action-header-btn {
    padding: 7px 10px;
  }
}

/* Animated Swipe Guidance Hint for Newcomers */
.reels-swipe-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 75;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.25);
  border-radius: 9999px;
  padding: 8px 14px 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  pointer-events: auto;
  cursor: pointer;
  animation: swipeHintBounce 2s ease-in-out infinite;
  transition: opacity 0.35s ease, transform 0.35s ease;
  user-select: none;
}

.reels-swipe-hint.hidden {
  display: none !important;
}

.reels-swipe-hint:not(.visible) {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

.reels-swipe-hint.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes swipeHintBounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

.reels-swipe-hint-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reels-swipe-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.swipe-arrow-anim {
  animation: arrowUpSlide 1.2s ease-in-out infinite;
}

@keyframes arrowUpSlide {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-3px); }
}

.reels-swipe-text-box {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.reels-swipe-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.reels-swipe-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.reels-swipe-hint-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.reels-swipe-hint-close:hover {
  background: rgba(245, 158, 11, 0.8);
  color: #ffffff;
}

/* In-Place TikTok-Style Comments Bottom Sheet Drawer */
.reels-comments-drawer {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: auto;
}

.reels-comments-drawer.hidden {
  display: none !important;
}

.reels-comments-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.reels-comments-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 65vh;
  max-height: 580px;
  background: #111318;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  animation: slideUpComments 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

@keyframes slideUpComments {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.reels-drawer-handle-bar {
  width: 100%;
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.reels-drawer-handle {
  width: 40px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
}

.reels-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reels-comments-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reels-comments-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-serif);
}

.reels-comments-count-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.reels-comments-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.reels-comments-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Quick Blessing Chips in Drawer */
.reels-quick-blessings {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.reels-quick-blessings::-webkit-scrollbar {
  display: none;
}

.reels-blessing-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.reels-blessing-chip:hover,
.reels-blessing-chip:active {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fde68a;
  transform: translateY(-1px);
}

/* Scrollable Comments Body */
.reels-comments-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reels-comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: #94a3b8;
  padding: 24px;
}

.reels-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.reels-comments-empty h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.reels-comments-empty p {
  font-size: 0.8rem;
  color: #94a3b8;
  max-width: 280px;
  line-height: 1.45;
}

.reels-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.reels-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.reels-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reels-comment-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reels-comment-author-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.reels-comment-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  cursor: pointer;
}

.reels-comment-author:hover {
  text-decoration: underline;
}

.reels-comment-time {
  font-size: 0.68rem;
  color: #94a3b8;
}

.reels-comment-text {
  font-size: 0.82rem;
  color: #f8fafc;
  line-height: 1.45;
  word-break: break-word;
}

/* Bottom Input Form in Drawer */
.reels-comments-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px;
  background: #181b22;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.reels-comment-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.reels-comment-input-wrap {
  flex: 1;
}

.reels-comment-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #ffffff;
  padding: 9px 14px;
  font-size: 0.84rem;
  outline: none;
  transition: all 0.2s;
}

.reels-comment-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.reels-comment-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.reels-comment-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.reels-comment-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 14px rgba(245, 158, 11, 0.5);
}

.reels-comment-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Floating Upward Sadhu Reactions Animation */
.floating-sadhu-particle {
  position: fixed;
  pointer-events: none;
  z-index: 100060;
  font-size: 2.2rem;
  user-select: none;
  animation: floatUpSadhu 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

@keyframes floatUpSadhu {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(-50% + var(--drift-x1, -15px)), calc(-50% - 60px)) scale(1.35) rotate(var(--rot1, -12deg));
  }
  60% {
    opacity: 0.95;
    transform: translate(calc(-50% + var(--drift-x2, 20px)), calc(-50% - 150px)) scale(1.2) rotate(var(--rot2, 12deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x3, -10px)), calc(-50% - 240px)) scale(0.85) rotate(var(--rot3, -8deg));
  }
}

/* In-Reel Toast Notification */
.reels-toast {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 100070;
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(16, 185, 129, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.reels-toast.hidden {
  display: none !important;
}

.reels-toast:not(.visible) {
  opacity: 0;
  transform: translateX(-50%) translateY(-15px);
}

.reels-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   PWA Installation UI & Update Notification System
   ========================================================================== */

/* Top Header Install Button */
.header-pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
  transition: all 0.25s ease;
  animation: pwaPulse 3s infinite;
}

.header-pwa-install-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.header-pwa-install-btn.hidden {
  display: none !important;
}

@keyframes pwaPulse {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
  }
  50% {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
  }
}

/* Smart Floating PWA Install Prompt Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  z-index: 1040;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.pwa-install-banner.hidden {
  display: none !important;
}

.pwa-install-banner:not(.visible) {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
}

.pwa-install-banner.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pwa-banner-card {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(245, 158, 11, 0.25);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.pwa-icon-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
  background: #090d16;
}

.pwa-icon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pwa-banner-info {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.pwa-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pwa-banner-desc {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-pwa-install {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-pwa-install:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
}

.btn-pwa-dismiss {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.btn-pwa-dismiss:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Mobile Positioning for Install Banner (Sit above mobile bottom bar) */
@media (max-width: 768px) {
  .pwa-install-banner {
    bottom: 72px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
  .header-pwa-install-btn span {
    display: none;
  }
  .header-pwa-install-btn {
    padding: 7px 10px;
  }
}

/* iOS Safari PWA Install Modal Box */
.pwa-ios-box {
  max-width: 480px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pwa-ios-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.pwa-ios-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pwa-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.pwa-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-step-text {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.5;
}

/* Floating App Update Notification Toast */
.pwa-update-toast {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 100080;
  background: #0f172a;
  border: 1.5px solid #f59e0b;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-update-toast.hidden {
  display: none !important;
}

.pwa-update-toast:not(.visible) {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  pointer-events: none;
}

.pwa-update-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pwa-update-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.pwa-reload-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.pwa-reload-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   Community Member Counter & Kalyana Mithra System Styles
   ========================================================================== */

/* Header Kalyana Mithra Icon Button */
.header-member-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(254, 243, 199, 0.16);
  border: 1px solid rgba(253, 230, 138, 0.35);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.header-member-counter i {
  color: #fbbf24;
  font-size: 0.92rem;
}

.header-member-counter:hover {
  background: rgba(254, 243, 199, 0.28);
  border-color: rgba(253, 230, 138, 0.65);
  color: #ffffff;
  transform: translateY(-1px) scale(1.05);
}

.header-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #501d06;
}

@media (max-width: 768px) {
  .header-member-counter {
    width: 34px;
    height: 34px;
  }
}

/* Kalyana Mithra Action Buttons in Member Profile Modal */
.btn-connect-mithra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-connect-mithra:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
  filter: brightness(1.05);
}

.btn-pending-mithra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: default;
}

.btn-connected-mithra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
  transition: all 0.2s;
}

.btn-connected-mithra:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.btn-connected-mithra:hover span {
  display: none;
}

.btn-connected-mithra:hover::after {
  content: "සබඳතාව ඉවත් කරන්න";
}

.btn-accept-mithra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: all 0.2s;
}

.btn-accept-mithra:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

/* Kalyana Mithra Cards Grid in Profile Tab */
.mithra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.mithra-card {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
  transition: all 0.25s ease;
  position: relative;
}

.mithra-card:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.18);
}

.mithra-card-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 2px solid #ffffff;
}

.mithra-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mithra-card-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 3px;
  line-height: 1.3;
}

.mithra-card-loc {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mithra-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  width: 100%;
}

.btn-mithra-view {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-mithra-view:hover {
  background: #fef3c7;
  border-color: #fde68a;
  color: #78350f;
}

/* ==========================================================================
   Community Members & Directory System (PC & Mobile)
   ========================================================================== */

/* PC Right Sidebar Member Directory Widget */
.community-members-widget {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 18px rgba(69, 26, 3, 0.04);
}

.sidebar-member-search-box {
  position: relative;
  margin-bottom: 10px;
}

.sidebar-member-search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.75rem;
  pointer-events: none;
}

.sidebar-member-search-box input {
  width: 100%;
  padding: 7px 10px 7px 28px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.74rem;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}

.sidebar-member-search-box input:focus {
  background: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.sidebar-member-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.sidebar-member-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-member-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sidebar-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid #fef3c7;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-member-item:hover {
  background: #fffbeb;
  border-color: #fde68a;
  transform: translateX(2px);
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.08);
}

.sidebar-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sidebar-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-member-info {
  flex: 1;
  min-width: 0;
}

.sidebar-member-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-member-meta {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sidebar-member-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #d97706;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-member-action-btn:hover {
  background: #d97706;
  color: #ffffff;
  transform: scale(1.1);
}

.btn-sidebar-view-all {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-sidebar-view-all:hover {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

/* Segment Tabs: My Friends vs All Community Members */
.friends-segment-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 12px;
  overflow-x: auto;
}

.friends-segment-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.friends-segment-btn:hover {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.friends-segment-btn.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
}

.friends-segment-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
}

.friends-segment-btn:not(.active) .friends-segment-badge {
  background: #f1f5f9;
  color: #475569;
}

.friends-segment-badge.secondary {
  background: rgba(255, 255, 255, 0.35);
}

/* Directory Search & Filter */
.directory-search-wrapper {
  background: #fffdf8;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
}

.directory-search-input-box {
  position: relative;
  margin-bottom: 10px;
}

.directory-search-input-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}

.directory-search-input-box input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.82rem;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}

.directory-search-input-box input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.directory-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dir-chip {
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dir-chip:hover {
  background: #f8fafc;
  color: #1e293b;
}

.dir-chip.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
}

.directory-card-bio {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-connected-friend {
  flex: 1;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-mithra-pending {
  flex: 1;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  color: #b45309;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: default;
}

/* Notification Action Buttons */
.notif-mithra-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-notif-accept {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.btn-notif-accept:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-notif-reject {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-notif-reject:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.notif-type-icon.mithra {
  background: linear-gradient(135deg, #ec4899, #d946ef);
  color: #ffffff;
  font-size: 0.72rem;
}

/* Facebook-Style Friends Section in Member Profile Modal */
.member-friends-section {
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 8px solid #f8fafc;
}

.member-friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.member-friends-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.member-friends-count-lbl {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.member-friends-fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mem-fb-friend-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mem-fb-friend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #fde68a;
  background: #ffffff;
}

.mem-fb-friend-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #b45309;
  overflow: hidden;
}

.mem-fb-friend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mem-fb-friend-info {
  padding: 6px 4px 8px 4px;
  text-align: center;
}

.mem-fb-friend-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mem-fb-friend-loc {
  font-size: 0.64rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}










