:root {
  color-scheme: light;
  --primary: #5c1363; /* Rich Royal Jamun Purple */
  --secondary: #d1a153; /* Warm Premium Champagne Gold */
  --accent: #108b64; /* Forest Leaf Green */
  --background: #f9faf5; /* Warm organic linen cream */
  --background-strong: #f3f4eb; /* Luxurious warm organic gray */
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.65);
  --text: #1e1124; /* Deep rich berry-tinted charcoal text */
  --text-muted: #6b5870; /* Sophisticated muted plum text */
  --text-soft: #8c7792;
  --border: rgba(92, 19, 99, 0.08); /* Organic plum-tinted lines */
  --border-strong: rgba(92, 19, 99, 0.16);
  --success-soft: rgba(16, 139, 100, 0.12);
  --warning-soft: rgba(209, 161, 83, 0.12);
  --neutral-soft: rgba(92, 19, 99, 0.06);
  --shadow-soft: 0 24px 64px rgba(30, 17, 36, 0.04);
  --shadow-lift: 0 32px 88px rgba(92, 19, 99, 0.12);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --nav-height: 72px;
  --sticky-offset: 96px;
  --max-width: 1180px;
  --transition: 180ms ease;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #130716; /* Midnight aubergine/wine vault */
  --background-strong: #1c0d20; /* Dark velvet violet-black */
  --surface: rgba(32, 16, 37, 0.72); /* Luxurious plum velvet glassmorphism */
  --surface-strong: #231228;
  --surface-soft: rgba(28, 14, 32, 0.68);
  --text: #fcfafc;
  --text-muted: #c2b1c6;
  --text-soft: #a28fa7;
  --border: rgba(209, 161, 83, 0.12); /* Champagne gold lining */
  --border-strong: rgba(209, 161, 83, 0.24);
  --success-soft: rgba(16, 185, 129, 0.16);
  --warning-soft: rgba(209, 161, 83, 0.16);
  --neutral-soft: rgba(209, 161, 83, 0.18);
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.44);
  --shadow-lift: 0 32px 88px rgba(209, 161, 83, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(92, 19, 99, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(209, 161, 83, 0.06), transparent 28%),
    linear-gradient(180deg, var(--background-strong), var(--background));
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 16rem;
  height: 16rem;
  top: 5rem;
  left: -3rem;
  background: rgba(92, 19, 99, 0.12);
}

body::after {
  width: 18rem;
  height: 18rem;
  bottom: -4rem;
  right: -4rem;
  background: rgba(209, 161, 83, 0.08);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.mobile-only {
  display: block;
}

.desktop-only {
  display: none !important;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 1.25rem));
  margin: 0 auto;
  padding: calc(var(--nav-height) + 1.4rem) 0 4rem;
}

