/* ==========================================================================
   EKADANTHAM ASSOCIATION - DESIGN SYSTEM & STYLESHEET
   Devotional Lord Ganesha Theme x Modern Glassmorphism Admin
   ========================================================================== */

:root {
  /* Divine 3D Temple Festival Royal Color Palette */
  --bg-primary: #150307;
  --bg-secondary: #22060c;
  --bg-tertiary: #2e0911;
  --bg-surface: rgba(34, 6, 12, 0.88);
  --bg-card: rgba(46, 9, 17, 0.75);
  --bg-card-hover: rgba(74, 14, 27, 0.85);
  --bg-glass: rgba(34, 6, 12, 0.75);
  
  /* Primary Royal Saffron, Warm Gold & Antique Gold */
  --saffron-500: #df5607;
  --saffron-400: #f97316;
  --saffron-600: #c2410c;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-600: #d97706;
  --antique-gold: #c98918;
  --temple-red: #7a1515;
  --deep-brown: #271406;
  --cream: #fffbeb;
  
  /* Accents */
  --crimson-500: #dc2626;
  --crimson-400: #ef4444;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --amber-500: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --rose-bg: rgba(220, 38, 38, 0.12);
  --blue-500: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.12);
  --purple-500: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.12);

  /* Text Colors */
  --text-primary: #fffbeb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-gold: #fbbf24;
  --text-saffron: #fb923c;

  /* Borders & Shadows */
  --border-subtle: rgba(251, 191, 36, 0.12);
  --border-card: rgba(245, 158, 11, 0.22);
  --border-focus: #fbbf24;
  --glow-saffron: 0 0 25px rgba(223, 86, 7, 0.35);
  --glow-gold: 0 0 30px rgba(245, 158, 11, 0.4);
  --glow-divine: 0 0 50px rgba(251, 191, 36, 0.35);
  --shadow-lg: 0 15px 35px -5px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.45);

  /* Dimensions & Spacing */
  --sidebar-width: 270px;
  --sidebar-collapsed-width: 70px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Outfit', sans-serif;
  --font-telugu: 'Noto Sans Telugu', 'Mandali', sans-serif;
}

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

html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 183, 3, 0.25);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 183, 3, 0.5);
}

/* Background Atmosphere Pattern */
.devotional-bg {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 183, 3, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.9) 0%, var(--bg-primary) 100%);
  background-attachment: fixed;
  position: relative;
}

.devotional-bg::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffb703' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Typography Helpers */
h1, h2, h3, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}
.font-accent {
  font-family: var(--font-accent);
}
.text-gold {
  color: var(--gold-500);
}
.text-saffron {
  color: var(--saffron-400);
}
.text-gradient-gold {
  background: linear-gradient(135deg, #fff275 0%, #ffb703 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-saffron {
  background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shloka Banner */
.shloka-bar {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 183, 3, 0.25) 50%, rgba(255, 107, 0, 0.15) 100%);
  border-bottom: 1px solid rgba(255, 183, 3, 0.2);
  padding: 6px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #fed7aa;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(255, 183, 3, 0.4);
}

.glass-card.highlight-saffron {
  border-left: 4px solid var(--saffron-500);
}
.glass-card.highlight-gold {
  border-left: 4px solid var(--gold-500);
}
.glass-card.highlight-emerald {
  border-left: 4px solid var(--emerald-500);
}
.glass-card.highlight-crimson {
  border-left: 4px solid var(--crimson-500);
}

/* --------------------------------------------------------------------------
   LAYOUTS: Admin Shell
   -------------------------------------------------------------------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 16, 30, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 20px 20px 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 183, 3, 0.5);
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.35);
  flex-shrink: 0;
}

.sidebar-title-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.sidebar-title-box p {
  font-size: 0.72rem;
  color: var(--gold-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 12px 12px 4px 12px;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 183, 3, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 183, 3, 0.15);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 183, 3, 0.15) 100%);
  color: var(--gold-400);
  font-weight: 600;
  border: 1px solid rgba(255, 183, 3, 0.3);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 0 10px var(--gold-500);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 0, 0.2);
  color: var(--saffron-400);
  font-weight: 600;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 12, 22, 0.7);
}

.admin-badge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron-500), var(--gold-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.85rem;
}

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

.admin-info .name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-info .role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

/* Header / Navbar */
.admin-header {
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.header-title-box h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.header-title-box p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-balance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.balance-pill-label {
  font-size: 0.75rem;
  color: var(--emerald-400);
  font-weight: 600;
  text-transform: uppercase;
}

.balance-pill-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-accent);
}

