@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Design Tokens - Light Sunrise Theme */
  --bg-gradient-1: #F0F6FF; /* Very subtle, soft primary blue */
  --bg-gradient-2: #FFFDE8; /* Very subtle, soft warm yellow */
  --bg-gradient-3: #F0F6FF; /* Calming blend back to soft blue */
  
  --primary-deep: #1A1F52;
  --primary-medium: #2E3675;
  --primary-light: #EBEFFA;
  
  --accent-gold: #F2994A;
  --accent-gold-glow: rgba(242, 153, 74, 0.15);
  --accent-blue: #2F80ED;
  --accent-green: #27AE60;
  
  --text-main: #1C1E2E;
  --text-muted: #6C708D;
  --text-light: #9B9EBA;
  
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.6);
  --card-shadow: 0 12px 30px rgba(26, 31, 82, 0.05);
  --inset-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-shadow: 0 -8px 24px rgba(26, 31, 82, 0.04);
  
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --font-title: 'Outfit', sans-serif;
  
  --phone-bg: #FFFFFF;
}

/* Dark Cosmos Theme Override */
.dark-theme {
  --bg-gradient-1: #0A0D1E;
  --bg-gradient-2: #121633;
  --bg-gradient-3: #18112C;
  
  --primary-deep: #F0F2FF;
  --primary-medium: #8A94C7;
  --primary-light: #20254E;
  
  --accent-gold: #F2C94C;
  --accent-gold-glow: rgba(242, 201, 76, 0.2);
  --accent-blue: #56CCF2;
  --accent-green: #6FCF97;
  
  --text-main: #F0F2FF;
  --text-muted: #A3A7C7;
  --text-light: #6E7399;
  
  --card-bg: rgba(26, 30, 62, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  --inset-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.1);
  
  --nav-bg: rgba(16, 18, 41, 0.9);
  --nav-shadow: 0 -12px 30px rgba(0, 0, 0, 0.4);
  
  --phone-bg: #0C0E20;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #101227 0%, #171A3B 100%);
  color: #E2E8F0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 2rem;
}

/* Floating Glassmorphic Theme Switcher */
.floating-theme-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Toggle Switch Styling */
.switch-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-btn:hover {
  background: #FFFFFF;
  color: #0A0D1E;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

.switch-btn:active {
  transform: translateY(0);
}

/* Interactive Device Presentation (iPhone mockup wrapper) */
.preview-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  position: relative;
}

.device-frame {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 54px;
  background: #000000;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 4px #262A35, 0 0 0 8px #181B22;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.device-frame::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 54px;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.device-frame:hover {
  transform: scale(1.02) translateY(-5px);
}

/* Phone Screen */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 40%, var(--bg-gradient-3) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  user-select: none;
  transition: background 0.4s ease;
}

/* Dynamic Island / Notch */
.dynamic-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #000000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  transition: width 0.3s ease, height 0.3s ease;
}

.dynamic-island:hover {
  width: 260px;
  height: 35px;
}

/* Internal components of Island for micro-realism */
.island-camera {
  width: 8px;
  height: 8px;
  background: #111;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #333;
}

/* StatusBar iOS */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  padding: 16px 28px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-deep);
  z-index: 90;
  font-family: var(--font-title);
  letter-spacing: -0.2px;
  pointer-events: none;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-right svg {
  fill: var(--primary-deep);
}

/* Phone Scrollable App Container */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 96px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  scrollbar-width: none; /* Hide scrollbar for clean UI mockup */
}

.app-content::-webkit-scrollbar {
  display: none;
}

/* Typography styles inside phone */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}

.see-all-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.see-all-link:hover {
  opacity: 0.8;
}

/* Header Redesign */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 4px 5px 4px;
}

.user-profile-summary {
  display: flex;
  flex-direction: column;
}

.greeting-text {
  font-size: 1.4rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.2;
}

.location-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}

.location-indicator svg {
  stroke: var(--accent-gold);
}

.notification-wrapper {
  position: relative;
}

.notification-bell {
  width: 44px;
  height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary-deep);
}

.notification-bell:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--primary-deep);
  color: #FFFFFF;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: #EB5757;
  border-radius: 50%;
  border: 1.5px solid var(--phone-bg);
}

/* Search Bar Box */
.search-container {
  display: flex;
  gap: 10px;
  padding: 2px 4px;
}

.search-bar-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 0 16px 0 46px;
  font-family: var(--font-family);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-deep);
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.search-icon-svg {
  position: absolute;
  left: 16px;
  color: var(--text-light);
  pointer-events: none;
}

.filter-action-btn {
  width: 48px;
  height: 48px;
  background: var(--primary-deep);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(26, 31, 82, 0.15);
}

.filter-action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.filter-action-btn svg {
  fill: #FFFFFF;
}

/* Quick Access Cards */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 4px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.quick-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  position: relative;
  transition: all 0.3s ease;
}

.quick-icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 10%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 80%);
  pointer-events: none;
}

.quick-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-top: 6px;
  letter-spacing: -0.1px;
}

.quick-item:hover {
  transform: translateY(-5px);
}

.quick-item:hover .quick-icon-box {
  background: #FFFFFF;
  border-color: var(--accent-gold);
  box-shadow: 0 10px 20px rgba(242, 153, 74, 0.12);
}

/* Grid layout custom icons color tint overlays for visual premium feel */
.quick-item:nth-child(1) .quick-icon-box { background: rgba(79, 70, 229, 0.05); border-color: rgba(79, 70, 229, 0.12); }
.quick-item:nth-child(2) .quick-icon-box { background: rgba(242, 153, 74, 0.05); border-color: rgba(242, 153, 74, 0.12); }
.quick-item:nth-child(3) .quick-icon-box { background: rgba(47, 128, 237, 0.05); border-color: rgba(47, 128, 237, 0.12); }
.quick-item:nth-child(4) .quick-icon-box { background: rgba(155, 81, 224, 0.05); border-color: rgba(155, 81, 224, 0.12); }
.quick-item:nth-child(5) .quick-icon-box { background: rgba(39, 174, 96, 0.05); border-color: rgba(39, 174, 96, 0.12); }
.quick-item:nth-child(6) .quick-icon-box { background: rgba(235, 87, 87, 0.05); border-color: rgba(235, 87, 87, 0.12); }
.quick-item:nth-child(7) .quick-icon-box { background: rgba(242, 201, 76, 0.08); border-color: rgba(242, 201, 76, 0.15); }
.quick-item:nth-child(8) .quick-icon-box { background: rgba(255, 45, 85, 0.05); border-color: rgba(255, 45, 85, 0.12); }

/* Stories Bar Section */
.stories-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 8px 4px;
  scrollbar-width: none;
}

.stories-scroller::-webkit-scrollbar {
  display: none;
}

.story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.story-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(220deg, var(--accent-gold) 0%, var(--primary-deep) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.story-circle.viewed .story-avatar-wrap {
  background: var(--text-light);
}

.story-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--phone-bg);
  overflow: hidden;
  position: relative;
  background: #DDD;
}

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

.story-circle.live .story-avatar-wrap::after {
  content: 'LIVE';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #EB5757;
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--phone-bg);
  letter-spacing: 0.5px;
}

.story-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 8px;
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-circle:hover {
  transform: scale(1.05);
}

/* Discover Card Redesign - Absolute Masterpiece */
.discover-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.discover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 31, 82, 0.08);
}

.discover-media-container {
  height: 180px;
  position: relative;
  overflow: hidden;
  background-color: #ECEFF1;
}

.discover-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.discover-card:hover .discover-media-container img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(26, 31, 82, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.discover-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px 16px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary-deep);
}

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

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

.author-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.post-time-location {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 1px;
}

.discover-card-body {
  padding: 0 16px 16px 16px;
}

