/* --- Custom Local Fonts --- */
@font-face {
  font-family: "Leikoi";
  src: url("../assets/fonts/Leikoi.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Primary palette */
  --bg-deep: #0b0f19; /* Obsidian Space Dark */
  --bg-section: #0f1322;
  --bg-card: #111827; /* Nordic Slate Card */
  --bg-card-hover: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.65);

  /* Accent colors */
  --accent: #0ea5e9; /* Nordic Cyber Blue */
  --accent-light: #38bdf8;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --accent-2: #10b981; /* Emerald green for PAID secondary */
  --accent-2-glow: rgba(16, 185, 129, 0.2);

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border: #1f2937; /* Subtle Slate Card Border */
  --border-hover: rgba(14, 165, 233, 0.3);

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    #0b0f19 0%,
    #111827 50%,
    #1f2937 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    #0ea5e9 0%,
    #38bdf8 50%,
    #0ea5e9 100%
  );
  --gradient-purple: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-card: linear-gradient(
    160deg,
    rgba(14, 165, 233, 0.08) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Leikoi", "Outfit", sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  padding: 10px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav-logo-img {
  height: 38px;
  content: url("../assets/appbar_logo_white.svg");
  transition: opacity 0.3s ease;
}

.light-theme .nav-logo-img {
  content: url("../assets/appbar_logo.svg");
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-accent);
  color: #0a0a1a;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 100px;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(14, 165, 233, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.9;
  }
}