/* Page Container */
.page-container {
  padding: 28px;
  flex: 1;
}

/* --------------------------------------------------------------------------
   DASHBOARD KPI CARDS & FINANCIAL STATS
   -------------------------------------------------------------------------- */
.dashboard-hero {
  margin-bottom: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 183, 3, 0.08) 50%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.hero-text p {
  color: #fed7aa;
  font-size: 0.9rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Financial Grid */
.financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.kpi-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 145px;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.kpi-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.kpi-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.kpi-amount {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-accent);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: #ffffff;
}

.kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 6px;
}

/* Card Themes */
.kpi-card.received {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.kpi-card.received .kpi-icon-wrapper {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
}
.kpi-card.received .kpi-amount {
  color: #34d399;
}

.kpi-card.due {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.kpi-card.due .kpi-icon-wrapper {
  background: rgba(239, 68, 68, 0.2);
  color: var(--crimson-400);
}
.kpi-card.due .kpi-amount {
  color: #f87171;
}

.kpi-card.budget {
  background: linear-gradient(145deg, rgba(255, 183, 3, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 183, 3, 0.3);
}
.kpi-card.budget .kpi-icon-wrapper {
  background: rgba(255, 183, 3, 0.2);
  color: var(--gold-400);
}
.kpi-card.budget .kpi-amount {
  color: #fbbf24;
}

.kpi-card.expense {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.kpi-card.expense .kpi-icon-wrapper {
  background: rgba(245, 158, 11, 0.2);
  color: var(--amber-500);
}
.kpi-card.expense .kpi-amount {
  color: #fb923c;
}

.kpi-card.balance {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}
.kpi-card.balance .kpi-icon-wrapper {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}
.kpi-card.balance .kpi-amount {
  color: #93c5fd;
}

.kpi-card.members {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.kpi-card.members .kpi-icon-wrapper {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}
.kpi-card.members .kpi-amount {
  color: #c4b5fd;
}

/* Secondary Stat Tiles */
.stat-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-tile {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-tile-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-accent);
  color: #fff;
}

.stat-tile-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   PROGRESS BARS & RATIOS
   -------------------------------------------------------------------------- */
.progress-bar-container {
  background: rgba(255, 255, 255, 0.06);
  height: 12px;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--emerald-500) 0%, var(--gold-500) 100%);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.4);
}

/* --------------------------------------------------------------------------
   STATUS BADGES & PILLS
   -------------------------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* 🟢 CLEAR */
.status-pill.clear {
  background: var(--emerald-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.status-pill.clear::before {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* 🟡 PARTIALLY PAID */
.status-pill.partial {
  background: var(--amber-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.status-pill.partial::before {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

/* 🔴 DUE */
.status-pill.due {
  background: var(--rose-bg);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.status-pill.due::before {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* Category Badge */
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 183, 3, 0.1);
  color: var(--gold-400);
  border: 1px solid rgba(255, 183, 3, 0.2);
}

/* --------------------------------------------------------------------------
   TABLES & DATA GRIDS
   -------------------------------------------------------------------------- */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-toolbar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.5);
}

.toolbar-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-width: 260px;
  color: var(--text-primary);
}

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

.toolbar-search-box input::placeholder {
  color: var(--text-muted);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--gold-500);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  max-height: 600px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(10, 16, 30, 0.92);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.18s ease, box-shadow 0.18s ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 183, 3, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.data-table .col-amount {
  font-family: var(--font-accent);
  font-weight: 700;
}

.data-table .col-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   BUTTONS & CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--saffron-500) 0%, var(--gold-500) 100%);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--saffron-400) 0%, var(--gold-400) 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: rgba(255, 183, 3, 0.15);
  color: var(--gold-400);
  border-color: rgba(255, 183, 3, 0.3);
}

.btn-icon.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* --------------------------------------------------------------------------
   MODALS & POPUPS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-container {
  background: #0f172a;
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 107, 0, 0.15);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modal-container.large {
  max-width: 760px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(8, 12, 22, 0.6);
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label.required::after {
  content: ' *';
  color: var(--crimson-400);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.2);
}