.post-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.35;
  margin-bottom: 8px;
}

.post-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

/* Actions Row with Pop interaction */
.discover-actions {
  border-top: 1px solid rgba(26, 31, 82, 0.05);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-left-group {
  display: flex;
  gap: 14px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 8px;
}

.action-btn svg {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2.2px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.action-btn:hover {
  background: var(--primary-light);
  color: var(--primary-deep);
}

.action-btn:hover svg {
  stroke: var(--primary-deep);
}

.action-btn.liked {
  color: #EB5757;
}

.action-btn.liked svg {
  fill: #EB5757;
  stroke: #EB5757;
  transform: scale(1.15);
}

.action-btn.saved {
  color: var(--accent-gold);
}

.action-btn.saved svg {
  fill: var(--accent-gold);
  stroke: var(--accent-gold);
}

/* Floating flying heart animation container */
.floating-heart {
  position: absolute;
  pointer-events: none;
  color: #EB5757;
  font-size: 1.5rem;
  animation: floatHeart 0.8s ease-out forwards;
}

@keyframes floatHeart {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-80px) scale(1.4) rotate(20deg); opacity: 0; }
}

/* Event Card Redesign */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 31, 82, 0.08);
}

/* Refined Premium Header for Event */
.event-header {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-medium) 100%);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-header-left {
  display: flex;
  flex-direction: column;
}

.event-title {
  font-family: var(--font-title);
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.event-organizer {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 2px;
}

/* Badge overlay elements on event image row */
.event-body-row {
  display: flex;
  padding: 14px;
  gap: 14px;
}

.event-image-box {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #EEE;
  flex-shrink: 0;
}

.event-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upcoming-badge {
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
  border: 1px solid rgba(242, 153, 74, 0.25);
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3.5px 8px;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.2px;
}

.event-meta-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.event-meta-item strong {
  color: var(--text-main);
}

.event-meta-item svg {
  stroke: var(--accent-gold);
  fill: none;
}

.event-footer {
  border-top: 1.5px dashed rgba(26, 31, 82, 0.05);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.2);
}

.event-footer svg {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 2.2px;
}

/* Explore More Tag Pills */
.tag-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px;
}

.tag-pill-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--text-muted);
  padding: 8px 16px;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.tag-pill-btn:hover {
  transform: translateY(-2px);
  color: var(--primary-deep);
  border-color: var(--primary-deep);
}

.tag-pill-btn.active {
  background: var(--primary-deep);
  color: #FFFFFF;
  border-color: var(--primary-deep);
  box-shadow: 0 6px 16px rgba(26, 31, 82, 0.18);
}

/* AI Recommendation List */
.ai-recommendation-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-rec-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-icon-pulse {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ai-icon-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(79, 70, 229, 0.4);
  animation: pulseAI 2s infinite;
}

@keyframes pulseAI {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.ai-rec-header-text {
  display: flex;
  flex-direction: column;
}

.ai-rec-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.ai-rec-subtitle {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
}

.ai-rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-rec-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-rec-card:hover {
  transform: translateX(4px);
  border-color: var(--accent-blue);
  background: #FFFFFF;
}

.ai-rec-left-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-rec-icon-glow {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(47, 128, 237, 0.08);
}

.ai-rec-icon-glow.blue-icon { background: rgba(47, 128, 237, 0.08); }
.ai-rec-icon-glow.green-icon { background: rgba(39, 174, 96, 0.08); }
.ai-rec-icon-glow.orange-icon { background: rgba(242, 153, 74, 0.08); }

.ai-rec-card:hover .ai-rec-icon-glow {
  transform: rotate(8deg) scale(1.05);
}

.ai-rec-details {
  display: flex;
  flex-direction: column;
}

.ai-rec-item-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.ai-rec-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

.chevron-arrow {
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.ai-rec-card:hover .chevron-arrow {
  transform: translateX(3px);
  color: var(--primary-deep);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  box-shadow: var(--nav-shadow);
  border-radius: 0 0 42px 42px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px 10px 10px;
  z-index: 95;
  transition: background 0.4s ease;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  height: 100%;
  width: 50px;
  transition: all 0.3s ease;
  color: var(--text-light);
}

.nav-tab-item svg {
  stroke: var(--text-light);
  fill: none;
  stroke-width: 2.2px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.nav-tab-item span {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.1px;
  transition: all 0.3s ease;
}

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

.nav-tab-item.active svg {
  stroke: var(--primary-deep);
  transform: translateY(-3px) scale(1.05);
}

.nav-tab-item.active::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* Big center + button */
.nav-tab-item.nav-center-action {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-medium) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(26, 31, 82, 0.25);
  transform: translateY(-16px);
  color: #FFFFFF;
  border: 4px solid var(--phone-bg);
}

.nav-tab-item.nav-center-action:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow: 0 12px 30px rgba(26, 31, 82, 0.35);
}

.nav-tab-item.nav-center-action svg {
  stroke: #FFFFFF;
  stroke-width: 2.8px;
}

/* Home Indicator Bar inside phone screen */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: var(--text-light);
  border-radius: 3px;
  z-index: 100;
  pointer-events: none;
  opacity: 0.6;
}

/* Interactive Story Modal overlay */
.story-modal {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 200;
  border-radius: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 20px 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.story-progress-bar {
  display: flex;
  gap: 4px;
  height: 3px;
  width: 100%;
}

.story-progress-segment {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
}

.story-modal.active .story-progress-fill {
  width: 100%;
  transition: width 4.5s linear;
}

.story-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.story-modal-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
}

.story-modal-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  overflow: hidden;
}

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

.story-modal-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-title);
}

.story-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.story-modal-close:hover {
  opacity: 1;
}

.story-modal-body {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.story-modal-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.story-modal-overlay-content {
  position: relative;
  z-index: 10;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #FFFFFF;
}

.story-modal-text-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.story-modal-text-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
  font-weight: 500;
}

.story-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-modal-reply-input {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 18px;
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 0.85rem;
  outline: none;
}

.story-modal-reply-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.story-modal-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.story-modal-send:hover {
  transform: scale(1.05);
}

/* Beautiful responsive layout modifications */
@media (max-width: 900px) {
  body {
    padding: 1rem;
  }
  
  .dashboard {
    flex-direction: column;
  }
  
  .side-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    min-width: 100%;
  }
  
  .preview-container {
    padding: 2rem 1rem;
  }
}

/* ==========================================================================
   Profile Screen & Multi-View Styling
   ========================================================================== */

/* Multi-View System */
.view-container {
  display: none;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.view-container.active {
  display: flex;
  animation: fadeInView 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Profile Header */
.profile-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 4px 12px 4px;
  border-bottom: 1px solid var(--card-border);
}

.profile-back-btn, 
.profile-options-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.profile-back-btn:hover, 
.profile-options-btn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.profile-username-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-username {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.2px;
}

.profile-verified-badge {
  display: inline-flex;
  align-items: center;
}

/* Info Summary Row */
.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 0 4px;
}

.profile-avatar-wrap-large {
  position: relative;
  width: 86px;
  height: 86px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.profile-avatar-inner-large {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3.5px solid var(--phone-bg);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: border-color 0.4s ease;
}

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

.profile-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-deep) 100%);
  z-index: 1;
  animation: rotateHighlight 15s linear infinite;
}

