@tailwind base;
@tailwind components;
@tailwind utilities;

/* Tailwind output is loaded via /css/output.css */
/* Custom overrides and brand styles below */

:root {
  /* ── Brand Design Tokens ── */
  --gold: #C8A24A;
  --gold-light: #eac85c;
  --gold-dark: #b8922f;
  --navy: #0B1120;
  --navy-light: #1a2540;
  --brand-emerald: #009792;
  --brand-slate: #475569;
  --brand-indigo: #4f46e5;

  /* ── Z-Index Scale ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-cursor: 9998;
  --z-preloader: 9999;
}

/* Toast popup always fixed in front */
#toast {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  pointer-events: none;
  transition:
    opacity 0.2s,
    top 0.2s;
}

#toast-inner {
  pointer-events: auto;
  min-width: 220px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-size: 1rem;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #1e293b;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
}

.green-gradient {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.property-card {
  background: white;
  border-radius: 1.75rem;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(200, 162, 74, 0.1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8a24a, #e8c94a);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 30px 60px -15px rgba(200, 162, 74, 0.18),
    0 10px 30px -10px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 162, 74, 0.25);
}

.property-card:hover::after {
  width: 60%;
}

.service-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8a24a, #e8c94a);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(200, 162, 74, 0.25);
  box-shadow: 0 12px 32px -8px rgba(200, 162, 74, 0.12);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.feature-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.input-field {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.input-field:focus {
  border-color: var(--brand-gold, #c8a24a);
  background: white;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pro {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

/* -------- View Section + Smooth Transitions -------- */
.view-section {
  display: none !important;
  width: 100%;
  padding-bottom: 0;
}

.view-section.active {
  display: block !important;
}

/* Landing view uses flex layout when active */
#view-landing.active {
  display: flex !important;
  flex-direction: column;
}

.fade-in {
  animation: fadeInUp 320ms ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* -------- Modal Smooth Open/Close -------- */
#l-modal-content {
  transform: scale(0.98);
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

#l-modal:not(.hidden) #l-modal-content.modal-open {
  transform: scale(1);
  opacity: 1;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 99;
  display: grid;
  place-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ---- Notification System ---- */
.notif-bell {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.notif-bell:hover {
  transform: scale(1.1);
}

.notif-bell:active {
  transform: scale(0.95);
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: notifPop 0.3s ease;
}

.notif-badge:empty,
.notif-badge[data-count="0"] {
  display: none;
}

@keyframes notifPop {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bellRing {
  0% {
    transform: rotate(0);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-14deg);
  }

  30% {
    transform: rotate(10deg);
  }

  40% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(6deg);
  }

  60% {
    transform: rotate(-4deg);
  }

  70% {
    transform: rotate(2deg);
  }

  80% {
    transform: rotate(-1deg);
  }

  100% {
    transform: rotate(0);
  }
}

.bell-ring {
  animation: bellRing 0.8s ease;
}

/* ---- Notification Enhancements ---- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1 !important;
}

.notif-item {
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.3s;
}

/* Notification badge pulse */
@keyframes notifPulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.notif-badge[data-count]:not([data-count="0"]) {
  animation: notifPop 0.3s ease, notifPulseBadge 2s ease 0.5s infinite;
}


.notif-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  max-height: 420px;
  background: white;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15);
  z-index: 200;
  overflow: hidden;
  transform: translateY(-8px);
  opacity: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  pointer-events: none;
}

.notif-dropdown.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.notif-dropdown-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-btn.active {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
  transform: scale(1.03);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.pending-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid #ef4444;
  border-radius: 1.5rem;
  animation: pulse-red 2s infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse-red {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* ---- Navigation Enhancements ---- */
.top-bar {
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 0;
  letter-spacing: 0.04em;
}

.top-bar a {
  color: #e2e8f0;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--brand-gold, #c8a24a);
}

.main-header {
  transition:
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.main-header.header-hidden {
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-link {
  position: relative;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--brand-gold, #c8a24a);
  background: #fff7ed;
}

.nav-link.active {
  color: var(--brand-gold, #c8a24a);
  background: #fff7ed;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--brand-gold, #c8a24a);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(30, 41, 59, 0.3);
}

.nav-cta:hover::before {
  opacity: 1;
}

/* Portal Dropdown */
.portal-dropdown {
  position: relative;
}

.portal-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  transition: all 0.25s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.portal-trigger:hover,
.portal-dropdown:hover .portal-trigger {
  color: var(--brand-gold, #c8a24a);
  background: #fff7ed;
}

.portal-trigger .chevron {
  font-size: 0.55rem;
  transition: transform 0.25s ease;
  color: #94a3b8;
}

.portal-dropdown:hover .portal-trigger .chevron {
  transform: rotate(180deg);
  color: var(--brand-gold, #c8a24a);
}

.portal-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 8px;
  box-shadow:
    0 20px 60px -15px rgba(0, 0, 0, 0.15),
    0 4px 20px -5px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
}

.portal-dropdown:hover .portal-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.portal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #334155;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
}

.portal-option:hover {
  background: #fff7ed;
  color: var(--brand-gold, #c8a24a);
}

.portal-option .po-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.portal-option .po-info {
  flex: 1;
}

.portal-option .po-info small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 1px;
}

.portal-option:hover .po-info small {
  color: #fb923c;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.nav-phone:hover {
  border-color: var(--brand-gold, #c8a24a);
  color: var(--brand-gold, #c8a24a);
  background: #fff7ed;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.85rem;
}

.back-btn:hover {
  color: var(--brand-gold, #c8a24a);
  border-color: var(--brand-gold, #c8a24a);
  background: #fff7ed;
  transform: translateX(-2px);
}

.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.nav-breadcrumb .bc-home {
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-breadcrumb .bc-home:hover {
  color: var(--brand-gold, #c8a24a);
}

.nav-breadcrumb span {
  color: #1e293b;
  font-weight: 800;
}

.inner-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  cursor: pointer;
}

.inner-back-btn:hover {
  color: var(--brand-gold, #c8a24a);
  border-color: var(--brand-gold, #c8a24a);
  background: #fff7ed;
}

/* ---- Advanced Animated Hamburger ---- */
.ham-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #475569;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  position: relative;
}

/* ---- Advanced Animated Hamburger ---- */
#mobile-menu-btn:hover .line-1 { transform: scaleX(1.1) translateX(-1px); }
#mobile-menu-btn:hover .line-2 { transform: scaleX(0.8) translateX(2px); }
#mobile-menu-btn:hover .line-3 { transform: scaleX(1.2) translateX(-2px); }

.ham-line {
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
}

.advanced-mobile-menu.open .menu-inner > div > * {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Kinetic Stagger for every direct child */
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(1) { transition-delay: 0.2s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(2) { transition-delay: 0.27s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(3) { transition-delay: 0.34s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(4) { transition-delay: 0.41s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(5) { transition-delay: 0.48s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(6) { transition-delay: 0.55s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(7) { transition-delay: 0.62s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(8) { transition-delay: 0.69s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(9) { transition-delay: 0.76s !important; }
.advanced-mobile-menu.open .menu-inner > div > *:nth-child(10) { transition-delay: 0.83s !important; }

#mobile-menu-btn[aria-expanded="true"] .line-1 {
  transform: translateY(8px) rotate(45deg) !important;
}

#mobile-menu-btn[aria-expanded="true"] .line-2 {
  opacity: 0 !important;
}

#mobile-menu-btn[aria-expanded="true"] .line-3 {
  transform: translateY(-8px) rotate(-45deg) !important;
}

/* ---- Advanced Mobile Menu (Right Slide-in) ---- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.advanced-mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 320px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 2005 !important;
  /* Cinematic Clip-Path Reveal */
  clip-path: circle(0% at calc(100% - 30px) 30px);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1) !important;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}

.advanced-mobile-menu.open {
  clip-path: circle(150% at calc(100% - 30px) 30px);
}

.advanced-mobile-menu .menu-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
  backdrop-filter: blur(20px);
}

.advanced-mobile-menu .menu-inner::-webkit-scrollbar {
  display: none;
}

.mobile-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  background: transparent;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.mobile-nav-link:active {
  background: #f8fafc !important;
  transform: scale(0.98);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: #fff7ed;
  color: var(--brand-gold, #c8a24a);
}

.mobile-nav-link i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--brand-gold, #c8a24a);
  border: 1px solid #f1f5f9;
}

.mobile-nav-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 4px 0;
}

/* ---- Property Modal Styles ---- */
.facility-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.facility-tag i {
  color: var(--brand-gold, #c8a24a);
  font-size: 0.7rem;
}

.detail-section {
  margin-bottom: 1.25rem;
}

.detail-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}

#property-modal-content {
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity 280ms ease;
}

@media (min-width: 640px) {
  #property-modal-content {
    transform: scale(0.95) translateY(20px);
  }
}

#property-modal-content.pm-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Reduce Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Dark Mode ---- */
body.dark-mode {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .main-header {
  background: rgba(15, 23, 42, 0.98) !important;
  border-color: #1e293b !important;
}

body.dark-mode .main-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .property-card,
body.dark-mode .service-card,
body.dark-mode .feature-card {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .property-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .service-card h4,
body.dark-mode .feature-card h4,
body.dark-mode .property-card h3 {
  color: #f1f5f9 !important;
}

body.dark-mode .service-card p,
body.dark-mode .feature-card p {
  color: #94a3b8;
}

body.dark-mode section.bg-white,
body.dark-mode section.bg-gray-50,
body.dark-mode section.bg-gray-100 {
  background: #0f172a;
}

body.dark-mode .bg-white {
  background: #1e293b;
}

body.dark-mode .bg-slate-50,
body.dark-mode .bg-slate-100 {
  background: #1e293b;
}

body.dark-mode .input-field {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .input-field:focus {
  background: #0f172a;
}

body.dark-mode .nav-link {
  color: #94a3b8;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
  background: rgba(200, 162, 74, 0.1);
}

body.dark-mode .portal-menu {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .portal-option:hover {
  background: rgba(200, 162, 74, 0.1);
}

body.dark-mode .portal-option .po-info small {
  color: #64748b;
}

body.dark-mode .mobile-menu-panel {
  background: #0f172a;
}

body.dark-mode .mobile-nav-link {
  color: #e2e8f0;
}

body.dark-mode .mobile-nav-link:hover {
  background: rgba(200, 162, 74, 0.1);
}

body.dark-mode .text-slate-900,
body.dark-mode .text-slate-800 {
  color: #f1f5f9;
}

body.dark-mode .border-slate-100,
body.dark-mode .border-slate-200 {
  border-color: #334155;
}

body.dark-mode .notif-dropdown {
  background: #1e293b;
  border-color: #334155;
}

.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.dark-toggle:hover {
  background: #fff7ed;
  border-color: var(--brand-gold, #c8a24a);
  transform: rotate(20deg);
}

body.dark-mode .dark-toggle {
  background: #334155;
  border-color: #475569;
  color: #fbbf24;
}

/* ---- Testimonials Carousel ---- */
.testimonials-track {
  display: flex;
  gap: 24px;
  animation: testimonialScroll 30s linear infinite;
  width: max-content;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  min-width: 340px;
  max-width: 380px;
  padding: 2.5rem;
  border-radius: 2rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
  background: #ffffff;
  border-color: rgba(200, 162, 74, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

body.dark-mode .testimonial-card {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

/* ---- FAQ Accordion ---- */
/* Core transition overrides to work with new Tailwind HTML structure */
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-item.open .faq-answer {
  max-height: 300px !important;
  opacity: 1 !important;
}
.faq-item.open .faq-question {
  background-color: transparent;
}

/* ---- Occupancy Donut ---- */
.occ-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.occ-donut-text {
  position: absolute;
  font-weight: 900;
  font-size: 1.5rem;
  color: #1e293b;
}

body.dark-mode .occ-donut-text {
  color: #f1f5f9;
}

/* ---- Countdown Timer ---- */
.countdown-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-unit {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  min-width: 46px;
}

.countdown-unit .cd-val {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.countdown-unit .cd-label {
  font-size: 7px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-top: 2px;
  opacity: 0.6;
}

.countdown-sep {
  font-weight: 900;
  color: #c8a24a;
  font-size: 1.2rem;
}

/* ---- Search / Filter Bar ---- */
.search-filter-bar {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

body.dark-mode .search-filter-bar {
  background: #1e293b;
  border-color: #334155;
}

.search-filter-bar input,
.search-filter-bar select {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
}

body.dark-mode .search-filter-bar input,
body.dark-mode .search-filter-bar select {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.search-filter-bar input:focus,
.search-filter-bar select:focus {
  border-color: #c8a24a;
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.1);
}

.search-filter-bar .filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.search-filter-bar .filter-badge:hover,
.search-filter-bar .filter-badge.active {
  background: #c8a24a;
  color: white;
  border-color: #c8a24a;
}

/* ---- Stats Counter Animation ---- */
.stats-counter {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 2rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #c8a24a;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: white;
  opacity: 0.7;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════
       ADMIN DASHBOARD v6 — Dark Cosmic Redesign
       ═══════════════════════════════════════════ */
:root {
  --navy: #06090f;
  --navy-light: #0c1220;
  --navy-mid: #121a2d;
  --navy-card: #151e33;
  --gold: #e5b84c;
  --gold-light: #f2d06b;
  --gold-dim: #b89230;
  --gold-glow: rgba(229, 184, 76, 0.3);
  --gold-glow-strong: rgba(229, 184, 76, 0.55);
  --slate-bg: #0a0f1c;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
  --drawer-w: 560px;
  --admin-accent: linear-gradient(135deg, #e5b84c, #f2d06b);
  --admin-accent-2: linear-gradient(135deg, #818cf8, #a78bfa);
  --admin-accent-3: linear-gradient(135deg, #34d399, #6ee7b7);
  --admin-radius: 18px;
  --admin-radius-sm: 12px;
  --admin-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.15);
  --admin-shadow-hover:
    0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(229, 184, 76, 0.2);
  --admin-card-bg: rgba(21, 30, 51, 0.85);
  --admin-card-bg-solid: #151e33;
  --admin-border: rgba(255, 255, 255, 0.06);
  --admin-border-hover: rgba(229, 184, 76, 0.25);
  --admin-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --admin-glass: rgba(21, 30, 51, 0.65);
  --admin-glass-border: rgba(255, 255, 255, 0.08);
  --admin-text: #e8ecf4;
  --admin-text-dim: #7b8ba6;
  --admin-text-bright: #ffffff;
  --admin-success: #34d399;
  --admin-warning: #fbbf24;
  --admin-danger: #f43f5e;
  --admin-info: #60a5fa;
}

/* ── Animated background for admin area ── */
#view-landlord {
  background: var(--slate-bg);
  position: relative;
  color: var(--admin-text);
}

#view-landlord::before {
  content: "";
  position: fixed;
  top: -40%;
  right: -25%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(229, 184, 76, 0.06) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: adminAmbient1 18s ease-in-out infinite;
  z-index: 0;
}

#view-landlord::after {
  content: "";
  position: fixed;
  bottom: -35%;
  left: -15%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.05) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: adminAmbient2 22s ease-in-out infinite;
  z-index: 0;
}

@keyframes adminAmbient1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 35px) scale(1.08);
  }
}

@keyframes adminAmbient2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(35px, -50px) scale(1.12);
  }
}

/* ── Admin Sidebar ── */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(
    180deg,
    #06090f 0%,
    #0a1020 35%,
    #0e1528 70%,
    #0a0e1a 100%
  );
  z-index: 80;
  display: flex;
  flex-direction: column;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-right: 1px solid rgba(229, 184, 76, 0.08);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.4);
}

.admin-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(
    ellipse at 40% -25%,
    rgba(229, 184, 76, 0.1) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.admin-sidebar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(6, 9, 15, 0.95), transparent);
  pointer-events: none;
  z-index: 1;
}

.admin-sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
}

.admin-sidebar .sidebar-logo {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.admin-sidebar .sidebar-logo img,
.admin-sidebar .sidebar-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(229, 184, 76, 0.12);
}

.admin-sidebar .sidebar-logo:hover img,
.admin-sidebar .sidebar-logo:hover .logo-icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow:
    0 6px 20px rgba(229, 184, 76, 0.25),
    0 0 0 1px rgba(229, 184, 76, 0.3);
}

.admin-sidebar .sidebar-logo .logo-text {
  font-size: 16px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition:
    opacity 0.3s,
    transform 0.3s;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-sidebar.collapsed .logo-text,
.admin-sidebar.collapsed .nav-label,
.admin-sidebar.collapsed .nav-section-title {
  opacity: 0;
  width: 0;
  transform: translateX(-10px);
}

.admin-sidebar .sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 184, 76, 0.12) transparent;
  position: relative;
  z-index: 2;
}

.admin-sidebar .sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

.admin-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(229, 184, 76, 0.18);
  border-radius: 4px;
}

.nav-section-title {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(229, 184, 76, 0.3);
  padding: 18px 12px 8px;
  white-space: nowrap;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 700;
  transition: var(--admin-transition);
  white-space: nowrap;
  position: relative;
  margin-bottom: 2px;
  overflow: hidden;
}

.sidebar-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(
    135deg,
    rgba(229, 184, 76, 0.1),
    rgba(229, 184, 76, 0.03)
  );
}

.sidebar-link:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(3px);
}

.sidebar-link:hover::before {
  opacity: 1;
}

.sidebar-link:active {
  transform: scale(0.97);
}

.sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(229, 184, 76, 0.15),
    rgba(229, 184, 76, 0.05)
  );
  color: var(--gold);
  box-shadow:
    0 0 20px rgba(229, 184, 76, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar-link.active::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--admin-accent);
  border-radius: 0 6px 6px 0;
  box-shadow:
    0 0 12px var(--gold-glow-strong),
    0 0 28px var(--gold-glow);
  animation: activePulse 2.5s ease-in-out infinite;
}

@keyframes activePulse {
  0%,
  100% {
    box-shadow:
      0 0 10px var(--gold-glow),
      0 0 20px rgba(229, 184, 76, 0.15);
  }

  50% {
    box-shadow:
      0 0 18px var(--gold-glow-strong),
      0 0 36px var(--gold-glow);
  }
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.sidebar-link.active i {
  filter: drop-shadow(0 0 6px rgba(229, 184, 76, 0.5));
}

.nav-label {
  transition:
    opacity 0.3s,
    transform 0.3s;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.sidebar-toggle {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.15);
  transition: var(--admin-transition);
  position: relative;
  z-index: 2;
}

.sidebar-toggle:hover {
  color: var(--gold);
  background: rgba(229, 184, 76, 0.06);
}

/* ── Admin Main Content ── */
.admin-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--slate-bg);
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.admin-sidebar.collapsed ~ .admin-main {
  margin-left: var(--sidebar-w-collapsed);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 15, 28, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    padding 0.3s,
    background 0.3s;
}

/* ── Admin Sub-Views ── */
.admin-subview {
  display: none;
  padding: 28px 28px 80px;
}

.admin-subview.active {
  display: block;
  animation: fadeSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

/* ── Stat Cards — Dark Glassmorphism ── */
.stat-card-v2 {
  background: var(--admin-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: var(--admin-transition);
  cursor: default;
}

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

.stat-card-v2::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-radius: 0 var(--admin-radius) 0 60px;
  opacity: 0.08;
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.stat-card-v2:hover::before {
  opacity: 0.15;
  transform: scale(1.1);
}

.stat-card-v2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--admin-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-v2:hover::after {
  transform: scaleX(1);
}

.stat-card-v2:nth-child(1)::before {
  background: #34d399;
}

.stat-card-v2:nth-child(2)::before {
  background: #009792;
}

.stat-card-v2:nth-child(3)::before {
  background: #eab308;
}

.stat-card-v2:nth-child(4)::before {
  background: #f43f5e;
}

.stat-card-v2:nth-child(5)::before {
  background: #f59e0b;
}

.stat-card-v2 .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.stat-card-v2 .stat-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: inherit;
  opacity: 0.2;
  filter: blur(10px);
  transition: opacity 0.3s;
}

.stat-card-v2:hover .stat-icon {
  transform: scale(1.12) rotate(-3deg);
}

.stat-card-v2:hover .stat-icon::after {
  opacity: 0.35;
}

.stat-card-v2 .stat-val {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--admin-text-bright);
  letter-spacing: -0.03em;
}

.stat-card-v2 .stat-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--admin-text-dim);
  margin-top: 6px;
}

/* ── Mini-Tile Room Cards — Dark Enhanced ── */
.room-tile {
  background: var(--admin-card-bg);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: var(--admin-transition);
  position: relative;
  border: 1px solid var(--admin-border);
  min-height: 105px;
  overflow: hidden;
}

.room-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    transparent 60%,
    rgba(229, 184, 76, 0.06)
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.room-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--admin-shadow-hover);
  border-color: var(--admin-border-hover);
}

.room-tile:hover::before {
  opacity: 1;
}

.room-tile:active {
  transform: scale(0.96);
}

.room-tile.tile-green {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(
    135deg,
    rgba(21, 30, 51, 0.9),
    rgba(52, 211, 153, 0.08)
  );
}

.room-tile.tile-amber {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(
    135deg,
    rgba(21, 30, 51, 0.9),
    rgba(251, 191, 36, 0.08)
  );
}

.room-tile.tile-vacant {
  border: 2px dashed rgba(255, 255, 255, 0.08);
  opacity: 0.45;
  background: rgba(21, 30, 51, 0.4);
}

.room-tile.tile-vacant:hover {
  opacity: 0.85;
  border-color: rgba(229, 184, 76, 0.25);
}

.room-tile.tile-booked {
  border-color: rgba(96, 165, 250, 0.4);
  background: linear-gradient(
    135deg,
    rgba(21, 30, 51, 0.9),
    rgba(96, 165, 250, 0.08)
  );
}

.room-tile .tile-room-no {
  font-size: 26px;
  font-weight: 900;
  color: var(--admin-text-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}

.room-tile .tile-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-text-dim);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.room-tile .tile-status {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 10px;
}

.room-tile .tile-bars {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.micro-bar {
  height: 6px;
  border-radius: 4px;
  flex: 1;
  background: #f1f5f9;
  overflow: hidden;
}

.micro-bar .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.rent-paid {
  background: linear-gradient(90deg, #34d399, #22c55e);
  width: 100%;
}

.bar-fill.rent-due {
  background: linear-gradient(90deg, #f43f5e, #ef4444);
  width: 100%;
}

.bar-fill.elec-paid {
  background: linear-gradient(90deg, #34d399, #22c55e);
  width: 100%;
}

.bar-fill.elec-due {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.room-tile .tile-complaint-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.35);
  animation: complaintDotPulse 2s infinite;
}

@keyframes complaintDotPulse {
  0%,
  100% {
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.35);
  }

  50% {
    box-shadow: 0 2px 18px rgba(244, 63, 94, 0.55);
  }
}

.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  transition:
    opacity 0.35s,
    visibility 0.35s;
}

.admin-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.admin-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: var(--drawer-w);
  background: var(--navy-light);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(229, 184, 76, 0.08);
}

.admin-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 22px 24px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #06090f 0%, #0e1528 50%, #0a0e1a 100%);
  color: white;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.drawer-header::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(229, 184, 76, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  scroll-behavior: smooth;
  background: linear-gradient(
    180deg,
    var(--navy-light) 0%,
    var(--navy-mid) 100%
  );
  color: var(--admin-text);
}

.drawer-body::-webkit-scrollbar {
  width: 4px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(229, 184, 76, 0.18);
  border-radius: 4px;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
  background: rgba(12, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.drawer-section {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--admin-transition);
  background: var(--navy-card);
}

.drawer-section:hover {
  border-color: rgba(229, 184, 76, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.drawer-section-head {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-card));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--admin-text-dim);
  transition: all 0.25s;
}

.drawer-section-head:hover {
  background: linear-gradient(
    135deg,
    var(--navy-card),
    rgba(229, 184, 76, 0.05)
  );
  color: var(--admin-text);
}

.drawer-section-head i.chevron {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-section.closed .drawer-section-body {
  display: none;
}

.drawer-section.closed .chevron {
  transform: rotate(-90deg);
}

.drawer-section-body {
  padding: 18px;
}

/* ── Kanban Board — Dark Premium ── */
.kanban-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.kanban-col {
  background: var(--admin-card-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--admin-radius);
  padding: 18px;
  min-height: 280px;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  transition: var(--admin-transition);
}

.kanban-col:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(229, 184, 76, 0.1);
}

.kanban-col-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-col-title .col-count {
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
}

.kanban-card {
  background: var(--navy-card);
  border-radius: var(--admin-radius-sm);
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  transition: var(--admin-transition);
  position: relative;
  overflow: hidden;
}

.kanban-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--admin-accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.kanban-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
  border-color: var(--admin-border-hover);
}

.kanban-card:hover::before {
  opacity: 1;
}

.kanban-card:active {
  transform: scale(0.98);
}

.kanban-card .kc-room {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--admin-text-dim);
}

.kanban-card .kc-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text);
  margin: 6px 0;
  line-height: 1.4;
}