.form-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-warning-banner {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fbbf24;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* File Upload Drop Area */
.file-dropzone {
  border: 2px dashed rgba(255, 183, 3, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(30, 41, 59, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.file-dropzone:hover {
  border-color: var(--gold-500);
  background: rgba(255, 183, 3, 0.05);
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   LOGIN SCREEN STYLES
   -------------------------------------------------------------------------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 107, 0, 0.18) 0%, rgba(10, 16, 30, 0.95) 70%), var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.login-aura-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseAura 4s infinite alternate ease-in-out;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 107, 0, 0.2);
  position: relative;
  z-index: 10;
}

.login-logo-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-wrap img, .login-logo-wrap svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 183, 3, 0.7);
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.5);
  margin-bottom: 12px;
}

.login-logo-wrap h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.login-logo-wrap p {
  font-size: 0.8rem;
  color: var(--gold-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.password-input-wrap {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
}

.password-toggle-btn:hover {
  color: var(--gold-400);
}

.login-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.82rem;
}

.login-footer-links a, .login-footer-links button {
  color: var(--gold-400);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
}

.login-footer-links a:hover, .login-footer-links button:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   TELUGU DEVOTIONAL TOP MANTRA STRIP
   -------------------------------------------------------------------------- */
.telugu-mantra-strip {
  background: linear-gradient(90deg, #150307 0%, #30060e 30%, #450a14 50%, #30060e 70%, #150307 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  padding: 8px 20px;
  color: #fbbf24;
  font-family: var(--font-telugu);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 60;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  flex-wrap: wrap;
}

.mantra-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.diya-icon {
  display: inline-block;
  filter: drop-shadow(0 0 6px #f59e0b);
  animation: diyaFlicker 2s ease-in-out infinite alternate;
}

@keyframes diyaFlicker {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 12px #fbbf24); }
}

/* --------------------------------------------------------------------------
   PUBLIC FLOATING NAVIGATION & SEARCH BAR
   -------------------------------------------------------------------------- */
.public-nav-header {
  background: rgba(21, 3, 7, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.public-nav-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(245, 158, 11, 0.4);
  padding: 10px 32px;
}

.nav-brand-box {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-400);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  transition: transform 0.3s ease;
}

.nav-brand-logo:hover {
  transform: scale(1.08);
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--gold-400);
  background: rgba(245, 158, 11, 0.08);
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link-item:hover::after, .nav-link-item.active::after {
  width: 80%;
  left: 10%;
}

.nav-search-btn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold-400);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-search-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--gold-400);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   UNIVERSAL SEARCH MODAL
   -------------------------------------------------------------------------- */
.search-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 2, 4, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px 20px;
  animation: fadeIn 0.2s ease;
}

.search-modal-box {
  width: 100%;
  max-width: 680px;
  background: #22060c;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.25);
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.search-input-row {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(34, 6, 12, 0.95);
}

.search-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.15rem;
  color: #fff;
  font-family: var(--font-body), var(--font-telugu);
}

.search-input-row input::placeholder {
  color: var(--text-muted);
}

.search-category-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(15, 2, 5, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

.search-cat-tab {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.search-cat-tab.active, .search-cat-tab:hover {
  background: var(--gold-500);
  color: #150307;
  border-color: var(--gold-500);
}

.search-results-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 16px;
}

.search-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: rgba(46, 9, 17, 0.4);
}

.search-result-card:hover, .search-result-card.active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateX(4px);
}

.search-result-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-400);
}

.search-footer-hint {
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 2, 5, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   DIVINE 3D HERO SECTION & GANESH MURTI CENTERPIECE
   -------------------------------------------------------------------------- */
.divine-hero-3d {
  position: relative;
  padding: 70px 24px 60px 24px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, rgba(122, 21, 21, 0.5) 0%, rgba(34, 6, 12, 0.96) 65%, #150307 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  perspective: 1200px;
}

#hero-particle-canvas, #petals-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-temple-arch {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 30%, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content-wrap {
  position: relative;
  z-index: 4;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo-box {
  margin: 0 auto 20px auto;
  width: fit-content;
  position: relative;
}

.hero-official-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fbbf24;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.6), inset 0 0 20px rgba(245, 158, 11, 0.4);
  animation: floatGentle 4s ease-in-out infinite alternate;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-official-logo:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 45px rgba(251, 191, 36, 0.8);
}

@keyframes floatGentle {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(0.5deg); }
}

.murti-centerpiece-3d {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 26px auto;
}