@keyframes rotateHighlight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-stats-grid {
  display: flex;
  flex: 1;
  justify-content: space-around;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-count {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Bio Section */
.profile-bio-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0 6px;
}

.profile-display-name {
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.profile-category {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: -3px;
}

.profile-bio-desc {
  color: var(--text-muted);
  font-weight: 500;
}

.profile-bio-link {
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  transition: opacity 0.2s ease;
}

.profile-bio-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Action Buttons */
.profile-actions-row {
  display: flex;
  gap: 8px;
  padding: 0 4px;
}

.profile-action-btn {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-action-btn.primary-action {
  background: var(--primary-deep);
  color: #FFFFFF;
  border-color: var(--primary-deep);
  box-shadow: 0 4px 12px rgba(26, 31, 82, 0.1);
}

.profile-action-btn.primary-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 31, 82, 0.15);
}

.profile-action-btn.secondary-action {
  background: var(--card-bg);
  color: var(--primary-deep);
}

.profile-action-btn.secondary-action:hover {
  background: #FFFFFF;
  border-color: var(--primary-deep);
  transform: translateY(-1px);
}

.profile-action-btn.icon-action {
  flex: 0 0 38px;
  width: 38px;
  background: var(--card-bg);
  color: var(--primary-deep);
}

.profile-action-btn.icon-action:hover {
  background: #FFFFFF;
  border-color: var(--primary-deep);
  transform: translateY(-1px);
}

/* Highlights */
.highlights-section {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 8px 4px;
  scrollbar-width: none;
}

.highlights-section::-webkit-scrollbar {
  display: none;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.highlight-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlight-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(26, 31, 82, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.highlight-placeholder {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
}

.highlight-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 6px;
  text-align: center;
}

/* Profile Tabs */
.profile-tabs-bar {
  display: flex;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  height: 44px;
  margin-top: 4px;
}

.profile-tab-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-light);
  position: relative;
  transition: all 0.2s ease;
}

.profile-tab-item svg {
  transition: transform 0.25s ease;
}

.profile-tab-item:hover {
  color: var(--primary-deep);
}

.profile-tab-item:hover svg {
  transform: scale(1.05);
}

.profile-tab-item.active {
  color: var(--accent-gold);
}

.profile-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2.5px;
  background: var(--accent-gold);
  border-radius: 3px 3px 0 0;
  animation: slideInTab 0.3s ease;
}

@keyframes slideInTab {
  from { width: 0; left: 50%; right: 50%; }
  to { width: 60%; left: 20%; right: 20%; }
}

/* Grid Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 2px;
  padding: 0 2px;
}

.grid-post-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(26, 31, 82, 0.05);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.grid-post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-post-item:hover img {
  transform: scale(1.08);
}

.post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 82, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 5;
}

.grid-post-item:hover .post-overlay {
  opacity: 1;
}

.overlay-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateY(8px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-post-item:hover .overlay-stat {
  transform: translateY(0);
}

/* Coming Soon Section */
#comingSoonView {
  padding-top: 50px;
}

.coming-soon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 28px;
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin: 40px 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.coming-soon-icon {
  font-size: 3.5rem;
  animation: floatIcon 3.5s ease-in-out infinite;
}

@keyframes floatIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.coming-soon-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.3px;
}

.coming-soon-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 500;
}

.coming-soon-back-btn {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-medium) 100%);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(26, 31, 82, 0.15);
}

.coming-soon-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 31, 82, 0.25);
  filter: brightness(1.1);
}

.coming-soon-back-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   Community Section Redesign
   ========================================================================== */

#communityView {
  width: 100%;
  flex-direction: column;
  padding: 0px;
}

/* 1. Header Bar */
.community-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 20px 8px 20px;
  position: sticky;
  top: 0;
  background: transparent !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 10;
  border-bottom: 1px solid var(--card-border);
}

.community-back-btn, .community-scanner-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--primary-deep);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--inset-shadow), 0 2px 8px rgba(26, 31, 82, 0.04);
}

.community-back-btn:hover, .community-scanner-btn:hover {
  transform: scale(1.05);
  background: var(--primary-deep);
  color: #FFFFFF;
  border-color: var(--primary-deep);
}

.community-back-btn:active, .community-scanner-btn:active {
  transform: scale(0.95);
}

.community-title-text {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.2px;
}

/* 2. Search Container */
.community-search-container {
  padding: 14px 20px 10px 20px;
}

.community-search-box {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  padding: 10px 14px;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-search-box:focus-within {
  border-color: var(--primary-deep);
  box-shadow: 0 0 0 3px rgba(26, 31, 82, 0.08);
  transform: translateY(-1px);
}

.search-icon-svg {
  color: var(--text-light);
}

.community-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-family);
  font-size: 0.88rem;
  color: var(--text-main);
  width: 100%;
}

.community-search-input::placeholder {
  color: var(--text-light);
  font-weight: 500;
}

/* 3. Membership Management Banner */
.community-hero-banner {
  margin: 14px 20px;
  background: linear-gradient(135deg, #0B0D2C 0%, #1E1B5D 100%);
  border-radius: 24px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(26, 31, 82, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(242, 153, 74, 0.28) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(242, 153, 74, 0.18);
  border: 1px solid rgba(242, 153, 74, 0.35);
  color: var(--accent-gold);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3.5px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.pulsing-badge-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-gold);
  animation: badgePulse 1.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.community-hero-banner h3 {
  font-family: var(--font-title);
  color: #FFFFFF;
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.community-hero-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 18px;
  font-weight: 500;
  padding-right: 20px;
}

.hero-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-btn svg {
  transition: transform 0.25s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: #FFFFFF;
  color: #0B0D2C;
  border-color: #FFFFFF;
}

.hero-btn:hover svg {
  transform: translateX(3px);
}

.hero-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-icon-container {
  position: absolute;
  right: -10px;
  bottom: -15px;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 1;
}

/* 4. Start a Community Card */
.community-start-card {
  margin: 14px 20px 22px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.start-card-accent-stripe {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--primary-deep) 100%);
}

.start-card-main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.start-card-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.community-start-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(26, 31, 82, 0.08);
  border-color: rgba(242, 153, 74, 0.25);
}

.start-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-card-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(47, 128, 237, 0.1);
  color: var(--accent-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(47, 128, 237, 0.08);
}

.dark-theme .start-card-icon-circle {
  background: rgba(86, 204, 242, 0.15);
  color: var(--accent-blue);
}

.start-card-header h4 {
  font-family: var(--font-title);
  color: var(--primary-deep);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.1px;
}

.start-card-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 500;
}

.create-community-btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-medium) 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 31, 82, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.create-community-btn-circle svg {
  transition: transform 0.25s ease;
}

.create-community-btn-circle:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #E28732 100%);
  box-shadow: 0 6px 18px var(--accent-gold-glow);
  transform: scale(1.08) rotate(90deg);
}

.create-community-btn-circle:active {
  transform: scale(0.95);
}

/* 5. Section Titles */
.community-section-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-deep);
  padding: 6px 20px;
  margin-top: 6px;
  letter-spacing: -0.1px;
}

/* 6. Categories Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 8px 20px 14px 20px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  padding: 16px 4px 14px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 24px rgba(26, 31, 82, 0.08);
}

.category-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text-light);
  transition: all 0.3s ease;
}

.category-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.3s ease;
}

/* Category card active states - pure minimal beauty */
.category-card.active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  box-shadow: 0 10px 24px rgba(26, 31, 82, 0.18);
}

.category-card.active .category-icon {
  stroke: var(--accent-gold);
  filter: drop-shadow(0 0 4px var(--accent-gold-glow));
  transform: scale(1.1);
}

.category-card.active .category-name {
  color: #FFFFFF;
  font-weight: 800;
}

/* 7. Explore Community List & Cards */
.explore-community-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 20px 30px 20px;
}

.community-card-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--card-border);
  box-shadow: 0 14px 35px rgba(26, 31, 82, 0.08);
}

.card-cover-container {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}

.card-cover-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-card-item:hover .card-cover-container img {
  transform: scale(1.06);
}

.card-category-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(47, 128, 237, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.card-category-badge.active-life {
  background: rgba(39, 174, 96, 0.85);
}

.card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
}