.kanban-card .kc-date {
  font-size: 10px;
  color: var(--admin-text-dim);
}

.kanban-card .kc-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.kanban-card .kc-btn {
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--admin-transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kanban-card .kc-btn:active {
  transform: scale(0.95);
}

/* ── Billing Spreadsheet — Dark Redesigned ── */
.billing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.billing-table th {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-dim);
  padding: 12px 12px;
  text-align: left;
  border-bottom: 2px solid var(--admin-border);
  position: sticky;
  top: 0;
  background: var(--navy-card);
  z-index: 5;
  white-space: nowrap;
}

.billing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border);
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
  color: var(--admin-text);
}

.billing-table tr {
  transition: background-color 0.15s;
}

.billing-table tr:hover td {
  background: rgba(229, 184, 76, 0.04);
}

.billing-table .bill-input {
  width: 84px;
  padding: 8px 10px;
  border: 1.5px solid var(--admin-border);
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  outline: none;
  text-align: center;
  transition: var(--admin-transition);
  background: var(--navy-mid);
  color: var(--admin-text-bright);
}

.billing-table .bill-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(229, 184, 76, 0.12);
  background: rgba(229, 184, 76, 0.05);
  transform: scale(1.02);
}

.billing-table .delta-cell {
  font-weight: 900;
  color: var(--admin-text-bright);
}

.billing-table .bill-cell {
  font-weight: 900;
  color: var(--gold);
}

/* ── Mobile: Billing Card View ── */
.billing-card-mobile {
  display: none;
}

/* ── Mobile Bottom Nav Bar — Dark Glassmorphic ── */
.admin-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 75;
  background: rgba(10, 15, 28, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.admin-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.admin-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--admin-transition);
  color: var(--admin-text-dim);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.admin-bottom-nav-item i {
  font-size: 17px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-bottom-nav-item span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-bottom-nav-item.active {
  color: var(--gold);
  background: rgba(229, 184, 76, 0.1);
}

.admin-bottom-nav-item.active i {
  transform: scale(1.15) translateY(-1px);
}

.admin-bottom-nav-item.active::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--admin-accent);
  box-shadow: 0 2px 8px var(--gold-glow);
}

.admin-bottom-nav-item:active {
  transform: scale(0.9);
}

/* ── Sidebar overlay on mobile ── */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    z-index: 90;
    width: 280px;
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0 !important;
    padding-bottom: 80px;
  }

  .admin-drawer {
    max-width: 100%;
  }

  .kanban-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 85;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s,
      visibility 0.3s;
  }

  .admin-mobile-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .admin-bottom-nav {
    display: block;
  }

  .sidebar-toggle {
    display: none;
  }

  .admin-topbar {
    padding: 10px 16px;
  }

  .admin-subview {
    padding: 16px 14px 90px;
  }

  .billing-table-wrapper {
    display: none;
  }

  .billing-card-mobile {
    display: block;
  }
}

/* ── Admin card panels — dark glassmorphic ── */
.admin-subview .bg-white {
  background: var(--admin-card-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--admin-border) !important;
  transition: var(--admin-transition);
  color: var(--admin-text);
}

.admin-subview .bg-white:hover {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(229, 184, 76, 0.06);
}