.floating-nav {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 40;
  width: min(var(--max-width), calc(100% - 1.25rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-xl);
  transform: translateX(-50%);
  
  /* Luxurious Jamun purple gradient with glassmorphism */
  background: linear-gradient(135deg, rgba(92, 19, 99, 0.96), rgba(53, 7, 58, 0.98)) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  
  /* Premium Champagne Gold Border and Shadow Lift */
  border: 1.5px solid #d1a153 !important;
  box-shadow: 
    0 12px 32px rgba(30, 17, 36, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

/* Ensure navbar brand text and logo have perfect contrast */
.floating-nav .brand-copy strong {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.floating-nav .brand-copy small {
  color: #d1a153 !important; /* Premium Gold for grower subtitle */
  font-weight: 500;
}

/* Nav Links contrast adjustments */
.floating-nav .nav-links a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  transition: color var(--transition), transform var(--transition);
}

.floating-nav .nav-links a:hover {
  color: #d1a153 !important; /* Highlights links in Gold on hover */
  transform: translateY(-1px);
}

/* Sync indicator and secondary buttons inside the deep purple nav */
.floating-nav .status-pill {
  color: #d1a153 !important;
  background: rgba(209, 161, 83, 0.12) !important;
  border-color: rgba(209, 161, 83, 0.25) !important;
}

.floating-nav .status-pill.is-live {
  color: #22c55e !important;
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.floating-nav .button-secondary {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  transition: all 0.2s ease !important;
}

.floating-nav .button-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #d1a153 !important;
  transform: translateY(-1px);
}

/* Ensure mobile menu hamburger works cleanly */
.floating-nav #mobileMenuButton {
  background: linear-gradient(135deg, #d1a153, #b4853b) !important;
  color: #1e1124 !important;
  font-weight: 700;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-lift);
}

.brand-logo {
  padding: 0.15rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.22rem; /* Increased font size */
  font-weight: 800; /* Extra bold */
  letter-spacing: 0.05em; /* Premium spacing for all-caps */
  text-transform: uppercase; /* Automatically capitalizes to JAMBHULSANGH */
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

#syncIndicator {
  margin-right: 0.65rem !important; /* Perfect gap between pulsing dot/pill and other actions */
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.button,
.text-button,
.summary-chip,
.status-pill {
  min-height: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.compact-button {
  min-height: 40px;
  padding: 0.7rem 0.95rem;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-lift);
}

.button-secondary {
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.text-button {
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 600;
}

.status-pill,
.summary-chip,
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.status-pill,
.summary-chip {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.status-pill.is-live {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.12);
}

.status-pill.is-preview,
.status-pill.is-syncing {
  color: var(--primary);
  background: var(--neutral-soft);
}

.status-pill.is-error {
  color: #f97316;
  background: var(--warning-soft);
}

.pill-label {
  color: var(--primary);
  background: var(--neutral-soft);
}

.showcase-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.showcase-header h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.8rem, 5.8vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.showcase-meta {
  align-self: flex-start;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.photo-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-xl);
  background: transparent;
  box-shadow: var(--shadow-soft);
}

.photo-slider-track {
  display: flex;
  transition: transform 700ms cubic-bezier(0.25, 1, 0.5, 1);
}

.photo-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 9;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

@media (max-width: 640px) {
  .photo-slide {
    aspect-ratio: 4 / 3;
  }
}

.photo-showcase,
.hero-panel {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.75rem;
}

.photo-showcase,
.hero-copy,
.hero-glass-panel,
.filters-panel,
.toolbar,
.table-surface,
.listing-card,
.stat-card,
.mini-chart-card,
.empty-state,
.detail-modal {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 1.5rem 0.35rem 0.4rem;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.catalog-header h2,
.panel-heading h2,
.panel-heading h3,
.mini-chart-header h3,
.modal-header h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  line-height: 0.94;
}

.hero-copy p,
.catalog-header p {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-metrics {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.metric-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.metric-pill strong {
  font-size: 1.02rem;
}

.metric-pill span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-glass-panel {
  padding: 1.2rem;
}

.panel-heading,
.mini-chart-header,
.modal-header,
.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading h2,
.panel-heading h3,
.mini-chart-header h3,
.modal-header h3 {
  font-size: 1.3rem;
}

.mini-chart-card {
  padding: 1rem;
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.08), transparent);
  border: 1px solid var(--border);
}

.mini-chart-bars {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.bar-row {
  display: grid;
  gap: 0.45rem;
}

.bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.bar-track {
  overflow: hidden;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.activity-feed {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.feed-card {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.feed-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feed-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.stats-strip {
  margin-top: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
  width: 100%;
}

.stat-card {
  width: 100%;
  max-width: 100%;
  padding: 2.2rem 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--primary-soft);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.stat-card-header span {
  color: var(--text-soft);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.stat-card-value {
  margin: 0.6rem 0 0.2rem;
  font-family: "Poppins", sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.catalog-section {
  margin-top: 1.9rem;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.catalog-header h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.catalog-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.catalog-layout {
  display: grid;
  gap: 1rem;
}

.filters-panel {
  padding: 1.15rem;
  align-self: start;
}

.catalog-main {
  min-width: 0;
}

.toolbar {
  position: sticky;
  top: var(--sticky-offset);
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

.search-shell {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.25rem 0.3rem 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.search-icon {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-shell input {
  width: 100%;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 0.95rem;
}

.clear-button {
  min-height: 40px;
  padding: 0 0.8rem;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.list-surface {
  margin-top: 1rem;
}

.filter-stack {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field span {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.control {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.range-row {
  display: grid;
  gap: 0.75rem;
}

.filter-note {
  padding: 0.9rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(16, 185, 129, 0.06));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.mobile-cards {
  display: grid;
  gap: 0.95rem;
}

.listing-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  animation: fade-up 380ms ease both;
  cursor: pointer;
  transition: 
    transform 320ms cubic-bezier(0.23, 1, 0.32, 1), 
    box-shadow 320ms ease, 
    border-color 320ms ease, 
    background-color 320ms ease;
}

.listing-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lift);
  border-color: var(--secondary);
  background: var(--surface-strong);
}

.listing-card:active {
  transform: translateY(-1px) scale(0.99);
  background: var(--background-strong);
}

.listing-card:hover .card-chevron {
  transform: translateX(6px) scale(1.1);
  color: var(--primary) !important;
}

.listing-card:hover .location-pin {
  animation: location-bounce 0.8s ease infinite alternate;
}

@keyframes location-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

.listing-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.28), transparent);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.card-identity {
  display: flex;
  gap: 0.9rem;
  min-width: 0;
}

.card-avatar,
.card-image {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 16px;
}

.card-avatar {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 700;
  box-shadow: var(--shadow-lift);
}

.card-image {
  object-fit: cover;
}

.card-copy {
  min-width: 0;
}

.card-copy h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.card-copy p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.price-puck {
  flex-shrink: 0;
  min-width: 5rem;
  padding: 0.7rem 0.8rem;
  text-align: right;
  border-radius: 18px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.meta-tile {
  padding: 0.8rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.meta-tile small {
  display: block;
  color: var(--text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-tile strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.card-actions,
.row-actions,
.sheet-footer,
.modal-actions {
  display: flex;
  gap: 0.7rem;
}

.card-actions {
  margin-top: 0.95rem;
}

.card-actions .button,
.row-actions .button,
.sheet-footer .button,
.modal-actions .button {
  flex: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-success {
  color: var(--accent);
  background: var(--success-soft);
}

.status-warning {
  color: #f97316;
  background: var(--warning-soft);
}

.status-neutral {
  color: var(--primary);
  background: var(--neutral-soft);
}

.table-surface {
  overflow: hidden;
}

.table-scroll {
  overflow: auto;
  max-height: 720px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-strong);
  backdrop-filter: blur(24px);
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sort-state {
  color: var(--primary);
  font-size: 0.68rem;
}

.data-table tr:hover td {
  background: rgba(79, 70, 229, 0.04);
}

.title-stack strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.4;
}

.title-stack span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.table-value-muted {
  color: var(--text-muted);
}

.column-menu-shell {
  position: relative;
}

.column-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(18rem, 78vw);
  padding: 0.95rem;
  border-radius: var(--radius-lg);
  z-index: 24;
}

.column-menu-grid {
  display: grid;
  gap: 0.7rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
}

.toggle-row span {
  color: var(--text);
  font-size: 0.92rem;
}

.toggle-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.page-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-weight: 600;
}

.page-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.empty-state {
  padding: 2rem 1.2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.08), transparent);
  border: 1px dashed var(--border-strong);
}

.empty-state h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
}

.empty-state p {
  margin: 0.85rem auto 0;
  max-width: 30rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.load-more-hint {
  margin-top: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.92rem;
}

.infinite-sentinel {
  height: 2px;
}

.sheet-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 1rem;
  background: rgba(7, 13, 24, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.sheet-backdrop.is-open,
.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-backdrop {
  display: flex;
  align-items: flex-end;
}

.filter-sheet {
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  padding: 1rem 1rem 1.15rem;
  background: var(--surface-strong);
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  transition: transform 220ms ease;
  box-shadow: var(--shadow-lift);
}

.sheet-backdrop.is-open .filter-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 4rem;
  height: 0.32rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.sheet-content {
  margin-top: 1rem;
}

.sheet-footer {
  margin-top: 1.2rem;
}

.modal-backdrop {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.detail-modal {
  width: min(42rem, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 1.1rem;
  background: var(--surface-strong);
  transform: translateY(100%);
  transition: transform 220ms ease;
}

.modal-backdrop.is-open .detail-modal {
  transform: translateY(0);
}

.detail-body {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.detail-summary {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border);
}

.detail-summary p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.detail-field {
  padding: 0.9rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.detail-field small {
  display: block;
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-field strong,
.detail-field span {
  display: block;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.detail-records {
  display: grid;
  gap: 0.75rem;
}

.detail-record {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.detail-record strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-record span {
  display: block;
  margin-top: 0.45rem;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: min(24rem, calc(100% - 2rem));
  padding: 0.95rem 1rem;
  color: #ffffff;
  background: rgba(11, 18, 32, 0.88);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
}

.toast.is-error {
  background: rgba(194, 65, 12, 0.92);
}

.skeleton-card,
.skeleton-row,
.skeleton-stat {
  overflow: hidden;
  position: relative;
}

.skeleton-card::after,
.skeleton-row::after,
.skeleton-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  animation: shimmer 1.2s infinite;
}

.skeleton-card {
  height: 17rem;
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.skeleton-row {
  height: 4.5rem;
  background: var(--surface-soft);
}

.skeleton-stat {
  height: 9.8rem;
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (min-width: 680px) {
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .range-row,
  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }

  .nav-links {
    display: flex;
  }

  .page-shell {
    padding-top: calc(var(--nav-height) + 1.8rem);
  }

  .photo-showcase {
    gap: 1.1rem;
  }

  .showcase-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .photo-slider {
    min-height: 34rem;
  }

  .photo-slide {
    aspect-ratio: 16 / 9;
    padding: 1rem;
  }

  .photo-slider-copy {
    max-width: 24rem;
  }

  .photo-slider-copy strong {
    font-size: 1.45rem;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 1.25rem;
  }

  .hero-copy {
    padding: 2rem 0.2rem 0.4rem;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }



  .catalog-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .catalog-layout {
    gap: 1rem;
    align-items: start;
  }

  .filters-panel {
    position: sticky;
    top: var(--sticky-offset);
  }

  .toolbar {
    padding: 0.85rem 1.15rem;
  }

  .search-shell {
    min-height: 56px;
    padding-left: 1.25rem;
  }

  .toolbar-actions {
    justify-content: flex-end;
  }

  .modal-backdrop {
    align-items: center;
  }

  .detail-modal {
    transform: translateY(16px) scale(0.98);
  }

  .modal-backdrop.is-open .detail-modal {
    transform: translateY(0) scale(1);
  }
}
@media (min-width: 1280px) {
  .hero-copy {
    padding-right: 2rem;
  }
}

#mobileMenuButton {
  display: none !important;
}

@media (max-width: 1023px) {
  .floating-nav {
    top: 0.5rem;
    padding: 0.45rem 0.65rem;
    gap: 0.35rem;
    width: calc(100% - 1rem);
  }

  .brand-lockup {
    gap: 0.35rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-mark {
    width: 2.8rem; /* Premium compact mobile logo size */
    height: 2.8rem;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .brand-copy strong {
    font-size: 0.92rem; /* Clean, all-caps, modern size */
    white-space: nowrap;
  }

  .brand-copy small {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .nav-actions .compact-button {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
    min-height: 36px;
    border-radius: 12px;
    white-space: nowrap !important; /* Prevent text wrapping inside buttons */
  }

  /* Turn the status pill into a beautiful compact pulsing indicator */
  #syncIndicator {
    width: 10px;
    height: 10px;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
    position: relative;
    display: inline-block;
    margin-right: 0.25rem !important; /* Secure perfect spacing between dot and buttons */
    flex-shrink: 0 !important;
  }

  #syncIndicator.is-live {
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-dot 1.5s infinite;
  }

  #syncIndicator.is-preview,
  #syncIndicator.is-syncing {
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    animation: pulse-dot-primary 1.5s infinite;
  }

  #syncIndicator.is-error {
    background: #f97316;
  }

  /* Make the buttons compact and fit perfectly */
  .floating-nav .button {
    min-height: 32px;
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
  }

  /* Hide the desktop action buttons in floating-nav on small mobile screens to keep it ultra clean, and show menu button */
  #refreshButton,
  #themeToggle,
  #langToggle,
  #navAdminButton {
    display: none !important;
  }

  #mobileMenuButton {
    display: inline-flex !important;
  }
}


@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulse-dot-primary {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

/* Registration Modal Specific Styles */
.registration-step {
  animation: fade-up 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.registration-step.hidden {
  display: none;
}

#registrationContent {
  padding-top: 0.5rem;
}

.field textarea.control {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
}

#paymentQR img {
  display: block;
  max-width: 100%;
}

.sheet-footer {
  display: flex;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

/* ── Admin Panel Styles (Premium Royal Jamun & Gold Overhaul) ── */
#adminLoginBackdrop,
#adminPanelBackdrop {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(13, 6, 20, 0.82) !important;
  transition: opacity 0.3s ease !important;
}

/* Base dialog containers */
.admin-dialog {
  background: linear-gradient(145deg, #1d0e2c, #0e0417) !important;
  border: 1.5px solid rgba(209, 161, 83, 0.35) !important;
  border-radius: 28px !important;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(139, 92, 246, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.08) !important;
  color: #f3e8ff !important;
  overflow: hidden;
  box-sizing: border-box !important;
}

.admin-login-dialog {
  width: 100%;
  max-width: 380px;
}

.admin-panel-dialog {
  width: 100%;
  max-width: 620px;
  border-color: #d1a153 !important; /* Bold Imperial Gold Border */
}

/* Modal slide/elastic bounce animations */
.modal-backdrop .admin-dialog {
  opacity: 0;
  transform: scale(0.92) translateY(20px) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64) !important;
}

.modal-backdrop.is-open .admin-dialog {
  opacity: 1;
  transform: scale(1) translateY(0) !important;
}

/* Custom Scrollbar Styles for the dashboard */
.admin-dialog * {
  scrollbar-width: thin;
  scrollbar-color: rgba(209, 161, 83, 0.25) transparent;
}

.admin-dialog *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.admin-dialog *::-webkit-scrollbar-track {
  background: transparent;
}

.admin-dialog *::-webkit-scrollbar-thumb {
  background: rgba(209, 161, 83, 0.25);
  border-radius: 99px;
}

.admin-dialog *::-webkit-scrollbar-thumb:hover {
  background: rgba(209, 161, 83, 0.45);
}

/* Dialog Header styling */
.admin-dialog .sheet-header {
  border-bottom: 1px solid rgba(209, 161, 83, 0.2) !important;
  padding: 1.25rem 1.5rem !important;
  background: rgba(0, 0, 0, 0.2) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-dialog .sheet-header h2 {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
  text-shadow: 0 0 10px rgba(209, 161, 83, 0.25);
  font-family: 'Poppins', system-ui, sans-serif !important;
}

/* Compact Close Buttons */
#adminLoginClose,
#adminPanelClose {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 0.45rem 0.9rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#adminLoginClose:hover,
#adminPanelClose:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  transform: scale(1.04);
}

/* PIN login dot indicators */
.pin-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(209, 161, 83, 0.35);
  background: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-dot.filled {
  background: #d1a153;
  border-color: #d1a153;
  transform: scale(1.25);
  box-shadow: 
    0 0 14px rgba(209, 161, 83, 0.65), 
    0 0 4px rgba(209, 161, 83, 0.4);
}

/* PIN keys dynamic keypad layout */
.pin-key {
  padding: 0.95rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  backdrop-filter: blur(12px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    0 4px 6px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-key:hover {
  background: rgba(209, 161, 83, 0.15);
  border-color: rgba(209, 161, 83, 0.35);
  color: #fff;
  box-shadow: 0 0 15px rgba(209, 161, 83, 0.15);
  transform: translateY(-2px);
}

.pin-key:active {
  transform: scale(0.92) translateY(0);
  background: rgba(209, 161, 83, 0.25);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pin-key[data-pin="clear"] {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.12);
}

.pin-key[data-pin="clear"]:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fee2e2;
}

.pin-key[data-pin="submit"] {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
  color: #fff !important;
  font-size: 1.15rem !important;
}

.pin-key[data-pin="submit"]:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.45);
}

/* Dynamic Interactive tabs inside admin panel drawer */
.admin-tabs-nav {
  background: rgba(0, 0, 0, 0.18) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
  display: flex;
  padding: 0 0.5rem !important;
  gap: 4px;
}

.admin-tab {
  flex: 1;
  padding: 0.95rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px 8px 0 0;
  letter-spacing: 0.3px;
}

.admin-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: #d1a153;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transform: scaleX(0.7);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px #d1a153;
}

.admin-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.02);
}

.admin-tab.active {
  color: #d1a153 !important;
  background: rgba(209, 161, 83, 0.06);
}

.admin-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Premium Form Elements styling */
.admin-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 0.92rem;
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box;
}

.admin-input::placeholder {
  color: rgba(148, 163, 184, 0.5) !important;
}

.admin-input:focus {
  outline: none !important;
  border-color: #d1a153 !important;
  background: rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(209, 161, 83, 0.15), 0 0 10px rgba(209, 161, 83, 0.08) !important;
}

/* High-Density Search inside dashboard */
#adminMemberSearch {
  width: 100% !important;
  padding: 0.8rem 1.2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

#adminMemberSearch:focus {
  outline: none !important;
  border-color: #d1a153 !important;
  background: rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(209, 161, 83, 0.15), 0 0 10px rgba(209, 161, 83, 0.1) !important;
}

/* High-Density Card Dashboard Rows */
#adminMembersList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem !important;
}

#adminMembersList > div {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  padding: 0.9rem 1.15rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

#adminMembersList > div:hover {
  background: rgba(209, 161, 83, 0.04) !important;
  border-color: rgba(209, 161, 83, 0.28) !important;
  transform: translateY(-2px) scale(1.005);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.25), 
    0 0 12px rgba(209, 161, 83, 0.05) !important;
}

#adminMembersList > div strong,
#adminMembersList > div span {
  color: #fff !important;
}

/* Compact Aligned Actions inside members tab */
#adminMembersList button {
  font-family: 'Inter', system-ui, sans-serif !important;
  border-radius: 10px !important;
  padding: 0.45rem 0.8rem !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

#adminMembersList button:hover {
  transform: translateY(-1.5px) scale(1.04) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important;
}

#adminMembersList button:active {
  transform: translateY(0) scale(0.97) !important;
}

/* Receipt button style */
#adminMembersList button[onclick*="viewScreenshot"] {
  background: linear-gradient(135deg, #108b64, #14996f) !important;
  color: #fff !important;
}

#adminMembersList button[onclick*="viewScreenshot"]:hover {
  background: linear-gradient(135deg, #14996f, #1bb886) !important;
  box-shadow: 0 0 12px rgba(16, 139, 100, 0.4) !important;
}

/* Edit button style */
#adminMembersList button[onclick*="editMember"] {
  background: linear-gradient(135deg, #7c3aed, #9061f9) !important;
  color: #fff !important;
}

#adminMembersList button[onclick*="editMember"]:hover {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4) !important;
}

/* Delete button style */
#adminMembersList button[onclick*="deleteMember"] {
  background: linear-gradient(135deg, #ef4444, #f87171) !important;
  color: #fff !important;
}

#adminMembersList button[onclick*="deleteMember"]:hover {
  background: linear-gradient(135deg, #f87171, #fca5a5) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

/* Save / Update executive form action buttons styling */
#adminSaveMember,
#adminUpdateMember {
  background: linear-gradient(135deg, #d1a153, #b5893d) !important;
  color: #11071c !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 0.95rem !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 20px rgba(209, 161, 83, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 1rem !important;
}

#adminSaveMember:hover,
#adminUpdateMember:hover {
  background: linear-gradient(135deg, #e6b86a, #c29548) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(209, 161, 83, 0.4) !important;
}

#adminSaveMember:active,
#adminUpdateMember:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 10px rgba(209, 161, 83, 0.2) !important;
}

/* Gallery layout card enhancements */
#adminGalleryGrid > div {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#adminGalleryGrid > div:hover {
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(209, 161, 83, 0.35) !important;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.3), 
    0 0 15px rgba(209, 161, 83, 0.1) !important;
}