.card-text-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-item-title {
  font-family: var(--font-title);
  color: var(--primary-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.card-metadata-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-location {
  display: flex;
  align-items: center;
  gap: 3px;
}

.meta-location svg {
  color: var(--accent-gold);
}

.meta-divider {
  color: var(--text-light);
}

.card-chevron-btn {
  background: rgba(26, 31, 82, 0.04);
  border: 1px solid rgba(26, 31, 82, 0.06);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--primary-deep);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-card-item:hover .card-chevron-btn {
  background: var(--accent-gold);
  color: #FFFFFF;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 12px var(--accent-gold-glow);
}

.card-chevron-btn:active {
  transform: scale(0.9);
}

/* ==========================================================================
   QR Code Scanner Modal
   ========================================================================== */

.scanner-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 30, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scanner-modal.active {
  opacity: 1;
  transform: scale(1);
}

.scanner-container {
  width: 82%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
}

.scanner-header span {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.scanner-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.scanner-close-btn:hover {
  background: #FFFFFF;
  color: #0A0D1E;
}

.scanner-viewfinder {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Viewfinder Corners */
.viewfinder-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-gold);
  border-style: solid;
  border-width: 0;
}

.viewfinder-corner.top-left { top: 16px; left: 16px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.viewfinder-corner.top-right { top: 16px; right: 16px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.viewfinder-corner.bottom-left { bottom: 16px; left: 16px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.viewfinder-corner.bottom-right { bottom: 16px; right: 16px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }

/* Glowing laser line and animation */
.laser-line {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  box-shadow: 0 0 12px var(--accent-gold);
  animation: laserSweep 2s ease-in-out infinite;
}

@keyframes laserSweep {
  0% { top: 16px; }
  50% { top: calc(100% - 19px); }
  100% { top: 16px; }
}

.scanner-tip {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}


/* ==========================================================================
   Events View & Event Detail Redesign
   ========================================================================== */

/* --- 1. Events View Layout --- */
.events-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 4px 5px 4px;
}

.events-title-text {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.2px;
}

.events-back-btn, .events-search-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--primary-deep);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-back-btn:hover, .events-search-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-deep);
  color: #FFFFFF;
}

.events-search-container {
  padding: 2px 4px;
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.events-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.events-search-input {
  width: 100%;
  height: 42px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 0 16px 0 42px;
  font-family: var(--font-family);
  font-size: 0.84rem;
  color: var(--text-main);
  outline: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.events-search-input:focus {
  border-color: var(--accent-gold);
  background: #FFFFFF;
}

/* Category Scroller Pills */
.events-tag-pills-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.events-tag-pills-wrap::-webkit-scrollbar {
  display: none;
}

.events-tag-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--text-muted);
  padding: 6px 14px;
  font-family: var(--font-family);
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-tag-pill:hover {
  transform: translateY(-1.5px);
  color: var(--primary-deep);
}

.events-tag-pill.active {
  background: var(--primary-deep);
  color: #FFFFFF;
  border-color: var(--primary-deep);
  box-shadow: 0 4px 12px rgba(26, 31, 82, 0.15);
}

/* Events List Feed */
.events-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2px 4px;
}

.events-feed-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-feed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 31, 82, 0.08);
  border-color: rgba(242, 153, 74, 0.2);
}

.event-feed-cover {
  height: 120px;
  position: relative;
  overflow: hidden;
  background: #ECEFF1;
}

.event-feed-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.events-feed-card:hover .event-feed-cover img {
  transform: scale(1.04);
}

.event-feed-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(26, 31, 82, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.event-feed-type-badge.seva { background: rgba(39, 174, 96, 0.85); }
.event-feed-type-badge.yatra { background: rgba(242, 153, 74, 0.85); }

.event-feed-details {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-feed-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.2;
}

.event-feed-meta {
  display: flex;
  gap: 14px;
}

.feed-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.feed-meta-item svg {
  stroke: var(--accent-gold);
  fill: none;
}

.event-feed-footer {
  border-top: 1px dashed rgba(26, 31, 82, 0.06);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.feed-organizer {
  color: var(--text-muted);
}

.feed-attending {
  color: var(--accent-blue);
  background: rgba(47, 128, 237, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- 2. Event Detail View Layout --- */
#eventDetailView {
  gap: 0;
}

.detail-hero-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  margin: 0 -20px 0 -20px; /* Bleed out into container padding */
}

.detail-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 30, 0.4) 0%, rgba(10, 13, 30, 0) 50%, rgba(10, 13, 30, 0.75) 100%);
}

.detail-header-overlay {
  position: absolute;
  top: 56px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.detail-back-btn, .dark-theme .ask-ai-fab-icon {
  background: rgba(10, 13, 30, 0.20);
}

/* ==========================================================================
   ASK AI BOTTOM SHEET CONTENT
   ========================================================================== */

.ask-ai-prompts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px;
  margin-bottom: 20px;
}

.ask-ai-prompt-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ask-ai-prompt-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-medium);
  transform: translateY(-1px);
}

.dark-theme .ask-ai-prompt-btn {
  background: rgba(255, 255, 255, 0.05);
}
.dark-theme .ask-ai-prompt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.ask-ai-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
}

.ask-ai-input {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0 20px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.9rem;
  outline: none;
}

.dark-theme .ask-ai-input {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}
.dark-theme .ask-ai-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ask-ai-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1A1F52 0%, #2E3675 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ask-ai-send:hover {
  transform: scale(1.05);
}