body.dark-mode .admin-subview .bg-white {
  background: rgba(21, 30, 51, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ── Staggered entry animation for cards ── */
.admin-subview.active .stat-card-v2,
.admin-subview.active .room-tile {
  animation: staggerFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.admin-subview.active .stat-card-v2:nth-child(1) {
  animation-delay: 0.05s;
}

.admin-subview.active .stat-card-v2:nth-child(2) {
  animation-delay: 0.1s;
}

.admin-subview.active .stat-card-v2:nth-child(3) {
  animation-delay: 0.15s;
}

.admin-subview.active .stat-card-v2:nth-child(4) {
  animation-delay: 0.2s;
}

.admin-subview.active .stat-card-v2:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

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

/* ── Filter buttons premium ── */
.l-filt-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.l-filt-btn:hover {
  transform: translateY(-1px);
}

.l-filt-btn:active {
  transform: scale(0.96);
}

/* ══════════════════════════════════════════════
       ENHANCED RESPONSIVENESS — All Portals & Pages
       ══════════════════════════════════════════════ */

/* ── Preloader Enhancement ── */
#preloader {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

#preloader h2 {
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

body.dark-mode #preloader {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ── Scroll-to-top button ── */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #c8a24a, #e0c06a);
}

.scroll-to-top.visible {
  display: flex;
  animation: fadeInUp 320ms ease both;
}

/* ═══ ADMIN RESPONSIVE — Comprehensive Breakpoints ═══ */

/* ── Tablet landscape (769px–1200px) ── */
@media (min-width: 769px) and (max-width: 1200px) {
  .admin-topbar {
    padding: 12px 20px;
  }

  .admin-subview {
    padding: 20px 20px 80px;
  }

  .kanban-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .kanban-container > :last-child {
    grid-column: span 2;
  }

  .stat-card-v2 .stat-val {
    font-size: 24px;
  }
}

/* ── Tablet portrait & large mobile (641px–768px) ── */
@media (min-width: 641px) and (max-width: 768px) {
  #admin-tab-dashboard > .grid:first-child {
    grid-template-columns: repeat(3, 1fr);
  }

  .billing-table th {
    font-size: 9px;
    padding: 10px 8px;
  }

  .billing-table td {
    font-size: 12px;
    padding: 8px;
  }

  .billing-table .bill-input {
    width: 68px;
    font-size: 12px;
  }
}

/* ── Admin stat cards — responsive grids (≤640px) ── */
@media (max-width: 640px) {
  #admin-tab-dashboard .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #admin-tab-dashboard .grid-cols-2 > :last-child {
    grid-column: span 2;
  }

  /* Maintenance ticket input stacking */
  #admin-tab-maintenance .bg-white .flex.gap-3 {
    flex-direction: column;
  }

  #admin-tab-maintenance .bg-white .flex.gap-3 select {
    width: 100%;
  }

  #admin-tab-maintenance .bg-white .flex.gap-3 button {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  /* Notices input stacking */
  #admin-tab-notices .flex-col.md\:flex-row {
    flex-direction: column;
  }

  #admin-tab-notices .flex-col.md\:flex-row select {
    width: 100%;
  }

  /* Billing controls stacking */
  #admin-tab-billing .flex.gap-3 {
    flex-direction: column;
  }

  #admin-tab-billing .flex.gap-3 select,
  #admin-tab-billing .flex.gap-3 button {
    width: 100%;
  }
}

/* ── Small screens (≤480px) — Touch optimized ── */
@media (max-width: 480px) {
  .admin-topbar {
    padding: 8px 12px;
  }

  .admin-topbar h2 {
    font-size: 0.9rem;
  }

  .admin-subview {
    padding: 12px 10px 96px;
  }

  /* Stat cards — compact */
  .stat-card-v2 {
    padding: 14px 12px;
    border-radius: var(--admin-radius-sm);
  }

  .stat-card-v2 .stat-val {
    font-size: 20px;
  }

  .stat-card-v2 .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  .stat-card-v2 .stat-lbl {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  /* Room tiles — compact */
  .room-tile {
    padding: 8px 10px;
    min-height: 80px;
    border-radius: 10px;
  }

  .room-tile .tile-room-no {
    font-size: 18px;
  }

  .room-tile .tile-name {
    font-size: 9px;
    max-width: 65px;
  }

  .room-tile .tile-bars {
    gap: 2px;
    margin-top: 6px;
  }

  /* Room grids */
  #l-room-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px;
  }

  #l-room-grid-preview {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 3px;
  }

  /* Kanban compact */
  .kanban-card {
    padding: 10px;
  }

  .kanban-card .kc-text {
    font-size: 12px;
  }

  .kanban-col {
    padding: 12px;
    min-height: 200px;
  }

  /* Drawer compact */
  .drawer-body {
    padding: 12px;
  }

  .drawer-header {
    padding: 14px 16px;
  }

  .drawer-section-body {
    padding: 10px;
  }

  .drawer-section-body .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .drawer-section-body .grid-cols-2 {
    gap: 6px;
  }

  .drawer-footer {
    padding: 10px 12px;
    flex-direction: column;
  }

  .drawer-footer button {
    width: 100%;
    justify-content: center;
  }

  /* White card containers compact */
  .admin-subview .bg-white.rounded-\[20px\] {
    border-radius: 14px;
    padding: 14px;
  }

  /* Bottom nav tighter */
  .admin-bottom-nav {
    padding: 4px 4px;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .admin-bottom-nav-item {
    padding: 4px 6px;
  }

  .admin-bottom-nav-item i {
    font-size: 15px;
  }

  .admin-bottom-nav-item span {
    font-size: 8px;
  }
}

/* ── Ultra-small screens (≤360px) ── */
@media (max-width: 360px) {
  .admin-topbar h2 {
    font-size: 0.82rem;
  }

  .stat-card-v2 {
    padding: 10px;
  }

  .stat-card-v2 .stat-val {
    font-size: 18px;
  }

  .stat-card-v2 .stat-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
    margin-bottom: 6px;
  }

  .room-tile {
    padding: 6px 8px;
    min-height: 72px;
  }

  .room-tile .tile-room-no {
    font-size: 16px;
  }

  #l-room-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .admin-bottom-nav-item span {
    display: none;
  }

  .admin-bottom-nav-item i {
    font-size: 18px;
  }

  .admin-bottom-nav-item {
    padding: 8px 12px;
  }
}

/* ── Admin billing — horizontal scroll hint ── */
.billing-scroll-container {
  position: relative;
}

.billing-scroll-container::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(248, 250, 252, 0.9));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.billing-scroll-container.has-scroll::after {
  opacity: 1;
}

/* ── Student Portal — Responsive ── */
@media (max-width: 480px) {
  #tenant-login-form {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  #tenant-login-form .bg-white {
    padding: 20px;
    border-radius: 1.5rem;
  }

  #tenant-login-form h2 {
    font-size: 1.6rem;
  }

  #tenant-login-form .relative .w-20 {
    width: 64px;
    height: 64px;
  }

  #tenant-dash {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Tenant dashboard cards — mobile */
@media (max-width: 640px) {
  #tenant-dash .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  #tenant-dash .stat-card-v2 {
    padding: 12px;
  }
}

/* ── Admin Login — Responsive ── */
@media (max-width: 480px) {
  #view-admin-login > div {
    padding: 48px 16px;
  }

  #view-admin-login .bg-white {
    padding: 28px 20px;
    border-radius: 2rem;
  }

  #view-admin-login h2 {
    font-size: 2.5rem;
  }

  #view-admin-login .w-28 {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
  }

  #view-admin-login .w-28 i {
    font-size: 2.5rem;
  }
}

/* ── Landing page — Mobile polish ── */
@media (max-width: 480px) {
  .service-card {
    padding: 1.25rem;
    border-radius: 0.875rem;
  }

  .service-card i {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .service-card h4 {
    font-size: 0.875rem !important;
    margin-bottom: 0.375rem !important;
  }

  .service-card p {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .feature-card {
    border-radius: 1rem;
  }

  .testimonial-card {
    min-width: 280px;
    padding: 1.25rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
  }

  .faq-answer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .faq-item.open .faq-answer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 1rem;
  }

  .search-filter-bar {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    flex-direction: column;
  }

  .search-filter-bar input,
  .search-filter-bar select {
    min-width: 100%;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 16px;
    font-size: 26px;
  }

  .scroll-to-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

/* ── Stat counter — smaller screens ── */
@media (max-width: 480px) {
  .stats-counter {
    gap: 0.5rem;
  }

  .stat-item {
    padding: 0.75rem 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }
}

/* ── Touch target improvements (all mobile) ── */
@media (hover: none) and (pointer: coarse) {
  .sidebar-link {
    padding: 12px 14px;
    min-height: 44px;
  }

  .portal-option {
    padding: 14px 16px;
    min-height: 48px;
  }

  .mobile-nav-link {
    min-height: 48px;
  }

  .back-btn,
  .dark-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .inner-back-btn {
    padding: 12px 24px;
    min-height: 44px;
  }

  .tab-btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .l-filt-btn {
    min-height: 40px;
    padding: 8px 14px;
  }

  .kc-btn {
    min-height: 36px;
    padding: 6px 14px;
  }
}

/* ── Enhanced card hover on desktop ── */
@media (hover: hover) {
  .stat-card-v2 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .stat-card-v2:hover {
    transform: translateY(-5px);
    box-shadow:
      0 16px 40px rgba(212, 168, 67, 0.1),
      0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 168, 67, 0.4);
  }

  .stat-card-v2:hover::before {
    opacity: 0.1;
  }

  .room-tile:hover {
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.08),
      0 0 0 1px rgba(212, 168, 67, 0.15);
  }
}

/* ── Better dark mode for admin portals ── */
body.dark-mode #view-landlord {
  background: #0b1120;
}

body.dark-mode #view-landlord::before,
body.dark-mode #view-landlord::after {
  opacity: 0.6;
}

body.dark-mode .admin-main {
  background: #0b1120;
}

body.dark-mode .stat-card-v2 {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.6);
  backdrop-filter: blur(12px);
}

body.dark-mode .stat-card-v2 .stat-val {
  color: #f1f5f9;
}

body.dark-mode .admin-topbar {
  background: rgba(11, 17, 32, 0.82);
  border-color: rgba(51, 65, 85, 0.5);
  backdrop-filter: blur(24px);
}

body.dark-mode .billing-table th {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

body.dark-mode .billing-table td {
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .billing-table tr:hover td {
  background: rgba(212, 168, 67, 0.04);
}

body.dark-mode .billing-table .bill-input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

body.dark-mode .kanban-col {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(8px);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .kanban-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .kanban-card .kc-text {
  color: #e2e8f0;
}

body.dark-mode .room-tile {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(51, 65, 85, 0.5);
}

body.dark-mode .room-tile .tile-room-no {
  color: #f1f5f9;
}

body.dark-mode .admin-drawer {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.3);
}

body.dark-mode .drawer-body {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

body.dark-mode .drawer-section {
  border-color: rgba(51, 65, 85, 0.5);
  background: #1e293b;
}

body.dark-mode .drawer-section-head {
  background: linear-gradient(135deg, #1e293b, #253347);
  color: #94a3b8;
}

body.dark-mode .drawer-section-body {
  background: #0f172a;
}

body.dark-mode .drawer-footer {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(51, 65, 85, 0.5);
  backdrop-filter: blur(12px);
}

body.dark-mode .admin-bottom-nav {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(51, 65, 85, 0.4);
}

body.dark-mode .admin-bottom-nav-item.active {
  background: rgba(212, 168, 67, 0.12);
}

body.dark-mode .scroll-to-top {
  background: linear-gradient(135deg, #d4a843, #eac85c);
  color: #080d1a;
}

/* ══════════════════════════════════════════════════════════
       PREMIUM UI/UX ENHANCEMENTS v2
       Glassmorphism, Micro-animations, Shimmer effects
    ══════════════════════════════════════════════════════════ */

/* ── Enhanced Admin Sidebar ── */
.admin-sidebar {
  background: linear-gradient(
    180deg,
    #040711 0%,
    #080e1e 25%,
    #0c1426 60%,
    #060a14 100%
  ) !important;
  border-right: 1px solid rgba(212, 168, 67, 0.06) !important;
  box-shadow:
    4px 0 40px rgba(0, 0, 0, 0.5),
    inset -1px 0 0 rgba(212, 168, 67, 0.04) !important;
}

.admin-sidebar::before {
  background: radial-gradient(
    ellipse at 30% -30%,
    rgba(212, 168, 67, 0.12) 0%,
    transparent 55%
  ) !important;
}

/* Sidebar link glow on hover */
.sidebar-link {
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar-link:hover {
  background: rgba(212, 168, 67, 0.06) !important;
  transform: translateX(4px);
}

.sidebar-link:hover i {
  text-shadow: 0 0 12px rgba(212, 168, 67, 0.4);
}

.sidebar-link.active {
  background: rgba(212, 168, 67, 0.1) !important;
  border-left: 3px solid #d4a843 !important;
}

.sidebar-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(212, 168, 67, 0.3),
    transparent
  );
  border-radius: 3px;
}

/* ── Enhanced Admin Topbar ── */
.admin-topbar {
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(212, 168, 67, 0.06) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ── Premium Stat Cards V2 ── */
.stat-card-v2 {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-card-v2:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 168, 67, 0.1) !important;
}

/* Shimmer effect on stat cards */
.stat-card-v2::before {
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.03) 28%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.03) 42%,
    transparent 50%
  ) !important;
  background-size: 250% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.stat-card-v2 .stat-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-card-v2:hover .stat-icon {
  transform: scale(1.15) rotate(5deg) !important;
}

.stat-card-v2 .stat-val {
  background: linear-gradient(
    135deg,
    var(--admin-text-bright, #fff),
    rgba(212, 168, 67, 0.8)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Animated Admin Subview Transitions ── */
.admin-subview {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.admin-subview.active {
  animation: subviewFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes subviewFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

/* ── Premium Card Hover Effects ── */
.bg-white.rounded-\[20px\] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-white.rounded-\[20px\]:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ── Room Grid Card Enhancements ── */
.room-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.room-card:hover {
  transform: translateY(-3px) scale(1.05);
  z-index: 2;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

/* ── Enhanced Kanban Board ── */
.kanban-col {
  transition: all 0.3s ease;
}

.kanban-col:hover {
  transform: translateY(-2px);
}

.kanban-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.kanban-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* ── Premium Booking & HK Stat Cards ── */
.bg-amber-50.rounded-xl.p-4,
.bg-emerald-50.rounded-xl.p-4,
.bg-blue-50.rounded-xl.p-4,
.bg-rose-50.rounded-xl.p-4,
.bg-slate-50.rounded-xl.p-4 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bg-amber-50.rounded-xl.p-4:hover,
.bg-emerald-50.rounded-xl.p-4:hover,
.bg-blue-50.rounded-xl.p-4:hover,
.bg-rose-50.rounded-xl.p-4:hover,
.bg-slate-50.rounded-xl.p-4:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ── Enhanced Notification Bell ── */
.notif-bell .notif-badge[data-count]:not([data-count="0"]) {
  animation: bellPulse 2s ease-in-out infinite;
}

@keyframes bellPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* ── Enhanced Toast ── */
#toast:not(.hidden) {
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

#toast-inner {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  border: 1px solid rgba(212, 168, 67, 0.15);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

/* ══════════════════════════════════════════════════════════
       TENANT PORTAL PREMIUM ENHANCEMENTS
    ══════════════════════════════════════════════════════════ */

/* Animated gradient background for tenant login */
#view-tenant {
  position: relative;
}

#tenant-login-form {
  position: relative;
}

#tenant-login-form::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(0, 151, 146, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(200, 162, 74, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(99, 102, 241, 0.02) 0%,
      transparent 50%
    );
  animation: tenantBgFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes tenantBgFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-20px, 15px) rotate(1deg);
  }

  66% {
    transform: translate(15px, -10px) rotate(-0.5deg);
  }
}

/* Premium login card */
#tenant-login-form > div:nth-child(2) {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#tenant-login-form > div:nth-child(2):hover {
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(200, 162, 74, 0.06) !important;
  transform: translateY(-2px);
}

/* Enhanced input fields */
.input-field {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1.5px solid #e2e8f0 !important;
}

.input-field:focus {
  border-color: #c8a24a !important;
  box-shadow:
    0 0 0 4px rgba(200, 162, 74, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-1px);
}

/* Animated fingerprint icon */
#tenant-login-form .fa-fingerprint {
  animation: fingerprintPulse 3s ease-in-out infinite;
}