#adminAddPhotoForm {
  background: rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 18px !important;
  padding: 1.25rem !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* Premium Portal Cards Styles */
.console-portal-card {
  transition: all 0.32s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.console-portal-card::before {
  display: none !important; /* Remove the top gradient bar for portal cards */
}
.console-portal-card:hover {
  transform: translateY(-8px) scale(1.025) !important;
  box-shadow: 0 20px 35px rgba(124, 58, 237, 0.14) !important;
  border-color: var(--primary) !important;
}
.console-portal-card:hover .portal-card-icon {
  transform: scale(1.22) rotate(5deg) !important;
}
.console-portal-card:hover .arrow {
  transform: translateX(6px) !important;
}

.join-portal-card:hover {
  box-shadow: 0 20px 35px rgba(16, 139, 100, 0.3) !important;
  border-color: #34d399 !important;
}

/* Pulse animation for live stats indicator */
@keyframes pulseGlow {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 14px #10b981, 0 0 4px #10b981;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

/* Custom Console Template Layout Styles */
.console-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}
@media (max-width: 768px) {
  .console-layout-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.directory-card {
  background: linear-gradient(135deg, #fefdfb, #f6f0e2) !important;
  border: 1px solid #e6dabd !important;
  box-shadow: 0 10px 25px rgba(230, 218, 189, 0.2) !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.directory-card::before {
  display: none !important;
}
.directory-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  box-shadow: 0 18px 30px rgba(230, 218, 189, 0.4) !important;
  border-color: #d1b46a !important;
}
.directory-card:hover .portal-card-icon {
  transform: scale(1.15) rotate(-3deg) !important;
}
.directory-card:hover .arrow {
  transform: translateX(5px) !important;
}

.total-members-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: all 0.3s ease !important;
}
.total-members-card::before {
  background: linear-gradient(90deg, #daa520, #b8860b) !important;
}

.join-community-card-full {
  background: linear-gradient(135deg, #0e4c27, #072f17) !important;
  border: 1px solid rgba(16, 139, 100, 0.35) !important;
  box-shadow: 0 12px 30px rgba(7, 47, 23, 0.25) !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.join-community-card-full::before {
  display: none !important;
}
.join-community-card-full:hover {
  transform: translateY(-6px) scale(1.012) !important;
  box-shadow: 0 18px 35px rgba(16, 139, 100, 0.35) !important;
  border-color: #34d399 !important;
}
.join-community-card-full:hover .portal-card-icon {
  transform: scale(1.18) rotate(5deg) !important;
}
.join-community-card-full:hover .arrow {
  transform: translateX(5px) !important;
}

/* Premium Pill Bar Styles matching template screenshot */
.console-pill-bar {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-xl); /* Matches gallery photos exactly */
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #000000 !important; /* Set solid high-contrast black border */
  box-shadow: var(--shadow-soft) !important;
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.console-pill-bar:hover {
  transform: translateY(-3px) scale(1.012) !important;
}

.directory-pill {
  background: var(--surface) !important;
  cursor: pointer;
}
.directory-pill:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08) !important;
}
.directory-pill:hover .pill-icon-wrapper {
  transform: scale(1.12) rotate(-5deg) !important;
}
.directory-pill:hover .pill-arrow-wrapper {
  transform: translateX(4px) !important;
}

.stats-pill {
  background: var(--surface) !important;
}

.join-pill {
  position: relative;
  z-index: 1;
  background: #000000 !important; /* solid black fallback base */
  border: none !important; /* Simulated border */
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  animation: joinPulse 3s infinite ease-in-out !important;
}

.join-pill:hover {
  transform: translateY(-4px) scale(1.018) !important;
  box-shadow: 0 14px 28px rgba(16, 139, 100, 0.45) !important;
}

/* Clockwise Golden Comet Track */
.comet-track-cw {
  position: absolute;
  z-index: -3;
  left: -50%;
  top: -150%;
  width: 200%;
  height: 400%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 42%,
    #fbbf24 50%, /* Golden Comet */
    transparent 58%,
    transparent 100%
  ) !important;
  animation: spinBorder 3.2s infinite linear !important;
}

/* Counter-Clockwise Emerald Comet Track */
.comet-track-ccw {
  position: absolute;
  z-index: -3;
  left: -50%;
  top: -150%;
  width: 200%;
  height: 400%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 42%,
    #10b981 50%, /* Emerald Comet */
    transparent 58%,
    transparent 100%
  ) !important;
  animation: spinBorderRev 4s infinite linear !important;
}

/* Inner card cover leaving a perfect 2px border mask */
.join-pill::after {
  content: '';
  position: absolute;
  z-index: -2; /* Above comets, below children */
  inset: 2px;
  border-radius: calc(var(--radius-xl) - 2px);
  background: linear-gradient(135deg, #0e5b35, #149c5e, #0e5b35) !important;
  background-size: 200% auto !important;
  animation: gradientMove 5s infinite linear !important;
}

/* Beautiful seedling organic grow continuous loop */
.join-pill .pill-icon-wrapper {
  animation: plantGrow 3s infinite ease-in-out !important;
}

/* Beautiful right arrow indicator continuous loop slide */
.join-pill .pill-arrow-wrapper {
  animation: arrowSlide 1.5s infinite ease-in-out !important;
}

/* OPTION 1: Floating Organic Leaf Particles CSS */
.leaf-particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.15rem;
  z-index: 10;
  opacity: 0;
  bottom: -20px;
}

.lp1 {
  left: 20%;
  animation: floatLeaf1 4.2s infinite ease-in-out;
}

.lp2 {
  left: 50%;
  animation: floatLeaf2 4.8s infinite ease-in-out 1.5s;
}

.lp3 {
  left: 80%;
  animation: floatLeaf3 3.9s infinite ease-in-out 0.7s;
}

@keyframes floatLeaf1 {
  0% {
    bottom: -20px;
    transform: translateX(0) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    bottom: 80px;
    transform: translateX(-35px) rotate(180deg) scale(1.1);
    opacity: 0;
  }
}

@keyframes floatLeaf2 {
  0% {
    bottom: -20px;
    transform: translateX(0) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    bottom: 90px;
    transform: translateX(30px) rotate(-140deg) scale(1);
    opacity: 0;
  }
}

@keyframes floatLeaf3 {
  0% {
    bottom: -20px;
    transform: translateX(0) rotate(0deg) scale(0.7);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    bottom: 75px;
    transform: translateX(-20px) rotate(220deg) scale(1.2);
    opacity: 0;
  }
}

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

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

@keyframes plantGrow {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.12) rotate(-8deg); }
  75% { transform: scale(1.12) rotate(8deg); }
}