.dark-theme .ask-ai-send {
  background: linear-gradient(145deg, #2E3675 0%, #4A54A0 100%);
}

/* ==========================================================================
   NOTIFICATIONS VIEW
   ========================================================================== */

.notifications-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.notification-item.unread {
  background: var(--primary-light);
  border-color: rgba(26, 31, 82, 0.1);
}

.dark-theme .notification-item.unread {
  background: rgba(26, 31, 82, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.notification-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(26, 31, 82, 0.08);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dark-theme .notification-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-medium);
}

.notification-content {
  flex: 1;
}

.notification-text {
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}

.notification-time {
  font-family: var(--font-family);
  font-size: 0.75rem;
  color: var(--text-muted);
}


.detail-back-btn, .detail-header-action-btn {
  background: rgba(10, 13, 30, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-back-btn:hover, .detail-header-action-btn:hover {
  background: #FFFFFF;
  color: #0A0D1E;
}

.detail-header-right-actions {
  display: flex;
  gap: 8px;
}

/* Detail Floating Overlay Card */
.detail-overlay-title-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 14px 16px;
  margin-top: -32px; /* Overlap the hero cover */
  z-index: 15;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-category-badge {
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
  border: 1px solid rgba(242, 153, 74, 0.2);
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-event-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.25;
}

.detail-host-row {
  border-top: 1.5px dashed rgba(26, 31, 82, 0.06);
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-host-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--primary-medium);
}

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

.detail-host-meta {
  display: flex;
  flex-direction: column;
}

.detail-host-label {
  font-size: 0.58rem;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1;
}

.detail-host-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-top: 2px;
}

/* Scroll Content */
.detail-scroll-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  margin-top: 16px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.detail-info-capsule {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.capsule-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.capsule-icon-box.orange {
  background: rgba(242, 153, 74, 0.08);
  color: var(--accent-gold);
}

.capsule-icon-box.blue {
  background: rgba(47, 128, 237, 0.08);
  color: var(--accent-blue);
}

.capsule-text-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.capsule-label {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.capsule-val {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.capsule-subval {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

.map-location-btn-row {
  display: flex;
}

.map-location-pill {
  width: 100%;
  height: 38px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: var(--accent-blue);
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-location-pill:hover {
  background: var(--primary-light);
  transform: translateY(-1.5px);
}

.detail-description-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-section-title-text {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.1px;
}

.detail-description-para {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

.detail-attendees-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(26, 31, 82, 0.05);
  padding-top: 12px;
  margin-bottom: 50px; /* Make space for sticky bottom */
}

.detail-attendees-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-attendees-avatars {
  display: flex;
  align-items: center;
}

.attendee-avatar-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--phone-bg);
  margin-right: -10px;
  background-color: #EEE;
}

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

.attendee-avatar-bubble.placeholder {
  background: var(--primary-deep);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0;
}

.detail-attendees-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* RSVP Sticky Footer */
.detail-sticky-rsvp-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid var(--card-border);
  box-shadow: 0 -8px 24px rgba(26, 31, 82, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.detail-rsvp-action-btn {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-medium) 100%);
  border: none;
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(26, 31, 82, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-rsvp-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 31, 82, 0.3);
}

.detail-rsvp-action-btn:active {
  transform: scale(0.96);
}

.detail-rsvp-action-btn.confirmed {
  background: var(--accent-green);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.2);
}

/* Dark Theme Overrides for newly introduced variables and structures */
.dark-theme .events-back-btn, 
.dark-theme .events-search-btn,
.dark-theme .detail-back-btn,
.dark-theme .detail-header-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.dark-theme .events-back-btn:hover, 
.dark-theme .events-search-btn:hover,
.dark-theme .detail-back-btn:hover,
.dark-theme .detail-header-action-btn:hover {
  background: #FFFFFF;
  color: #0A0D1E;
}

.dark-theme .detail-sticky-rsvp-footer {
  background: rgba(16, 18, 41, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .events-search-input,
.dark-theme .map-location-pill {
  background: rgba(255, 255, 255, 0.04);
}

.dark-theme .events-search-input:focus {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   3. Community Detail View Layout & Styling (Ultra-Premium Redesign)
   ========================================================================== */

#communityDetailView {
  gap: 0;
}

.community-detail-hero {
  height: 200px;
  position: relative;
  overflow: hidden;
  margin: 0 -20px 0 -20px; /* Bleed out into container padding */
}

.community-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-detail-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 30, 0.4) 0%, rgba(10, 13, 30, 0) 55%, rgba(10, 13, 30, 0.75) 100%);
}

.community-detail-header-overlay {
  position: absolute;
  top: 56px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.community-detail-header-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.community-detail-back-btn, 
.community-detail-header-action-btn {
  background: rgba(10, 13, 30, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-detail-back-btn:hover, 
.community-detail-header-action-btn:hover {
  background: #FFFFFF;
  color: #0A0D1E;
  transform: translateY(-1px);
}

.community-detail-header-right-actions {
  display: flex;
  gap: 8px;
}

/* Floating Overlay Card */
.community-detail-overlay-card {
  background: #FFFFFF; /* Opaque solid premium white to cover cover image bottom boundary */
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 36px rgba(26, 31, 82, 0.08);
  border-radius: 32px 32px 24px 24px; /* Spacious, round, luxury look */
  padding: 22px 20px 18px 20px; /* Spacious padding */
  margin-top: -40px; /* Deepen overlap to look beautifully integrated */
  z-index: 15;
  position: relative;
  display: flex;
  flex-direction: column;
}

.community-detail-card-row {
  display: flex;
  align-items: flex-start; /* Neat alignment for tall titles */
  gap: 16px; /* Elegant spacing */
}

.community-detail-avatar {
  width: 64px; /* Upgraded size to match premium mockups */
  height: 64px;
  border-radius: 16px; /* Elegant round corners */
  overflow: hidden;
  border: 1.5px solid var(--primary-medium);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 31, 82, 0.06);
}

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

.community-detail-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.community-detail-category-badge {
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
  border: 1px solid rgba(242, 153, 74, 0.15);
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px; /* Slightly more spacious padding */
  border-radius: 6px; /* Nicely rounded corners */
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.community-detail-title {
  font-family: var(--font-title);
  font-size: 0.98rem; /* Slightly enhanced readability */
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.3;
}

.community-detail-location-pin {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.community-detail-location-pin svg {
  stroke: var(--accent-gold);
}

.community-detail-bookmark-btn {
  background: var(--primary-light);
  border: 1px solid var(--card-border);
  width: 38px; /* Slightly upgraded size */
  height: 38px;
  border-radius: 12px; /* Smooth rounded shape matching screenshot */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  align-self: center; /* Keep vertically centered next to the text block */
}

.community-detail-bookmark-btn:hover {
  background: var(--primary-deep);
  color: #FFFFFF;
  transform: scale(1.05);
}

.community-detail-bookmark-btn.saved {
  background: var(--accent-gold-glow);
  border-color: rgba(242, 153, 74, 0.3);
  color: var(--accent-gold);
}

/* Scroll Content Spacing */
.community-detail-scroll-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  margin-top: 16px;
}

/* 3-Button Action Grid */
.community-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.community-action-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.community-action-card:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  border-color: var(--primary-medium);
  box-shadow: 0 10px 20px rgba(26, 31, 82, 0.05);
}

.action-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.community-action-card:hover .action-icon-circle {
  transform: scale(1.08);
}

.action-icon-circle.phone-tint {
  background: rgba(47, 128, 237, 0.06);
  color: var(--accent-blue);
}

.action-icon-circle.compass-tint {
  background: rgba(242, 153, 74, 0.06);
  color: var(--accent-gold);
}

.action-icon-circle.message-tint {
  background: rgba(155, 81, 224, 0.06);
  color: rgba(155, 81, 224, 1);
}

.action-label {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-main);
}

/* Tabs Alert Box */
.community-tabs-alert {
  background: rgba(47, 128, 237, 0.04);
  border: 1.2px solid rgba(47, 128, 237, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-shield-icon {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.alert-text {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--accent-blue);
  line-height: 1.3;
}

/* Info Section & Credentials */
.community-info-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-section-title-text {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.1px;
}

.community-credentials-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credential-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.credential-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.credential-text.address-text {
  line-height: 1.45;
}

/* Hours Card */
.community-hours-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hours-icon {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
}

.hours-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.hours-timing-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 2px;
}

.breathing-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
  animation: pulseGreen 1.6s infinite;
  display: inline-block;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(39, 174, 96, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

.hours-status-text {
  font-size: 0.72rem;
  font-weight: 850;
  color: var(--accent-green);
}

.hours-time-range {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Slogan & Slogan description card */
.community-slogan-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slogan-title {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 850;
  color: var(--primary-deep);
}

.slogan-callout {
  background: rgba(242, 153, 74, 0.04);
  border-left: 3px solid var(--accent-gold);
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.4;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.slogan-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

/* Mobile Verification Capsule */
.community-verify-box {
  background: rgba(242, 153, 74, 0.03);
  border: 1.2px solid rgba(242, 153, 74, 0.15);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px; /* Space for absolute sticky bottom */
  transition: all 0.3s ease;
}

.community-verify-box.verified {
  background: rgba(39, 174, 96, 0.03);
  border-color: rgba(39, 174, 96, 0.15);
}

.verify-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.verify-alert-icon {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.verify-text {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--primary-deep);
  line-height: 1.35;
}

.community-verify-btn {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(47, 128, 237, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 68px;
  height: 28px;
}

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

.community-verify-btn:active {
  transform: scale(0.95);
}

.community-verify-btn.verified {
  background: var(--accent-green);
  box-shadow: none;
  cursor: default;
}

.verify-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sticky Bottom Connect Footer */
.community-sticky-connect-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid var(--card-border);
  box-shadow: 0 -8px 24px rgba(26, 31, 82, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.community-connect-action-btn {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-medium) 100%);
  border: none;
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(26, 31, 82, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.community-connect-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 31, 82, 0.3);
}

.community-connect-action-btn:active {
  transform: scale(0.96);
}

.community-connect-action-btn.connected {
  background: var(--accent-blue);
  box-shadow: 0 6px 20px rgba(47, 128, 237, 0.2);
}

/* Dark Theme Overrides */
.dark-theme .community-detail-back-btn,
.dark-theme .community-detail-header-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.dark-theme .community-detail-back-btn:hover,
.dark-theme .community-detail-header-action-btn:hover {
  background: #FFFFFF;
  color: #0A0D1E;
}

.dark-theme .community-sticky-connect-footer {
  background: rgba(16, 18, 41, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .community-detail-overlay-card {
  background: #121633; /* Matching dark theme card container background */
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.dark-theme .community-detail-bookmark-btn {
  background: rgba(255, 255, 255, 0.04);
}

.dark-theme .community-detail-bookmark-btn:hover {
  background: var(--primary-deep);
  color: #FFFFFF;
}

.dark-theme .community-detail-bookmark-btn.saved {
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
}

.dark-theme .community-action-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   MEMBER DIRECTORY & MEDIA GALLERY STYLING OVERRIDES
   ========================================================================== */

/* --- Directory & Gallery Shared Header --- */
#directoryView,
#galleryView,
#donationView,
#volunteerView,
#darshanView,
#birthdaysView {
  gap: 0;
}

.directory-header-bar,
.gallery-header-bar,
.donation-header-bar,
.volunteer-header-bar,
.darshan-header-bar,
.birthdays-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 24px 12px 24px;
  margin: 0 -20px 0 -20px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.directory-title-text,
.gallery-title-text,
.donation-title-text,
.volunteer-title-text,
.darshan-title-text,
.birthdays-title-text {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.2px;
}

.directory-back-btn,
.gallery-back-btn,
.donation-back-btn,
.volunteer-back-btn,
.darshan-back-btn,
.birthdays-back-btn,
.directory-search-btn,
.gallery-share-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--primary-deep);
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.directory-back-btn:hover,
.gallery-back-btn:hover,
.donation-back-btn:hover,
.volunteer-back-btn:hover,
.darshan-back-btn:hover,
.birthdays-back-btn:hover,
.directory-search-btn:hover,
.gallery-share-btn:hover {
  background: var(--primary-deep);
  color: #FFFFFF;
  transform: scale(1.05);
}

.directory-back-btn:active,
.gallery-back-btn:active,
.donation-back-btn:active,
.volunteer-back-btn:active,
.darshan-back-btn:active,
.birthdays-back-btn:active {
  transform: scale(0.95);
}

/* --- Search Box Toggle --- */
.directory-search-container {
  padding: 0 20px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.directory-search-container.active {
  height: 56px;
  padding: 10px 20px 6px 20px;
  opacity: 1;
}

.directory-search-box {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  padding: 0 12px;
  height: 38px;
  gap: 8px;
  transition: border-color 0.25s ease;
}

.directory-search-box:focus-within {
  border-color: var(--accent-gold);
}

.search-icon-svg {
  color: var(--text-muted);
}

.directory-search-input {
  border: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
  width: 100%;
  outline: none;
}

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

/* --- Filter Category Pills --- */
.directory-tag-pills-wrap,
.gallery-tag-pills-wrap {
  display: flex;
  gap: 8px;
  padding: 14px 20px 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.directory-tag-pills-wrap::-webkit-scrollbar,
.gallery-tag-pills-wrap::-webkit-scrollbar {
  display: none;
}

.directory-tag-pill,
.gallery-tag-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.directory-tag-pill:hover,
.gallery-tag-pill:hover {
  border-color: var(--accent-gold);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.directory-tag-pill.active,
.gallery-tag-pill.active {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #E28532 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--accent-gold-glow);
}

/* --- Member Cards --- */
.directory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 20px 96px 20px;
  overflow-y: auto;
}

.member-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 31, 82, 0.08);
  border-color: rgba(242, 153, 74, 0.25);
}

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

.member-avatar-gradient {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.88rem;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.grad-blue { background: linear-gradient(135deg, #2F80ED 0%, #1A1F52 100%); }
.grad-orange { background: linear-gradient(135deg, #F2994A 0%, #D47B28 100%); }
.grad-purple { background: linear-gradient(135deg, #9B51E0 0%, #6E32AC 100%); }
.grad-green { background: linear-gradient(135deg, #27AE60 0%, #1E8A4A 100%); }

.member-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}

.member-status-dot.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
  animation: pulseGreen 1.8s infinite;
}

.member-status-dot.offline {
  background-color: var(--text-light);
}

.member-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.member-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.member-name {
  font-family: var(--font-title);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-role-badge {
  font-size: 0.58rem;
  font-weight: 850;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.member-role-badge.trustee {
  background: rgba(47, 128, 237, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(47, 128, 237, 0.15);
}

.member-role-badge.volunteer {
  background: rgba(242, 153, 74, 0.08);
  color: var(--accent-gold);
  border: 1px solid rgba(242, 153, 74, 0.15);
}

.member-role-badge.sadharmik {
  background: rgba(155, 81, 224, 0.08);
  color: rgba(155, 81, 224, 1);
  border: 1px solid rgba(155, 81, 224, 0.15);
}

.member-designation {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.location-pin-svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.member-location {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-light);
}

.member-actions {
  display: flex;
  gap: 6px;
}

.member-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-action-btn:hover {
  transform: scale(1.05);
}

.member-action-btn.phone-action:hover {
  background: rgba(39, 174, 96, 0.08);
  color: var(--accent-green);
  border-color: rgba(39, 174, 96, 0.2);
}

.member-action-btn.chat-action:hover {
  background: rgba(47, 128, 237, 0.08);
  color: var(--accent-blue);
  border-color: rgba(47, 128, 237, 0.2);
}

/* Empty Search State Alert */
.directory-empty-state {
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.4s ease forwards;
}

.empty-state-emoji {
  font-size: 1.8rem;
}

.empty-state-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.empty-state-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- Media Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 20px 96px 20px;
  overflow-y: auto;
}

.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 31, 82, 0.08);
  border-color: rgba(242, 153, 74, 0.2);
}

.gallery-img-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: #11142F;
}

.gallery-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-hover-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 31, 82, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.zoom-icon {
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover .zoom-icon {
  transform: scale(1);
}

.gallery-card-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-card-tag {
  font-size: 0.55rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: fit-content;
}

.gallery-card-tag.temples { color: var(--accent-gold); }
.gallery-card-tag.seva { color: var(--accent-blue); }
.gallery-card-tag.yatra { color: rgba(155, 81, 224, 1); }

.gallery-card-title {
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Media Lightbox Modal --- */
.lightbox-modal {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 13, 30, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 510;
}

.lightbox-close-btn:hover {
  background: #FFFFFF;
  color: #0C0E20;
  transform: rotate(90deg);
}

.lightbox-content-box {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: scale(0.92);
  animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: #11142F;
}

@keyframes scaleIn {
  to { transform: scale(1); }
}

.lightbox-content-box img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-caption {
  margin-top: 20px;
  max-width: 320px;
  font-size: 0.76rem;
  font-weight: 550;
  color: #E2E8F0;
  text-align: center;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Dark Theme Overrides for Directory & Gallery --- */
.dark-theme .directory-header-bar,
.dark-theme .gallery-header-bar,
.dark-theme .donation-header-bar,
.dark-theme .volunteer-header-bar,
.dark-theme .darshan-header-bar,
.dark-theme .birthdays-header-bar {
  background: rgba(16, 18, 41, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-theme .directory-title-text,
.dark-theme .gallery-title-text,
.dark-theme .donation-title-text,
.dark-theme .volunteer-title-text,
.dark-theme .darshan-title-text,
.dark-theme .birthdays-title-text {
  color: #FFFFFF;
}

.dark-theme .directory-back-btn,
.dark-theme .gallery-back-btn,
.dark-theme .donation-back-btn,
.dark-theme .volunteer-back-btn,
.dark-theme .darshan-back-btn,
.dark-theme .birthdays-back-btn,
.dark-theme .directory-search-btn,
.dark-theme .gallery-share-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.dark-theme .directory-back-btn:hover,
.dark-theme .gallery-back-btn:hover,
.dark-theme .donation-back-btn:hover,
.dark-theme .volunteer-back-btn:hover,
.dark-theme .darshan-back-btn:hover,
.dark-theme .birthdays-back-btn:hover,
.dark-theme .directory-search-btn:hover,
.dark-theme .gallery-share-btn:hover {
  background: #FFFFFF;
  color: #0A0D1E;
}

.dark-theme .member-status-dot {
  border-color: #0C0E20;
}

.dark-theme .member-card:hover {
  border-color: rgba(242, 201, 76, 0.3);
}

.dark-theme .directory-empty-state {
  border-color: rgba(255, 255, 255, 0.15);
}

.dark-theme .empty-state-title {
  color: #FFFFFF;
}

.dark-theme .lightbox-modal {
  background: rgba(6, 7, 16, 0.96);
}

/* ==========================================================================
   QUICK ACCESS NEW VIEWS PREMIUM STYLES
   ========================================================================== */

/* --- Content Scrolls Bottom Spacing --- */
.donation-content-scroll,
.volunteer-content-scroll,
.darshan-content-scroll,
.birthdays-content-scroll {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 110px 20px !important;
  overflow-y: auto;
  flex: 1;
}

/* --- Donation View Presets --- */
/* --- Donation View Presets & Redesign --- */
.preset-btn {
  padding: 12px !important;
  border-radius: 14px !important;
  border: 1.5px solid var(--card-border) !important;
  background: var(--card-bg) !important;
  font-weight: 750 !important;
  color: var(--primary-deep) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.preset-btn:hover {
  border-color: var(--primary-deep) !important;
  transform: translateY(-1px);
}

.preset-btn.active {
  background: var(--primary-deep) !important;
  border-color: var(--primary-deep) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(26, 31, 82, 0.12) !important;
}

.dark-theme .preset-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

.dark-theme .preset-btn:hover {
  border-color: #FFFFFF !important;
}

.dark-theme .preset-btn.active {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  color: #0C0E20 !important;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.08) !important;
}

/* Premium Goal Card */
.donation-goal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.donation-goal-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 28px rgba(26, 31, 82, 0.06);
}

.dark-theme .donation-goal-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.donation-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.donation-goal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--primary-deep);
  opacity: 0.8;
}

.donation-goal-title-wrap svg {
  color: var(--accent-gold);
}

.donation-badge {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--accent-gold) !important;
  background: var(--accent-gold-glow) !important;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(242, 153, 74, 0.2);
}

.dark-theme .donation-badge {
  border-color: rgba(242, 201, 76, 0.25);
}

.donation-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.donation-amount-raised {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.5px;
}

.donation-amount-goal {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.donation-progress-track {
  width: 100%;
  height: 6px;
  background: var(--primary-light);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.dark-theme .donation-progress-track {
  background: rgba(255, 255, 255, 0.06);
}

.donation-progress-bar {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.donation-meta-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
}

.donation-meta-item {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-muted);
}

.donation-meta-divider {
  width: 1px;
  height: 14px;
  background: var(--card-border);
  opacity: 0.5;
}

/* Sections titles */
.donation-section-title {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--primary-deep);
  letter-spacing: 0.1px;
}

/* Custom Input Box */
.custom-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-input-prefix {
  position: absolute;
  left: 16px;
  font-weight: 800;
  color: var(--primary-deep);
  opacity: 0.65;
  font-size: 1.05rem;
  pointer-events: none;
}

.custom-donation-input {
  width: 100%;
  padding: 14px 16px 14px 34px !important;
  border-radius: 14px !important;
  border: 1.5px solid var(--card-border) !important;
  background: var(--card-bg) !important;
  font-weight: 800 !important;
  color: var(--primary-deep) !important;
  font-size: 1.05rem !important;
  outline: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.custom-donation-input:focus {
  border-color: var(--primary-deep) !important;
  box-shadow: 0 0 0 3px var(--primary-light) !important;
}

.dark-theme .custom-donation-input:focus {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

/* Cause list cards */
.cause-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.cause-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary-deep) !important;
  box-shadow: 0 4px 12px rgba(26, 31, 82, 0.03);
}

.dark-theme .cause-card:hover {
  border-color: #FFFFFF !important;
  box-shadow: none;
}

.cause-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dark-theme .cause-icon-container {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-gold);
}

.cause-card:hover .cause-icon-container {
  background: var(--primary-deep);
  color: #FFFFFF;
}

.dark-theme .cause-card:hover .cause-icon-container {
  background: var(--accent-gold);
  color: #0A0D1E;
}

.cause-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cause-title {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--primary-deep);
}

.cause-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.cause-radio {
  accent-color: var(--accent-gold);
  transform: scale(1.15);
  cursor: pointer;
}

/* Premium CTA Action Button */
.donate-action-btn {
  background: var(--primary-deep) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  border: 1.5px solid var(--primary-deep) !important;
  padding: 16px !important;
  border-radius: 16px !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(26, 31, 82, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.donate-action-btn:hover {
  background: var(--primary-medium) !important;
  border-color: var(--primary-medium) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 10px 24px rgba(26, 31, 82, 0.12) !important;
}

.dark-theme .donate-action-btn {
  background: var(--accent-gold) !important;
  color: #0A0D1E !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 8px 20px rgba(242, 201, 76, 0.15) !important;
}

.dark-theme .donate-action-btn:hover {
  background: rgba(242, 201, 76, 0.9) !important;
  border-color: rgba(242, 201, 76, 0.9) !important;
  box-shadow: 0 10px 24px rgba(242, 201, 76, 0.22) !important;
}

/* --- Volunteer View Tag Pills --- */
.volunteer-content-scroll {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Volunteer Stats Card */
.volunteer-stats-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.volunteer-stats-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 28px rgba(26, 31, 82, 0.06);
}

.dark-theme .volunteer-stats-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* Individual Stat Column */
.volunteer-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.volunteer-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-deep) !important;
  margin: 0;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.volunteer-stat-col:hover .volunteer-stat-val {
  color: var(--accent-gold) !important;
}

.volunteer-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Stat Divider */
.volunteer-stat-divider {
  width: 1px;
  height: 30px;
  background: var(--card-border);
  opacity: 0.5;
}

/* Category Pills */
.volunteer-tag-pills-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 0 20px;
}

.volunteer-tag-pills-wrap::-webkit-scrollbar {
  display: none;
}

.volunteer-tag-pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--card-border) !important;
  background: var(--card-bg) !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.volunteer-tag-pill:hover {
  border-color: var(--primary-deep) !important;
  color: var(--primary-deep) !important;
}

.volunteer-tag-pill.active {
  background: var(--primary-deep) !important;
  border-color: var(--primary-deep) !important;
  color: #FFFFFF !important;
}

.dark-theme .volunteer-tag-pill:hover {
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.dark-theme .volunteer-tag-pill.active {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  color: #0C0E20 !important;
}

/* Sleek Seva Card */
.seva-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.seva-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 31, 82, 0.06);
}

.dark-theme .seva-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* Seva Card Header */
.seva-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.seva-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--primary-light) !important;
  color: var(--primary-medium) !important;
  letter-spacing: 0.1px;
}

.dark-theme .seva-card-tag {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--primary-medium) !important;
}

.seva-card-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.seva-card-time svg {
  color: var(--text-light);
}

/* Seva Card Body */
.seva-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seva-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin: 0;
}

.seva-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Seva Card Footer */
.seva-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
  gap: 12px;
}

.seva-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.seva-card-location svg {
  color: var(--text-light);
}

/* Seva Join Button */
.join-seva-btn {
  background: var(--primary-deep) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--primary-deep) !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.join-seva-btn:hover {
  background: var(--primary-medium) !important;
  border-color: var(--primary-medium) !important;
  transform: translateY(-1px);
}

.join-seva-btn.joined {
  background: transparent !important;
  color: var(--accent-green) !important;
  border: 1.5px solid var(--accent-green) !important;
  pointer-events: auto;
  box-shadow: none !important;
}

.dark-theme .join-seva-btn {
  background: #FFFFFF !important;
  color: #0A0D1E !important;
  border-color: #FFFFFF !important;
}

.dark-theme .join-seva-btn:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}

.dark-theme .join-seva-btn.joined {
  background: transparent !important;
  color: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  box-shadow: none !important;
}

/* --- Devotional Stotras Player --- */
.play-stotra-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(242, 153, 74, 0.15);
}
.play-stotra-btn:hover {
  transform: scale(1.08);
}
.play-stotra-btn.playing {
  background: var(--accent-orange) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px var(--accent-orange);
  animation: musicPulse 1.4s infinite alternate;
}

@keyframes musicPulse {
  0% { transform: scale(1); box-shadow: 0 0 4px var(--accent-orange-glow); }
  100% { transform: scale(1.08); box-shadow: 0 0 12px var(--accent-orange); }
}

/* --- Birthdays View Send Wish --- */
.birthday-wish-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.birthday-wish-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px var(--accent-gold-glow);
}
.birthday-wish-btn.wished {
  background: rgba(39, 174, 96, 0.1) !important;
  color: #27AE60 !important;
  border-color: rgba(39, 174, 96, 0.25) !important;
}

.dark-theme .birthday-wish-btn.wished {
  background: rgba(39, 174, 96, 0.18) !important;
  color: #2DCA73 !important;
  border-color: rgba(39, 174, 96, 0.3) !important;
}

/* --- Breathing pulse animation for live streams --- */
@keyframes breathingPulse {
  0% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 8px rgba(235, 87, 87, 0.6); }
  100% { transform: scale(1); opacity: 0.85; }
}

/* ==========================================================================
   QUICK CREATE BOTTOM SHEET
   ========================================================================== */

/* Backdrop overlay */
.quick-create-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 30, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 42px;
}

.quick-create-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Bottom Sheet Panel */
.quick-create-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--phone-bg);
  border-radius: 28px 28px 42px 42px;
  padding: 0 0 90px 0;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 -20px 60px rgba(10, 13, 30, 0.25);
  overflow: hidden;
}