.mandala-rotator {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 158, 11, 0.4);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  box-shadow: 0 0 45px rgba(223, 86, 7, 0.35);
  animation: rotateMandala 40s linear infinite;
  z-index: 2;
  pointer-events: none;
}

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

.volumetric-rays {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, rgba(223, 86, 7, 0.1) 50%, transparent 70%);
  filter: blur(25px);
  z-index: 1;
  pointer-events: none;
  animation: raysPulse 5s ease-in-out infinite alternate;
}

@keyframes raysPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fbbf24 45%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(245, 158, 11, 0.4));
}

.hero-association-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-sub-text {
  font-size: 1.05rem;
  color: #fed7aa;
  font-weight: 500;
  letter-spacing: 0.8px;
  margin-bottom: 30px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   9 DAYS OF DIVINE CELEBRATION SECTION
   -------------------------------------------------------------------------- */
.nine-days-section {
  padding: 60px 24px;
  background: linear-gradient(180deg, #150307 0%, #22060c 50%, #150307 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.nine-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 30px auto 0 auto;
}

.nine-day-card {
  background: rgba(46, 9, 17, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 10px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nine-day-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold-400);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  background: rgba(74, 14, 27, 0.85);
}

.nine-day-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.nine-day-date {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 8px;
}

.nine-day-status {
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FESTIVAL TIMELINE (EXACT SPECIFIED EVENTS)
   -------------------------------------------------------------------------- */
.timeline-section {
  padding: 60px 24px;
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
}

.timeline-wrapper {
  position: relative;
  margin-top: 40px;
}

.timeline-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--saffron-500) 50%, var(--gold-400) 100%);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding-left: 75px;
  margin-bottom: 36px;
}

.timeline-marker {
  position: absolute;
  left: 17px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #150307;
  border: 2.5px solid var(--gold-400);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 2;
}

.timeline-card {
  background: rgba(34, 6, 12, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
  transform: translateX(6px);
  border-color: var(--gold-400);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.25);
}

/* --------------------------------------------------------------------------
   GANESHA SONGS MUSIC PLAYER
   -------------------------------------------------------------------------- */
.ganesha-songs-section {
  padding: 60px 24px;
  background: radial-gradient(circle at 50% 50%, rgba(34, 6, 12, 0.9) 0%, #150307 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.player-main-card {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(46, 9, 17, 0.8);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(245, 158, 11, 0.2);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
}

.player-vinyl-box {
  text-align: center;
  position: relative;
}

.player-vinyl {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-400);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
  animation: rotateMandala 20s linear infinite;
  animation-play-state: paused;
}

.player-vinyl.playing {
  animation-play-state: running;
}

.audio-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 30px;
  margin-top: 14px;
}

.eq-bar {
  width: 4px;
  background: var(--gold-400);
  border-radius: 2px;
  height: 6px;
  transition: height 0.1s ease;
}

.audio-equalizer.playing .eq-bar:nth-child(1) { animation: eqJump 0.6s infinite alternate ease-in-out; }
.audio-equalizer.playing .eq-bar:nth-child(2) { animation: eqJump 0.8s infinite alternate ease-in-out 0.2s; }
.audio-equalizer.playing .eq-bar:nth-child(3) { animation: eqJump 0.5s infinite alternate ease-in-out 0.1s; }
.audio-equalizer.playing .eq-bar:nth-child(4) { animation: eqJump 0.9s infinite alternate ease-in-out 0.3s; }
.audio-equalizer.playing .eq-bar:nth-child(5) { animation: eqJump 0.7s infinite alternate ease-in-out 0.15s; }

@keyframes eqJump {
  0% { height: 6px; }
  100% { height: 26px; }
}

.song-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 8px;
  background: rgba(34, 6, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.song-item-row:hover, .song-item-row.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   GALLERY MASONRY & 3D LIGHTBOX
   -------------------------------------------------------------------------- */
.gallery-grid-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gallery-card-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(245, 158, 11, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-item:hover {
  transform: scale(1.03);
  border-color: var(--gold-400);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.3);
}

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

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

.gallery-overlay-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 3, 7, 0.9) 80%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 2, 4, 0.95);
  backdrop-filter: blur(16px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  animation: fadeIn 0.2s ease;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-400);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.4);
}

/* --------------------------------------------------------------------------
   COMMITTEE 3D TILT CARDS
   -------------------------------------------------------------------------- */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.committee-3d-card {
  background: rgba(34, 6, 12, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-xl);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--shadow-card);
}