@keyframes arrowSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes joinPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 15px rgba(16, 139, 100, 0.2), 0 0 0 0 rgba(16, 139, 100, 0.3);
  }
  50% {
    transform: translateY(-2px) scale(1.008);
    box-shadow: 0 10px 22px rgba(16, 139, 100, 0.38), 0 0 0 6px rgba(16, 139, 100, 0);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 15px rgba(16, 139, 100, 0.2), 0 0 0 0 rgba(16, 139, 100, 0.3);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ── Registration Sheet Scrollbar & Mobile Optimizations ── */

/* Force scrollbar to be continuously visible and bold */
#registrationSheet {
  overflow-y: scroll !important; /* Continuously active scroll window */
  scrollbar-width: auto; /* Firefox auto scrollbar */
  scrollbar-color: var(--primary, #5c1363) #f6f0e2; /* Firefox thumb / track */
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Butter-smooth momentum scrolling on iOS */
}

/* Webkit Scrollbars (Chrome, Safari, Edge, Opera) */
#registrationSheet::-webkit-scrollbar {
  width: 16px !important; /* Bold / thicker premium scrollbar */
  height: 16px !important;
  display: block !important; /* Lock display block persistently */
}

#registrationSheet::-webkit-scrollbar-track {
  background: #fbf8f2 !important; /* Premium organic warm linen cream */
  border-radius: 99px !important;
  border: 2px solid #d1a153 !important; /* Double-framed champagne gold outline */
  box-shadow: 
    inset 0 0 10px rgba(92, 19, 99, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

#registrationSheet::-webkit-scrollbar-thumb {
  background: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
    linear-gradient(90deg, #5c1363, #3f0945) !important; /* Rich Royal Jamun Purple with vertical lighting */
  border: 3.5px solid #d1a153 !important; /* Bold, premium champagne gold border */
  border-radius: 99px !important;
  box-shadow: 
    0 4px 8px rgba(30, 17, 36, 0.35), 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.45) !important;
  transition: all 0.2s ease-in-out !important;
  cursor: grab !important;
}