.quick-create-sheet.active {
  transform: translateY(0%);
  pointer-events: auto;
}

/* Drag Handle */
.quick-create-drag-handle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--card-border);
  margin: 14px auto 0 auto;
}

/* Sheet Header */
.quick-create-header {
  padding: 18px 22px 6px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-create-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.2px;
}

.quick-create-subtitle {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 22px 16px 22px;
  line-height: 1.45;
}

.quick-create-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-deep);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.quick-create-close-btn:hover {
  background: var(--primary-deep);
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.05);
}

/* Icon Grid */
.quick-create-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 0;
  padding: 6px 12px 0 12px;
}

/* Each action item */
.qc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 10px 8px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.qc-item:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.qc-item:active {
  transform: scale(0.93);
}

.qc-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.qc-item:hover .qc-icon-box {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transform: scale(1.06);
}

.qc-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  letter-spacing: -0.05px;
}

/* Icon gradient colours — matching the design screenshot */
.qc-icon-post    { background: linear-gradient(135deg, #FF6B8B 0%, #E83E6C 100%); }
.qc-icon-reel    { background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%); }
.qc-icon-event   { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.qc-icon-ghoshna { background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%); }
.qc-icon-daan    { background: linear-gradient(135deg, #34D399 0%, #059669 100%); }
.qc-icon-askhelp { background: linear-gradient(135deg, #FB923C 0%, #EA580C 100%); }
.qc-icon-sangh   { background: linear-gradient(135deg, #818CF8 0%, #4F46E5 100%); }
.qc-icon-feedback{ background: linear-gradient(135deg, #2DD4BF 0%, #0D9488 100%); }

/* Dark theme overrides */
.dark-theme .quick-create-sheet {
  background: #111428;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.dark-theme .quick-create-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.dark-theme .quick-create-close-btn:hover {
  background: #FFFFFF;
  color: #0A0D1E;
}

.dark-theme .qc-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dark-theme .qc-label {
  color: rgba(255, 255, 255, 0.88);
}

.dark-theme .quick-create-drag-handle {
  background: rgba(255, 255, 255, 0.15);
}

/* Plus button open state — rotates to X when sheet is open */
.nav-tab-item.nav-center-action.sheet-open svg {
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tab-item.nav-center-action:not(.sheet-open) svg {
  transform: rotate(0deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   ASK AI ICON-ONLY FAB
   ========================================================================== */

.ask-ai-fab {
  position: absolute;
  bottom: 96px;
  right: 18px;
  left: auto;
  transform: none;
  z-index: 94;

  /* Primary Deep Navy — our brand blue */
  background: linear-gradient(145deg, #1A1F52 0%, #2E3675 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  cursor: pointer;

  box-shadow:
    0 6px 20px rgba(26, 31, 82, 0.40),
    0 2px 8px rgba(26, 31, 82, 0.25);

  animation: askAiGlow 3.5s ease-in-out infinite;

  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              opacity 0.28s ease;
}

/* Hide on non-home views */
.ask-ai-fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* Navy glow pulse with subtle gold halo */
@keyframes askAiGlow {
  0%   { box-shadow: 0 6px 20px rgba(26, 31, 82, 0.38), 0 0 0 0px rgba(242, 153, 74, 0.0); }
  55%  { box-shadow: 0 6px 24px rgba(26, 31, 82, 0.50), 0 0 0 5px rgba(242, 153, 74, 0.12); }
  100% { box-shadow: 0 6px 20px rgba(26, 31, 82, 0.38), 0 0 0 0px rgba(242, 153, 74, 0.0); }
}

.ask-ai-fab:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(26, 31, 82, 0.50);
  animation: none;
}

.ask-ai-fab:active {
  transform: scale(0.92);
  transition: transform 0.08s ease;
}

/* Dark theme — lighter navy so icon reads on dark background */
.dark-theme .ask-ai-fab {
  background: linear-gradient(145deg, #2E3675 0%, #4A54A0 100%);
  box-shadow:
    0 6px 20px rgba(26, 31, 82, 0.55),
    0 2px 8px rgba(26, 31, 82, 0.30);
}

.dark-theme .ask-ai-fab:hover {
  box-shadow: 0 12px 28px rgba(26, 31, 82, 0.65);
}

/* Icon — inline, no wrapper circle */
.ask-ai-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.ask-ai-fab-label {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05px;
}

/* Dark theme — keep the same warm orange (matches reference in both modes) */
.dark-theme .ask-ai-fab {
  background: linear-gradient(135deg, #F2994A 0%, #D4700A 100%);
  color: #FFFFFF;
  box-shadow:
    0 6px 20px rgba(226, 122, 26, 0.45),
    0 2px 8px rgba(226, 122, 26, 0.25);
}

.dark-theme .ask-ai-fab:hover {
  box-shadow: 0 10px 28px rgba(226, 122, 26, 0.60);
}