.committee-3d-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold-400);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.3);
}

.committee-photo-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--saffron-500), #f59e0b);
  padding: 3px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.committee-3d-card:hover .committee-photo-wrap {
  transform: scale(1.06);
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.7);
}

.committee-photo-wrap img, 
.committee-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  background: #2e0911;
}

.committee-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #2e0911;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

/* --------------------------------------------------------------------------
   PUBLIC PORTAL COMMON HELPERS
   -------------------------------------------------------------------------- */
.public-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px;
}

.section-header {
  margin-bottom: 34px;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & RESPONSIVE CONTROLS
   ========================================================================== */
.mobile-nav-toggle-btn {
  display: none;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  transition: all 0.2s ease;
}

.mobile-nav-toggle-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-400);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, #1f040b 0%, #110205 100%);
  border-left: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.mobile-nav-links {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  transform: translateX(4px);
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  display: block;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   COMPONENT GRID LAYOUTS (DESKTOP & UNIVERSAL)
   -------------------------------------------------------------------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.event-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.event-time-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.video-grid-showcase {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.notices-grid-showcase {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.contact-grid-showcase {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.analytics-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.admin-committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.dashboard-split-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: #0f172a;
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.88rem;
  animation: slideInRight 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast.success {
  border-left: 4px solid var(--emerald-500);
}
.toast.error {
  border-left: 4px solid var(--crimson-500);
}
.toast.warning {
  border-left: 4px solid var(--amber-500);
}
.toast.info {
  border-left: 4px solid var(--gold-500);
}

.toast-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   PUBLIC SCROLLING ANNOUNCEMENTS TICKER
   -------------------------------------------------------------------------- */
.public-announcements-ticker {
  background: linear-gradient(90deg, rgba(34, 6, 12, 0.95), rgba(74, 14, 27, 0.95), rgba(34, 6, 12, 0.95));
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 46px;
  position: relative;
  z-index: 90;
}

.ticker-label-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--saffron-600), var(--gold-600));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 16px;
  height: 100%;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 4px 0 15px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.ticker-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1.1); opacity: 0.7; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.ticker-content-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

.ticker-scroll-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 40px;
  padding-left: 20px;
  animation: tickerScroll 35s linear infinite;
  will-change: transform;
}