@keyframes fingerprintPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* ── Tenant Dashboard Premium Styles ── */
#tenant-dash {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

#tenant-dash .stat-card-v2 {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 250, 252, 0.95)
  ) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

#tenant-dash .stat-card-v2:hover {
  background: white !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08) !important;
}

#tenant-dash .stat-card-v2 .stat-val {
  background: linear-gradient(135deg, #1e293b, #475569) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ── Premium Skeleton Loading ── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    110deg,
    #f0f0f0 8%,
    #e8e8e8 18%,
    #f0f0f0 33%
  ) !important;
  background-size: 200% 100%;
  animation: skeletonShine 1.5s linear infinite !important;
}

@keyframes skeletonShine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── Enhanced Billing Table ── */
.billing-table th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px !important;
}

.billing-table tr {
  transition: background-color 0.15s ease;
}

.billing-table tbody tr:hover {
  background: rgba(200, 162, 74, 0.04) !important;
  transform: scale(1.001);
}

/* ── Premium Button Enhancements ── */
button,
[type="button"] {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-gradient-to-r:hover {
  filter: brightness(1.05);
}

.bg-gradient-to-r:active {
  transform: scale(0.97);
}

/* ── Scroll Reveal Animation ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Enhanced Admin Bottom Nav ── */
.admin-bottom-nav {
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}

.admin-bottom-nav-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-bottom-nav-item:active {
  transform: scale(0.9);
}

.admin-bottom-nav-item.active i {
  animation: navIconBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes navIconBounce {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* ── Glassmorphism Overlays ── */
.drawer-body {
  backdrop-filter: blur(8px);
}

/* ── Enhanced Filter Pills ── */
.l-filt-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.l-filt-btn:hover {
  background: rgba(212, 168, 67, 0.08) !important;
}

.l-filt-btn.bg-slate-900 {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── Text Selection ── */
::selection {
  background: rgba(200, 162, 74, 0.25);
  color: #1e293b;
}

::-moz-selection {
  background: rgba(200, 162, 74, 0.25);
  color: #1e293b;
}

/* ── Enhanced Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 162, 74, 0.2);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 162, 74, 0.4);
}

/* ── Pulse Animation for Live Indicators ── */
@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 151, 146, 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(0, 151, 146, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 151, 146, 0);
  }
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: #009792;
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

/* ── Count Up Animation ── */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.count-animate {
  animation: countUp 0.5s ease-out;
}

/* ── Property Card Premium ── */
.property-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.property-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12) !important;
}

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

/* ── Gradient Text ── */
.gradient-text-gold {
  background: linear-gradient(135deg, #c8a24a, #eac85c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Focus Ring ── */
*:focus-visible {
  outline: 2px solid rgba(200, 162, 74, 0.5);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════
       COMPREHENSIVE DARK MODE v2
       Full coverage for ALL pages & components
       Depth system: #060a14 → #0a1120 → #0f172a → #1a2332 → #1e293b → #253347
    ══════════════════════════════════════════════════════════ */

/* ── Base Dark Mode ── */
body.dark-mode {
  background-color: #0a1120 !important;
  color: #cbd5e1;
}

body.dark-mode ::selection {
  background: rgba(212, 168, 67, 0.3);
  color: #f1f5f9;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #0a1120;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 67, 0.15);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 168, 67, 0.3);
}

/* ══════════════════════════════════════════
       TENANT PORTAL — DARK MODE
    ══════════════════════════════════════════ */

/* Tenant login page background */
body.dark-mode #view-tenant {
  background: linear-gradient(180deg, #060a14 0%, #0a1120 50%, #0f172a 100%);
}

body.dark-mode #tenant-login-form::before {
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(0, 151, 146, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(200, 162, 74, 0.04) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(99, 102, 241, 0.03) 0%,
      transparent 50%
    ) !important;
}

/* Tenant header text */
body.dark-mode #tenant-login-form h2 {
  color: #f1f5f9 !important;
}

body.dark-mode #tenant-login-form p {
  color: #64748b !important;
}

/* Login card */
body.dark-mode #tenant-login-form > div:nth-child(2) {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode #tenant-login-form > div:nth-child(2):hover {
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 162, 74, 0.08) !important;
}

/* Info banner */
body.dark-mode #tenant-login-form .bg-gradient-to-r.from-emerald-50,
body.dark-mode #tenant-login-form [class*="bg-emerald-50"],
body.dark-mode #tenant-login-form [class*="from-emerald-50"] {
  background: rgba(0, 151, 146, 0.08) !important;
  border-color: rgba(0, 151, 146, 0.15) !important;
}

body.dark-mode #tenant-login-form [class*="bg-emerald-50"] p,
body.dark-mode #tenant-login-form [class*="from-emerald-50"] p {
  color: #6ee7b7 !important;
}

/* Labels */
body.dark-mode #tenant-login-form label {
  color: rgba(148, 163, 184, 0.8) !important;
}

body.dark-mode #tenant-login-form label [class*="bg-amber-50"] {
  background: rgba(245, 158, 11, 0.12) !important;
}

body.dark-mode #tenant-login-form label [class*="bg-blue-50"] {
  background: rgba(59, 130, 246, 0.12) !important;
}

body.dark-mode #tenant-login-form label [class*="bg-violet-50"] {
  background: rgba(139, 92, 246, 0.12) !important;
}

/* Input fields */
body.dark-mode #tenant-login-form .input-field {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

body.dark-mode #tenant-login-form .input-field:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(200, 162, 74, 0.4) !important;
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.08) !important;
}

body.dark-mode #tenant-login-form .input-field::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

/* Password toggle button */
body.dark-mode #tenant-login-form button[onclick*="toggleTenantPass"] {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #64748b !important;
}

body.dark-mode #tenant-login-form button[onclick*="toggleTenantPass"]:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

/* Submit button */
body.dark-mode #tenant-login-form .bg-gradient-to-r.from-emerald-500,
body.dark-mode #tenant-login-form [class*="from-emerald-500"] {
  box-shadow: 0 8px 32px rgba(0, 151, 146, 0.2) !important;
}

/* Help links */
body.dark-mode #tenant-login-form [class*="from-slate-50"],
body.dark-mode #tenant-login-form a[class*="bg-gradient-to-r"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
}

body.dark-mode #tenant-login-form [class*="from-slate-50"]:hover,
body.dark-mode #tenant-login-form a[class*="bg-gradient-to-r"]:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

/* Trust badges */
body.dark-mode #tenant-login-form > div:last-of-type > div {
  color: rgba(148, 163, 184, 0.3) !important;
}

body.dark-mode #tenant-login-form > div:last-of-type [class*="bg-slate-100"] {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Back button */
body.dark-mode .inner-back-btn {
  color: #64748b !important;
}

body.dark-mode .inner-back-btn:hover {
  color: #94a3b8 !important;
}

/* ── Tenant Dashboard ── */
body.dark-mode #tenant-dash {
  color: #e2e8f0;
}

body.dark-mode #tenant-dash .stat-card-v2 {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.5) !important;
  backdrop-filter: blur(12px);
}

body.dark-mode #tenant-dash .stat-card-v2:hover {
  background: rgba(26, 35, 50, 0.9) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(212, 168, 67, 0.08) !important;
}

body.dark-mode #tenant-dash .stat-card-v2 .stat-val {
  background: linear-gradient(
    135deg,
    #f1f5f9,
    rgba(212, 168, 67, 0.8)
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.dark-mode #tenant-dash .stat-card-v2 .stat-lbl {
  color: #64748b !important;
}

body.dark-mode #tenant-dash h3,
body.dark-mode #tenant-dash h4 {
  color: #f1f5f9 !important;
}

body.dark-mode #tenant-dash p {
  color: #94a3b8;
}

/* Tenant dash cards/sections */
body.dark-mode #tenant-dash > div {
  color: #e2e8f0;
}

body.dark-mode #tenant-dash .bg-white {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
}

body.dark-mode #tenant-dash [class*="bg-emerald-50"] {
  background: rgba(0, 151, 146, 0.08) !important;
  border-color: rgba(0, 151, 146, 0.15) !important;
}

body.dark-mode #tenant-dash [class*="bg-amber-50"] {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.15) !important;
}

body.dark-mode #tenant-dash [class*="bg-rose-50"] {
  background: rgba(244, 63, 94, 0.08) !important;
  border-color: rgba(244, 63, 94, 0.15) !important;
}

body.dark-mode #tenant-dash [class*="bg-blue-50"] {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

body.dark-mode #tenant-dash [class*="bg-violet-50"] {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.15) !important;
}

body.dark-mode #tenant-dash [class*="bg-slate-50"] {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
}

/* ══════════════════════════════════════════
       ADMIN PORTAL — DARK MODE COMPLETE
    ══════════════════════════════════════════ */

/* Colored stat mini-cards across ALL admin subviews */
body.dark-mode .admin-subview .bg-amber-50 {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.15) !important;
}

body.dark-mode .admin-subview .bg-amber-50 p:first-child {
  color: #fbbf24 !important;
}

body.dark-mode .admin-subview .bg-amber-50 p:last-child {
  color: rgba(251, 191, 36, 0.6) !important;
}

body.dark-mode .admin-subview .bg-emerald-50 {
  background: rgba(0, 151, 146, 0.08) !important;
  border-color: rgba(0, 151, 146, 0.15) !important;
}

body.dark-mode .admin-subview .bg-emerald-50 p:first-child {
  color: #34d399 !important;
}

body.dark-mode .admin-subview .bg-emerald-50 p:last-child {
  color: rgba(52, 211, 153, 0.6) !important;
}

body.dark-mode .admin-subview .bg-blue-50 {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

body.dark-mode .admin-subview .bg-blue-50 p:first-child {
  color: #60a5fa !important;
}

body.dark-mode .admin-subview .bg-blue-50 p:last-child {
  color: rgba(96, 165, 250, 0.6) !important;
}

body.dark-mode .admin-subview .bg-rose-50 {
  background: rgba(244, 63, 94, 0.08) !important;
  border-color: rgba(244, 63, 94, 0.15) !important;
}

body.dark-mode .admin-subview .bg-rose-50 p:first-child {
  color: #fb7185 !important;
}

body.dark-mode .admin-subview .bg-rose-50 p:last-child {
  color: rgba(251, 113, 133, 0.6) !important;
}

body.dark-mode .admin-subview .bg-slate-50 {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
}

body.dark-mode .admin-subview .bg-slate-50 p:first-child {
  color: #94a3b8 !important;
}

body.dark-mode .admin-subview .bg-slate-50 p:last-child {
  color: rgba(148, 163, 184, 0.6) !important;
}

body.dark-mode .admin-subview .bg-violet-50 {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.15) !important;
}

body.dark-mode .admin-subview .bg-violet-50 p:first-child {
  color: #a78bfa !important;
}

body.dark-mode .admin-subview .bg-violet-50 p:last-child {
  color: rgba(167, 139, 250, 0.6) !important;
}

/* ── Admin Cards (bg-white with rounded-[20px]) ── */
body.dark-mode .admin-subview .bg-white {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.35) !important;
  backdrop-filter: blur(8px);
}

body.dark-mode .admin-subview .bg-white:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .admin-subview .bg-white h3,
body.dark-mode .admin-subview .bg-white h4 {
  color: #f1f5f9 !important;
}

body.dark-mode .admin-subview .bg-white p {
  color: #94a3b8;
}

/* ── Admin Form Areas (colored backgrounds) ── */
body.dark-mode #new-booking-form {
  background: rgba(59, 130, 246, 0.06) !important;
  border-color: rgba(59, 130, 246, 0.12) !important;
}

body.dark-mode #new-booking-form h4 {
  color: #60a5fa !important;
}

body.dark-mode #new-booking-form input,
body.dark-mode #new-booking-form select,
body.dark-mode #new-booking-form textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
  color: #e2e8f0 !important;
}

body.dark-mode #new-booking-form input:focus,
body.dark-mode #new-booking-form select:focus,
body.dark-mode #new-booking-form textarea:focus {
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08) !important;
}

body.dark-mode #new-hk-form {
  background: rgba(0, 151, 146, 0.06) !important;
  border-color: rgba(0, 151, 146, 0.12) !important;
}

body.dark-mode #new-hk-form h4 {
  color: #34d399 !important;
}

body.dark-mode #new-hk-form input,
body.dark-mode #new-hk-form select,
body.dark-mode #new-hk-form textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(0, 151, 146, 0.15) !important;
  color: #e2e8f0 !important;
}

body.dark-mode #new-hk-form input:focus,
body.dark-mode #new-hk-form select:focus,
body.dark-mode #new-hk-form textarea:focus {
  border-color: rgba(0, 151, 146, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(0, 151, 146, 0.08) !important;
}

body.dark-mode #new-agreement-form {
  background: rgba(139, 92, 246, 0.06) !important;
  border-color: rgba(139, 92, 246, 0.12) !important;
}

body.dark-mode #new-agreement-form h4 {
  color: #a78bfa !important;
}

body.dark-mode #new-agreement-form input,
body.dark-mode #new-agreement-form select,
body.dark-mode #new-agreement-form textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(139, 92, 246, 0.15) !important;
  color: #e2e8f0 !important;
}

body.dark-mode #new-agreement-form input:focus,
body.dark-mode #new-agreement-form select:focus,
body.dark-mode #new-agreement-form textarea:focus {
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08) !important;
}

/* ── Admin Filter Bar & Inputs ── */
body.dark-mode .admin-subview select,
body.dark-mode .admin-subview input[type="text"],
body.dark-mode .admin-subview input[type="number"],
body.dark-mode .admin-subview input[type="email"],
body.dark-mode .admin-subview input[type="date"],
body.dark-mode .admin-subview input[type="month"] {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.5) !important;
  color: #e2e8f0 !important;
}

body.dark-mode .admin-subview select:focus,
body.dark-mode .admin-subview input:focus {
  border-color: rgba(212, 168, 67, 0.3) !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.06) !important;
}