#registrationSheet::-webkit-scrollbar-thumb:hover {
  background: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.1)),
    linear-gradient(90deg, #430a48, #2a052e) !important; /* Darker executive Jamun on hover */
  border-color: #e5b869 !important; /* Brighter premium champagne gold on hover */
  box-shadow: 
    0 5px 12px rgba(30, 17, 36, 0.45), 
    inset 0 1.5px 3px rgba(255, 255, 255, 0.6) !important;
}

#registrationSheet::-webkit-scrollbar-thumb:active {
  cursor: grabbing !important;
  background: #2a052e !important;
}

/* Mobile Responsiveness optimizations for the registration form */
@media (max-width: 768px) {
  #registrationSheet {
    max-height: 94vh !important; /* Allow the sheet to take up slightly more space for easier scrolling */
    padding: 0.85rem 0.85rem 1.25rem !important; /* Slightly more compact padding to maximize active input areas */
    border-radius: 20px 20px 0 0 !important; /* Modern rounded top */
  }

  #registrationSheet .sheet-header {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  #registrationSheet .sheet-content {
    margin-top: 0.5rem;
  }

  #registrationSheet .filter-stack {
    gap: 0.95rem !important; /* Tighter gap to make more fields fit without heavy scrolling */
  }

  #registrationSheet div[style*="grid-template-columns: 1fr 1fr"] {
    gap: 0.5rem !important;
  }

  #registrationSheet .control {
    min-height: 44px !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem !important;
  }

  #registrationSheet .field span {
    font-size: 0.8rem !important;
  }

  #registrationSheet .sheet-footer {
    padding-top: 0.75rem !important;
    margin-top: 1rem !important;
  }

  #registrationSheet .button {
    min-height: 44px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
  }
}