.moon-glow {
  position: absolute;
  top: -5%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-moon-img {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(1px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(167, 139, 250, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-subtitle strong {
  color: var(--accent-light);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #0a0a1a;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.45);
}

.btn-ghost {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-number {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-plus,
.stat-percent {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.phone-screen {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 60px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(20px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-grid {
  max-width: 800px;
  margin: 0 auto;
}

/* Narrative & Row Styles */
.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-intro {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.about-conclusion {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-rows-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-row-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.about-row-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.about-row-item:hover {
  border-color: rgba(14, 165, 233, 0.15);
}

.row-num {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  width: 24px;
  margin-top: 2px;
  flex-shrink: 0;
}

.row-content {
  display: flex;
  flex-direction: column;
}

.row-content h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.row-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: var(--section-padding);
  background: var(--bg-section);
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 40px 32px;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    0 10px 30px -15px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 20px 40px -15px rgba(0, 0, 0, 0.8),
    0 0 25px -5px var(--card-accent-glow, rgba(14, 165, 233, 0.15));
}

/* Feature specific modifier classes */
.feature-card--reminders {
  --card-accent: #f59e0b;
  --card-accent-rgb: 245, 158, 11;
  --card-accent-glow: rgba(245, 158, 11, 0.15);
}

.feature-card--payments {
  --card-accent: #0ea5e9;
  --card-accent-rgb: 14, 165, 233;
  --card-accent-glow: rgba(14, 165, 233, 0.15);
}

.feature-card--admin {
  --card-accent: #8b5cf6;
  --card-accent-rgb: 139, 92, 246;
  --card-accent-glow: rgba(139, 92, 246, 0.15);
}

.feature-card--secure {
  --card-accent: #10b981;
  --card-accent-rgb: 16, 185, 129;
  --card-accent-glow: rgba(16, 185, 129, 0.15);
}

.feature-card--support {
  --card-accent: #f43f5e;
  --card-accent-rgb: 244, 63, 94;
  --card-accent-glow: rgba(244, 63, 94, 0.15);
}

.feature-card--notifications {
  --card-accent: #ff7849;
  --card-accent-rgb: 255, 120, 73;
  --card-accent-glow: rgba(255, 120, 73, 0.15);
}

.feature-card--news-feed {
  --card-accent: #06b6d4;
  --card-accent-rgb: 6, 182, 212;
  --card-accent-glow: rgba(6, 182, 212, 0.2);
}

.feature-card--highlight {
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.03) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}

/* Spotlight cursor glow overlay */
.feature-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--card-accent-rgb, 14, 165, 233), 0.12),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.feature-card:hover .feature-card-glow {
  opacity: 1;
}

.feature-card--span-all {
  grid-column: span 3;
}

/* Grid layout for news feed card */
.feature-news-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.feature-tag-pill {
  padding: 4px 12px;
  background: rgba(var(--card-accent-rgb, 6, 182, 212), 0.1);
  border: 1px solid rgba(var(--card-accent-rgb, 6, 182, 212), 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--card-accent);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-tag-pill {
  border-color: rgba(var(--card-accent-rgb, 6, 182, 212), 0.4);
  background: rgba(var(--card-accent-rgb, 6, 182, 212), 0.15);
}

.mockup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.news-feed-mockup {
  width: 100%;
  max-width: 340px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
}

.feature-card:hover .news-feed-mockup {
  transform: translateY(-4px) rotate(1deg);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.1);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mockup-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mockup-meta {
  display: flex;
  flex-direction: column;
}

.mockup-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mockup-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mockup-body {
  margin-bottom: 16px;
}

.mockup-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

.mockup-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.mockup-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 60px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.mockup-action-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #22d3ee;
  animation: emojiClickBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes emojiClickBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  65% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@media (max-width: 991px) {
  .feature-news-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--card-accent-rgb, 14, 165, 233), 0.1);
  border: 1px solid rgba(var(--card-accent-rgb, 14, 165, 233), 0.25);
  border-radius: var(--radius-md);
  color: var(--card-accent, var(--accent));
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px -5px rgba(var(--card-accent-rgb, 14, 165, 233), 0.3);
}

.feature-card:hover .feature-icon {
  transform: translateY(-4px) scale(1.05);
  background: var(--card-accent, var(--accent));
  color: #0b0f19;
  box-shadow: 0 8px 25px -5px var(--card-accent-glow);
  border-color: var(--card-accent);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  text-align: left;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  z-index: 2;
  text-align: left;
}

/* Light Theme support for feature cards */
body.light-theme .feature-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 10px 30px -15px rgba(0, 0, 0, 0.05);
}

body.light-theme .feature-card:hover {
  border-color: rgba(var(--card-accent-rgb, 14, 165, 233), 0.4);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 20px 40px -15px rgba(0, 0, 0, 0.08),
    0 0 25px -5px var(--card-accent-glow, rgba(14, 165, 233, 0.08));
}

body.light-theme .feature-card:hover .feature-icon {
  color: #ffffff;
}

body.light-theme .feature-card--highlight {
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.04) 0%, rgba(139, 92, 246, 0.02) 100%);
  border-color: rgba(245, 158, 11, 0.15);
}

body.light-theme .news-feed-mockup {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.05);
}

body.light-theme .mockup-avatar {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .mockup-action-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .mockup-action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--span-all {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--span-all {
    grid-column: span 1;
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  padding-top: 120px;
  padding-bottom: 32px;
  background: var(--bg-deep);
  position: relative;
}

.steps-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.steps-line {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--accent-2),
    var(--accent)
  );
  opacity: 0.2;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr 64px;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
}

.step-number span {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.step-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: stepPulse 2s ease-out infinite;
}

@keyframes stepPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.step-content {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.step:hover .step-content {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================
   FUND INFO SECTION
   ============================================ */
.fund-info {
  padding-top: 0;
  padding-bottom: 120px;
  background: var(--bg-deep);
}

.fund-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.fund-card {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition);
}

.fund-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}

.fund-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.fund-card--monthly .fund-card-glow {
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.06) 0%,
    transparent 70%
  );
}

.fund-card--support .fund-card-glow {
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.06) 0%,
    transparent 70%
  );
}

.fund-card--booking .fund-card-glow {
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.06) 0%,
    transparent 70%
  );
}

.fund-card:hover .fund-card-glow {
  opacity: 1;
}

.fund-card--monthly {
  border-color: rgba(14, 165, 233, 0.15);
}

.fund-card--support {
  border-color: rgba(16, 185, 129, 0.15);
}

.fund-card--booking {
  border-color: rgba(245, 158, 11, 0.15);
}

.fund-emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.fund-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.fund-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 16px;
}