/* ── Billing Table Deep Dark ── */
body.dark-mode .billing-table {
  border-color: rgba(51, 65, 85, 0.3);
}

body.dark-mode .billing-table th {
  background: linear-gradient(180deg, #1a2332, #15202f) !important;
  color: #64748b !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .billing-table td {
  background: rgba(15, 23, 42, 0.4);
  color: #cbd5e1;
  border-color: rgba(51, 65, 85, 0.2) !important;
}

body.dark-mode .billing-table tbody tr:hover td {
  background: rgba(212, 168, 67, 0.04) !important;
}

body.dark-mode .billing-table .bill-input {
  background: rgba(10, 17, 32, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
  color: #f1f5f9 !important;
}

body.dark-mode .billing-table .bill-input:focus {
  border-color: rgba(212, 168, 67, 0.4) !important;
}

/* ── Mobile Billing Cards ── */
body.dark-mode .billing-card-mobile > div {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

/* ── Kanban Board Deep ── */
body.dark-mode .kanban-col {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
  backdrop-filter: blur(8px);
}

body.dark-mode .kanban-col-title {
  border-bottom-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .kanban-card {
  background: rgba(26, 35, 50, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .kanban-card:hover {
  background: rgba(30, 41, 59, 0.9) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .kanban-card .kc-text {
  color: #e2e8f0 !important;
}

body.dark-mode .kanban-card .kc-meta {
  color: #64748b !important;
}

/* ── Room Tiles Dark ── */
body.dark-mode .room-tile {
  background: rgba(26, 35, 50, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
}

body.dark-mode .room-tile:hover {
  background: rgba(30, 41, 59, 0.9) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .room-tile .tile-room-no {
  color: #f1f5f9 !important;
}

body.dark-mode .room-tile .tile-name {
  color: #94a3b8 !important;
}

/* ── Notice Items ── */
body.dark-mode .admin-subview .notice-item,
body.dark-mode .admin-subview [class*="bg-gradient-to-r"][class*="from-amber"],
body.dark-mode .admin-subview [class*="bg-gradient-to-r"][class*="from-rose"] {
  border-color: rgba(51, 65, 85, 0.3) !important;
}

/* ── Admin Drawer/Modal ── */
body.dark-mode .admin-drawer {
  background: linear-gradient(180deg, #0a1120, #0f172a) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .drawer-body {
  background: linear-gradient(180deg, #0a1120, #0d1526) !important;
}

body.dark-mode .drawer-section {
  background: rgba(26, 35, 50, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .drawer-section-head {
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.8),
    rgba(37, 51, 71, 0.6)
  ) !important;
  color: #64748b !important;
}

body.dark-mode .drawer-section-body {
  background: rgba(10, 17, 32, 0.6) !important;
  color: #e2e8f0 !important;
}

body.dark-mode .drawer-section-body label {
  color: #94a3b8 !important;
}

body.dark-mode .drawer-section-body input,
body.dark-mode .drawer-section-body select,
body.dark-mode .drawer-section-body textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
  color: #f1f5f9 !important;
}

body.dark-mode .drawer-section-body input:focus,
body.dark-mode .drawer-section-body select:focus {
  border-color: rgba(212, 168, 67, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.06) !important;
}

body.dark-mode .drawer-footer {
  background: rgba(10, 17, 32, 0.9) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
  backdrop-filter: blur(16px);
}

/* ── Admin Topbar Enhanced ── */
body.dark-mode .admin-topbar {
  background: rgba(6, 10, 20, 0.85) !important;
  border-color: rgba(51, 65, 85, 0.2) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .admin-topbar h2 {
  color: #f1f5f9 !important;
}

/* ── Filter Buttons ── */
body.dark-mode .l-filt-btn {
  color: #64748b !important;
}

body.dark-mode .l-filt-btn:hover {
  background: rgba(212, 168, 67, 0.06) !important;
  color: #94a3b8 !important;
}

body.dark-mode .l-filt-btn.bg-slate-900 {
  background: rgba(212, 168, 67, 0.15) !important;
  color: #fbbf24 !important;
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.1);
}

body.dark-mode .l-filt-btn ~ .l-filt-btn:not(.bg-slate-900) {
  color: #64748b;
}

/* ── Filter Container ── */
body.dark-mode .admin-subview > .flex > [class*="p-1.5"][class*="rounded-2xl"] {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

/* ── Toast Dark ── */
body.dark-mode #toast-inner {
  background: linear-gradient(135deg, #1a2332, #253347) !important;
  border-color: rgba(212, 168, 67, 0.2) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 168, 67, 0.08) !important;
  color: #f1f5f9 !important;
}

/* ── Notification Dropdown ── */
body.dark-mode .notif-dropdown {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .notif-dropdown p {
  color: #94a3b8;
}

/* ── Admin Bottom Nav ── */
body.dark-mode .admin-bottom-nav {
  background: rgba(6, 10, 20, 0.92) !important;
  border-color: rgba(51, 65, 85, 0.2) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
}

body.dark-mode .admin-bottom-nav-item {
  color: #475569;
}

body.dark-mode .admin-bottom-nav-item.active {
  background: rgba(212, 168, 67, 0.1) !important;
  color: #d4a843;
}

body.dark-mode .admin-bottom-nav-item span {
  color: inherit;
}

/* ── Occupancy Donut Chart ── */
body.dark-mode #occ-donut-container {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .occ-donut-text {
  color: #f1f5f9 !important;
}

/* ── Room Grid Preview ── */
body.dark-mode #admin-tab-dashboard .rounded-\[20px\] {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

/* ── Skeleton Loading Dark ── */
body.dark-mode .skeleton {
  background: linear-gradient(
    110deg,
    #1a2332 8%,
    #253347 18%,
    #1a2332 33%
  ) !important;
}

/* ── Cancel/Secondary Buttons ── */
body.dark-mode .admin-subview .bg-slate-200,
body.dark-mode .admin-subview [class*="bg-slate-200"] {
  background: rgba(51, 65, 85, 0.4) !important;
  color: #94a3b8 !important;
}

body.dark-mode .admin-subview .bg-slate-200:hover,
body.dark-mode .admin-subview [class*="bg-slate-200"]:hover {
  background: rgba(51, 65, 85, 0.6) !important;
  color: #e2e8f0 !important;
}

/* ── Search Filter Bar ── */
body.dark-mode .search-filter-bar {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .search-filter-bar input,
body.dark-mode .search-filter-bar select {
  background: rgba(10, 17, 32, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
  color: #e2e8f0 !important;
}

/* ── Landing Page Sections Dark ── */
body.dark-mode section {
  color: #e2e8f0;
}

body.dark-mode section h2,
body.dark-mode section h3 {
  color: #f1f5f9 !important;
}

body.dark-mode footer {
  background: #060a14 !important;
  color: #94a3b8;
}

body.dark-mode footer a {
  color: #94a3b8 !important;
}

body.dark-mode footer a:hover {
  color: #d4a843 !important;
}

/* ── Global Text Override ── */
body.dark-mode .text-slate-400 {
  color: #64748b !important;
}

body.dark-mode .text-slate-500 {
  color: #64748b !important;
}

body.dark-mode .text-slate-600 {
  color: #94a3b8 !important;
}

body.dark-mode .text-slate-700 {
  color: #94a3b8 !important;
}

/* ── KBD Tag ── */
body.dark-mode kbd {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.5) !important;
  color: #94a3b8 !important;
}

/* ── Premium Enhancements Dark Adjustments ── */
body.dark-mode .stat-card-v2::before {
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.01) 28%,
    rgba(255, 255, 255, 0.03) 35%,
    rgba(255, 255, 255, 0.01) 42%,
    transparent 50%
  ) !important;
}

body.dark-mode .stat-card-v2:hover {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(212, 168, 67, 0.08) !important;
}

/* ── Property Tabs Dark ── */
body.dark-mode #l-building-tabs .building-tab {
  background: rgba(26, 35, 50, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
  color: #94a3b8 !important;
}

body.dark-mode #l-building-tabs .building-tab.active,
body.dark-mode #l-building-tabs .building-tab:hover {
  background: rgba(212, 168, 67, 0.12) !important;
  border-color: rgba(212, 168, 67, 0.2) !important;
  color: #fbbf24 !important;
}

/* ── Logout Button Dark ── */
body.dark-mode .admin-topbar button[onclick="goBack()"] {
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.2) !important;
  background: rgba(248, 113, 113, 0.06) !important;
}

body.dark-mode .admin-topbar button[onclick="goBack()"]:hover {
  background: rgba(248, 113, 113, 0.12) !important;
}

/* ── Smooth Dark Mode Transition ── */
body {
  transition:
    background-color 0.4s ease,
    color 0.3s ease;
}

/* Only apply transitions to key elements for dark mode toggle, not body * which kills performance */
.main-header,
.admin-sidebar,
.admin-topbar,
.admin-main,
.stat-card-v2,
.room-tile,
.kanban-card,
.kanban-col,
.admin-drawer,
.billing-table th,
.billing-table td,
.input-field,
.nav-link,
.dark-toggle,
.notif-dropdown,
.property-card,
.service-card,
.feature-card,
.testimonial-card,
.faq-item,
.admin-bottom-nav,
#toast-inner,
footer {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

/* ══════════════════════════════════════════════════════════
       UI/UX ENHANCEMENTS #6-#15 — CSS
    ══════════════════════════════════════════════════════════ */

/* ── #8: Chart Bar Animation ── */
@keyframes chartBarGrow {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

.chart-bar-animated {
  transform-origin: bottom;
  animation: chartBarGrow 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── #11: Page View Transitions ── */
@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes viewFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ── #12: Empty State ── */
.empty-state {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

body.dark-mode .empty-state h4 {
  color: #e2e8f0 !important;
}

body.dark-mode .empty-state p {
  color: #64748b !important;
}

/* ── #14: Button Loading Spinner ── */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  vertical-align: middle;
}

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

/* ── #6: Welcome Banner Dark Mode ── */
body.dark-mode #admin-welcome-banner {
  background: linear-gradient(
    135deg,
    rgba(212, 168, 67, 0.15) 0%,
    rgba(212, 168, 67, 0.08) 50%,
    rgba(212, 168, 67, 0.04) 100%
  ) !important;
  border: 1px solid rgba(212, 168, 67, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode #admin-welcome-banner #admin-greeting {
  color: #f1f5f9 !important;
}

body.dark-mode #admin-welcome-banner p {
  color: #94a3b8 !important;
}

body.dark-mode #admin-welcome-banner div[class*="px-4"] {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #d4a843 !important;
}

body.dark-mode #admin-welcome-banner .live-indicator {
  background: #d4a843 !important;
  box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4) !important;
}

body.dark-mode #admin-welcome-banner i.fas {
  color: rgba(212, 168, 67, 0.15) !important;
}

/* ── #7: Pending Actions Dark Mode ── */
body.dark-mode #admin-pending-actions .bg-rose-50 {
  background: rgba(244, 63, 94, 0.08) !important;
  border-color: rgba(244, 63, 94, 0.15) !important;
}

body.dark-mode #admin-pending-actions .bg-rose-50 p:first-child {
  color: #fb7185 !important;
}

body.dark-mode #admin-pending-actions .bg-rose-50 p:last-child {
  color: rgba(251, 113, 133, 0.6) !important;
}

body.dark-mode #admin-pending-actions .bg-amber-50 {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.15) !important;
}

body.dark-mode #admin-pending-actions .bg-amber-50 p:first-child {
  color: #fbbf24 !important;
}

body.dark-mode #admin-pending-actions .bg-amber-50 p:last-child {
  color: rgba(251, 191, 36, 0.6) !important;
}

body.dark-mode #admin-pending-actions .bg-blue-50 {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

body.dark-mode #admin-pending-actions .bg-blue-50 p:first-child {
  color: #60a5fa !important;
}

body.dark-mode #admin-pending-actions .bg-blue-50 p:last-child {
  color: rgba(96, 165, 250, 0.6) !important;
}

body.dark-mode #admin-pending-actions .bg-rose-100,
body.dark-mode #admin-pending-actions .bg-amber-100,
body.dark-mode #admin-pending-actions .bg-blue-100 {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ── #9: Quick Actions Dark Mode ── */
body.dark-mode #tenant-quick-actions button,
body.dark-mode #tenant-quick-actions a {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
}

body.dark-mode #tenant-quick-actions button:hover,
body.dark-mode #tenant-quick-actions a:hover {
  background: rgba(26, 35, 50, 0.9) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode #tenant-quick-actions p:first-of-type {
  color: #e2e8f0 !important;
}

body.dark-mode #tenant-quick-actions p:last-of-type {
  color: #64748b !important;
}

body.dark-mode #tenant-quick-actions [class*="from-rose-50"] {
  background: rgba(244, 63, 94, 0.12) !important;
}

body.dark-mode #tenant-quick-actions [class*="from-emerald-50"] {
  background: rgba(0, 151, 146, 0.12) !important;
}

body.dark-mode #tenant-quick-actions [class*="from-violet-50"] {
  background: rgba(139, 92, 246, 0.12) !important;
}

body.dark-mode #tenant-quick-actions [class*="from-green-50"] {
  background: rgba(0, 151, 146, 0.12) !important;
}

/* ── #10: Payment Timeline Dark Mode ── */
body.dark-mode #tenant-payment-timeline {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
}

body.dark-mode #tenant-payment-timeline .text-slate-800 {
  color: #e2e8f0 !important;
}

body.dark-mode #tenant-payment-timeline .bg-slate-100 {
  background: rgba(51, 65, 85, 0.4) !important;
}

body.dark-mode #tenant-payment-timeline .bg-slate-200 {
  background: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode #tenant-payment-timeline .bg-emerald-50,
body.dark-mode #tenant-payment-timeline .bg-emerald-100 {
  background: rgba(0, 151, 146, 0.12) !important;
}

body.dark-mode #tenant-payment-timeline .bg-amber-50 {
  background: rgba(245, 158, 11, 0.12) !important;
}

body.dark-mode #tenant-payment-timeline .w-px {
  background: rgba(51, 65, 85, 0.4) !important;
}

/* ── #15: Keyboard Shortcut Badge ── */
.kbd-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.3);
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
       NEW FEATURE STYLES
       ══════════════════════════════════════ */

/* Lightbox */
#lightbox-overlay img {
  transition: opacity 0.3s ease;
}

/* Compare Bar */
#compare-bar {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 162, 74, 0.2);
}

/* Social Proof Popup */
.fixed.bottom-24.left-6 {
  backdrop-filter: blur(8px);
}

/* Rent Calculator enhancement in dark mode */
body.dark-mode #rent-calculator {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%) !important;
}

body.dark-mode #rent-calculator h2,
body.dark-mode #rent-calculator label {
  color: #e2e8f0 !important;
}