/* Stack dual-column fields into a single column on extra-small mobile screens for a superior touch typing flow */
@media (max-width: 480px) {
  #registrationSheet div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.95rem !important;
  }
}

/* Custom styling for the Join Us navbar button */
#openRegistrationButton {
  transition: all var(--transition) !important;
}

#openRegistrationButton:hover {
  background: #c3f2d7 !important; /* Rich mint green hover matching WhatsApp hover highlights */
  border-color: #a4e9c1 !important;
  color: #00331d !important;
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 6px 18px rgba(16, 139, 100, 0.22) !important;
}

#openRegistrationButton:active {
  transform: scale(0.98) !important;
}

/* Direct UPI Payment App Buttons */
.upi-app-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.upi-app-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 0 12px rgba(139, 58, 179, 0.15) !important;
  opacity: 0.95;
}

.upi-app-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Premium Unified Footer */
.premium-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.premium-footer .footer-copy {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
  font-weight: 500;
}

.premium-footer .developed-by-link {
  display: inline-block;
  background: #ffffff;
  padding: 0.7rem 1.8rem;
  border-radius: 16px;
  border: 1.5px solid #eaeaea;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.premium-footer .developed-by-link img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.premium-footer .developed-by-link:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #d1a153; /* Elegant champagne gold highlight on hover! */
  box-shadow: 0 8px 20px rgba(209, 161, 83, 0.15);
}

.premium-footer .developed-by-link:active {
  transform: translateY(0) scale(0.98);
}