.public-announcements-ticker:hover .ticker-scroll-content {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-ann-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticker-ann-item:hover {
  color: var(--gold-400);
}

.ticker-item-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticker-item-badge.high {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ticker-item-badge.medium {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ticker-item-badge.normal {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.ticker-item-title {
  font-weight: 700;
  color: #fff;
}

.ticker-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ticker-item-divider {
  color: var(--gold-400);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseAura {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  to { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

/* ==========================================================================
   RESPONSIVE DESIGN: TABLETS & LAPTOPS (< 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links-wrap {
    display: none !important;
  }
  .mobile-nav-toggle-btn {
    display: flex !important;
  }
  .nav-extra-label, .search-kbd-hint {
    display: none !important;
  }
  
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0 !important;
  }
  .hamburger-btn {
    display: inline-flex !important;
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 45;
  }

  .dashboard-split-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN: MOBILE PHONES (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Layout Spacing */
  .page-container {
    padding: 14px 12px;
  }
  .public-section {
    padding: 36px 12px;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .section-header h2 {
    font-size: 1.65rem;
    line-height: 1.3;
  }
  .section-header p {
    font-size: 0.86rem;
  }

  /* Telugu Top Mantra Strip */
  .telugu-mantra-strip {
    font-size: 0.76rem;
    padding: 7px 12px;
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .telugu-mantra-strip::-webkit-scrollbar {
    display: none;
  }

  /* Public Sticky Navbar */
  .public-nav-header {
    padding: 8px 12px;
  }
  .public-nav-header.scrolled {
    padding: 8px 12px;
  }
  .nav-brand-logo {
    width: 36px;
    height: 36px;
  }
  .nav-brand-box div > div:first-child {
    font-size: 0.96rem !important;
  }
  .nav-brand-box div > div:last-child {
    font-size: 0.62rem !important;
    letter-spacing: 1px !important;
  }
  .nav-search-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .search-btn-label {
    display: none;
  }
  .nav-insta-btn, .nav-admin-btn {
    display: none !important;
  }
  .mobile-nav-toggle-btn {
    width: 36px;
    height: 36px;
    padding: 7px 8px;
  }

  /* Announcements Ticker */
  .public-announcements-ticker {
    height: 38px;
  }
  .ticker-label-badge {
    font-size: 0.66rem;
    padding: 0 10px;
    letter-spacing: 0.5px;
  }
  .ticker-ann-item {
    font-size: 0.76rem;
  }

  /* 3D Hero Section */
  .divine-hero-3d {
    padding: 38px 14px 34px 14px;
  }
  .hero-official-logo {
    width: 105px;
    height: 105px;
  }
  .hero-association-title {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
  }
  .hero-main-title {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .hero-sub-text {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }
  .murti-centerpiece-3d {
    transform: scale(0.82);
    margin: 4px auto 16px auto;
  }
  .murti-centerpiece-3d .mandala-rotator {
    width: 200px;
    height: 200px;
  }
  .murti-centerpiece-3d .volumetric-rays {
    width: 240px;
    height: 240px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 10px;
    padding: 0;
  }
  .hero-cta-group .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 0.9rem;
  }

  /* 9-Day Sacred Grid: Neat 3-Column Grid on Mobile */
  .nine-days-section {
    padding: 40px 12px;
  }
  .nine-days-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 18px;
  }
  .nine-day-card {
    padding: 10px 4px;
    border-radius: var(--radius-md);
  }
  .nine-day-number {
    font-size: 1rem;
  }
  .nine-day-date {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
  .nine-day-card > div:nth-child(3) {
    font-size: 0.74rem !important;
    line-height: 1.2;
  }
  .nine-day-card > div:nth-child(4) {
    display: none;
  }
  .nine-day-status {
    font-size: 0.62rem;
    padding: 2px 4px;
  }

  /* Festival Timeline */
  .timeline-section {
    padding: 36px 12px;
  }
  .timeline-wrapper {
    margin-top: 24px;
  }
  .timeline-beam {
    left: 14px;
    width: 2px;
  }
  .timeline-item {
    padding-left: 38px;
    margin-bottom: 22px;
  }
  .timeline-marker {
    left: 3px;
    top: 10px;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  .timeline-card {
    padding: 16px 14px;
    border-radius: var(--radius-lg);
  }
  .timeline-card h3 {
    font-size: 1.15rem !important;
  }

  /* Financial Summary Cards: Modern 2x2 Grid on Mobile */
  .financial-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px;
  }
  .kpi-card {
    padding: 12px 10px !important;
    min-height: 110px !important;
    border-radius: var(--radius-md) !important;
  }
  .kpi-header {
    margin-bottom: 6px !important;
  }
  .kpi-title {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.4px !important;
  }
  .kpi-icon-wrapper {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-sm) !important;
  }
  .kpi-amount {
    font-size: 1.28rem !important;
    margin-bottom: 2px !important;
    letter-spacing: -0.3px !important;
  }
  .kpi-footer {
    font-size: 0.66rem !important;
    padding-top: 4px !important;
    margin-top: 2px !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
  }

  /* Stat Row Grid (Secondary) */
  .stat-row-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px;
  }
  .stat-tile {
    padding: 10px 8px !important;
    gap: 8px !important;
  }
  .stat-tile-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.85rem !important;
  }
  .stat-tile-val {
    font-size: 1.05rem !important;
  }
  .stat-tile-lbl {
    font-size: 0.68rem !important;
  }

  /* Table Toolbar & Search on Mobile */
  .table-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }
  .toolbar-search-box {
    width: 100% !important;
    min-width: unset !important;
    padding: 8px 12px !important;
  }
  .toolbar-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .filter-select {
    width: 100% !important;
    padding: 8px 8px !important;
    font-size: 0.78rem !important;
  }

  /* Transform Data Tables to Clean Mobile Cards */
  .data-table thead {
    display: none !important;
  }
  .data-table, .data-table tbody, .data-table tr, .data-table td {
    display: block !important;
    width: 100% !important;
  }
  .data-table tr {
    background: rgba(30, 41, 59, 0.65) !important;
    border: 1px solid rgba(245, 158, 11, 0.22) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 10px !important;
    padding: 12px 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  }
  .data-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 0.86rem !important;
    text-align: right !important;
  }
  .data-table td:last-child {
    border-bottom: none !important;
  }
  .data-table td::before {
    content: attr(data-label) !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
  }
  .data-table td.col-actions {
    justify-content: flex-end !important;
    gap: 6px !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
  }

  /* Dedicated Telugu Songs Music Player */
  .ganesha-songs-section {
    padding: 40px 12px;
  }
  .player-main-card {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 18px 14px !important;
    gap: 16px !important;
  }
  .player-vinyl {
    width: 125px !important;
    height: 125px !important;
  }
  .audio-equalizer {
    margin-top: 8px;
    height: 22px;
  }
  #song-play-btn {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
  }

  /* Videos / Reels Section & Other Showcase Grids */
  .video-grid-showcase,
  .notices-grid-showcase,
  .contact-grid-showcase,
  .analytics-chart-grid,
  .admin-committee-grid,
  .admin-gallery-grid,
  .admin-settings-grid,
  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Committee 2-Column Grid on Mobile */
  .committee-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
  }
  .committee-3d-card {
    padding: 16px 10px !important;
  }
  .committee-photo-wrap {
    width: 76px !important;
    height: 76px !important;
    margin-bottom: 8px !important;
  }
  .committee-3d-card h3 {
    font-size: 0.94rem !important;
    margin-bottom: 2px !important;
  }

  /* Modals & Dialogs on Mobile */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    margin: 0 !important;
  }
  .modal-header {
    padding: 14px 16px !important;
  }
  .modal-body {
    padding: 16px !important;
  }
  .modal-footer {
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .modal-footer .btn {
    flex: 1 !important;
    min-width: 110px !important;
    justify-content: center !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    padding: 9px 12px !important;
  }

  /* Universal Search Modal */
  .search-modal-backdrop {
    padding: 12px 8px !important;
    align-items: flex-start !important;
  }
  .search-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: var(--radius-lg) !important;
  }
  .search-input-row {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  .search-input-row input {
    font-size: 0.98rem !important;
  }
  .search-category-tabs {
    padding: 8px 10px !important;
  }

  /* Lightbox */
  .lightbox-backdrop {
    padding: 12px !important;
  }
  .lightbox-img {
    max-height: 68vh !important;
  }

  /* Admin Header & Main Shell on Mobile */
  .admin-header {
    padding: 0 12px !important;
    height: 58px !important;
  }
  .header-left {
    gap: 8px !important;
  }
  .header-title-box h1 {
    font-size: 1.05rem !important;
  }
  .header-title-box p {
    display: none !important;
  }
  .header-balance-pill {
    padding: 4px 8px !important;
    gap: 4px !important;
  }
  .balance-pill-label {
    display: none !important;
  }
  .balance-pill-val {
    font-size: 0.82rem !important;
  }
  #header-quick-payment-btn {
    padding: 5px 9px !important;
    font-size: 0.74rem !important;
  }
  .dashboard-hero {
    padding: 16px 14px !important;
    margin-bottom: 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .hero-text h2 {
    font-size: 1.22rem !important;
  }
  .hero-text p {
    font-size: 0.82rem !important;
  }
  .hero-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .hero-actions .btn {
    flex: 1 !important;
    min-width: 110px !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
  }

  /* Login Card on Mobile */
  .login-card {
    padding: 24px 18px !important;
    border-radius: var(--radius-lg) !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN: COMPACT MOBILE SCREENS (< 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-main-title {
    font-size: 1.45rem !important;
  }
  .hero-official-logo {
    width: 90px !important;
    height: 90px !important;
  }
  .murti-centerpiece-3d {
    transform: scale(0.76) !important;
  }
  .kpi-amount {
    font-size: 1.15rem !important;
  }
  .stat-tile-val {
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN: ULTRA SMALL SCREENS (< 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .hero-main-title {
    font-size: 1.3rem !important;
  }
  .committee-grid {
    grid-template-columns: 1fr !important;
  }
  .nine-days-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .nine-day-card:last-child {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION SUPPORT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   PRINT STYLES FOR STATEMENTS & PDF EXPORT
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .admin-sidebar, .admin-header, .btn, .toolbar-actions, .toolbar-search-box, .toast-container, .mobile-nav-toggle-btn {
    display: none !important;
  }
  .admin-main {
    margin: 0 !important;
  }
  .page-container {
    padding: 0 !important;
  }
  .glass-card, .table-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
  .data-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }
  .data-table td {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .status-pill {
    border: 1px solid #000 !important;
    color: #000 !important;
  }
}