body.dark-mode #rent-calculator p {
  color: #94a3b8 !important;
}

body.dark-mode #rent-calculator .bg-white {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode #rent-calculator select,
body.dark-mode #rent-calculator input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

/* Skeleton Loading */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-pulse .bg-slate-100 {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}

/* Form Validation */
input:focus,
select:focus,
textarea:focus {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field-hint {
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
  transition: color 0.2s;
}

/* Gallery thumbnail strip */
.gallery-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.2s,
    transform 0.2s;
  border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  transform: scale(1.05);
  border-color: #c8a24a;
}

/* Maintenance priority badges */
.priority-low {
  color: #009792;
}

.priority-medium {
  color: #f59e0b;
}

.priority-high {
  color: #ef4444;
}

/* Activity timeline dots */
#activity-timeline .relative > .absolute {
  box-shadow: 0 0 0 4px white;
}

/* Expense tracker dark mode */
body.dark-mode .fixed[style*="background:rgba(0,0,0"] .bg-white {
  background: #1e293b !important;
  color: #e2e8f0;
}

body.dark-mode .fixed[style*="background:rgba(0,0,0"] .bg-slate-50 {
  background: #0f172a !important;
}

body.dark-mode .fixed[style*="background:rgba(0,0,0"] .text-slate-700 {
  color: #e2e8f0 !important;
}

body.dark-mode .fixed[style*="background:rgba(0,0,0"] .border-slate-200 {
  border-color: #334155 !important;
}

body.dark-mode .fixed[style*="background:rgba(0,0,0"] input,
body.dark-mode .fixed[style*="background:rgba(0,0,0"] select,
body.dark-mode .fixed[style*="background:rgba(0,0,0"] textarea {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

/* Responsive fixes for new features */
@media (max-width: 640px) {
  #compare-bar {
    flex-direction: row;
    gap: 8px;
    padding: 12px 16px;
    font-size: 12px;
  }

  .fixed.bottom-24.left-6 {
    left: 12px;
    right: 12px;
    bottom: 80px;
    max-width: none;
  }

  #pwa-banner {
    left: 8px;
    right: 8px;
    transform: none;
    max-width: none;
  }
}