.fund-amount .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.fund-amount .amount {
  font-family: "Outfit", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.fund-card--monthly .fund-amount .amount {
  color: var(--accent);
}

.fund-card--support .fund-amount .amount {
  color: #34d399;
}

.fund-card--support .fund-amount .currency {
  color: #34d399;
}

.fund-card--booking .fund-amount .amount {
  color: #f59e0b;
}

.fund-card--booking .fund-amount .currency {
  color: #f59e0b;
}

.fund-amount .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.fund-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.fund-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fund-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.fund-card--monthly .fund-features li svg {
  color: var(--accent);
}

.fund-card--support .fund-features li svg {
  color: #34d399;
}

.fund-card--booking .fund-features li svg {
  color: #f59e0b;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download {
  padding: var(--section-padding);
  background: var(--bg-section);
  position: relative;
}

.download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.download-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.download-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.download-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  color: var(--text-primary);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.store-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-name {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.download-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.download-note svg {
  color: var(--accent);
}

.download-visual {
  display: flex;
  justify-content: center;
}

.qr-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.qr-code-container {
  position: relative;
  padding: 8px;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scanner-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}

.bracket-tl { top: 0; left: 0; border-width: 2.5px 0 0 2.5px; border-radius: 4px 0 0 0; }
.bracket-tr { top: 0; right: 0; border-width: 2.5px 2.5px 0 0; border-radius: 0 4px 0 0; }
.bracket-bl { bottom: 0; left: 0; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 4px; }
.bracket-br { bottom: 0; right: 0; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 4px 0; }

.qr-code-wrapper {
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.qr-code-wrapper svg {
  width: 140px;
  height: 140px;
  display: block;
}

.qr-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-padding);
  background: var(--bg-deep);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links-group h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links-group a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-moon-img {
    top: 2%;
    right: -5%;
    width: 250px;
    height: 250px;
    opacity: 0.15;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-buttons {
    justify-content: center;
  }

  .download-note {
    justify-content: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  /* Responsive Mobile/Tablet Navigation (Triggers at 1024px) */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .how-it-works {
    padding-top: 80px;
    padding-bottom: 24px;
  }

  .fund-info {
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-visual {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .step-number {
    width: 56px;
    height: 56px;
  }

  .step-icon {
    display: none;
  }

  .steps-line {
    left: 28px;
  }

  .fund-cards {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-tagline {
    margin: 16px auto 0;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .fund-amount .amount {
    font-size: 2.8rem;
  }
}

/* ========================================================
   PURNIMA ADMIN DASHBOARD STYLES
   ======================================================== */

.admin-body {
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Admin Layout with Side Nav */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-deep);
}

/* Sidebar Styling */
.sidebar-navigation {
  width: 280px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform var(--transition);
}

.light-theme .sidebar-navigation {
  background: #ffffff;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.03);
}

.sidebar-brand {
  padding: 32px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.sidebar-menu {
  flex: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}

.menu-item svg {
  transition: var(--transition);
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.light-theme .menu-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

.menu-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

.menu-item.active svg {
  color: var(--accent);
}

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-sidebar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.theme-toggle-sidebar:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* Light theme theme toggle active icons */
body.light-theme .theme-toggle-sidebar .sun-icon {
  display: none;
}
body.light-theme .theme-toggle-sidebar .moon-icon {
  display: block;
}
.theme-toggle-sidebar .moon-icon {
  display: none;
}
.theme-toggle-sidebar .sun-icon {
  display: block;
}

/* Main Content Area */
.admin-content-area {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
  width: calc(100% - 280px);
}

/* Mobile Header */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.btn-sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tabs/Views Switching */
.admin-view {
  display: none;
}

.admin-view.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-3px);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.admin-user-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.metric-card--members {
  border-left: 4px solid var(--accent-2);
}

.metric-card--collected {
  border-left: 4px solid #22c55e;
}

.metric-card--pending {
  border-left: 4px solid #ef4444;
}

.metric-card--events {
  border-left: 4px solid var(--accent);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon--members {
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-2);
}

.metric-icon--collected {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.metric-icon--pending {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.metric-icon--events {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent);
}

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-value {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Controls Grid */
.admin-controls-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: var(--transition);
}

.admin-card:hover {
  border-color: rgba(14, 165, 233, 0.15);
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subheading {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Control Panel Actions */
.event-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-death {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(185, 28, 28, 0.25);
}

.btn-death:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(185, 28, 28, 0.45);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.active-events-list h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

#activeEventsLog {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.event-log-item--monthly {
  border-left: 3px solid var(--accent);
}

.event-log-item--death {
  border-left: 3px solid #ef4444;
}

.event-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 10px;
  text-transform: uppercase;
}

.event-log-item--monthly .event-badge {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent);
}

.event-log-item--death .event-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.event-cost {
  color: var(--text-muted);
  margin-left: 8px;
}

.btn-close-event {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-event:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.btn-close-event--danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Member Form details */
.member-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Payment Ledger details */
.tracking-table-panel {
  padding: 24px 0 0;
  overflow: hidden;
}

.tracking-table-panel .card-heading,
.tracking-table-panel .card-subheading {
  padding: 0 24px;
}

.table-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.table-search-bar-row {
  padding: 0 24px;
  margin-bottom: 16px;
  display: flex;
}

.table-search-bar-row input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
  width: 320px;
}

.table-search-bar-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

body.light-theme .table-search-bar-row input {
  background: rgba(0, 0, 0, 0.02);
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.payment-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.payment-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.payment-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.resident-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resident-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resident-name {
  font-weight: 600;
  color: var(--text-primary);
}

.resident-phone {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Status toggler buttons */
.status-btn {
  padding: 8px 16px;
  border-radius: 100px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  min-width: 110px;
  text-align: center;
}

.status-btn--paid {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.status-btn--paid:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.status-btn--paid:hover::after {
  content: " ?";
}

.status-btn--unpaid {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.status-btn--unpaid:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.status-btn--unpaid:hover::after {
  content: " ?";
}

.status-btn--partial {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fde047;
}

.status-btn--partial:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.status-btn--partial:hover::after {
  content: " ?";
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge--inactive {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-delete-resident {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 6px;
  border-radius: 4px;
}

.btn-delete-resident:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 90%;
  max-width: 460px;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-controls-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-header-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .admin-title-group {
    flex-direction: column;
    gap: 12px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .event-actions {
    flex-direction: column;
  }
}

/* ========================================================
   THEME TOGGLE & LIGHT THEME STYLES
   ======================================================== */

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

body.light-theme .theme-toggle .sun-icon {
  display: none;
}

body.light-theme .theme-toggle .moon-icon {
  display: block;
}

/* Light Theme Variables */
body.light-theme {
  --bg-deep: #f8fafc; /* Silvery off-white slate */
  --bg-section: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text-primary: #0f172a; /* Stronger dark slate for readability */
  --text-secondary: #475569; /* Slate-700 */
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #0284c7; /* Refined Deep Cyber Blue (non-neon) */
  --accent-light: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.05);
  --accent-2: #059669; /* Softer, premium Emerald Green */
  --accent-2-glow: rgba(5, 150, 105, 0.04);
  --border-hover: rgba(2, 132, 199, 0.25);
  --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  --gradient-card: linear-gradient(
    160deg,
    rgba(2, 132, 199, 0.015) 0%,
    rgba(5, 150, 105, 0.01) 100%
  );
}

body.light-theme .hero-moon-img {
  opacity: 0.07;
}

body.light-theme .moon-glow {
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.05) 0%,
    transparent 70%
  );
}

body.light-theme .star {
  background: #0f172a;
}



body.light-theme .status-badge--inactive {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
}

body.light-theme .event-log-item {
  background: rgba(255, 255, 255, 0.9);
}

body.light-theme .payment-table th {
  background: rgba(0, 0, 0, 0.01);
}

body.light-theme .status-btn--unpaid {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

body.light-theme .status-btn--paid {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

body.light-theme .status-btn--partial {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

body.light-theme .back-link {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .back-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .store-btn {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .store-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .qr-placeholder {
  background: rgba(0, 0, 0, 0.01);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
  background: rgba(0, 0, 0, 0.03);
}

/* ========================================================
   ADMIN SELECT FIELD STYLES
   ======================================================== */

.admin-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 24px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
  cursor: pointer;
  margin-right: 12px;
}

.admin-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

body.light-theme .admin-select option {
  background: #ffffff;
  color: #110d2e;
}

body.light-theme .admin-select {
  background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
  .admin-select {
    margin-right: 0;
    margin-bottom: 12px;
    width: 100%;
    text-align-last: center;
  }
}

/* ========================================================
   DEMISE CALENDAR STYLES
   ======================================================== */

.calendar-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

/* Month label is replaced by select dropdown */

.calendar-days-grid,
.calendar-numbers-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 8px;
}

.calendar-days-grid {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.cal-day-label {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
  cursor: default;
}

.cal-day--empty {
  opacity: 0;
  pointer-events: none;
}

.cal-day:not(.cal-day--empty):hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

body.light-theme .cal-day:not(.cal-day--empty):hover {
  background: rgba(0, 0, 0, 0.03);
}

.cal-day-num {
  z-index: 2;
}

/* Death Highlight Style */
.cal-day--death .cal-day-num {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-weight: 700;
}

body.light-theme .cal-day--death .cal-day-num {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

/* Purnima Day Styles */
.cal-day--purnima {
  position: relative;
}

.cal-day--purnima::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(234, 179, 8, 0.04);
  border: 1px dashed rgba(234, 179, 8, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 8px rgba(234, 179, 8, 0.05);
  transition: var(--transition);
  pointer-events: none;
  z-index: 1;
}

.cal-day:not(.cal-day--empty).cal-day--purnima:hover::before {
  background: rgba(234, 179, 8, 0.1) !important;
  border-color: rgba(234, 179, 8, 0.4);
}

.cal-purnima-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.4));
  animation: purnimaGlow 3s ease-in-out infinite alternate;
}

@keyframes purnimaGlow {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.3));
  }
  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.6));
  }
}

.cal-day--death.cal-day--purnima::before {
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.08) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

body.light-theme .cal-day--purnima::before {
  background: rgba(234, 179, 8, 0.03);
  border-color: rgba(234, 179, 8, 0.15);
}

body.light-theme .cal-day--death.cal-day--purnima::before {
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.04) !important;
}

.cal-death-marker {
  position: absolute;
  bottom: 2px;
  width: 5px;
  height: 5px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
    box-shadow: 0 0 12px #ef4444;
  }
}

.calendar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.calendar-select-wrapper .admin-select {
  margin-right: 0;
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* Tooltip style */
.cal-day--death[title] {
  cursor: help;
}

/* ========================================================
   TABLE PAGINATION STYLES
   ======================================================== */

.table-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition);
}

body.light-theme .table-pagination-row {
  background: rgba(0, 0, 0, 0.005);
}

.pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pagination-info span {
  font-weight: 600;
  color: var(--text-primary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-num-indicator {
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.05);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
}

body.light-theme .page-num-indicator {
  background: rgba(0, 0, 0, 0.03);
  color: var(--accent-2);
}

.btn-xs {
  padding: 6px 12px !important;
  font-size: 0.78rem !important;
  border-radius: 6px !important;
  min-height: auto !important;
  line-height: 1 !important;
}

@media (max-width: 576px) {
  .table-pagination-row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ========================================================
   TABLE ROW ACTION ICONS & MODALS
   ======================================================== */

.table-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.btn-action-icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-action-icon--view:hover {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.08);
}

.btn-action-icon--edit:hover {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.btn-action-icon--delete:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

/* View Profile Modal Elements */
.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

body.light-theme .profile-details-grid {
  background: rgba(0, 0, 0, 0.01);
}

.profile-detail-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.profile-detail-item strong {
  color: var(--text-primary);
}

.profile-ledger-breakdown {
  margin-top: 24px;
}

.profile-ledger-breakdown h4 {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.ledger-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

/* Custom scrollbar for ledger list */
.ledger-breakdown-list::-webkit-scrollbar {
  width: 6px;
}
.ledger-breakdown-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-lg);
}
.ledger-breakdown-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}
.ledger-breakdown-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ledger-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  transition: background 0.2s ease;
}

.ledger-breakdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ledger-breakdown-item:last-child {
  border-bottom: none;
}

/* Layout structure */
.ledger-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ledger-item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ledger-item-name {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.ledger-item-date {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.ledger-item-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ledger-item-price {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

/* Premium event badges */
.event-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.event-badge--monthly {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.event-badge--death {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}

.event-badge--custom {
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.2);
}

/* Status pills */
.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.status-pill:active {
  transform: translateY(0);
}

.status-pill--paid {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
}

.status-pill--unpaid {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
}

/* Status Filter dropdown in search bar row */
.status-filter-select {
  margin-right: 0 !important;
  padding: 10px 16px;
  font-size: 0.82rem;
  border-radius: 100px;
  min-width: 180px;
  cursor: pointer;
}

/* Sidebar Responsive Layout */
@media (max-width: 1024px) {
  .sidebar-navigation {
    transform: translateX(-100%);
  }
  .sidebar-navigation.open {
    transform: translateX(0);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.4);
  }
  .admin-content-area {
    margin-left: 0;
    width: 100%;
    padding: 24px 16px;
  }
  .mobile-header {
    display: flex;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .table-search-bar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .status-filter-select,
  .table-search-bar-row input {
    width: 100% !important;
  }
}

/* ========================================================
   ADMIN BEAUTIFICATION & PREMIUM STYLES
   ======================================================== */

/* Glassmorphism card default override */
.admin-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.08);
}

/* Light Theme Card Glassmorphism override */
body.light-theme .admin-card {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

body.light-theme .admin-card:hover {
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.06);
}

/* Metric Cards Refinement */
.metric-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.light-theme .metric-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

/* Sidebar Menu active state glow */
.menu-item.active {
  box-shadow: 0 0 20px var(--accent-glow);
  border: 1px solid rgba(14, 165, 233, 0.15);
}

/* Switch Toggles (Custom CSS sliders) */
.switch-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2-glow);
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* Chart Bars hover effect */
.chart-bar {
  transform-origin: bottom;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.25s ease,
    box-shadow 0.25s ease !important;
}

.chart-bar:hover {
  transform: scaleY(1.05);
  filter: brightness(1.15);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Smooth active button updates */
.btn-primary:active,
.btn-ghost:active,
.btn-death:active {
  transform: scale(0.97);
}

/* Premium scrollbar for the table */
.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Custom styles for Reports View list and items */
.breakdown-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.breakdown-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.light-theme .breakdown-item {
  background: rgba(0, 0, 0, 0.005);
}

body.light-theme .breakdown-item:hover {
  background: rgba(0, 0, 0, 0.01);
}

/* Additional Light Theme refinement styles */
body.light-theme .sidebar-navigation {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

body.light-theme .menu-item.active {
  background: var(--accent-glow) !important;
  color: var(--accent) !important;
  box-shadow: none !important;
  border: none !important;
}

body.light-theme .menu-item.active svg {
  color: var(--accent) !important;
}

body.light-theme .menu-item:not(.active) {
  color: #475569 !important;
}

body.light-theme .menu-item:hover:not(.active) {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.light-theme .admin-avatar {
  box-shadow: none !important;
  background: var(--accent) !important;
  color: #ffffff !important;
}

body.light-theme .theme-toggle-sidebar {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

body.light-theme .theme-toggle-sidebar:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-theme .sidebar-footer {
  border-top: 1px solid #e2e8f0 !important;
}

body.light-theme .sidebar-brand {
  border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
  background: #ffffff !important;
}

body.light-theme .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12) !important;
}

body.light-theme .table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.25) !important;
}

body.light-theme .switch-slider {
  background-color: #cbd5e1;
}

/* Premium Light Theme Cards overrides */
body.light-theme .metric-card {
  border-radius: var(--radius-lg);
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
  transition: all 0.25s ease;
}

body.light-theme .metric-card--members {
  background: rgba(16, 185, 129, 0.02);
  border-left: 4px solid var(--accent-2);
}

body.light-theme .metric-card--collected {
  background: rgba(34, 197, 94, 0.02);
  border-left: 4px solid #22c55e;
}

body.light-theme .metric-card--pending {
  background: rgba(239, 68, 68, 0.02);
  border-left: 4px solid #ef4444;
}

body.light-theme .metric-card--events {
  background: var(--accent-glow);
  border-left: 4px solid var(--accent);
}

body.light-theme .metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Light Theme Table Styles */
body.light-theme .payment-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  border-bottom: 1px solid #cbd5e1;
}

body.light-theme .payment-table td {
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

body.light-theme .payment-table tr:hover td {
  background: #f8fafc;
}

body.light-theme .resident-avatar {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

/* Light Theme Buttons styling */
body.light-theme .status-btn--unpaid {
  background: #fce8e6 !important;
  border: 1px solid #fad2cf !important;
  color: #c5221f !important;
}

body.light-theme .status-btn--paid {
  background: #e6f4ea !important;
  border: 1px solid #ceead6 !important;
  color: #137333 !important;
}

body.light-theme .status-btn--partial {
  background: #fef7e0 !important;
  border: 1px solid #feebc8 !important;
  color: #b06000 !important;
}

/* Light Theme Metric Icon Color Refinements (removes hardcoded neon/purple backgrounds) */
body.light-theme .metric-icon--members {
  background: rgba(5, 150, 105, 0.08) !important;
  color: var(--accent-2) !important;
}

body.light-theme .metric-icon--collected {
  background: rgba(34, 197, 94, 0.08) !important;
  color: #22c55e !important;
}

body.light-theme .metric-icon--pending {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
}

body.light-theme .metric-icon--events {
  background: rgba(2, 132, 199, 0.08) !important;
  color: var(--accent) !important;
}

/* ========================================================
   MEMBERS VIEW TAB SPECIFIC BEAUTIFICATION OVERRIDES
   ======================================================== */
#viewMembers .table-header {
  text-align: left !important;
  margin-bottom: 24px !important;
}

#viewMembers .card-heading {
  text-align: left !important;
}

#viewMembers .card-subheading {
  text-align: left !important;
  margin-bottom: 0 !important;
}