/* 
======================================================
  RAINBOW SPREADSHEET 🌈 
======================================================
*/
.billing-table th:nth-child(1) {
  background: linear-gradient(180deg, #fef2f2, #fee2e2) !important;
  color: #b91c1c !important;
}

.billing-table th:nth-child(2) {
  background: linear-gradient(180deg, #fff7ed, #ffedd5) !important;
  color: #c2410c !important;
}

.billing-table th:nth-child(3),
.billing-table th:nth-child(4) {
  background: linear-gradient(180deg, #fefce8, #fef9c3) !important;
  color: #a16207 !important;
}

.billing-table th:nth-child(5),
.billing-table th:nth-child(6) {
  background: linear-gradient(180deg, #f0fdf4, #dcfce7) !important;
  color: #15803d !important;
}

.billing-table th:nth-child(7) {
  background: linear-gradient(180deg, #ecfeff, #cffafe) !important;
  color: #0e7490 !important;
}

.billing-table th:nth-child(8) {
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  color: #1d4ed8 !important;
}

.billing-table th:nth-child(9) {
  background: linear-gradient(180deg, #faf5ff, #f3e8ff) !important;
  color: #7e22ce !important;
}

.billing-table th:nth-child(10) {
  background: linear-gradient(180deg, #fdf4ff, #fae8ff) !important;
  color: #a21caf !important;
}

.billing-table th:nth-child(11) {
  background: linear-gradient(180deg, #fdf2f8, #fce7f3) !important;
  color: #be185d !important;
}

.billing-table th:nth-child(12) {
  background: linear-gradient(180deg, #fef2f2, #fee2e2) !important;
  color: #b91c1c !important;
}

/* Let's strip the boring whites and grays off the table columns too! */
.billing-table td:nth-child(1) {
  background: #fffcfc !important;
  color: #991b1b !important;
}

.billing-table td:nth-child(2) {
  background: #fffaf5 !important;
  color: #9a3412 !important;
}

.billing-table td:nth-child(3),
.billing-table td:nth-child(4) {
  background: #fffdf5 !important;
}

.billing-table td:nth-child(5),
.billing-table td:nth-child(6) {
  background: #f5fcf7 !important;
}

.billing-table td:nth-child(7) {
  background: #f5fcff !important;
  color: #0891b2 !important;
}

.billing-table td:nth-child(8) {
  background: #f5fbff !important;
  color: #2563eb !important;
}

.billing-table td:nth-child(9) {
  background: #fcf7ff !important;
  color: #9333ea !important;
}

.billing-table td:nth-child(10) {
  background: #fff5ff !important;
  color: #c026d3 !important;
}

.billing-table td:nth-child(11) {
  background: #fff5f9 !important;
  color: #db2777 !important;
}

/* Custom Inputs to match the rainbow */
.billing-table td:nth-child(3) input {
  background: #fefce8 !important;
  border-color: #fde047 !important;
  color: #a16207 !important;
}

.billing-table td:nth-child(4) input {
  background: #fef08a !important;
  border-color: #eab308 !important;
  color: #854d0e !important;
}

.billing-table td:nth-child(5) input {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

.billing-table td:nth-child(6) input {
  background: #bbf7d0 !important;
  border-color: #22c55e !important;
  color: #166534 !important;
}

.billing-table td:nth-child(8) input {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1e40af !important;
}

.billing-table td:nth-child(11) input {
  background: #fdf2f8 !important;
  border-color: #f9a8d4 !important;
  color: #9d174d !important;
}

.billing-table td:nth-child(12) input {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}

/* Ensure we don't break dark mode! */
body.dark-mode .billing-table th:nth-child(n),
body.dark-mode .billing-table td:nth-child(n),
body.dark-mode .billing-table td:nth-child(n) input {
  background: auto !important;
  color: auto !important;
  border-color: auto !important;
}

/* Refined Colorful Matrix Styling */
.billing-table th:nth-child(1) {
  background: linear-gradient(180deg, #fef2f2, #fee2e2) !important;
  color: #991b1b !important;
}

.billing-table th:nth-child(2) {
  background: linear-gradient(180deg, #fff7ed, #ffedd5) !important;
  color: #9a3412 !important;
}

.billing-table th:nth-child(3),
.billing-table th:nth-child(4) {
  background: linear-gradient(180deg, #fefce8, #fef9c3) !important;
  color: #854d0e !important;
}

.billing-table th:nth-child(5),
.billing-table th:nth-child(6) {
  background: linear-gradient(180deg, #f0fdf4, #dcfce7) !important;
  color: #166534 !important;
}

.billing-table th:nth-child(7) {
  background: linear-gradient(180deg, #ecfeff, #cffafe) !important;
  color: #164e63 !important;
}

.billing-table th:nth-child(8) {
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  color: #1e40af !important;
}

.billing-table th:nth-child(9),
.billing-table th:nth-child(10),
.billing-table th:nth-child(11),
.billing-table th:nth-child(12) {
  background: linear-gradient(180deg, #faf5ff, #f3e8ff) !important;
  color: #6b21a8 !important;
}

.billing-table th:nth-child(13),
.billing-table th:nth-child(14),
.billing-table th:nth-child(15) {
  background: linear-gradient(180deg, #ecfeff, #cffafe) !important;
  color: #155e75 !important;
}

/* Refined Columns */
.billing-table td:nth-child(1) {
  background: #fffcfc !important;
  color: #991b1b !important;
  font-weight: 900 !important;
}

.billing-table td:nth-child(2) {
  background: #fffaf5 !important;
  color: #9a3412 !important;
}

.billing-table td:nth-child(3),
.billing-table td:nth-child(4) {
  background: #fffdf5 !important;
}

.billing-table td:nth-child(5),
.billing-table td:nth-child(6) {
  background: #f5fcf7 !important;
}

.billing-table td:nth-child(7) {
  background: #f5fcff !important;
  color: #0891b2 !important;
  font-weight: 800 !important;
}

.billing-table td:nth-child(8) {
  background: #f5fbff !important;
  color: #2563eb !important;
}

.billing-table td:nth-child(9),
.billing-table td:nth-child(10),
.billing-table td:nth-child(11),
.billing-table td:nth-child(12) {
  background: #faf5ff !important;
  color: #9333ea !important;
  font-weight: 700 !important;
}

.billing-table td:nth-child(13),
.billing-table td:nth-child(14),
.billing-table td:nth-child(15) {
  background: #f5fcff !important;
  color: #0891b2 !important;
}

/* Custom Inputs to match the rainbow */
.billing-table td:nth-child(3) input,
.billing-table td:nth-child(4) input {
  background: #fefce8 !important;
  border-color: #fde047 !important;
  color: #a16207 !important;
}

.billing-table td:nth-child(5) input,
.billing-table td:nth-child(6) input {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

.billing-table td:nth-child(8) input {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
}

.billing-table td:nth-child(11) input,
.billing-table td:nth-child(12) input {
  background: #faf5ff !important;
  border-color: #d8b4fe !important;
  color: #7e22ce !important;
}

.billing-table td:nth-child(14) input {
  background: #ecfeff !important;
  border-color: #67e8f9 !important;
  color: #0891b2 !important;
}

/* ── Smooth Scrolling Performance Optimizations ── */
.billing-table-wrapper {
  -webkit-overflow-scrolling: touch;
  will-change: transform, scroll-position;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  /* Hardware acceleration for scroll wrapper */
  transform: translateZ(0);
}

.billing-table-wrapper table {
  /* Prevent table repaints from causing layout thrashing */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ══════════════════════════════════════════════════════════
   BILLING RESPONSIVE MEGA-UPDATE
   ══════════════════════════════════════════════════════════ */

/* ── 1. Sticky Columns — Room & Tenant on horizontal scroll ── */
.billing-table th:nth-child(1),
.billing-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 56px;
}

.billing-table th:nth-child(2),
.billing-table td:nth-child(2) {
  position: sticky;
  left: 56px;
  z-index: 4;
  min-width: 110px;
}

.billing-table th:nth-child(1)::after,
.billing-table th:nth-child(2)::after,
.billing-table td:nth-child(1)::after,
.billing-table td:nth-child(2)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.billing-table td:nth-child(2)::after {
  width: 4px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent);
}

/* ── 2. Scroll Hint Overlay (right edge fade) ── */
.billing-table-wrapper {
  position: relative;
}

.billing-table-wrapper::after {
  content: "";
  position: sticky;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.85));
  z-index: 3;
  flex-shrink: 0;
  display: block;
  float: right;
  height: 100%;
  margin-top: -100%;
}

body.dark-mode .billing-table-wrapper::after {
  background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.85));
}

/* ── 3. Toolbar Inputs — iOS Touch Compliance ── */
#admin-tab-billing input[type="text"],
#admin-tab-billing input[type="month"],
#admin-tab-billing select {
  min-height: 44px;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

/* ── 4. Action Buttons — Better Touch Targets ── */
#admin-tab-billing .flex.flex-wrap.gap-2 button {
  min-height: 44px;
  border-radius: 14px;
}

/* ── 5. Billing Summary Cards animations ── */
#billing-summary-cards > div {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#billing-summary-cards > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#billing-summary-cards > div:active {
  transform: scale(0.97);
}

/* ── 6. Enhanced Mobile Billing Cards ── */
.billing-card-mobile > div {
  border-radius: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.billing-card-mobile > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, #e5b84c, #c8a24a);
  opacity: 0.7;
}

.billing-card-mobile > div.vacant-card::before {
  background: linear-gradient(180deg, #94a3b8, #64748b);
  opacity: 0.4;
}

.billing-card-mobile > div.vacant-card {
  opacity: 0.55;
}

.billing-card-mobile > div:active {
  transform: scale(0.985);
}

.billing-card-mobile .mobile-card-section {
  background: white;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  padding: 10px 12px;
  margin-top: 8px;
}

.billing-card-mobile .mobile-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.billing-card-mobile .mobile-card-stat {
  background: white;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  padding: 10px;
  text-align: center;
}

.billing-card-mobile .mobile-card-stat .stat-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.billing-card-mobile .mobile-card-stat .stat-value {
  font-size: 14px;
  font-weight: 900;
  color: #1e293b;
}

.billing-card-mobile .mobile-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.billing-card-mobile .mobile-status-bar label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.billing-card-mobile .mobile-status-bar label span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

.billing-card-mobile .mobile-action-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.billing-card-mobile .mobile-action-bar button {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.billing-card-mobile .mobile-action-bar button:active {
  transform: scale(0.95);
}

/* ── 7. Summary Card — Very Small Screen (≤380px) ── */
@media (max-width: 380px) {
  #billing-summary-cards {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #billing-summary-cards > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px !important;
    text-align: left !important;
  }

  #billing-summary-cards > div p:first-child {
    margin-bottom: 0 !important;
  }

  #billing-summary-cards > div p:last-child {
    font-size: 1.25rem !important;
  }

  /* Action buttons full-width stack */
  #admin-tab-billing .flex.flex-wrap.gap-2 {
    flex-direction: column;
  }

  #admin-tab-billing .flex.flex-wrap.gap-2 button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

/* ── 8. Mobile Card Enhancements (≤768px) ── */
@media (max-width: 768px) {
  /* Better card spacing */
  .billing-card-mobile {
    padding: 0 2px;
  }

  .billing-card-mobile > div {
    padding: 14px 14px 14px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  /* Summary cards — responsive text */
  #billing-summary-cards > div p:last-child {
    font-size: 1.1rem;
  }

  /* Divider between toolbar and actions */
  #admin-tab-billing .flex.flex-wrap.gap-2.mb-4 {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* ── 9. Tablet — Better table display ── */
@media (min-width: 769px) and (max-width: 1200px) {
  .billing-table th {
    font-size: 8px !important;
    padding: 10px 6px !important;
    letter-spacing: 0.03em;
  }

  .billing-table td {
    font-size: 12px;
    padding: 8px 6px;
  }

  .billing-table input[type="number"] {
    width: 58px !important;
    font-size: 11px !important;
    padding: 6px 4px !important;
  }

  .billing-table .billing-amount-paid {
    width: 68px !important;
  }

  .billing-table-wrapper {
    max-height: 75vh;
  }
}

/* ── 10. Dark Mode — Mobile Billing Cards Deep ── */
body.dark-mode .billing-card-mobile > div {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .billing-card-mobile > div::before {
  background: linear-gradient(180deg, #d4a843, #b8922e);
}

body.dark-mode .billing-card-mobile .mobile-card-section,
body.dark-mode .billing-card-mobile .mobile-card-stat {
  background: rgba(10, 17, 32, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .billing-card-mobile .mobile-card-stat .stat-label {
  color: #64748b !important;
}

body.dark-mode .billing-card-mobile .mobile-card-stat .stat-value {
  color: #e2e8f0 !important;
}

body.dark-mode .billing-card-mobile .mobile-status-bar {
  background: rgba(10, 17, 32, 0.5) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .billing-card-mobile .mobile-status-bar label span {
  color: #94a3b8 !important;
}

body.dark-mode .billing-card-mobile .bg-white {
  background: rgba(10, 17, 32, 0.6) !important;
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode .billing-card-mobile input[type="number"] {
  background: rgba(10, 17, 32, 0.8) !important;
  border-color: rgba(51, 65, 85, 0.4) !important;
  color: #e2e8f0 !important;
}

body.dark-mode .billing-card-mobile .text-slate-800,
body.dark-mode .billing-card-mobile .text-slate-700 {
  color: #e2e8f0 !important;
}

body.dark-mode .billing-card-mobile .text-slate-400,
body.dark-mode .billing-card-mobile .text-slate-500 {
  color: #64748b !important;
}

/* ── 11. Dark Mode — Summary Cards ── */
body.dark-mode #billing-summary-cards > div {
  border-color: rgba(51, 65, 85, 0.3) !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(1) {
  background: rgba(245, 158, 11, 0.08) !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(1) p:first-child {
  color: #f59e0b !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(1) p:last-child {
  color: #fbbf24 !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(2) {
  background: rgba(59, 130, 246, 0.08) !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(2) p:first-child {
  color: #3b82f6 !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(2) p:last-child {
  color: #60a5fa !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(3) {
  background: rgba(0, 151, 146, 0.08) !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(3) p:first-child {
  color: #009792 !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(3) p:last-child {
  color: #34d399 !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(4) {
  background: rgba(244, 63, 94, 0.08) !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(4) p:first-child {
  color: #f43f5e !important;
}

body.dark-mode #billing-summary-cards > div:nth-child(4) p:last-child {
  color: #fb7185 !important;
}

/* ── 12. Dark Mode — Sticky column backgrounds ── */
body.dark-mode .billing-table th:nth-child(1),
body.dark-mode .billing-table th:nth-child(2) {
  z-index: 6;
}

body.dark-mode .billing-table td:nth-child(1)::after,
body.dark-mode .billing-table td:nth-child(2)::after,
body.dark-mode .billing-table th:nth-child(1)::after,
body.dark-mode .billing-table th:nth-child(2)::after {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .billing-table td:nth-child(2)::after {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.04), transparent);
}

/* ── 13. Mobile Card Action Buttons Dark Mode ── */
body.dark-mode .billing-card-mobile .mobile-action-bar button {
  color: #e2e8f0;
}

/* ── 14. Billing Toolbar — Visual Grouping Divider ── */
#admin-tab-billing .billing-controls-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.06),
    transparent
  );
  margin: 8px 0 4px;
}

body.dark-mode #admin-tab-billing .billing-controls-divider {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
}

/* ── 15. Billing Table Row Stagger Animation ── */
@keyframes billingRowFadeIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

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

.billing-table tbody tr {
  animation: billingRowFadeIn 0.3s ease both;
}

.billing-table tbody tr:nth-child(1) {
  animation-delay: 0.02s;
}

.billing-table tbody tr:nth-child(2) {
  animation-delay: 0.04s;
}

.billing-table tbody tr:nth-child(3) {
  animation-delay: 0.06s;
}

.billing-table tbody tr:nth-child(4) {
  animation-delay: 0.08s;
}

.billing-table tbody tr:nth-child(5) {
  animation-delay: 0.1s;
}

.billing-table tbody tr:nth-child(6) {
  animation-delay: 0.12s;
}

.billing-table tbody tr:nth-child(7) {
  animation-delay: 0.14s;
}

.billing-table tbody tr:nth-child(8) {
  animation-delay: 0.16s;
}

.billing-table tbody tr:nth-child(9) {
  animation-delay: 0.18s;
}

.billing-table tbody tr:nth-child(10) {
  animation-delay: 0.2s;
}

/* Mobile card stagger */
@keyframes billingCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

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

.billing-card-mobile > div {
  animation: billingCardSlideIn 0.35s ease both;
}

.billing-card-mobile > div:nth-child(1) {
  animation-delay: 0.03s;
}

.billing-card-mobile > div:nth-child(2) {
  animation-delay: 0.06s;
}

.billing-card-mobile > div:nth-child(3) {
  animation-delay: 0.09s;
}

.billing-card-mobile > div:nth-child(4) {
  animation-delay: 0.12s;
}

.billing-card-mobile > div:nth-child(5) {
  animation-delay: 0.15s;
}

.billing-card-mobile > div:nth-child(6) {
  animation-delay: 0.18s;
}

.billing-card-mobile > div:nth-child(7) {
  animation-delay: 0.21s;
}

.billing-card-mobile > div:nth-child(8) {
  animation-delay: 0.24s;
}

.billing-card-mobile > div:nth-child(9) {
  animation-delay: 0.27s;
}

.billing-card-mobile > div:nth-child(10) {
  animation-delay: 0.3s;
}

/* ── 16. Summary Cards Stagger ── */
#billing-summary-cards > div {
  animation: billingCardSlideIn 0.4s ease both;
}

#billing-summary-cards > div:nth-child(1) {
  animation-delay: 0.05s;
}

#billing-summary-cards > div:nth-child(2) {
  animation-delay: 0.1s;
}

#billing-summary-cards > div:nth-child(3) {
  animation-delay: 0.15s;
}

#billing-summary-cards > div:nth-child(4) {
  animation-delay: 0.2s;
}

/* ── 17. Improved Focus States for Billing Inputs ── */
.billing-card-mobile input[type="number"]:focus {
  border-color: #e5b84c !important;
  box-shadow: 0 0 0 3px rgba(229, 184, 76, 0.12);
  outline: none;
}

/* ── 18. Print-Friendly Billing ── */
@media print {
  .billing-card-mobile,
  .admin-bottom-nav,
  .admin-sidebar,
  .admin-topbar,
  #billing-summary-cards,
  .flex.flex-wrap.gap-2.mb-4 {
    display: none !important;
  }

  .billing-table-wrapper {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .billing-table th,
  .billing-table td {
    position: static !important;
    border: 1px solid #000 !important;
    font-size: 9px !important;
    padding: 4px !important;
  }
}

/* ═══ UPI Payment Modal ═══ */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#upi-payment-modal {
  transition: opacity 0.2s ease;
}

#upi-payment-modal > div {
  animation: slideUp 0.35s ease-out;
}

/* Pulse animation for pending payment */
@keyframes pendingPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pending {
  animation: pendingPulse 2s ease-in-out infinite;
}

/* UPI Queue Card Hover */
#pending-upi-list .bg-white:hover {
  transform: translateY(-1px);
}

/* ═══ Glassmorphism & UI Enhancements ═══ */
@keyframes float1 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulseSlow {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

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

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

.fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ═══ Premium UX Animations ═══ */

/* Skeleton Loading */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #e2e8f0;
}

.dark .skeleton {
  background-color: #334155;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.dark .skeleton::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
}

/* Confetti - see enhanced version below */

/* Donut Chart */
.donut-chart {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0% 60%, #f97316 60% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-inner {
  width: 90px;
  height: 90px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.dark .donut-inner {
  background-color: #1e293b;
}

/* Countdown Ring */
.progress-ring__circle {
  transition:
    stroke-dashoffset 0.8s ease-in-out,
    stroke 0.3s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Dark Mode Transitions */
body {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.dark {
  background-color: #1a1514 !important; /* Warm dark cocoa background */
  color: #f6f1f0;
}

.dark .bg-slate-\[50\],
.dark .bg-slate-50 {
  background-color: #261f1d !important;
} /* Warm brownish grey */
.dark .bg-slate-100 {
  background-color: #2e2624 !important;
}
.dark .bg-slate-200 {
  background-color: #3b322f !important;
}
.dark .bg-slate-800 {
  background-color: #211b19 !important;
  border-color: #3b322f !important;
}
.dark .bg-slate-900 {
  background-color: #120e0d !important;
  border-color: #261f1d !important;
}

.dark .bg-white\/80 {
  background-color: rgba(38, 31, 29, 0.6) !important;
  border-color: rgba(255, 230, 220, 0.08) !important;
  box-shadow: inset 0 1px 1px rgba(255, 230, 220, 0.1);
}
.dark .bg-white\/70 {
  background-color: rgba(38, 31, 29, 0.5) !important;
  border-color: rgba(255, 230, 220, 0.08) !important;
}
.dark .bg-white\/10 {
  background-color: rgba(255, 230, 220, 0.05) !important;
}

/* Warm text colors */
.dark .text-slate-900,
.dark .text-slate-800 {
  color: #f6f1f0 !important;
}
.dark .text-slate-700 {
  color: #e8e0de !important;
}
.dark .text-slate-600 {
  color: #d6c9c6 !important;
}
.dark .text-slate-500 {
  color: #bcaaa6 !important;
}
.dark .text-slate-400 {
  color: #8d7975 !important;
}

.dark .border-slate-100 {
  border-color: #2e2624 !important;
}
.dark .border-slate-200 {
  border-color: #3b322f !important;
}
.dark .border-slate-300 {
  border-color: #4f423e !important;
}
.dark .border-white {
  border-color: rgba(255, 230, 220, 0.1) !important;
}

/* Enhanced Typography & Shadows for Dark Mode */
.dark .shadow-\[0_30px_60px_-15px_rgba\(0\,0\,0\,0\.05\)\] {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4) !important;
}
.dark .bg-gradient-to-r.from-slate-900.via-slate-700.to-slate-900 {
  background-image: linear-gradient(
    to right,
    #f8fafc,
    #cbd5e1,
    #f8fafc
  ) !important;
}

/* Sticky Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 0;
  padding-bottom: calc(env(safe-area-inset-bottom, 8px) + 4px);
  z-index: 1000;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.04);
}

.dark .mobile-bottom-nav {
  background: rgba(26, 21, 20, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 12px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-icon-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-active-dot {
  width: 0;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #009792, #0d9488);
  margin-top: 3px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(0, 151, 146, 0);
}

.nav-item.active {
  color: #009792;
}

.nav-item.active .nav-active-dot {
  width: 20px;
  box-shadow: 0 0 8px rgba(0, 151, 146, 0.4);
}

.nav-item i {
  font-size: 18px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active i {
  transform: scale(1.15);
}

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

/* Desktop Tab Buttons */
.tenant-tab-btn {
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
}

.tenant-tab-btn:hover {
  color: #334155;
  background: rgba(0, 0, 0, 0.04);
}

.tenant-tab-btn.active {
  color: #009792;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dark .tenant-tab-btn {
  color: #8d7975;
}

.dark .tenant-tab-btn:hover {
  color: #bcaaa6;
  background: rgba(255, 255, 255, 0.05);
}

.dark .tenant-tab-btn.active {
  color: #009792;
  background: rgba(0, 151, 146, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

/* ═══ Notice Marquee ═══ */
.marquee-track {
  position: relative;
}

.marquee-content {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
}

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

.marquee-content:hover {
  animation-play-state: paused;
}

.dark .notice-marquee-container {
  background: linear-gradient(
    to right,
    rgba(38, 31, 29, 0.8),
    rgba(38, 31, 29, 0.6)
  ) !important;
  border-color: rgba(255, 180, 0, 0.15) !important;
}

/* ═══ Dashboard Cascading Entry Animation ═══ */
.dashboard-enter > * {
  opacity: 0;
  transform: translateY(30px);
  animation: cascadeIn 0.5s ease-out forwards;
}

.dashboard-enter > *:nth-child(1) {
  animation-delay: 0s;
}
.dashboard-enter > *:nth-child(2) {
  animation-delay: 0.06s;
}
.dashboard-enter > *:nth-child(3) {
  animation-delay: 0.12s;
}
.dashboard-enter > *:nth-child(4) {
  animation-delay: 0.18s;
}
.dashboard-enter > *:nth-child(5) {
  animation-delay: 0.24s;
}
.dashboard-enter > *:nth-child(6) {
  animation-delay: 0.3s;
}
.dashboard-enter > *:nth-child(7) {
  animation-delay: 0.36s;
}
.dashboard-enter > *:nth-child(8) {
  animation-delay: 0.42s;
}
.dashboard-enter > *:nth-child(9) {
  animation-delay: 0.48s;
}
.dashboard-enter > *:nth-child(10) {
  animation-delay: 0.54s;
}
.dashboard-enter > *:nth-child(11) {
  animation-delay: 0.6s;
}
.dashboard-enter > *:nth-child(12) {
  animation-delay: 0.66s;
}

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

/* ═══ Expense Chart Bar Grow ═══ */
@keyframes barGrow {
  from {
    height: 0% !important;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ═══ Spotlight (Blur) Effect ═══ */
.spotlight-active > *:not(.spotlight-target) {
  filter: blur(3px);
  opacity: 0.4;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
  pointer-events: none;
}

.spotlight-target {
  position: relative;
  z-index: 50;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow:
    0 0 0 4px rgba(0, 151, 146, 0.2),
    0 0 40px rgba(0, 151, 146, 0.1);
  border-radius: 1.5rem;
  transition: box-shadow 0.3s ease;
}

/* ═══ Confetti Enhancements ═══ */
.confetti {
  position: fixed;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: confettiFall 3.5s ease-in-out forwards;
  z-index: 99999;
  pointer-events: none;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(1080deg) scale(0.3);
    opacity: 0;
  }
}

/* ═══ 3D Tilt Card Polish ═══ */
.tilt-card,
#tenant-payment-status > div {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ═══ Magnetic Button Hover ═══ */
.magnetic-btn {
  will-change: transform;
  cursor: pointer;
}

/* ═══ Dark Mode: Warm Enhancements for New Components ═══ */
.dark .bg-emerald-50\/50 {
  background-color: rgba(38, 31, 29, 0.4) !important;
}
.dark .bg-amber-50 {
  background-color: rgba(38, 31, 29, 0.5) !important;
}
.dark .bg-rose-50 {
  background-color: rgba(38, 31, 29, 0.4) !important;
}
.dark .bg-blue-50 {
  background-color: rgba(38, 31, 29, 0.4) !important;
}
.dark .bg-indigo-50\/50 {
  background-color: rgba(38, 31, 29, 0.4) !important;
}
.dark .bg-amber-100 {
  background-color: rgba(245, 158, 11, 0.15) !important;
}
.dark .bg-emerald-100 {
  background-color: rgba(0, 151, 146, 0.15) !important;
}
.dark .bg-rose-100 {
  background-color: rgba(244, 63, 94, 0.15) !important;
}
.dark .bg-blue-100 {
  background-color: rgba(59, 130, 246, 0.15) !important;
}
.dark .border-emerald-100 {
  border-color: rgba(0, 151, 146, 0.2) !important;
}
.dark .border-amber-100 {
  border-color: rgba(245, 158, 11, 0.2) !important;
}
.dark .border-rose-100 {
  border-color: rgba(244, 63, 94, 0.2) !important;
}
.dark .border-blue-100 {
  border-color: rgba(59, 130, 246, 0.2) !important;
}
.dark .bg-slate-50\/80 {
  background-color: rgba(38, 31, 29, 0.5) !important;
}
.dark .bg-emerald-50 {
  background-color: rgba(0, 151, 146, 0.06) !important;
}
.dark .bg-slate-100.hover\:bg-slate-200 {
  background-color: rgba(38, 31, 29, 0.6) !important;
}

/* Range Slider dark mode */
.dark input[type="range"] {
  accent-color: #009792;
}

/* Warm dark for the gradient backgrounds */
.dark .from-slate-900 {
  --tw-gradient-from: #1a1514 !important;
}
.dark .to-slate-800 {
  --tw-gradient-to: #211b19 !important;
}
.dark .to-slate-900 {
  --tw-gradient-to: #1a1514 !important;
}

/* ═══ #28: Scroll Progress Indicator ═══ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #009792, #c8a24a, #009792);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(0, 151, 146, 0.4);
}

/* ═══ #23: Glassmorphism Card Hover Glow ═══ */
#tenant-dash .bg-white\/80:hover,
#tenant-dash .backdrop-blur-2xl:hover {
  box-shadow:
    0 0 0 1px rgba(0, 151, 146, 0.15),
    0 0 30px rgba(0, 151, 146, 0.08),
    0 20px 40px -15px rgba(0, 0, 0, 0.05) !important;
  transition: box-shadow 0.4s ease !important;
}

/* ═══ #24: Pulsing Status Badges ═══ */
.badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 151, 146, 0.1);
  color: #009792;
  animation: pulsePaid 2.5s ease-in-out infinite;
}

.badge-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  animation: pulseDue 1.8s ease-in-out infinite;
}

@keyframes pulsePaid {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 151, 146, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 151, 146, 0);
  }
}

@keyframes pulseDue {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

/* ═══ #27: Shimmer Loading Cards ═══ */
.shimmer-card {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2rem;
  border: 1px solid #e2e8f0;
}

.dark .shimmer-card {
  background: linear-gradient(90deg, #261f1d 25%, #3b322f 50%, #261f1d 75%);
  background-size: 200% 100%;
  border-color: #3b322f;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ═══ #22: Animated Number Counter ═══ */
.counter-animate {
  display: inline-block;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══ #31: Sticky Quick Actions ═══ */
.sticky-actions {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 8px;
  padding-bottom: 8px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}

/* ═══ #17: Payment Step Tracker ═══ */
.step-tracker {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 12px 0;
}

.step-tracker .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-tracker .step .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  z-index: 2;
  transition: all 0.3s;
}

.step-tracker .step .step-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-align: center;
}

.step-tracker .step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 -4px;
  position: relative;
  top: -10px;
}

.step-tracker .step-line.active {
  background: #009792;
}

.step-tracker .step .step-dot.completed {
  background: #009792;
  color: white;
}

.step-tracker .step .step-dot.active {
  background: #f59e0b;
  color: white;
  animation: pulsePaid 2s infinite;
}

.step-tracker .step .step-dot.pending {
  background: #e2e8f0;
  color: #94a3b8;
}

/* ═══ #39: Session Timer ═══ */
.session-timer {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.session-timer i {
  font-size: 8px;
}

/* ═══ #37: Live Clock ═══ */
.live-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.5px;
}

/* ═══ #10: Complaint Kanban Dots ═══ */
.kanban-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kanban-dot.filed {
  background: #f59e0b;
}
.kanban-dot.progress {
  background: #3b82f6;
}
.kanban-dot.resolved {
  background: #009792;
}

/* ═══ #30: Bottom Sheet Modal (Mobile) ═══ */
@media (max-width: 639px) {
  .upi-modal-content {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    max-height: 90vh;
    border-radius: 2rem 2rem 0 0 !important;
    animation: slideUpSheet 0.3s ease-out;
    overflow-y: auto;
  }

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

/* ═══ Dark Mode for new components ═══ */
.dark .step-tracker .step-line {
  background: #3b322f;
}
.dark .step-tracker .step .step-dot.pending {
  background: #3b322f;
  color: #8d7975;
}
.dark .shimmer-card {
  border-color: #3b322f;
}

/* ═══ 3D Perspective Utilities for Location Card ═══ */
.perspective-1000 {
  perspective: 1000px;
}

/* ═══ Advanced Hero Entrance Animations ═══ */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-hero-fade-up {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
  animation-delay: 100ms;
}
.delay-200 {
  animation-delay: 200ms;
}
.delay-300 {
  animation-delay: 300ms;
}
.delay-400 {
  animation-delay: 400ms;
}

/* ═══ Floating Elements Animation ═══ */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes float-reverse {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: float-reverse 7s ease-in-out infinite;
}

/* Stunning Glass Morphic Badge */
.glass-badge-stunning {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.dark .glass-badge-stunning {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

/* ═══ Custom Cursor System ═══ */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #C8A24A;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(200, 162, 74, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transition: width 0.15s, height 0.15s, border-color 0.15s;
}

body.cursor-hover .custom-cursor-dot {
  width: 12px;
  height: 12px;
  background: #009792;
}

body.cursor-hover .custom-cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(0, 151, 146, 0.3);
}

body.cursor-click .custom-cursor-dot {
  width: 6px;
  height: 6px;
}

body.cursor-click .custom-cursor-ring {
  width: 28px;
  height: 28px;
  border-color: rgba(200, 162, 74, 0.6);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* ═══ Glassmorphic Toast Notifications ═══ */
.glass-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
  color: #1e293b;
  font-size: 0.875rem;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.glass-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.glass-toast.hide {
  transform: translateY(20px) scale(0.95);
  opacity: 0;
}

.glass-toast.error {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(255, 240, 240, 0.95);
}

.glass-toast.info {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(240, 245, 255, 0.95);
}

.glass-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C8A24A, #009792);
  transform-origin: left;
  border-radius: 0 0 16px 16px;
}

/* ═══ Preloader Progress Bar Animation ═══ */
@keyframes progressBar {
  0% {
    width: 0;
  }
  60% {
    width: 80%;
  }
  100% {
    width: 100%;
  }
}

.animate-progress-bar {
  animation: progressBar 1.8s ease-in-out forwards;
}

/* ═══ Fade-in-up utility ═══ */
.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUpSmooth 0.6s ease forwards;
}

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

/* ═══ Confetti Animation (Celebrations) ═══ */
.confetti-container {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ═══ Pulse Slow Animation (Preloader Logo) ═══ */
.animate-pulse-slow {
  animation: pulseSlow 2s ease-in-out infinite;
}

@keyframes pulseSlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

/* ═══ PREMIUM UI/UX ENHANCEMENTS ═══ */

/* 1. Cinematic Noise Texturing */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* 2. Spatial UI tracking highlight */
.spatial-card {
  position: relative;
  overflow: hidden;
}
.spatial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(200, 162, 74, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 10;
}
body.dark-mode .spatial-card::after {
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
}
.spatial-card:hover::after {
  opacity: 1;
}

/* 3. Next-Gen Glassmorphism */
.glass-premium {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 
    0 20px 40px rgba(0,0,0, 0.25), 
    inset 0 -5px 15px rgba(0,0,0, 0.1);
}
.dark .glass-premium {
  background: rgba(15, 23, 42, 0.4);
}

/* 4. Staggered Orchestrated Entrances */
.stagger-enter {
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.stagger-enter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 5. Kinetic Scroll Typography */
.kinetic-text {
  position: absolute;
  font-size: clamp(8rem, 15vw, 15rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 162, 74, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  letter-spacing: -0.05em;
}
body.dark-mode .kinetic-text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
}

/* 6. Dynamic Icon Morphing */
.icon-bounce-hover {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .icon-bounce-hover,
.service-card:hover .icon-bounce-hover {
  transform: scale(1.3) rotate(8deg);
}

/* 7. Mobile App-like Scroll Snapping */
.scroll-snap-x {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scroll-snap-align-center {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* -------- Ultra-Smooth UX Enhancements -------- */

/* --- Advanced Reveal on Scroll --- */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Spatial Card Perspective --- */
.property-card, .spatial-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform-style: preserve-3d;
}

.spatial-card:hover {
  box-shadow: 0 40px 100px -20px rgba(200, 162, 74, 0.15);
}

/* --- Smooth Momentum Hover Effects --- */
.magnetic-btn {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* --- Modern Glassmorphic Backdrop --- */
.glass-premium {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* --- View Transitions API Support --- */
::view-transition-group(root) {
  animation-duration: 0.5s;
}

::view-transition-old(root) {
  animation: 0.5s cubic-bezier(0.16, 1, 0.3, 1) both fade-out, 0.5s cubic-bezier(0.16, 1, 0.3, 1) both slide-to-left;
}

::view-transition-new(root) {
  animation: 0.5s cubic-bezier(0.16, 1, 0.3, 1) both fade-in, 0.5s cubic-bezier(0.16, 1, 0.3, 1) both slide-from-right;
}

@keyframes slide-to-left {
  to {
    transform: translateX(-30px);
  }
}

@keyframes slide-from-right {
  from {
    transform: translateX(30px);
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════════
   DARK MODE SYSTEM
   Uses CSS custom properties for seamless theming
   ══════════════════════════════════════════════════ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --brand-gold: #c8a24a;
  --brand-emerald: #009792;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --input-bg: #f8fafc;
}

html.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
  --border-light: #1e293b;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --brand-gold: #e8c94a;
  --brand-emerald: #34d399;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --input-bg: #1e293b;
}

html.dark body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

html.dark .main-header,
html.dark header {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: var(--border-color) !important;
}

html.dark .property-card,
html.dark .service-card,
html.dark .feature-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

html.dark .property-card:hover {
  box-shadow: 0 30px 60px -15px rgba(200, 162, 74, 0.1);
}

html.dark .input-field {
  background-color: var(--input-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.dark .nav-link {
  color: var(--text-secondary);
}

html.dark .nav-link:hover,
html.dark .nav-link.active {
  background: rgba(200, 162, 74, 0.1);
}

html.dark .portal-menu {
  background: var(--bg-card);
  border-color: var(--border-color);
}

html.dark .portal-option:hover {
  background: rgba(200, 162, 74, 0.1);
}

html.dark .notif-dropdown {
  background: var(--bg-card);
  border-color: var(--border-color);
}

html.dark .notif-item:hover {
  background: var(--bg-elevated);
}

html.dark .tab-btn {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

html.dark .tab-btn.active {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #0f172a;
}

html.dark .search-filter-bar {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: var(--border-color) !important;
}

html.dark select,
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="tel"],
html.dark textarea {
  background-color: var(--input-bg) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

html.dark section {
  background-color: var(--bg-primary);
}

html.dark section.bg-slate-50,
html.dark section.bg-white {
  background-color: var(--bg-secondary) !important;
}

html.dark .text-slate-900,
html.dark h1, html.dark h2, html.dark h3, html.dark h4 {
  color: var(--text-primary);
}

html.dark .text-slate-500,
html.dark .text-slate-400 {
  color: var(--text-muted);
}

html.dark #mobile-menu-btn {
  background: var(--bg-card);
  border-color: var(--border-color);
}

html.dark #mobile-menu-btn .ham-line {
  background: var(--text-primary) !important;
}

/* Dark mode toggle button */
.dark-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.dark-toggle:hover {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
  transform: rotate(15deg);
}

/* ══════════════════════════════════════════════════
   SKELETON LOADING
   ══════════════════════════════════════════════════ */

.skeleton-card {
  background: var(--bg-card);
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.skeleton-img {
  height: 200px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-secondary) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  height: 1.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-secondary) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.w-3\/4 { width: 75%; }
.skeleton-line.w-1\/2 { width: 50%; }

.skeleton-line-short {
  height: 0.875rem;
  width: 35%;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-secondary) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.15s;
}

.skeleton-btn {
  height: 2.75rem;
  border-radius: 0.75rem;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-secondary) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════════════ */

/* Skip to Content Link */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gold);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 1rem 1rem;
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 100000;
  transition: top 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(200, 162, 74, 0.4);
}

.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* Focus-Visible Rings (keyboard users only) */
html.keyboard-nav *:focus-visible {
  outline: 3px solid var(--brand-gold) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

html.keyboard-nav button:focus-visible,
html.keyboard-nav a:focus-visible {
  outline: 3px solid var(--brand-gold) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(200, 162, 74, 0.15) !important;
}

/* Remove outlines for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ══════════════════════════════════════════════════
   SCROLL TO TOP BUTTON (Enhanced)
   ══════════════════════════════════════════════════ */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 90;
  box-shadow: 0 8px 25px -8px rgba(200, 162, 74, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 30px -6px rgba(200, 162, 74, 0.6);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 90px;
    left: 20px;
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }
}

/* ══════════════════════════════════════════════════
   REDUCED MOTION (Accessibility)
   ══════════════════════════════════════════════════ */

@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;
  }

  .property-card:hover,
  .service-card:hover,
  .feature-card:hover {
    transform: none !important;
  }

  .skeleton-img,
  .skeleton-line,
  .skeleton-line-short,
  .skeleton-btn {
    animation: none !important;
    background: var(--border-light) !important;
  }
}

/* ══════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════ */

@media print {
  .main-header,
  #main-footer,
  .whatsapp-float,
  .scroll-to-top,
  .custom-cursor-dot,
  .custom-cursor-ring,
  #preloader,
  .notif-dropdown,
  .portal-menu,
  #mobile-menu-btn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  .property-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ══════════════════════════════════════════════════
   STAFF PORTAL STYLES
   ══════════════════════════════════════════════════ */

/* Shake animation (PIN error) */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Slide up from bottom (modal entrance) */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Hide scrollbar utility */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Staff filter buttons */
.staff-filter-btn {
  background: white;
  color: #475569;
  border-color: #e2e8f0;
  transition: all 0.2s ease;
}

.staff-filter-btn.active {
  background: #4f46e5 !important;
  color: white !important;
  border-color: #4f46e5 !important;
}

.staff-filter-btn:hover:not(.active) {
  border-color: #a5b4fc;
  color: #4f46e5;
}

/* Staff PIN input focus glow */
#staff-pin-inputs input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ══════════════════════════════════════════════════
   ACCESSIBILITY: Reduced Motion
   ══════════════════════════════════════════════════ */
@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;
  }
}