#btnAddNewMemberTrigger {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 100px !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2) !important;
  transition: all 0.25s ease !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#btnAddNewMemberTrigger:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3) !important;
  filter: brightness(1.08) !important;
}

#btnAddNewMemberTrigger:active {
  transform: scale(0.97) !important;
}

body.light-theme #btnAddNewMemberTrigger {
  background: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
}

body.light-theme #btnAddNewMemberTrigger:hover {
  background: #0369a1 !important;
}

body.light-theme #memberSearchCRUD {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

#viewMembers .status-pill--paid {
  background: rgba(14, 165, 233, 0.05) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(14, 165, 233, 0.15) !important;
}

body.light-theme #viewMembers .status-pill--paid {
  background: rgba(2, 132, 199, 0.06) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.15) !important;
}

#addMemberModal .form-group input {
  border-radius: 8px !important;
  padding: 12px 16px !important;
}

body.light-theme #addMemberModal .form-group input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-theme #addMemberModal .form-group input:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

/* Custom Confirmation Modal Light Theme overrides */
body.light-theme #confirmModal .modal-content {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme #confirmModal #confirmModalTitle {
  color: #0f172a !important;
}

body.light-theme #confirmModal #confirmModalMessage {
  color: #475569 !important;
}

/* Dues Breakdown UI Styles */
.dues-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  width: 100%;
}

.dues-breakdown-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Inter", sans-serif;
  text-decoration: none;
}

.dues-breakdown-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dues-breakdown-badge:active {
  transform: translateY(0);
}

.dues-breakdown-badge--paid {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.15);
  color: #a7f3d0;
}

.dues-breakdown-badge--unpaid {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* Light theme overrides */
body.light-theme .dues-breakdown-badge--paid {
  background: rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.2) !important;
  color: #16a34a !important;
}

body.light-theme .dues-breakdown-badge--unpaid {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.2) !important;
  color: #dc2626 !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PRIVACY POLICY PAGE STYLES
   ============================================ */
.policy-wrapper {
  padding-top: 140px;
  padding-bottom: 100px;
  background: var(--bg-deep);
  position: relative;
}

.policy-header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 36px;
}

.policy-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.policy-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.policy-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 840px;
}

.policy-section h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.policy-section p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.policy-section ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.policy-section li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.policy-section strong {
  color: var(--text-primary);
  font-weight: 600;
}
